/* EVOLVE v1.5 cutter compensation preflight */
.ev-comp{display:none}.ev-comp.ev-active{display:block}
.ev-comp-grid{display:grid;grid-template-columns:minmax(285px,335px) minmax(320px,1fr) minmax(310px,.9fr);gap:9px;align-items:start;min-width:0}
.ev-comp .ev-panel{min-width:0}.ev-comp .ev-panel>textarea{height:clamp(240px,37vh,410px);margin:7px 0 12px}
.ev-comp #evCompOutput{height:clamp(360px,60vh,670px)}
.ev-comp #evCompCanvas{height:clamp(370px,62vh,680px);touch-action:none}
.ev-comp .ev-panel>label{font-size:10px;margin:0 0 9px}.ev-comp .ev-panel form>button{width:100%;min-height:36px;margin:8px 0}
.ev-comp #evCompMetrics{overflow-wrap:anywhere;border-top:1px solid #29424c;padding-top:10px}
.ev-comp .ev-panel button:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:1250px){.ev-comp-grid{grid-template-columns:minmax(275px,325px) minmax(0,1fr)}.ev-comp-grid>.ev-panel:last-child{grid-column:1/-1}.ev-comp #evCompOutput{height:300px}}
@media(max-width:900px){.ev-comp-grid{grid-template-columns:minmax(0,1fr)}.ev-comp-grid>.ev-panel:last-child{grid-column:auto}.ev-comp #evCompCanvas{height:350px}.ev-comp #evCompOutput{height:260px}}
@media(max-width:450px){.ev-comp-grid{gap:7px}.ev-comp #evCompCanvas{height:300px}}

/* v4.14 radial cutter wear process window, native compensation workspace */
.ev-wear-panel{margin-top:10px}
.ev-comp .ev-wear-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.ev-comp .ev-wear-fields label{display:flex;flex-direction:column;gap:4px;font:700 10px var(--mono);color:#a4c9ce}
.ev-comp .ev-wear-fields input,.ev-comp .ev-wear-fields select{min-width:0;width:100%;padding:7px;background:#0b1c23;border:1px solid #3a5962;border-radius:3px;color:#d9eff1}
.ev-comp #evWearRun{margin-top:12px;padding:9px 14px}
.ev-wear-results{display:grid;grid-template-columns:minmax(280px,1fr) minmax(300px,1fr);gap:12px;align-items:start;margin:10px 0}
.ev-comp #evWearCanvas{width:100%;height:260px;border:1px solid #31525a;display:block}
.ev-wear-table-wrap{overflow:auto;max-height:275px}
.ev-comp #evWearTable{width:100%;border-collapse:collapse;font:10px/1.6 var(--mono);white-space:nowrap}
.ev-comp #evWearTable th,.ev-comp #evWearTable td{border-bottom:1px solid #2b4850;padding:6px;text-align:right}
.ev-comp #evWearTable th:last-child,.ev-comp #evWearTable td:last-child{text-align:left}
.ev-comp #evWearTable tr[data-state="OVERCUT"]{color:#ff9eaa}
.ev-comp #evWearTable tr[data-state="EXCESS STOCK"]{color:#eac78a}
.ev-comp #evWearTable tr[data-state="WITHIN WINDOW"]{color:#a5e5ce}
.ev-comp .ev-wear-ack{display:flex;gap:8px;align-items:center;color:#e2cda5;margin:8px 0}
.ev-comp .ev-wear-ack input{width:18px;height:18px}
@media(max-width:1000px){.ev-comp .ev-wear-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.ev-wear-results{grid-template-columns:1fr}}
@media(max-width:480px){.ev-comp .ev-wear-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.ev-comp #evWearCanvas{height:220px}.ev-wear-table-wrap{max-width:100%}}
