.app-navigation{display:flex;justify-content:center;align-items:center;gap:8px;padding:12px 16px;background:#fff;border-bottom:1px solid #dde7ef;position:relative;z-index:40;flex-wrap:wrap}
.app-navigation a{min-height:46px;display:flex;align-items:center;justify-content:center;padding:10px 18px;border-radius:14px;text-decoration:none;color:#34516b;font-weight:700;font-size:14px;background:#f2f6fb;border:1px solid transparent}
.app-navigation a[aria-current="page"]{background:#e2edff;color:#245fc4;border-color:#b8d0f6}
body.room-mode #room .classroom-3d{height:calc(100dvh - 72px)}

/* Responsive adaptation of the existing activities lessons and lab bench. */
.original-catalog{max-width:1200px;margin:auto;padding:20px}
.original-catalog a{text-decoration:none;color:inherit}
.original-lesson-back{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 20px;flex-wrap:wrap}
.original-lesson-back button{min-height:48px;border:1px solid #c9dced;border-radius:16px;background:white;color:#254c74;padding:10px 18px;font:inherit;cursor:pointer}
.original-lesson-back span{font-size:12px;color:#61758b}
#game-host .bench-tools button,#game-host .bench-test-button{min-height:48px}
#game-host .bench-pin.connected:disabled{opacity:1}
@media(max-width:760px){
 #game-host.learning-app{padding:8px;width:100%;max-width:100%;box-sizing:border-box}
 #game-host .labbench{display:flex;flex-direction:column;border-radius:20px}
 #game-host .bench-header{padding:18px 14px;display:block;order:0}
 #game-host .bench-header h1{font-size:25px}
 #game-host .bench-header p span{display:block;margin-top:6px}
 #game-host .bench-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:14px}
 #game-host .bench-tools button{padding:8px 3px;font-size:13px;white-space:normal}
 #game-host .bench-mission-strip{order:1;margin:0 10px 12px;padding:12px;gap:8px;flex-wrap:wrap}
 #game-host .bench-mission-strip>div{flex:1;min-width:180px}
 #game-host .bench-mission-strip b{font-size:16px}
 #game-host .bench-step-number{flex-shrink:0}
 #game-host .bench-progress{font-size:20px}
 #game-host .bench-bottom{display:contents}
 #game-host .bench-tray{order:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 10px 16px;gap:8px}
 #game-host .bench-tray-label{grid-column:1/-1;width:auto}
 #game-host .bench-tray-label small{display:inline;margin-left:8px}
 #game-host .bench-part{min-width:0;min-height:76px;padding:10px 8px;gap:8px}
 #game-host .bench-part b{font-size:13px}
 #game-host .bench-mini-battery{flex-shrink:0}
 #game-host .bench-table-scroll{order:3;overflow:visible}
 #game-host #guided-game .bench-table.wire-lanes{min-width:0;width:100%;height:auto;display:flex;flex-direction:column;gap:64px;padding:42px 12px 65px;box-sizing:border-box}
 #game-host .bench-table-label{top:16px;left:14px;font-size:10px}
 #game-host .bench-station{position:relative;top:auto;left:auto;width:100%;height:auto;display:flex;flex-direction:column;align-items:center;gap:16px}
 #game-host .bench-station-title{order:0;margin:0;font-size:17px;background:#f0f6fc;padding:5px 12px;border-radius:10px;z-index:4}
 #game-host .bench-station .terminals-left{order:1}
 #game-host .bench-equipment,#game-host .bench-pcb-art,#game-host .bench-drop,#game-host .bench-real-sensor{order:2;width:190px;max-width:100%}
 #game-host .bench-station .terminals-right{order:3}
 #game-host .bench-device-caption{order:4;margin:0;background:#f0f6fc;padding:4px 8px;z-index:4}
 #game-host .bench-terminals{position:relative;top:auto;left:auto;right:auto;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;gap:8px;width:100%}
 #game-host #guided-game .bench-pin{min-height:52px;min-width:0;max-width:72px;flex:1;flex-direction:column;gap:6px;padding:8px 2px;font-size:12px;cursor:pointer}
 #game-host .bench-pin i{position:absolute;right:2px;top:1px}
 #game-host .bench-table-footer{bottom:12px;left:12px;right:12px;gap:10px;flex-wrap:wrap;font-size:11px}
 #game-host .bench-table-footer small{width:100%;margin:0}
 #game-host .bench-test{order:4;margin:0;padding:16px;display:flex;flex-direction:column;align-items:stretch;gap:12px}
 #game-host .bench-test-button{width:100%;min-height:56px;font-size:18px}
 #game-host .bench-feedback{order:5;padding:12px 16px}
 #game-host .bench-power-error,#game-host .bench-power-low{order:6}
 #game-host .pm-lesson{width:100%;min-width:0;padding:12px;box-sizing:border-box}
 #game-host .pm-footer{flex-wrap:wrap;gap:12px}
 #game-host .pm-footer button{min-height:52px;max-width:100%;white-space:normal}
}

@media(max-width:760px){.app-navigation{display:grid;grid-template-columns:1fr 1fr;padding:8px;gap:6px}.app-navigation a{padding:8px;font-size:13px;min-height:48px}body.room-mode #room .classroom-3d{height:calc(100dvh - 124px)}}

@media(max-width:760px){
 #game-host .pm-example strong{font-size:clamp(22px,7vw,34px);white-space:normal;overflow-wrap:anywhere}
 #game-host .pm-lesson li{min-width:0;max-width:100%;box-sizing:border-box}
 #game-host .pm-lesson li>span{min-width:0;white-space:normal;overflow-wrap:anywhere}
}
