body[data-touch-lab]{background:#f4f7fb;color:#182a40}
body[data-touch-lab] .touch-main{display:grid!important;grid-template-columns:minmax(0,1fr) 290px;gap:18px;max-width:1180px!important;margin:0 auto!important;padding:24px!important;align-items:start}
.touch-head{grid-column:1/-1;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.touch-head h1{font-size:clamp(1.1rem,2.4vw,1.7rem);line-height:1.4;letter-spacing:-.025em;margin:0;flex:1;min-width:180px;color:#142b46}
.touch-head>p{flex-basis:100%;margin:0;color:#546a80;font-size:.88rem;line-height:1.5}
.touch-guide{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;background:#e5f2ff;color:#114c7b;border:1px solid #b5d8f7;border-radius:14px;padding:3px 10px 3px 3px;font:600 13px inherit;cursor:pointer;min-height:44px}
.touch-guide img{width:40px;height:40px}.touch-guide:hover{background:#d2eaff}
.touch-stage{min-width:0;padding:16px;background:#fff;border:1px solid #dce5ef;border-radius:20px;box-shadow:0 8px 32px #183a6010}
.touch-primary{padding:10px 14px 14px;border-radius:12px;background:#edf6ff;margin-bottom:12px}
.touch-primary .param-group,.touch-primary .ctrl-group{margin:0!important}.touch-primary .param-name{font-size:.88rem!important}
body[data-touch-lab] input[type=range]{height:8px;min-height:8px;touch-action:pan-y;margin:10px 0}
body[data-touch-lab] input[type=range]::-webkit-slider-thumb{width:24px;height:24px;border:3px solid white;box-shadow:0 1px 6px #1236}
.touch-main input[type=number],.touch-main select{min-height:36px;font-size:14px!important;max-width:100%;border-radius:7px}
.touch-main .param-label{gap:8px}.touch-main .num-wrap{flex-shrink:0}
.touch-main .chart-card{border:0!important;box-shadow:none!important;background:transparent!important;margin:0!important;padding:10px 0!important;min-width:0}
.touch-main .chart-title{margin:4px 0 9px!important}.touch-main canvas{max-width:100%!important;touch-action:pan-y}
.touch-main .stat-cards{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:6px;margin:8px 0}
.touch-main .stat-card{box-shadow:none;background:#f0f5fa;border:0;padding:10px 6px}
.touch-main .stat-card .sv{font-size:1.02rem}.touch-main .stat-card .sl{font-size:.72rem;line-height:1.4}
.touch-main .legend{gap:8px;display:flex;flex-wrap:wrap;font-size:.74rem;line-height:1.6}
.touch-main .play-row,.touch-main .preset-row{display:flex;flex-wrap:wrap;gap:6px}
.touch-parameters,.touch-details{border:1px solid #dce5ef;border-radius:15px;background:#fff;min-width:0}
.touch-details{grid-column:1/-1}.touch-parameters>summary,.touch-details>summary{padding:15px;font-weight:700;font-size:.88rem;cursor:pointer;list-style-position:inside;color:#244f76}
.touch-parameters>.panel{padding:5px 16px 16px;border:0!important;border-radius:0;box-shadow:none!important;background:none!important;max-width:100%;width:auto}
.touch-parameters .panel-title{display:none}.touch-parameters .param-group{margin:15px 0!important}
.touch-secondary{padding:0 16px 16px}.touch-secondary .canvas-wrap{display:block!important}
body[data-touch-lab]>.hero{background:transparent;color:#354d66;padding:18px 0;max-width:1180px;margin:0 auto}
body[data-touch-lab]>.hero .hero-inner{padding:0 24px}body[data-touch-lab]>.hero .hero-sub{color:#52677b;display:block;max-width:none;font-size:.86rem}body[data-touch-lab]>.hero .hero-badge{color:#426889;background:#e8eef5;border:0}
.touch-pop{position:fixed;z-index:10010;width:310px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto;background:#fff;border:1px solid #94bbdf;border-radius:18px;box-shadow:0 16px 50px #18395738;padding:16px;color:#182e45}
.touch-pop[hidden]{display:none!important}.touch-pop header{display:flex;gap:10px;align-items:center;background:none;color:inherit;padding:0;margin:0 0 10px}.touch-pop header img{width:48px;height:48px}.touch-pop h2{font-size:1rem;line-height:1.4;margin:0;flex:1}.touch-pop p{font-size:.88rem;line-height:1.75;margin:8px 0 14px}.touch-pop footer{display:flex;justify-content:space-between;align-items:center;gap:6px;background:none;padding:0;border:0;font-size:.75rem}.touch-pop button{min-height:36px;border:1px solid #c5d9ed;border-radius:9px;background:#edf5fd;color:#15466e;padding:6px 12px;cursor:pointer}.touch-pop button[data-next]{background:#1668b3;color:white;border-color:#1668b3}.touch-pop button[data-close]{padding:4px 10px;font-size:20px}.touch-focus{outline:3px solid #12acbd!important;outline-offset:5px}
@media(max-width:760px){body[data-touch-lab] .touch-main{grid-template-columns:minmax(0,1fr);padding:16px 12px!important;gap:12px}.touch-head{gap:8px}.touch-head h1{min-width:150px;font-size:1.1rem}.touch-head>p{font-size:.8rem}.touch-guide{font-size:12px;padding-right:7px}.touch-guide img{width:32px;height:32px}.touch-stage{padding:10px;border-radius:16px}.touch-primary{padding:8px 10px}.touch-main .stat-card{padding:8px 4px}.touch-main .stat-card .sv{font-size:.9rem}.touch-main .stat-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.touch-main .btn,.touch-main .preset-btn{min-height:34px}.touch-details{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.touch-main *{scroll-behavior:auto!important;transition:none!important}}
/* Reynolds-specific touch surface. The scientific model remains in the original page. */
body[data-touch-lab="reynolds-number"] .touch-main{grid-template-columns:minmax(0,1fr) 290px;gap:14px}
.touch-head h1{min-width:0}.touch-head{flex-wrap:wrap}.touch-head>p{font-size:.82rem}
.touch-guide{font-family:inherit;font-size:13px;font-weight:600}
.touch-primary .field{margin:0}.touch-primary label{font-size:.88rem;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px}
.touch-primary .ns-re-physical-wrap{display:inline-flex;align-items:center;gap:5px;float:none}
.touch-primary input[type=number]{width:108px;min-height:44px;font-size:16px!important}
body[data-touch-lab="reynolds-number"] input[type=range]{height:32px;min-height:32px;margin:2px 0;touch-action:pan-y}
.touch-main input:focus-visible,.touch-main select:focus-visible,.touch-main button:focus-visible,.touch-main summary:focus-visible{outline:3px solid #007aaa;outline-offset:2px}
.touch-main select,.touch-parameters input[type=number]{min-height:44px;font-size:16px!important}
.touch-main .ns-re-results{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:6px}
.touch-main #reResults{padding:0!important}.touch-main #reResults>.chart-title{display:none}
.touch-main .stat-card{padding:7px 6px;min-width:0}.touch-main .stat-card .val{font-size:1.05rem;line-height:1.4;overflow-wrap:anywhere}.touch-main .stat-card .lbl{font-size:.7rem}
.touch-main #regimeVal{font-family:inherit;font-size:.85rem}
.touch-stage>.chart-card>.chart-title{font-size:.8rem!important;color:#244f76;margin:5px 0!important}
.touch-main .ns-re-dye-holder{width:100%;min-width:0;background:#0a1628;border-radius:10px;overflow:hidden}
.touch-main #dyeCanvas{display:block;touch-action:pan-y}
.touch-scope,.touch-external{font-size:.74rem;line-height:1.5;margin:7px 0;color:#476079}.touch-external{padding:8px;background:#fff5dc;color:#754b00;border-radius:6px}
.touch-main .re-controls{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 6px}.touch-main .re-btn,.touch-main .re-sbtn,.touch-main .re-pbtn{min-height:44px;font-family:inherit;font-size:.8rem;cursor:pointer}
.touch-main .re-speed{display:flex;gap:3px}.touch-main .re-sbtn{min-width:44px}
.touch-main .re-legend{font-size:.7rem;display:flex;flex-wrap:wrap;gap:6px;line-height:1.5}
.touch-parameters .panel{position:static!important;height:auto!important;max-height:none!important;display:block!important;overflow:visible!important;transform:none!important}
.touch-parameters .panel>h2{display:none}.touch-parameters .field{margin:14px 0}.touch-parameters .field label{font-size:.84rem}
.touch-geometry{font-size:.78rem;color:#52677b;line-height:1.65;margin:12px 0}
.touch-extra-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.touch-examples{grid-column:1/-1;background:#fff;border:1px solid #dce5ef;border-radius:14px;min-width:0}
.touch-examples>summary{padding:14px;color:#244f76;font-weight:700;font-size:.86rem;cursor:pointer}
.touch-examples .re-presets{padding:0 14px 14px;display:flex;flex-wrap:wrap;gap:7px}
.touch-examples .re-plabel{display:none}
.touch-secondary .ns-re-scope,.touch-secondary .re-note{font-size:.8rem;line-height:1.65}.touch-secondary .charts-grid{margin-top:14px}
.touch-secondary .re-live{margin:12px 0}.touch-details .ns-re-equations{overflow-wrap:anywhere}
.touch-pop{box-sizing:border-box;width:300px;padding:12px}.touch-pop p{font-size:.82rem;line-height:1.55;margin:6px 0 10px}.touch-pop button{min-height:44px}.touch-pop header img{width:38px;height:38px}.touch-pop h2{font-size:.93rem}
@media(max-width:760px){body[data-touch-lab="reynolds-number"] .touch-main{grid-template-columns:minmax(0,1fr);padding:12px!important;gap:10px}.touch-head{flex-wrap:wrap;gap:7px}.touch-head h1{flex:1;font-size:1.05rem;line-height:1.35}.touch-head>p{font-size:.76rem}.touch-stage{padding:9px}.touch-primary{padding:7px 9px;margin-bottom:8px}.touch-primary .range-row{font-size:.68rem}.touch-main .ns-re-results{gap:5px}.touch-main .re-btn{padding:8px 10px}.touch-guide{padding-right:6px}.touch-main .chart-card{padding:6px 0!important}.touch-examples{grid-column:auto}.touch-secondary{padding:0 10px 12px}.touch-head .touch-guide img{width:30px;height:30px}.touch-pop{width:280px}.touch-main .ns-re-physical-wrap input{max-width:108px}}
@media(max-width:350px){.touch-guide{flex-direction:column;gap:0;padding:3px 7px;font-size:11px}.touch-guide img{width:26px!important;height:26px!important}.touch-head h1{font-size:1rem}.touch-main .re-controls{gap:4px}.touch-main .re-btn{padding:8px}.touch-main .re-sbtn{padding:5px}}
/* Override legacy ID-scoped result sizing without hiding any scientific content. */
#ns-reynolds-tool.touch-main #reResults>.chart-title{display:none!important}
#ns-reynolds-tool.touch-main .ns-re-results{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important;margin:0!important}
#ns-reynolds-tool.touch-main .ns-re-results .stat-card{padding:6px!important;min-height:0!important}
#ns-reynolds-tool.touch-main .ns-re-results .val{font-size:1rem!important}
#ns-reynolds-tool.touch-main .ns-re-results #regimeVal{font-size:.8rem!important}
#ns-reynolds-tool.touch-main .touch-primary input[type=range]{appearance:none;-webkit-appearance:none;background:transparent!important}
#ns-reynolds-tool.touch-main input[type=range]::-webkit-slider-runnable-track{height:6px;background:#bddef4;border-radius:8px}
#ns-reynolds-tool.touch-main input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;margin-top:-9px;background:#0877ce;width:24px;height:24px;border:3px solid #fff;border-radius:50%}
#ns-reynolds-tool.touch-main input[type=range]{appearance:none;-webkit-appearance:none;background:transparent!important}
#ns-reynolds-tool.touch-main #reResults{min-height:0!important;margin:0!important}
@media(max-width:760px){#ns-reynolds-tool.touch-main .touch-primary{margin-bottom:6px}#ns-reynolds-tool.touch-main .ns-re-results .stat-card{padding:4px 6px!important}}
@media(max-width:499px){#ns-reynolds-tool.touch-main .ns-re-dye-holder{height:230px!important;min-height:230px!important}#ns-reynolds-tool.touch-main #dyeCanvas{height:230px!important}}
