/* V8.7 offline image tracing and stronger SVG editing – scoped to the AI dialog */
.hvl-local-panel{border:1px solid #a5c6ef;background:linear-gradient(180deg,#f2f7ff,#fff);padding:12px;border-radius:12px;margin:10px 0;font-family:inherit}
.hvl-local-title{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;margin-bottom:10px;color:#16467f;font-size:12.5px}
.hvl-local-title span{color:#65758b;font-size:11px}
.hvl-local-actions,.hvl-local-mode{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.hvl-local-actions button,.hvl-local-mode button,.hvl-edit-row button{border:1px solid #bcd0e6;border-radius:8px;padding:7px 9px;min-height:34px;font-size:11.5px;cursor:pointer;background:white;color:#164478;font-weight:750}
.hvl-local-actions button:first-child{background:#145cbd;color:#fff;border-color:#145cbd}
.hvl-local-mode button.active{background:#174e99;color:#fff;border-color:#174e99}
.hvl-local-controls{display:grid;grid-template-columns:minmax(0,1fr) 38px;align-items:center;gap:5px 8px;font-size:11.5px;font-weight:650;color:#526782}
.hvl-local-controls label{display:flex;align-items:center;gap:8px}.hvl-local-controls input{min-width:55px;max-width:140px;flex:1}.hvl-local-controls output{font-variant-numeric:tabular-nums}
.hvl-local-photo{position:relative;max-width:100%;max-height:none!important;margin:0 auto 4px;background:white;border:1px solid #b6c8df;border-radius:6px;overflow:hidden}
.hvl-redraw-origin .hvl-local-photo img{display:block;width:100%;height:100%;max-height:none!important;max-width:none;object-fit:fill;margin:0}
.hvl-local-photo svg{position:absolute;inset:0;width:100%;height:100%;max-height:none!important;border:0!important;touch-action:none;cursor:crosshair;pointer-events:auto}
.hvl-local-photo svg polyline,.hvl-local-photo svg circle,.hvl-local-photo svg text{pointer-events:none}
.hvl-local-photo:has(svg) {width:100%}
.hvl-vector-node{cursor:crosshair!important;pointer-events:all!important;filter:drop-shadow(0 0 2px #fcaf5a)}
.hvl-local-comparison{display:flex;gap:10px;align-items:center;padding:5px 8px;background:#eef5fe;border:1px solid #dae6f6;border-radius:8px;margin:6px 0;font-size:11.5px;font-weight:700;color:#345b80}
.hvl-local-comparison label{display:flex;flex:1;align-items:center;gap:7px}.hvl-local-comparison input{width:100%;min-width:40px;flex:1}
.hvl-local-layers{border:1px solid #d9e3ef;border-radius:9px;padding:7px;background:#fff;margin:7px 0}
.hvl-local-layers-head{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#164478;margin-bottom:6px}.hvl-local-layers-head span{color:#718096;font-weight:400}
.hvl-local-layer-list{max-height:126px;overflow:auto;display:grid;gap:3px}
.hvl-local-layer{display:flex;gap:4px;border-radius:6px;padding:3px;background:#f7faff}
.hvl-local-layer.active{background:#e1efff;border:1px solid #8eb6e6}
.hvl-local-layer button{border:0;background:transparent;color:#24517a;cursor:pointer;font-size:11px;text-align:left;min-height:25px}
.hvl-local-layer button:first-child{flex:1;min-width:0}.hvl-local-layer .hvl-local-eye{flex:0 0 43px;text-align:center;background:#eaf2fe;border-radius:5px;font-weight:700}
@media(max-width:600px){.hvl-local-panel{padding:9px}.hvl-local-mode button{flex:1 1 135px}.hvl-local-title{font-size:11.5px}.hvl-local-actions button{flex:1 1 auto}}
html[data-theme=dark] .hvl-local-panel{background:#15273e;border-color:#3a5b83}html[data-theme=dark] .hvl-local-title,html[data-theme=dark] .hvl-local-layers-head{color:#c7dfff}
html[data-theme=dark] .hvl-local-layers,html[data-theme=dark] .hvl-local-comparison,html[data-theme=dark] .hvl-local-layer{background:#1a2e48;border-color:#3c5675;color:#dceafd}
html[data-theme=dark] .hvl-local-layer.active{background:#244a73}
