.weld-bench {
  display:grid; grid-template-rows:auto minmax(0,1fr); min-width:0; min-height:0;
  overflow:hidden; isolation:isolate; color:#e8eee6; background:#242f36;
  border:2px solid #25343a; border-radius:9px;
  box-shadow:0 3px 0 #19232b,0 3px 14px #19253288;
}
.oe-frame>.weld-bench {position:absolute;z-index:2;inset:7px max(10px,2.7%) 9px 35%;}
.oe-frame:has(>.weld-bench)>.oe-progress {top:41px;left:max(16px,2.5vw);right:auto;}
.weld-bench.weld-standalone {width:100%;height:100%;grid-template-rows:auto minmax(0,1fr) auto;}
.weld-meter {
  display:grid;grid-template-columns:auto auto 1fr auto;align-items:baseline;column-gap:7px;
  padding:6px 10px 7px;background:#29363c;color:#e9f2e7;font:600 12px/1.1 system-ui,sans-serif;
}
.weld-caption{grid-column:1;grid-row:1;}
.weld-meter strong {grid-column:2;grid-row:1;color:#94efdc;font-size:15px;font-variant-numeric:tabular-nums;}
.weld-goal{grid-column:4;grid-row:1;color:#e6cca6;font-size:11px;}
.weld-bar{position:relative;grid-column:1/-1;display:block;height:3px;border-radius:2px;background:#48545c;margin-top:5px;}
.weld-bar::after{content:'';position:absolute;top:-2px;height:7px;width:1px;left:var(--weld-threshold);background:#f9d897;}
.weld-bar i{display:block;height:100%;border-radius:2px;background:#79dfcf;}
.weld-bench[data-weld-state=failed] .weld-meter strong{color:#ffac9b;}
.weld-bench canvas[data-weld-surface]{position:static;display:block;width:100%;height:100%;min-width:0;min-height:0;touch-action:none;user-select:none;cursor:crosshair;outline:none;}
.weld-bench canvas:focus-visible{outline:2px solid #c4ffeb;outline-offset:-3px;}
.weld-assist{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.weld-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;}
.weld-tools button{font-family:inherit;font-size:13px;font-weight:700;line-height:1.1;cursor:pointer;min-height:44px;padding:6px 12px;border:1px solid #91b9b2;border-radius:7px;background:#263d43;color:#ecf6ea;}
.weld-tools button[data-weld-action=submit]{background:#86e8d3;color:#163331;border-color:#86e8d3;}
.weld-tools button[hidden]{display:none;}
.weld-tools button:focus-visible{outline:2px solid #ffe3ae;outline-offset:2px;}
.weld-standalone .weld-tools{padding:6px;}
@media(max-height:370px){
  .oe-frame>.weld-bench{inset:4px 1.5% 6px 33%;}
  .weld-meter{padding:3px 8px 4px;font-size:11px;}
  .weld-meter strong{font-size:13px;}
  .weld-bar{margin-top:3px;}
  .weld-tools button{padding:5px 9px;}
}
.weld-instruction{padding:5px 9px;font:12px/1.2 system-ui,sans-serif;}
.weld-standalone:has(.weld-instruction){grid-template-rows:auto minmax(0,1fr) auto auto;}
