body[data-touch-lab]{background:#f3f6fa;color:#17344d}
body[data-touch-lab] .heat-main{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;max-width:1020px;padding:20px 24px;margin:0 auto;align-items:start}
.heat-head{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
.heat-head h1{flex:1;min-width:150px;font-size:clamp(1.05rem,2.5vw,1.65rem);line-height:1.4;margin:0;color:#153853;letter-spacing:-.025em;text-wrap:balance}
.heat-head>p{flex-basis:100%;margin:0;font-size:.9rem;color:#506b80}
.touch-guide{display:flex;align-items:center;gap:6px;max-width:46%;min-height:44px;padding:4px 10px 4px 4px;border:1px solid #b5d9e2;border-radius:16px;background:#e3f4f6;color:#135369;font-size:.8rem;font-weight:700;cursor:pointer;text-align:left;line-height:1.35}
.touch-guide img{flex-shrink:0;width:42px;height:42px}.touch-guide:hover{background:#cee9ef}
.heat-stage,.heat-controls{min-width:0;background:#fff;border:1px solid #d6e3eb;border-radius:18px;padding:16px;box-shadow:0 8px 24px #18344c08}
.heat-main .panel{padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;width:auto!important;margin:0 0 14px;min-width:0}
.heat-main .panel-title{font-size:.82rem!important;margin:0 0 8px;color:#3d5c72}
.heat-instruction{font-size:.82rem;line-height:1.5;margin:0 0 10px;color:#526d7f}
.heat-stage>.panel:first-of-type .panel-title{display:none}
.heat-main .paint-btns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.45fr);gap:5px}
.heat-main .paint-btn{min-height:48px;padding:5px 2px;font-size:.8rem;line-height:1.3;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:9px}
.heat-main .paint-btn{overflow-wrap:anywhere;white-space:normal}
.heat-main .paint-btn .icon{font-size:1rem;margin:0}.heat-main .paint-btn[aria-pressed=true]{outline:2px solid #255d7b;outline-offset:1px}
.heat-main .canvas-wrap{display:block!important;margin:0;padding:0;background:transparent}
.heat-main .canvas-wrap>.chart-card{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
.heat-main .canvas-wrap>.chart-card>.chart-title{display:none!important}
.heat-main .canvas-wrap>.chart-card>.cc-body{max-height:none!important;overflow:visible!important;opacity:1!important}
.heat-stage>.panel:last-child>.panel-title{display:none}
body[data-touch-lab]>header .header-inner{padding-top:6px!important;padding-bottom:6px!important;min-height:0!important}
.heat-main #heat-canvas{display:block;margin:0 auto;max-width:100%;max-height:none!important;touch-action:none;border-radius:10px;aspect-ratio:1;cursor:crosshair}
.heat-main .legend-wrap{display:none}
.heat-main .playback-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;align-items:center}
.heat-main .playback-row .action-btn{min-height:44px;font-size:.86rem!important;flex:1 1 auto!important;padding:8px 12px!important}
.heat-main .playback-row .speed-btn{min-height:36px;min-width:42px}
.heat-main .playback-row>div{flex:1;justify-content:center;margin:0!important}
.heat-main .mat-btns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.heat-main .mat-btn,.heat-main .bc-btn,.heat-main .action-btn{min-height:44px;font-size:.82rem;line-height:1.4}
.heat-main .stats-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.heat-main .stat-card{padding:10px 5px;background:#edf5f9;border:0;border-radius:9px}.heat-main .stat-card .sv{font-size:1.1rem;line-height:1.4}.heat-main .stat-card .sl{font-size:.72rem;line-height:1.4}
.heat-main .chart-card{padding:0;box-shadow:none;border:0;background:none}.heat-main .chart-title{font-size:.76rem}
.heat-model{font-size:.76rem;line-height:1.65;color:#51697a;margin:12px 0}
.heat-main details{border-top:1px solid #d9e4eb;padding-top:10px}.heat-main summary{font-weight:700;font-size:.85rem;padding:10px 0;cursor:pointer}
.heat-main details>.panel{margin-top:15px}.heat-main .param-label{gap:6px}.heat-main input[type=number]{font-size:16px!important;min-height:40px;width:68px!important;max-width:100%}
.heat-main input[type=range]{min-height:28px;touch-action:pan-y;margin:8px 0;width:100%}.heat-main input[type=range]::-webkit-slider-thumb{width:24px;height:24px}
.heat-details{max-width:972px;margin:16px auto;background:white;border:1px solid #d6e3eb;border-radius:16px;min-width:0}.heat-details>summary{padding:18px;font-weight:700;color:#235877;cursor:pointer}
.heat-details .chart-section,.heat-details .theory-section{padding:16px!important;margin:0!important;max-width:100%}
.heat-details select{max-width:100%;min-height:44px}.heat-details input[type=range]{min-height:28px}.heat-details #heat3dMount canvas{touch-action:none}
body[data-touch-lab]>.hero{padding:16px 24px!important;max-width:1020px;margin:0 auto;background:transparent!important;color:#4e687d}
body[data-touch-lab]>.hero .hero-sub{color:#4e687d;font-size:.84rem;margin:0;line-height:1.7}.hero-meta{flex-wrap:wrap}
body[data-touch-lab]>.hero .hero-badge{color:#416a83;background:#e5eef4}.hero-inner{padding:0!important}
.touch-pop{position:fixed;z-index:10010;width:310px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;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;position:static}.touch-pop header img{width:42px;height:42px}.touch-pop h2{font-size:1rem;line-height:1.4;margin:0;flex:1}.touch-pop p{font-size:.88rem;line-height:1.7;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:44px;border:1px solid #c5d9ed;border-radius:9px;background:#edf5fd;color:#15466e;padding:6px 10px;cursor:pointer}.touch-pop button[data-next]{background:#1668b3;color:white}.touch-pop button[data-close]{font-size:20px}.touch-focus{outline:3px solid #12acbd!important;outline-offset:4px}
@media(max-width:760px){body[data-touch-lab] .heat-main{grid-template-columns:minmax(0,1fr);padding:14px 12px;gap:12px}.heat-stage,.heat-controls{padding:12px;border-radius:14px}.heat-head{gap:8px}.heat-head h1{font-size:1.05rem;min-width:130px}.touch-guide{font-size:.72rem;padding-right:6px;max-width:44%}.touch-guide img{width:32px;height:36px}.heat-head>p{font-size:.78rem}.heat-main .paint-btn{font-size:.72rem}.heat-main .playback-row>div{flex-basis:100%}.heat-details{margin:12px}.heat-details .chart-section{padding:8px!important}.heat-details>div{padding-left:8px!important;padding-right:8px!important}.heat-details #heat3dMount{height:280px!important}.heat-details #viz3dHeatToggle{gap:10px}.heat-main .mat-btns{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){body[data-touch-lab] *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
