/* Vision 2D carrosserie (v1.72) — section Analyse carrosserie, annotateur, validation. Préfixe vd- (module isolé). */
.vd-section { gap: 10px; }
.vd-head h2 { display: flex; gap: 8px; align-items: center; }
.vd-tag { font: 700 10px var(--cond); letter-spacing: .12em; color: var(--red); border: 1px solid var(--red); border-radius: 4px; padding: 1px 6px; }
.vd-note { font-size: 12.5px; background: #fff7e6; border-left: 3px solid var(--orange); border-radius: 6px; padding: 8px 10px; }
.vd-small { font-size: 12px; }
.vd-err { font-size: 11.5px; color: #b3261e; }
.vd-empty { text-align: center; padding: 18px 10px; background: #f4f6f9; border-radius: 10px; } .vd-empty b { font-size: 15px; } .vd-empty p { margin: 6px auto 0; max-width: 640px; font-size: 12.5px; }
.vd-run { background: linear-gradient(160deg, #0f1b33, #16264a); color: #fff; border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; font: 700 12px var(--cond); letter-spacing: .08em; }
.vd-run .vd-small { color: #aab6cc; font: 500 12px var(--font); letter-spacing: 0; }
.vd-bar { background: rgba(255,255,255,.12); height: 10px; border-radius: 5px; overflow: hidden; } .vd-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e11d24, #ff6b70); transition: width .5s; }
.vd-done { border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; } .vd-done.failed { border-left-color: var(--red); }
.vd-done > div > b { font: 800 13px var(--cond); letter-spacing: .1em; }
.vd-chips { display: flex; flex-wrap: wrap; gap: 6px; } .vd-chips span { font-size: 12px; background: #f4f6f9; border-radius: 20px; padding: 3px 10px; } .vd-chips span.warn { background: #fff1d6; color: #8a5200; } .vd-chips span.type { background: #eef3fb; } .vd-chips span.sev { background: #fff; border: 1px solid var(--line); }
.vd-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; }
.vd-thumb { position: relative; flex: 0 0 120px; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; background: #f4f6f9; aspect-ratio: 4 / 3; }
.vd-thumb.on { border-color: var(--red); box-shadow: 0 0 0 2px rgba(225,29,36,.2); } .vd-thumb.bad { opacity: .6; }
.vd-thumb .vd-ann img { opacity: .9; }
.vd-thumb-label { position: absolute; left: 6px; bottom: 4px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.vd-thumb-n { position: absolute; top: 4px; right: 5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; } .vd-thumb-n.ok { background: var(--green); }
.vd-thumb-st { position: absolute; top: 4px; right: 6px; font-size: 13px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.vd-work { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 12px; }
.vd-view { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #eef1f5; }
.vd-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; background: #14223b; color: #fff; font-size: 12.5px; } .vd-toolbar .muted { color: #aab6cc; }
.vd-toolbar .btn-out { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.vd-canvas { background: #0b1323; display: grid; place-items: center; min-height: 240px; }
/* annotateur : image + SVG étiré (coordonnées 0..1000) + pastilles HTML */
.vd-ann { position: relative; display: inline-block; max-width: 100%; line-height: 0; user-select: none; }
.vd-ann img { max-width: 100%; max-height: 560px; display: block; }
.vd-ann svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; } .vd-ann svg.drawing { cursor: crosshair; }
.vd-shape { fill-opacity: .14; stroke-width: 2.5px; cursor: pointer; transition: fill-opacity .15s; } .vd-shape:hover, .vd-shape.sel { fill-opacity: .32; stroke-width: 3.5px; }
.vd-shape.review { stroke-dasharray: 8 5; } .vd-shape.manual { stroke-dasharray: 2 4; } .vd-shape.ignored { fill-opacity: .03; stroke-opacity: .35; } .vd-shape.dim { fill-opacity: .06; stroke-opacity: .5; }
.vd-draft { fill: rgba(225,29,36,.15); stroke: #ff5a60; stroke-width: 2px; stroke-dasharray: 6 4; } .vd-vertex { fill: #fff; stroke: #e11d24; stroke-width: 2px; }
.vd-pin { position: absolute; transform: translate(-40%, -60%); min-width: 20px; height: 20px; border-radius: 10px; color: #fff; font: 800 11px var(--font); line-height: 20px; text-align: center; padding: 0 5px; box-shadow: 0 1px 4px rgba(0,0,0,.5); cursor: pointer; pointer-events: auto; }
.vd-pin.sel { outline: 2px solid #fff; } .vd-pin.review::after { content: ' ?'; }
.vd-hint { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); background: rgba(20,34,59,.92); color: #fff; font: 600 12px var(--font); line-height: 1.3; padding: 6px 12px; border-radius: 20px; white-space: nowrap; pointer-events: none; }
.vd-static img { max-height: none; width: 100%; height: 100%; object-fit: cover; } .vd-static { display: block; width: 100%; height: 100%; }
.vd-static .vd-shape { stroke-width: 2px; cursor: default; }
.vd-list { display: grid; gap: 6px; align-content: start; max-height: 600px; overflow-y: auto; padding-right: 2px; }
.vd-det { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; cursor: pointer; background: #fff; } .vd-det.sel { border-color: var(--red); box-shadow: 0 0 0 2px rgba(225,29,36,.15); }
.vd-det.ignored { opacity: .55; } .vd-det.review { background: #fff8ec; }
.vd-det-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.vd-n { min-width: 20px; height: 20px; border-radius: 10px; color: #fff; font: 800 11px var(--font); line-height: 20px; text-align: center; padding: 0 5px; }
.vd-det-meta { font-size: 12px; line-height: 1.4; }
.vd-det-acts { display: flex; gap: 4px; flex-wrap: wrap; } .vd-det-acts .btn { padding: 3px 8px; font-size: 12px; }
.btn-ok { background: var(--green); color: #fff; border-color: var(--green); }
.badge.b-orange { background: #ff8a1f; color: #fff; } .badge.b-navy { background: #14223b; color: #fff; }
.vd-hist summary { cursor: pointer; font-weight: 700; font-size: 13px; padding: 4px 0; }
.vd-tab td, .vd-tab th { padding: 7px 8px; font-size: 12.5px; vertical-align: middle; } .vd-tab tr.vd-sel td { background: #f3f6fc; }
.vd-acts { white-space: nowrap; } .vd-acts .btn { margin: 0 2px 2px 0; }
.vd-kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 12px; font-size: 13px; } .vd-kv b { color: var(--text-3); }
.vd-cfg code { font-size: 12px; } .vd-cfg .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.vd-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.vd-pick { position: relative; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: #f4f6f9; display: block; }
.vd-pick input { position: absolute; top: 5px; left: 5px; z-index: 1; width: 16px; height: 16px; }
.vd-pick img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .55; } .vd-pick.on { border-color: var(--red); } .vd-pick.on img { opacity: 1; }
.vd-pick span { position: absolute; left: 6px; bottom: 4px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
@media (max-width: 900px) { .vd-work { grid-template-columns: 1fr; } .vd-list { max-height: none; } .vd-kv, .vd-cfg .grid-2 { grid-template-columns: 1fr; } .vd-thumb { flex-basis: 96px; } }
