/* W42 dedicated responsive engineering workbench; isolates the 48-run
   diagnostic from the 3-column W01 wheel-test station. */
#kf41FullHandlingLab{position:relative;margin:4px 0 16px;padding:13px;border:1px solid #69aab2;background:linear-gradient(145deg,#13394b,#092732);box-shadow:0 0 0 1px #05222e;min-width:0}
#kf41FullHandlingLab h2{font-size:17px}
#kf41FullHandlingLab small{display:block;line-height:1.5;margin-top:7px}
#kf41FullHandlingLab .kf42-main-action{display:block;width:100%;font-size:12px;line-height:1.5;background:#2c786c;border-color:#88e5c2;white-space:normal;min-width:0;padding:13px}
#kf41FullHandlingLab .kf42-main-action:focus-visible,#kf42Dashboard button:focus-visible,#kf42Dashboard select:focus-visible,#kf42Dashboard input:focus-visible{outline:3px solid #ffc184;outline-offset:3px}
#kf42Dashboard{position:fixed;z-index:999999;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;background:#020b12ed;color:#e7f4f7;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;box-sizing:border-box}
#kf42Dashboard[hidden]{display:none!important}
#kf42Dashboard *{box-sizing:border-box}
.kf42-shell{display:flex;flex-direction:column;width:min(1600px,100%);max-height:calc(100dvh - 32px);height:min(970px,calc(100dvh - 32px));background:#0c2230;border:1px solid #517586;border-radius:13px;overflow:hidden;box-shadow:0 20px 90px #000d}
.kf42-top{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 20px;background:#0a1b28;border-bottom:1px solid #345466;flex:0 0 auto}
.kf42-top h2{font-size:23px;color:#fff;margin:3px 0}
.kf42-top p{font-size:12px;color:#a3bcc5;margin:0}
#kf42Dashboard button{min-height:38px;border:1px solid #46697a;background:#1b3747;color:#f0fbfb;padding:8px 12px;border-radius:6px;cursor:pointer;font-weight:750;font-size:12px}
#kf42Dashboard button:hover{background:#285061}
#kf42Dashboard button:disabled{opacity:.45;cursor:not-allowed}
#kf42Dashboard #kf42Close{background:#273844;white-space:nowrap}
.kf42-scroll{padding:16px 20px 20px;overflow-y:auto;overflow-x:hidden;min-height:0;scrollbar-width:thin;scrollbar-color:#4b6a76 transparent}
.kf42-brief{font-size:12px;line-height:1.55;color:#bdd2d8;border:1px solid #3d6872;background:#113542;border-radius:7px;padding:9px 12px;margin-bottom:12px}
.kf42-brief strong{color:#a4eddb}
.kf42-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
#kf42Dashboard .kf42-run{background:#247f70;border-color:#8fe9c5}
#kf42Dashboard .kf42-download{background:#876338;border-color:#ffc282}
.kf42-toolbar{margin:8px 0}
.kf42-progress{display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,1.3fr);gap:12px;align-items:center;margin:12px 0;color:#add7ce;font-size:12px}
.kf42-progress progress{width:100%;height:14px;accent-color:#7fe5b3}
.kf42-main{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(275px,1fr);gap:14px;align-items:start}
.kf42-player,.kf42-inspector{min-width:0;background:#0a1b28;border:1px solid #345365;border-radius:9px;overflow:hidden}
.kf42-player-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 13px;border-bottom:1px solid #284758}
.kf42-player-top h3,#kf42Dashboard h3{margin:4px 0;font-size:15px;color:#f4f9fa}
#kf42Clock{font:20px ui-monospace,Consolas,monospace;color:#ffbd7f;white-space:nowrap}
#kf42Vehicle{display:block;width:100%;aspect-ratio:900/440;height:auto;background:#081b2a}
#kf42Chart{display:block;width:100%;height:auto;aspect-ratio:900/205;background:#081b28}
.kf42-play-controls{padding:11px 12px;background:#122f3d;border-top:1px solid #2c5060;border-bottom:1px solid #294b5a;gap:8px;align-items:end}
#kf42Dashboard label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:#bcd9df;min-width:0}
#kf42Dashboard label select{min-height:36px;max-width:240px;color:#fff;background:#163545;border:1px solid #588190;font-size:11px}
#kf42Dashboard .kf42-timeline{flex:1 1 110px;min-width:90px}
#kf42Dashboard input[type=range]{margin:8px 0 13px;accent-color:#ecae73;width:100%}
.kf42-legend{font-size:11px;color:#aac4ca;padding:8px 12px;line-height:1.5}
.kf42-yaw{color:#efac74}.kf42-steer{color:#7bdac8}.kf42-load{color:#a9aaf2}
.kf42-inspector{padding:14px;max-height:770px;overflow:auto;scrollbar-width:thin;scrollbar-color:#4b7484 transparent}
.kf42-inspector h3{color:#ffc184!important;margin:5px 0 12px!important}
.kf42-inspector p{font-size:12px;color:#a6c5d0;line-height:1.6;margin:8px 0 14px}
.kf42-kpis{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:18px}
.kf42-kpis div{display:flex;flex-direction:column;gap:4px;border:1px solid #2d5363;background:#14303f;padding:10px;border-radius:5px;overflow:hidden}
.kf42-kpis small{font-size:10px;color:#acc9d1}.kf42-kpis b{font-size:17px;color:#f0f7f8;font-family:ui-monospace,Consolas,monospace;font-weight:650}
#kf42Dashboard .kf41-result{max-height:none;background:transparent;border:0;padding:0;overflow-x:auto;overflow-y:visible}
#kf42Dashboard .kf41-result table{width:100%;min-width:310px;font-size:10px}
#kf42Dashboard .kf41-result th,#kf42Dashboard .kf41-result td{padding:8px 5px;text-align:left}
#kf42Dashboard .kf42-result-row{cursor:pointer}
#kf42Dashboard .kf42-result-row:hover{background:#274757}
.kf42-foot{padding:12px;background:#173241;color:#b2d0d4;font-size:12px;line-height:1.4;margin-top:13px;border:1px solid #31596a;border-radius:7px}
#kf42DownloadState{color:#9af1d0;display:inline-block}
@media (max-width:1020px){.kf42-main{grid-template-columns:minmax(0,1fr)}.kf42-inspector{max-height:none}.kf42-shell{height:calc(100dvh - 20px);max-height:none}#kf42Dashboard{padding:10px}.kf42-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:630px){#kf42Dashboard{padding:0}.kf42-shell{height:100dvh;max-height:100dvh;border-radius:0}.kf42-top{padding:12px}.kf42-top h2{font-size:18px}.kf42-top p{font-size:10px}.kf42-scroll{padding:10px}.kf42-brief{font-size:11px}.kf42-progress{grid-template-columns:1fr}.kf42-toolbar button{flex:1 1 130px}#kf42Dashboard label select{max-width:100%}.kf42-play-controls label{flex:1 1 140px}.kf42-kpis{grid-template-columns:1fr 1fr}.kf42-kpis b{font-size:15px}.kf42-top #kf42Close{padding:6px;font-size:10px}}

/* W42 Workshop: stop the old three-fixed-column layout crushing long lab menus. */
html.kf-lab .workspace{grid-template-columns: minmax(330px, min(26vw, 390px)) minmax(0,1fr) minmax(290px,min(21vw,350px));}
html.kf-lab .left-scroll{overflow-x:hidden;}
html.kf-lab .left-scroll>*{max-width:100%;min-width:0;}
html.kf-lab .left-panel button{overflow-wrap:break-word;}
html.kf-lab .stage-top{padding-inline:15px;gap:10px;}
html.kf-lab .stage-actions{flex-wrap:wrap;justify-content:end;}
#kf42HeaderShortcut{border-color:#548a8c;color:#9fe5cd;}
@media (max-width:1340px){
 html.kf-lab .app{height:auto;min-height:100vh;overflow:visible;}
 html.kf-lab .workspace{display:grid;grid-template-columns:minmax(300px,350px) minmax(0,1fr);grid-template-rows:minmax(600px,calc(100vh - 70px)) auto;}
 html.kf-lab .right-panel{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-content:start;}
 html.kf-lab .telemetry-title{grid-column:1/-1;}
 html.kf-lab .right-footer{grid-column:1/-1;}
 html.kf-lab .headercenter{display:none;}
}
@media(max-width:800px){
 html.kf-lab .workspace{display:flex;flex-direction:column;}
 html.kf-lab .left-panel{min-height:0;}
 html.kf-lab .left-scroll{max-height:500px;overflow-y:auto;}
 html.kf-lab .stage{min-height:620px;height:620px;}
 html.kf-lab .right-panel{display:flex;}
 html.kf-lab .header{padding:8px 12px;gap:8px;}
 html.kf-lab .headerright{gap:5px;}
 #kf42HeaderShortcut{font-size:9px;padding:7px 6px;}
}
@media(max-width:460px){#kf42HeaderShortcut{font-size:8px;padding:6px 5px;max-width:120px;white-space:normal;line-height:1.3;}html.kf-lab .brand{min-width:0;}}
