/* editor di disegno sulle foto (Sopralluoghi e Foto cantieri) */
.ed{position:fixed;inset:0;z-index:200;background:#1c1c1c;display:flex;flex-direction:column;color:#fff}
.ed-top{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;background:#000}
.ed-top button{min-height:44px;padding:8px 14px;border-radius:12px;border:1px solid #555;background:transparent;color:#fff;font-weight:700;cursor:pointer}
.ed-top button.gold{background:var(--gold);color:#111;border-color:var(--gold)}
.ed-bar{padding:6px 10px;background:#2a2a2a;display:flex;flex-direction:column;gap:6px}
.ed .er{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:0;border:0}
.ed-bar button,.ed-dlg button.sz{min-height:40px;padding:4px 10px;border-radius:10px;border:2px solid #555;background:#3a3a3a;color:#fff;font-weight:700;cursor:pointer;font-size:.88rem}
.ed-bar button.on,.ed-dlg button.sz.on{background:var(--gold);color:#111;border-color:var(--gold)}
.ed-bar button:disabled{opacity:.35}
.ed .dot{width:38px;height:38px;min-height:38px;padding:0;border-radius:50%;border:3px solid #fff}
.ed .dot.on{outline:3px solid var(--gold);outline-offset:2px}
.ed .sep{width:10px}
.ed .eh{min-height:2.5em;font-size:.8rem;color:#cfcfcf;background:none;padding:0;border:0}
.ed .tools{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}
.ed-bar button.tl{display:flex;flex-direction:column;align-items:center;gap:0;min-height:50px;padding:4px 2px;line-height:1.1}
.ed-bar button.tl span{font-size:1.15rem}.ed-bar button.tl small{font-size:.66rem;font-weight:700}
.ed-bar{padding:6px 8px;gap:5px}
.ed-stage{flex:1;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:8px;background:#444}
.ed-stage canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto;background:#fff;touch-action:none;box-shadow:0 2px 12px #000}
.ed-cap{padding:8px 10px;background:#2a2a2a}.ed-cap input{width:100%}
.ed-dlg{position:absolute;inset:0;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;padding:16px;z-index:5}
.ed-dlg .box{background:#fff;color:#111;border-radius:16px;padding:16px;width:100%;max-width:460px;display:flex;flex-direction:column;gap:10px}
.ed-dlg .box h3{margin:0}.ed-dlg .box .btn{flex:1}
.ed-dlg .box .sz{background:#eee;color:#111;border-color:#ccc}
