.resistance-simulator{--rs-border:#cbd5e1;color:#172b42;background:#f3f7fb;border:1px solid var(--rs-border);border-radius:16px;padding:clamp(.8rem,1.7vw,1.5rem);font-family:system-ui,sans-serif;min-width:0;color-scheme:light}
.resistance-simulator [hidden]{display:none!important}.resistance-simulator .rs-heading{font-size:clamp(1rem,1.8vw,1.8rem);margin:0;text-align:center;color:#172b42}.rs-formula{text-align:center;font-size:clamp(2rem,4.5vw,4rem);font-weight:800;line-height:1.1;margin:.4rem 0;color:#075985}.rs-legend,.rs-note{text-align:center;color:#475569;font-size:.85rem}.rs-cards{display:grid;grid-template-columns:1fr;gap:.8rem;margin:.7rem 0}.rs-cards.rs-comparing{grid-template-columns:1fr 1fr}.rs-card{background:#fff;border:1px solid var(--rs-border);border-radius:12px;padding:.75rem;text-align:center;min-width:0}.rs-card h3{font-size:1rem;color:#475569;margin:0 0 .25rem}.rs-card svg{display:block;width:100%;height:clamp(70px,14vh,150px);margin:.25rem 0}.rs-material,.rs-dimensions,.rs-calculation{font-size:clamp(.85rem,1.5vw,1.35rem);line-height:1.4}.rs-calculation{color:#475569}.rs-result{display:block;color:#075985;font-size:clamp(2rem,4vw,3.6rem);line-height:1.2}.rs-ratio,.rs-challenge{background:#e0f2fe;border-radius:10px;text-align:center;padding:.5rem;font-size:clamp(.9rem,1.5vw,1.4rem);font-weight:650;margin:.4rem 0}.rs-controls{display:grid;grid-template-columns:1fr 1.5fr 1.5fr;gap:1rem;margin:.8rem 0}.resistance-simulator label{display:block;font-size:.95rem;font-weight:600}.rs-field label{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.resistance-simulator select,.resistance-simulator input[type=number]{font:inherit;border:1px solid #94a3b8;border-radius:8px;background:#fff;color:#172b42;padding:.45rem;min-height:44px;max-width:100%}.resistance-simulator select{display:block;width:100%}.resistance-simulator input[type=number]{width:6rem}.resistance-simulator input[type=range]{display:block;width:100%;min-height:38px;accent-color:#0369a1;cursor:pointer}.rs-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin:.6rem 0;align-items:center}.resistance-simulator button{font:inherit;border:1px solid #94a3b8;background:#fff;color:#075985;border-radius:8px;padding:.5rem .75rem;min-height:44px;cursor:pointer}.resistance-simulator button:hover{background:#e0f2fe}.resistance-simulator button:focus-visible,.resistance-simulator input:focus-visible,.resistance-simulator select:focus-visible{outline:3px solid #0284c7;outline-offset:2px}.resistance-simulator button:disabled{opacity:.5;cursor:default}.resistance-simulator .rs-return{background:#0369a1;color:white}.rs-permission{width:100%;padding:.5rem 0}.rs-permission input{width:20px;height:20px;vertical-align:middle}.rs-feedback{min-height:1.2em;font-size:.8rem;color:#475569}.rs-board-shell{width:100%;height:100%;min-height:0;overflow:auto}.rs-board-shell>.resistance-simulator{min-height:100%}.rs-board-source{font-size:.85rem;color:#94a3b8;padding:.2rem .5rem}.rs-board-shell .rs-feedback{min-height:0}.rs-board-shell .rs-legend{font-size:clamp(.85rem,1.4vw,1.2rem)}
@media(max-width:600px){.rs-controls{grid-template-columns:1fr}.rs-cards.rs-comparing{grid-template-columns:1fr 1fr;gap:.4rem}.rs-card{padding:.4rem}.rs-card h3{font-size:.8rem}.rs-card svg{height:70px}.rs-result{font-size:1.6rem}.rs-material,.rs-dimensions,.rs-calculation{font-size:.8rem}.rs-actions button{flex:1}.rs-board-shell .rs-controls{grid-template-columns:1fr 1fr}.rs-board-shell .rs-controls>label{grid-column:1/-1}}
.pdf-active #stage:has(.rs-board-shell){gap:.4rem}
.rs-board-shell{flex:1 1 0;height:auto;padding:0 .4rem}.rs-board-source{flex:0 0 auto;text-align:center}
.rs-board-shell .resistance-simulator{display:flex;flex-direction:column;gap:clamp(.35rem,1vh,.8rem);height:100%;min-height:0;max-width:1280px;margin-inline:auto;padding:clamp(.6rem,1.4vh,1.2rem) clamp(.8rem,2vw,2rem)}
.rs-board-shell .rs-intro{flex:0 0 auto;text-align:center}
.rs-board-shell .rs-heading{font-size:clamp(1rem,2vh,1.5rem);text-align:center}
.rs-board-shell .rs-formula{font-size:clamp(2rem,5.5vh,4rem);margin:.2rem 0}
.rs-board-shell .rs-legend{font-size:clamp(.8rem,1.6vh,1.1rem)}
.rs-board-shell .rs-cards{flex:1 0 160px;min-height:160px;margin:0;gap:clamp(.6rem,1.5vw,1.5rem)}
.rs-board-shell .rs-card{display:grid;min-height:0;grid-template-rows:auto auto minmax(32px,1fr) auto auto auto;align-content:center;padding:clamp(.5rem,1.2vh,1rem)}
.rs-board-shell .rs-card h3{font-size:clamp(.85rem,1.8vh,1.2rem);margin:0 0 .15rem}
.rs-board-shell .rs-card svg{height:100%;min-height:0;max-height:180px;align-self:center;margin:0}
.rs-board-shell .rs-material,.rs-board-shell .rs-dimensions,.rs-board-shell .rs-calculation{font-size:clamp(.9rem,2vh,1.5rem);line-height:1.25}
.rs-board-shell .rs-result{font-size:clamp(2rem,5vh,3.8rem);line-height:1.12}
.rs-board-shell .rs-ratio,.rs-board-shell .rs-challenge{flex:0 0 auto;font-size:clamp(.85rem,1.8vh,1.2rem);padding:.35rem .7rem;margin:0}
.rs-board-shell .rs-workbench{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center;background:#e8eff6;border:1px solid #d3dfeb;border-radius:12px;padding:.6rem .8rem}
.rs-board-shell .rs-controls{margin:0;gap:clamp(.6rem,1.5vw,1.4rem);align-items:center}
.rs-board-shell .rs-actions{margin:0;display:grid;gap:.4rem}
.rs-board-shell label{font-size:.85rem}.rs-board-shell input[type=range]{min-height:30px;margin:0}
.rs-board-shell .rs-note{flex:0 0 auto;font-size:.72rem}
.rs-board-shell .rs-feedback{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(min-width:601px) and (max-height:700px){
    .rs-board-shell .resistance-simulator{gap:.25rem;padding:.5rem .8rem}
    .rs-board-shell .rs-formula{font-size:2rem;margin:.1rem 0}.rs-board-shell .rs-heading{font-size:1rem}.rs-board-shell .rs-legend{font-size:.75rem}
    .rs-board-shell .rs-card{padding:.4rem}.rs-board-shell .rs-cards{flex-basis:140px;min-height:140px}
    .rs-board-shell .rs-material,.rs-board-shell .rs-dimensions,.rs-board-shell .rs-calculation{font-size:.9rem}
    .rs-board-shell .rs-result{font-size:2rem}.rs-board-shell .rs-workbench{padding:.35rem .5rem;gap:.6rem}
    .rs-board-shell .rs-actions{display:flex}.rs-board-shell .rs-actions button{font-size:.78rem;padding:.5rem}
    .rs-board-shell .rs-note{display:none}
}
@media(max-width:850px){.rs-board-shell .rs-workbench{grid-template-columns:1fr}.rs-board-shell .rs-actions{display:flex;justify-content:center}.rs-board-shell .rs-actions button{flex:1}}
@media(max-width:600px){.rs-board-shell .resistance-simulator{height:auto;min-height:100%}.rs-board-shell .rs-cards{flex:auto}.rs-board-shell .rs-cards.rs-comparing{grid-template-columns:1fr}.rs-board-shell .rs-card svg{height:90px}.rs-board-shell .rs-controls{grid-template-columns:1fr}.rs-board-shell .rs-heading{font-size:1rem}}
