.bend-guide{background:#edf2f6;color:#172c3e;padding:56px 20px;scroll-margin-top:100px}.bend-inner{max-width:1180px;margin:auto}.bend-guide *{box-sizing:border-box}.bend-guide h1,.bend-guide h2{font-size:clamp(1.8rem,4vw,2.7rem);margin:8px 0 16px}.bend-guide p{font-size:16px;line-height:1.6}.bend-kicker{font-weight:700;letter-spacing:.12em;color:#235c83}.bend-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;margin:24px 0}.bend-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.bend-fields label{display:flex;flex-direction:column;gap:8px;font-weight:700;font-size:15px}.bend-fields input,.bend-fields select{width:100%;min-height:48px;padding:10px;border:1px solid #8295a6;background:white;color:#172c3e;border-radius:5px;font:inherit}.bend-fields button,.bend-contact{padding:14px;background:#1d5276;color:white;border:0;border-radius:5px;font:inherit;font-weight:bold;cursor:pointer}.bend-result{background:#122b40;color:white;border-radius:8px;padding:26px}.bend-result strong{display:block;font-size:2.6rem;color:white}.bend-result p{color:white}.bend-result .bend-warning{padding:12px;border-left:4px solid #ffc46b;background:#30495c}.bend-note{border-left:4px solid #d9513d;padding-left:16px}.bend-guide details{border-top:1px solid #aabbc8;padding:20px 0}.bend-guide summary{font-size:1.1rem;font-weight:bold;cursor:pointer}.bend-scroll{overflow:auto;max-width:100%;margin:18px 0}.bend-guide table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:14px;color:#172c3e}.bend-guide th,.bend-guide td{border:1px solid #bfccd5;padding:10px;text-align:center}.bend-guide th{background:#dce7ef}.bend-guide td{background:white}.bend-guide td button{border:0;background:transparent;font:inherit;color:#1d5276;cursor:pointer;min-width:42px;padding:6px}.bend-guide td.selected{background:#c8e6fa}.bend-guide a{color:#1d5276}.bend-guide .bend-contact{display:inline-block;color:white;margin-top:16px}.bend-guide caption{text-align:left;padding:10px;font-weight:bold}@media(max-width:700px){.bend-layout{grid-template-columns:1fr}.bend-fields{grid-template-columns:1fr 1fr}.bend-fields label:first-child{grid-column:1/-1}}@media(max-width:390px){.bend-fields{grid-template-columns:1fr}}.simulator{background:#142535;padding:58px 24px;color:#eaf0f5}.simulator-inner{max-width:1120px;margin:auto}.simulator h2{font-size:clamp(2rem,3vw,2.8rem);margin:9px 0}.simulator p{color:#c2d0da;line-height:1.55}.simulator-grid{display:grid;grid-template-columns:320px 1fr;gap:25px;margin-top:24px}.sim-controls{display:grid;gap:12px;align-content:start}.sim-controls label{display:grid;gap:6px;font-weight:700}.sim-controls input,.sim-controls select{min-height:44px;border:1px solid #536c80;background:#0e1923;color:white;padding:9px 10px;font:inherit}.sim-visual{padding:16px;background:#0d1721;border:1px solid #3a5163}.sim-visual svg{width:100%;height:auto}.sim-ram{animation:simram 3.2s ease-in-out infinite}.sim-visual.bending .sim-ram{animation:simram 1.1s ease-in-out 1}.sim-status{font-weight:800;color:#ffca68;margin-top:12px}.sim-caveat{font-size:.9rem!important;border-top:1px solid #374d60;padding-top:12px}@keyframes simram{0%,100%{transform:translateY(-12px)}48%,65%{transform:translateY(36px)}}@media(max-width:800px){.simulator-grid{grid-template-columns:1fr}.sim-controls{grid-template-columns:1fr 1fr}}@media(prefers-reduced-motion:reduce){.sim-ram{animation:none!important}}
.selected-tool-drawings{align-items:stretch}.tool-drawing{min-width:0}.tool-drawing img{width:138px;height:112px;flex:0 0 138px}.sequence-order button{min-height:44px}.bend-step-view svg{display:block;margin-top:12px;min-height:220px}@media(max-width:700px){.selected-tool-drawings{grid-template-columns:1fr}.tool-drawing img{width:120px;height:100px;flex-basis:120px}}

.tool-geometry-note{font-size:.9rem!important;color:#adbec9!important;margin:8px 0 0}

.tool-drawing img{width:120px;height:132px;flex:0 0 120px;object-fit:contain;background:#fff}.sequence-order button{max-width:100%;white-space:normal;text-align:left}@media(max-width:700px){.tool-drawing img{width:108px;height:124px;flex-basis:108px}}

.chart-thickness-label{display:grid;gap:8px;max-width:320px;margin:20px 0;font-weight:bold}.chart-thickness-label select{font:inherit;padding:12px;background:white;color:#172c3e;border:1px solid #8295a6;border-radius:5px}.compact-tonnage table{table-layout:fixed;white-space:normal;min-width:0;width:100%}.compact-tonnage th,.compact-tonnage td{white-space:normal;padding:10px 4px}.bend-scroll table{white-space:normal;table-layout:fixed;min-width:0}.bend-scroll th,.bend-scroll td{padding:8px 4px;overflow-wrap:anywhere}
/* Controller-inspired bend sequence display */
.bend-step-view{border-top:1px solid #34495a;padding:18px 0}
.bend-step-view>p{max-width:900px}
.bend-step-view svg#step-profile{display:block;width:100%;min-height:260px;margin-top:12px;background:#d9dbd4;border:1px solid #adb3ae;border-radius:3px}
#step-profile-target{stroke:#fff!important;stroke-width:2.5!important;stroke-dasharray:8 7;opacity:.95}
#step-profile-line{stroke:#d66b4b!important;stroke-width:4!important}
#step-profile-marker{fill:#f4b447!important;stroke:#fff!important}
#step-profile text{font-family:Arial,Helvetica,sans-serif}
#step-profile-labels text{font-size:12px}
.collision-status{padding:12px 14px;margin:12px 0;border-left:5px solid #d8a13a;background:#fff2ce;color:#59420f;font-weight:800;line-height:1.45}
.collision-status.collision-alert{border-color:#c9342e;background:#fee7e5;color:#781e1a}
.collision-status.collision-unknown{border-color:#d8a13a;background:#fff2ce;color:#59420f}
@media(max-width:600px){.bend-step-view svg#step-profile{min-height:200px}}
/* Keep the sequence view focused on the actual workpiece and stop decorative
   animation from overriding the ram's calculated stroke. */
.sim-ram{animation:none!important}
.bend-step-view svg#step-profile{background:#0d1721;border-color:#3a5163}
#step-profile-labels text,#step-profile text{fill:#dce6ed}
#step-profile-target{display:none}
.sequence-order{display:grid;gap:7px;margin:12px 0}
.sequence-step{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;align-items:stretch}
.sequence-step-select[aria-current="step"]{outline:2px solid #ffc94f;background:#24435a}
.sequence-step button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:520px){.sequence-step{grid-template-columns:minmax(0,1fr) auto}.sequence-step-select{grid-column:1/-1}}
.sequence-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.sequence-controls button{min-height:44px;padding:8px 14px;border:1px solid #526a7e;background:#20384b;color:#f4f7f9;font:inherit;font-weight:700;cursor:pointer}.sequence-controls button.button{background:#e84e3b;border-color:#e84e3b;color:#fff}.sequence-controls button:disabled{opacity:.45;cursor:not-allowed}
