/* Measure on drawings — full-screen tool */
.sfm { position: fixed; inset: 0; z-index: 2000; background: #E9ECF1; display: flex; flex-direction: column; font: 14px/1.4 Inter, system-ui, sans-serif; color: #1B2638; }
.sfm-top { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fff; border-bottom: 1px solid #E6E8EC; flex-wrap: wrap; }
.sfm-sel { flex: 1; min-width: 180px; max-width: 420px; border: 1px solid #D5DAE2; border-radius: 8px; padding: 7px 9px; font: inherit; background: #fff; }
.sfm-zoom, .sfm-tools { display: flex; gap: 4px; }
.sfm-zoom button, .sfm-tools button { border: 1px solid #D5DAE2; background: #fff; border-radius: 8px; padding: 6px 9px; cursor: pointer; display: flex; align-items: center; gap: 5px; font: 600 13px Inter, sans-serif; color: #1B2638; }
.sfm-tools button.on { background: #0A1F44; border-color: #0A1F44; color: #fff; }
.sfm-tools .ms, .sfm-zoom .ms { font-size: 19px; }
.sfm-main { flex: 1; display: flex; min-height: 0; }
.sfm-view { flex: 1; overflow: auto; position: relative; }
.sfm-stage { position: relative; margin: 12px; background: #fff; box-shadow: 0 2px 12px rgba(10,31,68,.15); }
.sfm-stage canvas { display: block; }
.sfm-stage svg { position: absolute; left: 0; top: 0; cursor: crosshair; }
.sfm-side { width: 320px; flex: none; overflow-y: auto; background: #fff; border-left: 1px solid #E6E8EC; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.sfm-box { border: 1px solid #E6E8EC; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.sfm-box > b { font-size: 14px; }
.sfm-box .ok { color: #2E7D5B; display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13px; }
.sfm-box .warn { color: #B4441B; display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13px; }
.sfm-box .ms { font-size: 17px; }
.sfm-box p { margin: 0; }
.sfm-f { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: #5B6B87; text-transform: none !important; }
.sfm-f input, .sfm-mult input { border: 1px solid #D5DAE2; border-radius: 8px; padding: 6px 8px; font: inherit; color: #1B2638; }
.sfm-mult { display: flex; gap: 8px; } .sfm-mult label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: #5B6B87; flex: 1; text-transform: none !important; } .sfm-mult input { width: 100%; box-sizing: border-box; }
.sfm-live { font: 800 18px 'Plus Jakarta Sans', Inter, sans-serif; color: #0A1F44; }
.sfm-shape { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #F0F1F4; font-size: 13px; }
.sfm-shape:first-of-type { border-top: 0; }
.sfm-shape .grow { flex: 1; min-width: 0; }
.sfm-shape button { border: 0; background: none; cursor: pointer; color: #8A94A6; }
.sfm-shape .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dot.length { background: #F26B21; } .dot.area { background: #1A4796; } .dot.count { background: #2E7D5B; }
.sfm-use { border-color: #F26B21; background: #FFF8F3; }
.sfm-total { font: 800 24px 'Plus Jakarta Sans', Inter, sans-serif; color: #0A1F44; }
.sfdw-mbtn { margin-top: 6px; }
@media (max-width: 760px) {
  .sfm-main { flex-direction: column; } .sfm-side { width: auto; max-height: 42vh; border-left: 0; border-top: 1px solid #E6E8EC; }
  .sfm-tools button span { display: none; }
}
