/* v4.62: Real-world calibration and obstacle-aware 2D geometric coverage.
   The legacy visual planner, event handlers, and v4.61 features remain intact. */
.eg462-tools{margin:0 22px 15px;border:1px solid #d8e7f3;border-radius:13px;padding:14px;background:#f8fbfe;color:#173c5d}
.eg462-tools-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.eg462-tools-head strong{font-weight:680;font-size:14px}
.eg462-mini{font-size:11px;color:#648097;line-height:1.55}
.eg462-scale-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.eg462-field{display:flex;flex-direction:column;gap:5px;font-size:11.5px;color:#315777;font-weight:570}
.eg462-field input{width:110px;max-width:100%;border:1px solid #cadce9;border-radius:8px;background:#fff;padding:9px 10px;font-size:13px;color:#173d61}
.eg462-action,.eg462-tool{min-height:36px;border:1px solid #c9dcea;border-radius:8px;background:#fff;color:#1c597f;font-size:12px;font-weight:630;padding:8px 11px}
.eg462-action:hover,.eg462-tool:hover{background:#eaf6fd;border-color:#80b6d8}
.eg462-action:disabled,.eg462-tool:disabled{opacity:.44;cursor:not-allowed}
.eg462-action.is-active,.eg462-tool.is-active{background:#166da8;border-color:#166da8;color:#fff}
.eg462-help{color:#58738a;font-size:11.5px;line-height:1.55;margin:9px 0 0}
.eg462-status{font-size:11.5px;font-weight:640;color:#125e93;margin:9px 0 0;min-height:18px}
.eg462-separator{height:1px;background:#dce9f4;margin:12px 0}
.eg462-toolbar{display:flex;gap:7px;flex-wrap:wrap}
.eg462-legend{display:flex;align-items:center;flex-wrap:wrap;gap:10px 17px;font-size:11px;color:#55748c;margin-top:12px}
.eg462-legend span{display:flex;gap:6px;align-items:center}
.eg462-swatch{display:inline-block;width:12px;height:12px;border-radius:3px}
.eg462-swatch.view{background:#70afe0}.eg462-swatch.blind{background:#efc5a7}.eg462-swatch.wall{background:#627c96}.eg462-swatch.obstacle{background:#cf8350}
.eg462-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:11px}
.eg462-stat{background:white;border:1px solid #dae7ef;border-radius:9px;padding:10px 11px}
.eg462-stat span{display:block;color:#648096;font-size:10px;font-weight:590;line-height:1.3}
.eg462-stat strong{display:block;color:#1d567e;font-size:16px;margin-top:5px;line-height:1.25}
.eg462-toggle{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;color:#375e7d;cursor:pointer}
.eg462-toggle input{accent-color:#1577b9}
.eg462-warning{font-size:11px;line-height:1.58;color:#6a8296;margin:10px 0 0}
.eg391-canvas-frame canvas.is-drawing{cursor:crosshair}
.eg391-canvas-frame canvas.is-calibrating{cursor:crosshair}
@media(max-width:620px){.eg462-tools{margin:0 12px 12px;padding:11px}.eg462-scale-row{align-items:stretch}.eg462-field{flex:1}.eg462-field input{width:100%}.eg462-action{flex:1}.eg462-tool{flex:1 1 calc(45% - 6px);padding:8px 6px;font-size:11px}.eg462-tools-head strong{font-size:12.5px}.eg462-stats{gap:6px}.eg462-stat{padding:8px}.eg462-stat strong{font-size:14px}.eg391-canvas-frame canvas{touch-action:none}}

/* v4.63: explain the optional measurement using plain language. */
.eg463-optional{font-weight:500;color:#63829c;font-size:11px}
.eg463-intro{font-size:12.5px;line-height:1.65;color:#284f6a;margin:3px 0 12px;max-width:760px}
.eg463-intro strong{color:#103f67;font-weight:700}
.eg463-steps{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 13px}
.eg463-steps>span{display:inline-flex;align-items:center;gap:7px;border:1px solid #d8e7f3;background:#fff;border-radius:8px;padding:7px 10px;font-size:11px;line-height:1.3;color:#335e7b}
.eg463-steps b{flex-shrink:0;display:inline-grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#dceefc;color:#146ca3;font-size:11px}
.eg463-primary{background:#166da8;color:#fff;border-color:#166da8}
.eg463-primary:hover{background:#0b5c96;color:#fff}
.eg463-skip{font-size:11px;color:#6a8296;line-height:1.5;margin:5px 0 0}
.eg462-field input{width:140px}
.eg463-canvas-coach{position:absolute;z-index:2;top:12px;left:12px;right:12px;max-width:450px;margin:auto;padding:11px 15px;pointer-events:none;text-align:center;color:#fff;background:#135d92;box-shadow:0 4px 16px rgba(12,46,78,.18);border-radius:10px;font-size:13px;font-weight:700;line-height:1.4}
.eg463-canvas-coach[hidden]{display:none}
@media(max-width:620px){.eg463-steps{flex-direction:column;align-items:stretch}.eg463-steps>span{width:100%}.eg463-canvas-coach{font-size:11px;padding:9px 11px}.eg463-intro{font-size:12px}}

/* v4.64 - premium, compact, task-first planner. Only applies to this page. */
.eg464-page{--eg464-ink:#122c45;--eg464-muted:#667d91;--eg464-line:#e0e9f2;--eg464-blue:#136faa;}
.eg464-page .eg391-hero{background:linear-gradient(116deg,#071d34 0%,#0b2948 72%,#103354 100%)}
.eg464-page .eg391-hero-grid{grid-template-columns:minmax(0,1fr) auto;gap:20px;padding-top:30px;padding-bottom:32px}
.eg464-page .eg391-hero h1{font-size:clamp(27px,3.15vw,39px);margin:10px 0 10px;max-width:640px;line-height:1.15}
.eg464-page .eg391-hero p{font-size:13px;line-height:1.5}
.eg464-hero-link{display:inline-flex;gap:18px;align-items:center;justify-content:space-between;color:#fff!important;text-decoration:none;border:1px solid #315373;border-radius:9px;padding:13px 16px;background:rgba(255,255,255,.07);font-size:12px;font-weight:650;white-space:nowrap}
.eg464-hero-link:hover{background:rgba(255,255,255,.14)}
.eg464-hero-link span{font-size:18px}
.eg464-page .eg391-work{padding-top:26px;padding-bottom:40px}
.eg464-page .eg391-section-heading{margin-bottom:14px}
.eg464-page .eg391-section-heading h2{font-size:27px;margin-top:5px}
.eg464-stage-note{font-size:12px;color:#788a9d}
.eg464-page .eg391-stage-card,.eg464-page .eg391-controls{box-shadow:0 13px 42px rgba(14,47,79,.047);border-radius:15px}
.eg464-page .eg391-stage-top{padding:17px 19px 12px}
.eg464-page .eg391-templates{padding:0 19px 13px;gap:7px}
.eg464-page .eg391-templates button,.eg464-page .eg391-upload{min-height:35px;padding:7px 11px;border-radius:7px;font-size:11.5px}
.eg464-tools{margin:0 18px 12px;padding:0;border:none;background:#fff;color:var(--eg464-ink)}
.eg464-tools-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 9px}
.eg464-tools-top>strong{font-size:11px;text-transform:uppercase;letter-spacing:.11em;color:#617a91}
.eg464-tools-legend{display:flex;gap:7px;align-items:center;color:#6a7e90;font-size:10.5px}
.eg464-dot{display:inline-block;width:9px;height:9px;border-radius:3px}
.eg464-blue{background:#7bb5dc}.eg464-orange{background:#e4aa7f}
.eg464-tools-legend .eg462-toggle{border-left:1px solid #dbe6ee;margin-left:6px;padding-left:11px;font-size:11px}
.eg464-fold-row{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:9px}
.eg464-fold{border:1px solid #dce8f1;border-radius:10px;background:#fbfdff;min-width:0;overflow:hidden}
.eg464-fold[open]{background:#fff;box-shadow:0 4px 15px rgba(23,73,113,.055)}
.eg464-fold summary{list-style:none;display:flex;gap:10px;align-items:center;padding:12px 12px;cursor:pointer;min-height:56px;user-select:none}
.eg464-fold summary::-webkit-details-marker{display:none}
.eg464-fold summary:focus-visible{outline:3px solid #35a6ed;outline-offset:-4px}
.eg464-num{display:grid;place-items:center;flex:0 0 27px;height:27px;background:#e9f2fa;border:1px solid #d8e8f3;color:#2b709d;border-radius:8px;font-size:10px;font-weight:750}
.eg464-fold-label{min-width:0;display:flex;flex:1;flex-direction:column;gap:3px}
.eg464-fold-label strong{font-size:12px;color:#193c5b;line-height:1.2;font-weight:700}
.eg464-fold-label small{font-size:10px;color:#6a859a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eg464-chevron{font-size:17px;line-height:1;color:#7790a3;transition:transform .15s}
.eg464-fold[open] .eg464-chevron{transform:rotate(180deg)}
.eg464-fold-body{border-top:1px solid #e4edf4;padding:13px}
.eg464-micro{font-size:11.5px;color:#607a8f;line-height:1.5;margin:0 0 12px}
.eg464-fold-body .eg462-scale-row{align-items:end;gap:7px}
.eg464-fold-body .eg462-field{font-size:10.5px}
.eg464-fold-body .eg462-field input{height:37px;width:102px;font-size:13px}
.eg464-fold-body .eg462-action{min-height:37px;padding:8px 10px;font-size:11px}
.eg464-fold-body .eg462-status{font-size:11px;line-height:1.4;min-height:auto;margin:9px 0 0}
.eg464-impact{font-size:11px;line-height:1.5;color:#184968;background:#eef6fc;border-radius:8px;padding:9px 11px;margin:9px 0 0}
.eg464-impact[hidden]{display:none}
.eg464-undertext{font-size:10.5px;color:#7d91a3;line-height:1.4;margin:8px 0 0}
.eg464-fold-body .eg462-toolbar{gap:6px}
.eg464-fold-body .eg462-tool{min-height:35px;padding:7px 9px;border-radius:7px;font-size:10.7px}
.eg464-fold-body .eg462-help{font-size:10.5px;margin:9px 0 0;line-height:1.5}
.eg464-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;border:1px solid #e1eaf2;border-radius:10px;overflow:hidden;background:#e1eaf2;margin-top:10px}
.eg464-metrics>div{background:#f8fbfd;padding:9px 12px;min-width:0;display:flex;flex-direction:column;gap:4px}
.eg464-metrics span{font-size:10px;color:#72889a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eg464-metrics strong{font-size:17px;color:#164f78;font-weight:700;line-height:1.25}
.eg464-metrics>div:last-child strong{color:#ae642e}
.eg464-metric-caption{font-size:10px;color:#8294a5;line-height:1.4;margin:7px 0 0}
.eg464-page .eg391-stage-hint{font-size:10px;border-radius:8px;padding:7px 12px;width:max-content;max-width:calc(100% - 24px);margin:auto}
.eg464-page .eg391-stage-footer{padding:12px 18px}
.eg464-page .eg391-stage-footer p{font-size:10.5px;line-height:1.45}
.eg464-page .eg391-controls{padding:18px}
.eg464-page .eg391-controls-head h3{font-size:19px;margin:5px 0 13px}
.eg464-page .eg391-controls .eg391-add{min-height:43px}
.eg464-page .eg391-settings{margin-top:12px;padding:12px;border-radius:11px}
.eg464-page .eg391-settings-top{margin-bottom:9px}
.eg464-page .eg391-settings label{font-size:11.5px;margin:10px 0 6px}
.eg464-page .eg461-duplicate{margin-bottom:9px}
.eg464-page .eg461-lens-note{margin:5px 0 9px;font-size:10.5px}
.eg464-page .eg461-nudge{padding:10px;margin:10px 0}
.eg464-page .eg461-nudge strong{font-size:11px;margin-bottom:7px}
.eg464-page .eg391-field-note{font-size:10px;line-height:1.4;margin:7px 0 0}
.eg464-page .eg391-cameras{margin-top:13px}
.eg464-page .eg391-quote{margin-top:15px;padding-top:15px}
.eg464-page .eg391-quote-head strong{font-size:16px;margin-top:5px}
.eg464-page .eg391-quote>p{font-size:11px;margin:7px 0 12px;line-height:1.5}
.eg464-page .eg391-quote>a{font-size:11px;margin-top:11px}
.eg464-disclaimer{font-size:11px;line-height:1.55;color:#758a9b;margin-top:16px;border-top:1px solid #e0eaf2;padding-top:13px}
.eg464-disclaimer summary{cursor:pointer;color:#456d89;font-weight:600;list-style-position:inside}
.eg464-disclaimer p{max-width:950px;margin:9px 0}
@media(max-width:900px){.eg464-page .eg391-hero-grid{grid-template-columns:1fr auto}.eg464-page .eg391-hero h1{font-size:31px}}
@media(max-width:620px){
 .eg464-page .eg391-hero-grid{grid-template-columns:1fr;gap:13px;padding-top:23px;padding-bottom:22px}
 .eg464-page .eg391-hero h1{font-size:28px;letter-spacing:-.02em}
 .eg464-page .eg391-hero p{font-size:12px}
 .eg464-hero-link{padding:9px 13px;max-width:200px}
 .eg464-page .eg391-work{padding-top:21px;padding-bottom:26px}
 .eg464-stage-note{display:none}
 .eg464-page .eg391-section-heading h2{font-size:22px}
 .eg464-page .eg391-stage-top{padding:13px 12px 9px}
 .eg464-page .eg391-templates{padding:0 12px 10px;gap:5px}
 .eg464-page .eg391-templates button,.eg464-page .eg391-upload{font-size:10px;min-height:32px;padding:6px 9px}
 .eg464-tools{margin:0 11px 10px}
 .eg464-tools-top{gap:6px}.eg464-tools-top>strong{font-size:10px}
 .eg464-tools-legend{font-size:9px;gap:5px}.eg464-tools-legend .eg462-toggle{padding-left:6px;margin-left:2px;font-size:10px}
 .eg464-fold-row{grid-template-columns:1fr;gap:7px}
 .eg464-fold summary{min-height:50px;padding:9px 10px}
 .eg464-fold-body{padding:11px}
 .eg464-fold-body .eg462-scale-row{align-items:flex-end}
 .eg464-fold-body .eg462-field{flex:0 0 100px}
 .eg464-fold-body .eg462-field input{width:100%}
 .eg464-fold-body .eg462-action{flex:1 1 auto;padding:7px 8px;white-space:normal}
 .eg464-metrics>div{padding:8px 7px}
 .eg464-metrics span{font-size:9px}.eg464-metrics strong{font-size:14px}
 .eg464-page .eg391-stage-hint{width:auto;max-width:calc(100% - 12px);font-size:8px;padding:5px 7px}
 .eg464-page .eg391-stage-footer{padding:10px 11px}
 .eg464-page .eg391-controls{padding:15px}
}

/* v4.65 – distinguish modeled detail levels from IR range. */
.eg465-page .eg465-mode{display:flex;gap:5px;padding:4px;background:#eaf1f7;border:1px solid #d8e6f0;border-radius:9px;margin:11px 0 12px}
.eg465-page .eg465-mode button{flex:1;min-width:0;padding:9px 10px;background:transparent;border:1px solid transparent;border-radius:7px;color:#40647e;font-size:11.5px;font-weight:680;cursor:pointer}
.eg465-page .eg465-mode button.is-active{background:#fff;border-color:#d1dfeb;color:#075b90;box-shadow:0 2px 6px rgba(24,70,105,.08)}
.eg465-page .eg465-mode button:focus-visible{outline:2px solid #168ac9;outline-offset:1px}
.eg465-select-row{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
.eg465-select-row>div{min-width:0}.eg465-page .eg465-select-row label{font-size:10.5px;margin:5px 0 5px}
.eg465-page .eg465-select-row select{width:100%;min-width:0;font-size:12px;padding:9px 7px;border-radius:8px;border:1px solid #cbdde9;background:#fff;color:#204961}
.eg465-outcome{margin-top:13px;padding:12px 11px;background:#eef7fd;border:1px solid #d9eaf5;color:#195780;font-size:11.5px;line-height:1.65;border-radius:9px}
.eg465-legend{display:flex;flex-wrap:wrap;gap:8px 15px;padding:9px 1px 0;font-size:10.5px;color:#587187}
.eg465-legend span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.eg465-legend-dot{display:inline-block;width:10px;height:10px;border-radius:3px}
.eg465-tier-identify{background:#226393}.eg465-tier-recognize{background:#478eb9}.eg465-tier-observe{background:#6bb4d4}.eg465-tier-detect{background:#c5e7e9}
@media(max-width:420px){.eg465-page .eg465-select-row{grid-template-columns:1fr 1fr;gap:6px}.eg465-page .eg465-select-row select{font-size:11px}.eg465-legend{gap:7px 10px;font-size:9.7px}}
