:root{--bg:#0b1118;--panel:#111a24;--panel2:#151f2b;--line:#263548;--text:#e9f0f7;--muted:#8495a8;--accent:#69d5ff;--accent2:#b6f06c;--danger:#ff8b8b;--shadow:0 18px 50px rgba(0,0,0,.22)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(180deg,#091019,#0d141d 34%,#0a1118);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums}.topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;gap:24px;align-items:center;padding:20px 28px;border-bottom:1px solid var(--line);background:rgba(10,17,24,.92);backdrop-filter:blur(16px)}h1,h2,p{margin:0}.topbar h1{font-size:24px;letter-spacing:-.02em}.topbar p,.card-head p,.section-head p{color:var(--muted);margin-top:5px;font-size:13px}.eyebrow{color:var(--accent);font-size:10px;font-weight:800;letter-spacing:.18em;margin-bottom:5px}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.button,select,input{border:1px solid var(--line);background:#0f1822;color:var(--text);border-radius:9px}.button{padding:9px 12px;font-weight:700;cursor:pointer}.button:hover{border-color:#4a6077}.button.primary{background:var(--accent);color:#061018;border-color:transparent}.button.accent{background:var(--accent2);color:#0a1404;border-color:transparent}.button.ghost{background:transparent}.fullwidth{width:100%;margin-top:10px}.layout{display:grid;grid-template-columns:330px minmax(0,1fr);max-width:1700px;margin:auto}.sidebar{border-right:1px solid var(--line);padding:18px}.sticky{position:sticky;top:104px;max-height:calc(100vh - 124px);overflow:auto}.panel,.chart-card,.metric,.note{background:linear-gradient(180deg,rgba(21,31,43,.96),rgba(15,24,34,.96));border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.panel{padding:14px}.panel-title{display:flex;align-items:center;justify-content:space-between;font-weight:800;margin-bottom:12px}.status-dot{width:8px;height:8px;border-radius:50%;background:var(--accent2);box-shadow:0 0 14px var(--accent2)}details{border-top:1px solid var(--line);padding-top:10px;margin-top:10px}summary{cursor:pointer;font-weight:750;color:#cfdae6}.input-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.input-grid.compact{grid-template-columns:1fr 1fr}.field{display:flex;flex-direction:column;gap:5px}.field.full{margin-bottom:6px}.field span{font-size:11px;color:var(--muted)}input,select{width:100%;padding:8px 9px;outline:none}input:focus,select:focus{border-color:var(--accent)}.hint{font-size:11px;line-height:1.5;color:var(--muted);margin-top:8px}.workspace{min-width:0;padding:22px}.hero-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.metric{padding:16px}.metric span{font-size:11px;color:var(--muted)}.metric strong{display:block;font-size:22px;margin-top:7px;letter-spacing:-.02em}.metric small{display:block;color:#66788b;margin-top:4px}.charts-grid,.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.chart-card{min-width:0;padding:14px}.chart-card.wide{grid-column:1/-1}.card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:5px}.card-head h2,.section-head h2{font-size:16px}.chart{height:340px}.chart.tall{height:470px}.section-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin:34px 0 14px}.table-panel{grid-row:span 2}.table-wrap{max-height:590px;overflow:auto;border:1px solid var(--line);border-radius:10px}table{width:100%;border-collapse:collapse;font-size:12px}th,td{padding:6px 7px;border-bottom:1px solid #213043;text-align:right}th{position:sticky;top:0;background:#111b26;color:var(--muted);z-index:1}td:first-child,th:first-child{text-align:center;color:var(--muted)}td input{padding:5px 6px;min-width:74px}.mini{border:0;background:transparent;color:var(--accent);cursor:pointer;font-size:11px}.note{margin-top:14px;padding:14px 16px;color:#a9b6c5;font-size:12px;line-height:1.55}.progress-wrap{height:5px;background:#0b131c;border-radius:999px;overflow:hidden;margin-top:10px}.progress{height:100%;width:0;background:var(--accent2);transition:width .2s}.toast{position:fixed;right:20px;bottom:20px;z-index:50;padding:11px 14px;background:#172333;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}.mechanism-card{padding:16px;margin-bottom:14px;overflow:hidden;background:linear-gradient(180deg,rgba(21,31,43,.96),rgba(15,24,34,.96));border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.mechanism-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.mechanism-head h2{font-size:16px}.mechanism-head p{color:var(--muted);font-size:12px;margin-top:5px}.mechanism-values{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.mechanism-values span{padding:7px 10px;border:1px solid var(--line);border-radius:9px;color:var(--muted);font-size:11px;white-space:nowrap}.mechanism-values strong{color:var(--text);margin-left:4px}.mechanism-svg{display:block;width:100%;height:800px;margin-top:6px}.mechanism-svg .trajectory-e{fill:none;stroke:var(--accent);stroke-width:3;stroke-dasharray:9 9;opacity:.48}.mechanism-svg .trajectory-e-current{fill:var(--accent)}.mechanism-svg .ground{stroke:#3a4b5f;stroke-width:2}.mechanism-svg .base{stroke:#71859b;stroke-width:5;stroke-linecap:round}.mechanism-svg .arm{stroke:#d72e36;stroke-width:15;stroke-linecap:round;stroke-linejoin:round}.mechanism-svg .tie{stroke:#a95b58;stroke-width:7;stroke-linecap:round}.mechanism-svg .balance{stroke:#b6c4d2;stroke-width:8;stroke-linecap:round}.mechanism-svg .equalizer{stroke:var(--accent);stroke-width:4;stroke-dasharray:10 7}.mechanism-svg .joint{fill:#e9f0f7;stroke:#0b1118;stroke-width:4}.mechanism-svg .fixed{fill:#d9a62e;stroke:#0b1118;stroke-width:4}.mechanism-svg .collector{fill:#cdd7e2;stroke:#71859b;stroke-width:4}.mechanism-svg .contact{stroke:#d9e1e9;stroke-width:8;stroke-linecap:round}.mechanism-svg .axis{stroke:#33475c;stroke-width:1.5;stroke-dasharray:4 5}.mechanism-svg text{fill:#9fb0c2;font-size:13px;font-weight:700}.mechanism-svg .label-main{fill:#e9f0f7}.mechanism-slider{display:grid;grid-template-columns:max-content minmax(160px,1fr);align-items:center;gap:14px;color:var(--muted);font-size:11px}.mechanism-slider input{padding:0;accent-color:var(--accent)}.mechanism-svg .crank{stroke:#d9a62e;stroke-width:8;stroke-linecap:round}.mechanism-svg .top-link{stroke:#9b7bd8;stroke-width:8;stroke-linecap:round}.mechanism-svg .head-shell-line{stroke:#991b24;stroke-width:32;stroke-linecap:round}.mechanism-svg .head-cylinder-line{stroke:#edf2f6;stroke-width:17;stroke-linecap:round}.mechanism-svg .head-housing-outer{fill:#3f4650;stroke:#171d25;stroke-width:5}.mechanism-svg .head-mast{stroke:#d72e36;stroke-width:28;stroke-linecap:round}.mechanism-svg .head-cap{stroke:#7c8792;stroke-width:9;stroke-linecap:round}.mechanism-svg .head-housing{fill:#cdd7e2;stroke:#171d25;stroke-width:4}.mechanism-svg .head-arm{stroke:#d72e36;stroke-width:13;stroke-linecap:round}.mechanism-svg .head-shell{fill:#9b1d25;stroke:#151c24;stroke-width:3}.mechanism-svg .head-cylinder{fill:#edf2f6;stroke:#9caab8;stroke-width:3}.mechanism-svg .head-hose{fill:none;stroke:#a64d28;stroke-width:5;stroke-linecap:round}@media(max-width:1100px){.layout{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line)}.sticky{position:static;max-height:none}.hero-grid{grid-template-columns:1fr 1fr}}@media(max-width:720px){.topbar{align-items:flex-start;flex-direction:column}.workspace{padding:12px}.sidebar{padding:12px}.hero-grid,.charts-grid,.guide-grid{grid-template-columns:1fr}.chart-card.wide{grid-column:auto}.metric{padding:12px}.section-head,.mechanism-head{align-items:flex-start;flex-direction:column}.mechanism-values{justify-content:flex-start}.mechanism-svg{height:560px}.mechanism-slider{grid-template-columns:1fr}.chart{height:300px}}

.pantograph-type-field{flex:0 1 250px;min-width:210px}.pantograph-type-field select{font-weight:700}.pantograph-type-field option:disabled{color:var(--muted)}

#sssLayout[hidden],body[data-pantograph-type=sss400plus] main.layout:not(#sssLayout){display:none!important}body[data-pantograph-type=sss400plus] #exportPdfBtn{display:none!important}#sssLayout .sidebar .panel{overflow:visible}#sssLayout .field{margin-top:8px}#sssLayout .toolbar{margin-top:10px}#sssLayout .note a{color:var(--accent)}

#sssHeightChart{min-width:0;max-width:100%;overflow:hidden}

#sssTrajectoryChart{min-width:0;max-width:100%;overflow:hidden}#sssLayout .chart-card{margin-top:14px}

/* Lift mechanism fields must respect native hidden state despite grid/flex styles. */
#rodLiftInputs[hidden],#rodFixedBaseInputs[hidden],#rodSliderInputs[hidden],#sixBarInputs[hidden],#rodForceField[hidden],#liftMechanismResults>[hidden]{display:none!important}
.mechanism-svg .rod-rke-body{stroke:#8d62c7;stroke-width:10;stroke-linecap:round}

#sssWeightChart,#sssStaticChart{min-width:0;max-width:100%;overflow:hidden}

#sssCarriageChart{min-width:0;max-width:100%;overflow:hidden}

#sssRequiredMomentChart{min-width:0;max-width:100%;overflow:hidden}

#sssLayout .sidebar .panel.sticky{overflow:auto}#sssLayout .sidebar .input-grid{min-width:0}#sssLayout .sidebar .input-grid>.field{min-width:0;margin-top:0}#sssLayout .sidebar .field>input,#sssLayout .sidebar .field>select{min-width:0}

#sssDynamicStand .chart{min-width:0;max-width:100%;overflow:hidden}

#sssDynamicStand{scroll-margin-top:90px}
