:root {
  --bg: #f4f6f3;
  --panel: #ffffff;
  --line: #d8ded8;
  --text: #19221d;
  --muted: #667168;
  --green: #2f7d57;
  --blue: #2f6d9b;
  --red: #b0413e;
  --yellow: #f6c85f;
  --shadow: 0 10px 24px rgba(25, 34, 29, 0.08);
}

/* Einheitliches dunkles Studio-Design – angelehnt an die Roboter-Liveansicht. */
body,
body[data-course-mode="junior"],
body[data-course-mode="advanced"] {
  --bg: #08131f;
  --panel: #102438;
  --line: #29465d;
  --text: #eaf5fc;
  --muted: #91adbf;
  --green: #28b97b;
  --blue: #49bce9;
  --red: #c94e4a;
  --yellow: #e6b94e;
  --shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

body {
  background: radial-gradient(circle at 50% -20%, #173650 0, #0b1a28 42%, #07111b 100%);
  color: var(--text);
}

.topbar {
  border-color: #29445d;
  background: rgba(7, 16, 27, .95);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .25);
  backdrop-filter: blur(12px);
}

.mark {
  border: 1px solid #3d6a84;
  background: linear-gradient(145deg, #275776, #163248);
  color: #7bdcff;
  box-shadow: 0 0 20px rgba(85, 201, 255, .15);
}

button,
.projectActions input,
.projectActions select,
.field input,
.field select,
.variableCard input,
.variableCreate input,
.chatInput input,
.trainingBox textarea,
.inspectorField input {
  border-color: #35566c;
  background: #172f43;
  color: #eaf5fc;
}

button:hover {
  border-color: #55c9ff;
  background: #20445d;
}

button.primary,
#runSimulationBtn {
  border-color: #27b87b;
  background: linear-gradient(145deg, #2ac789, #17845b);
  color: #fff;
}

button.active {
  border-color: #55c9ff;
  box-shadow: inset 0 0 0 1px #55c9ff, 0 0 14px rgba(85, 201, 255, .12);
}

.modeSwitch,
.courseSwitch,
.toolGroup {
  border-color: #294a61;
  background: #0c1d2b;
}

.modeSwitch button.active,
.courseSwitch button.active,
.libraryTabs button.active,
.sideTabs button.active,
.chatMode button.active {
  border-color: #47748e;
  background: #244a62;
  color: #eaf8ff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .24);
}

.workspace {
  background: transparent;
}

.panel {
  border-color: #29445d;
  background: linear-gradient(145deg, rgba(22, 47, 67, .97), rgba(11, 27, 41, .98));
  box-shadow: var(--shadow);
}

.panelHead {
  border-color: #29445d;
  background: rgba(8, 22, 34, .72);
}

.panelHead h2 {
  color: #c9e8f7;
}

.splitter::after {
  background: #4c7289;
}

.blockCard,
.programBlock,
.componentCard,
.variableCard,
.variableCreate {
  border-color: #35536a;
  background: linear-gradient(145deg, #1c3a50, #122b3e);
  color: #eff9ff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .16);
}

.blockCard:hover,
.componentCard:hover {
  border-color: #5b8198;
  background: linear-gradient(145deg, #234960, #17354a);
}

.blockCard span,
.programBlock span,
.componentCard span,
.componentCard small,
.field,
.variableCard label,
.variableCard span,
.inspector span {
  color: #94afc0;
}

.dropZone {
  background-color: #0b1c2a;
  background-image: linear-gradient(rgba(65, 104, 129, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(65, 104, 129, .18) 1px, transparent 1px);
}

.conditionBuilder,
.nestedDropZone,
.branchEditor {
  border-color: #5a4770;
  background: rgba(38, 26, 52, .56);
}

.conditionPreview {
  background: #271f36;
  color: #d9bdf0;
}

.variableChip {
  border-color: #607e44;
  background: #283d26;
  color: #c9eaa9;
}

.message.user {
  background: #1b5548;
  color: #e7fff6;
}

.message.ai {
  border: 1px solid #315169;
  background: #193247;
  color: #e7f5fc;
}

.chatMode button,
.sideTabs button {
  border-color: #294a61;
  background: #11283a;
  color: #9bb5c5;
}

.chatInput,
.trainingBox {
  border-color: #29445d;
}

.trainingBox,
.inspector,
.sensorReadouts article {
  border-color: #29445d;
  background: rgba(9, 25, 38, .72);
}

.sensorReadouts b,
.sensorReadouts strong {
  color: #eaf7fd;
}

.logsPanel pre {
  background: #050e16;
  color: #9fe5c3;
}

.robotBuilder,
.simulationStage {
  border-color: #29445d;
  background: #091926;
}

.simulationWorld {
  background-color: #102838;
  background-image: linear-gradient(rgba(89, 137, 164, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(89, 137, 164, .12) 1px, transparent 1px);
}

.robotBody,
.simRobot {
  border-color: #5b8096;
  background: #dcebf2;
  color: #243846;
}

.mountedComponent.sensor,
.simComponent.sensor,
.mountedComponent,
.simComponent {
  border-color: #4e83a3;
  background: #244b66;
  color: #eef9ff;
}

.mountedComponent.actuator,
.simComponent.actuator,
.mountedComponent.motor,
.simComponent.motor {
  border-color: #48a474;
  background: #245443;
}

.mountedComponent.output,
.simComponent.output {
  border-color: #c88a42;
  background: #62451f;
}

.mountedComponent.structure,
.simComponent.structure {
  border-color: #71808b;
  background: #354650;
}

input::placeholder,
textarea::placeholder {
  color: #708b9d;
}

select option {
  background: #132c3f;
  color: #eef8fe;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #0d2030;
  border-radius: 10px;
  background: #3d6177;
}

::-webkit-scrollbar-track {
  background: #0d2030;
}

.robotLivePage { position: fixed; inset: 0; z-index: 1000; overflow: auto; background: radial-gradient(circle at 50% 0%, #17304a, #09121d 55%); color: #eef7ff; }
.juniorLiveDashboard{display:grid;grid-template-columns:minmax(420px,1.7fr) repeat(2,minmax(220px,1fr));gap:16px;max-width:1500px;margin:auto;padding:18px}.juniorHeroCard,.juniorPictureCard,.juniorStateCard{overflow:hidden;border:1px solid #31546c;border-radius:22px;background:linear-gradient(145deg,#19364d,#0d2030);box-shadow:0 15px 38px rgba(0,0,0,.28)}.juniorHeroCard{grid-row:span 2}.juniorCameraFrame{height:min(54vh,520px);min-height:340px;background:#02070b}.juniorCameraFrame img{width:100%;height:100%;object-fit:cover}.juniorHeroText{display:flex;align-items:center;gap:14px;padding:16px 20px}.juniorHeroText>span{font-size:2.5rem}.juniorHeroText strong,.juniorPictureCard strong,.juniorStateCard strong{font-size:1.25rem}.juniorHeroText p,.juniorPictureCard p,.juniorStateCard p{margin:4px 0 0;color:#9bb8c9}.juniorPictureCard{display:grid;place-items:center;align-content:center;min-height:220px;padding:18px;text-align:center}.juniorDistancePicture{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;margin-bottom:14px}.juniorRobotEmoji,.juniorObjectEmoji{font-size:3rem}.juniorWaves{display:flex;align-items:center;gap:8px}.juniorWaves i{width:12px;height:48px;border:4px solid #4ae097;border-block-color:transparent;border-left-color:transparent;border-radius:50%}.juniorPictureCard.warn .juniorWaves i{border-right-color:#ffbd4a}.juniorPictureCard.danger .juniorWaves i{border-right-color:#ff655d;animation:distancePulse .55s infinite alternate}.juniorMoveIcon{display:grid;place-items:center;width:112px;height:112px;margin-bottom:12px;border-radius:50%;background:#244b62;color:#62dbff;font-size:4.5rem;font-weight:800}.juniorBattery{width:150px;height:72px;margin-bottom:20px;padding:7px;border:5px solid #7796a8;border-radius:14px}.juniorBattery div{width:70%;height:100%;border-radius:6px;background:#4ae097;transition:width .3s}.juniorStateCard{grid-column:2/-1;display:flex;align-items:center;justify-content:center;gap:18px;min-height:150px;padding:20px}.juniorStateCard>span{font-size:4rem}.juniorStateCard.running{border-color:#36b97c}.juniorStateCard.error{border-color:#e25e58;background:linear-gradient(145deg,#542a2d,#251b25)}
@media(max-width:900px){.juniorLiveDashboard{grid-template-columns:1fr 1fr}.juniorHeroCard{grid-column:1/-1;grid-row:auto}.juniorCameraFrame{min-height:280px;height:42vh}.juniorStateCard{grid-column:1/-1}}@media(max-width:580px){.juniorLiveDashboard{grid-template-columns:1fr}.juniorStateCard{grid-column:auto}.juniorPictureCard{min-height:190px}}
.juniorManualCard{cursor:pointer;border-color:#3d7894;transition:transform .18s,border-color .18s,box-shadow .18s}.juniorManualCard:hover,.juniorManualCard:focus-visible{outline:none;transform:translateY(-3px);border-color:#62d7ff;box-shadow:0 0 0 3px rgba(98,215,255,.13),0 18px 42px rgba(0,0,0,.34)}.juniorJoystickIcon{position:relative;width:118px;height:90px;margin:18px 0 12px;border:4px solid #71a9c3;border-radius:45px 45px 28px 28px;background:#244b62}.juniorJoystickIcon::before{content:"";position:absolute;left:50%;top:2px;width:8px;height:44px;border-radius:8px;background:#87ddfa;transform:translate(-50%,-55%)}.juniorJoystickIcon span{position:absolute;left:50%;top:-30px;width:44px;height:44px;border-radius:50%;background:linear-gradient(145deg,#74e2ff,#258db7);transform:translateX(-50%);box-shadow:0 5px 12px rgba(0,0,0,.35)}.robotLivePage.juniorLiveMode .manualSpeed,.robotLivePage.juniorLiveMode .keyboardHint{display:none}.robotLivePage.juniorLiveMode .manualControlSide{align-content:center}.robotLivePage.juniorLiveMode .manualControlBody{grid-template-columns:1fr .55fr}@media(max-width:580px){.robotLivePage.juniorLiveMode .manualControlBody{grid-template-columns:1fr}}
.liveTopbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 22px; background: rgba(7, 16, 27, .94); border-bottom: 1px solid #29445d; backdrop-filter: blur(12px); }
.liveTopbar > div:first-child { display: grid; gap: 2px; }
.liveTopbar strong { font-size: 1.35rem; }
.liveTopbar span { color: #8eabc1; }
.liveActions { display: flex; gap: 10px; }
.liveDashboard { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; padding: 16px; max-width: 1800px; margin: auto; }
.liveCard { min-height: 190px; padding: 14px; overflow: hidden; border: 1px solid #29445d; border-radius: 18px; background: linear-gradient(145deg, rgba(27, 51, 72, .94), rgba(13, 28, 43, .96)); box-shadow: 0 14px 35px rgba(0, 0, 0, .24); }
.liveCard[data-live-detail] { cursor: pointer; transition: border-color .18s, transform .18s, box-shadow .18s; }
.liveCard[data-live-detail]:hover,.liveCard[data-live-detail]:focus-visible { outline: none; border-color: #55c9ff; transform: translateY(-2px); box-shadow: 0 0 0 2px rgba(85,201,255,.18),0 16px 38px rgba(0,0,0,.32); }
.liveCard h2 { margin: 0 0 10px; color: #b9d9ec; font-size: 1rem; font-weight: 650; }
.primaryCameraCard { grid-column: span 2; grid-row: span 2; min-height: 420px; }
.cameraCard { grid-column: span 2; }
.liveCameraFrame { position: relative; height: calc(100% - 30px); min-height: 180px; overflow: hidden; border-radius: 13px; background: #03070b; }
.liveCameraFrame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.visionOverlay { position: absolute; inset: 12% 16%; border: 2px solid rgba(74, 224, 151, .75); border-radius: 16px; box-shadow: 0 0 20px rgba(74, 224, 151, .25); }
.visionOverlay span { position: absolute; left: 50%; bottom: 10px; width: 12px; height: 12px; border-radius: 50%; background: #4ae097; transform: translateX(-50%); }
.detectionLayer { position:absolute; inset:0; pointer-events:none; }
.detectionBox { position:absolute; border:2px solid #ff655d; border-radius:7px; box-shadow:0 0 15px rgba(255,101,93,.35); }
.detectionBox.drivable { border-color:#4ae097; box-shadow:0 0 15px rgba(74,224,151,.3); }
.detectionBox span { position:absolute; left:-2px; top:-23px; padding:2px 7px; white-space:nowrap; border-radius:5px 5px 5px 0; background:#ff655d; color:#fff; font-size:.72rem; font-weight:700; }
.detectionBox.drivable span { background:#25a96b; }
.liveDetailOverlay { position:fixed; inset:68px 0 0; z-index:20; display:grid; place-items:center; padding:16px; background:rgba(2,8,14,.82); backdrop-filter:blur(9px); }
.liveDetailPanel { width:min(1180px,96vw); height:min(740px,calc(100vh - 100px)); display:grid; grid-template-rows:auto 1fr; overflow:hidden; border:1px solid #3c6882; border-radius:20px; background:linear-gradient(145deg,#18334a,#0b1927); box-shadow:0 25px 80px rgba(0,0,0,.55); }
.liveDetailPanel > header { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; border-bottom:1px solid #294a61; }.liveDetailPanel h2{margin:0}.liveDetailContent{min-height:0;overflow:auto;padding:16px}
.detailCamera { position:relative; height:100%; min-height:420px; overflow:hidden; border-radius:14px; background:#020609; }.detailCamera img{width:100%;height:100%;object-fit:contain}.detailCamera .detectionLayer{left:50%;width:min(100%,calc(100% * 4 / 3));transform:translateX(-50%)}
.detailGrid { display:grid; grid-template-columns:minmax(300px,1.4fr) minmax(260px,1fr); gap:18px; height:100%; }.detailVisual { display:grid;place-items:center;min-height:300px;border-radius:15px;background:rgba(3,12,20,.52)}
.detailVisual canvas { width:100%; height:100%; min-height:360px; border-radius:14px; }
.detailMetrics { display:grid; align-content:start; gap:10px; }.detailMetric { display:grid; grid-template-columns:130px 1fr auto; align-items:center; gap:10px; padding:10px; border-radius:10px; background:rgba(54,91,115,.28); }.detailMetric i{height:12px;overflow:hidden;border-radius:8px;background:#243e50}.detailMetric i::after{content:"";display:block;width:var(--value,50%);height:100%;background:linear-gradient(90deg,#4acbff,#4ae097);border-radius:inherit}.detailMetric strong{color:#dff5ff}.detailMetric small{color:#8faebe}
.detailHistory { width:100%;height:200px;border-radius:12px;background:rgba(1,8,14,.65)}.recognitionList{display:flex;flex-wrap:wrap;gap:8px}.recognitionChip{padding:7px 10px;border-radius:999px;background:#693630;color:#ffb5ae}.recognitionChip.safe{background:#1f5a43;color:#9cf0c5}
@media(max-width:750px){.detailGrid{grid-template-columns:1fr}.liveDetailPanel{height:calc(100vh - 88px)}.detailCamera{min-height:300px}}
.manualControlPanel { width:min(820px,95vw); overflow:hidden; border:1px solid #3c6882; border-radius:22px; background:linear-gradient(145deg,#18334a,#0b1927); box-shadow:0 25px 80px rgba(0,0,0,.58); }
.manualControlPanel > header { display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 18px;border-bottom:1px solid #294a61}.manualControlPanel h2{margin:0}.manualControlPanel header span{color:#91adbf}
.manualControlBody { display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:34px;padding:30px; }
.manualJoystick { position:relative;width:min(390px,70vw);aspect-ratio:1;margin:auto;touch-action:none;border:4px solid #456b83;border-radius:50%;background:radial-gradient(circle,#22445c 0 9%,#183449 10% 42%,#0c1d2b 43%);box-shadow:inset 0 0 50px rgba(0,0,0,.45),0 15px 35px rgba(0,0,0,.3);user-select:none }
.manualJoystick::before,.manualJoystick::after{content:"";position:absolute;background:#3b6078;opacity:.65}.manualJoystick::before{left:50%;top:8%;bottom:8%;width:2px}.manualJoystick::after{top:50%;left:8%;right:8%;height:2px}
.manualJoystickKnob { position:absolute;left:50%;top:50%;z-index:2;width:92px;height:92px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#78e2ff,#2499c9 65%,#17617e);box-shadow:0 8px 22px rgba(0,0,0,.5),0 0 20px rgba(79,207,255,.35);transform:translate(-50%,-50%);transition:transform .08s linear }
.manualJoystick > span{position:absolute;z-index:1;color:#8eb0c4;font-weight:700;font-size:.85rem}.joyForward{left:50%;top:15px;transform:translateX(-50%)}.joyBack{left:50%;bottom:15px;transform:translateX(-50%)}.joyLeft{left:15px;top:50%;transform:translateY(-50%)}.joyRight{right:15px;top:50%;transform:translateY(-50%)}
.manualControlSide{display:grid;gap:20px;text-align:center}.manualRobotIcon{display:grid;place-items:center;width:150px;height:110px;margin:auto;border:3px solid #52768c;border-radius:28px;background:#294b60}.manualRobotIcon span{font-size:3rem;color:#55d6ff}.manualSpeed{display:grid;grid-template-columns:1fr auto;gap:8px;text-align:left}.manualSpeed input{grid-column:1/-1;width:100%;accent-color:#49c9ff}.keyboardHint{display:grid;justify-content:center;gap:5px}.keyboardHint div{display:flex;gap:5px}.keyboardHint kbd{display:grid;place-items:center;width:42px;height:38px;border:1px solid #6b8799;border-radius:7px;background:#243d4d;box-shadow:0 3px 0 #10212c;color:#dff5ff;font:700 1rem sans-serif}.manualStop{min-height:55px;font-size:1.1rem;font-weight:800}
@media(max-width:700px){.manualControlBody{grid-template-columns:1fr;padding:18px}.manualJoystick{width:min(310px,78vw)}.manualControlSide{grid-template-columns:1fr 1fr}.manualStop,.manualSpeed{grid-column:1/-1}.keyboardHint{display:none}}
.radarCard canvas { width: 100%; height: 250px; border-radius: 50% 50% 12px 12px; background: radial-gradient(circle, rgba(50, 109, 139, .25), rgba(4, 13, 20, .8)); }
.radarLegend { display: flex; justify-content: center; gap: 8px; color: #8eabc1; font-size: .8rem; }
.robotDot,.obstacleDot { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: #55c9ff; }.obstacleDot { margin-left: 8px; background: #ff735f; }
.orientationCard { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }.orientationCard h2 { grid-column: 1/-1; }
.compass { position: relative; width: 125px; aspect-ratio: 1; margin: auto; border: 5px solid #45657b; border-radius: 50%; background: repeating-conic-gradient(from -2deg, #45657b 0 2deg, transparent 2deg 15deg), radial-gradient(circle, #18344a 0 55%, #0b1926 56%); }
.compassNeedle { position: absolute; left: calc(50% - 3px); top: 15%; width: 6px; height: 43%; border-radius: 5px; background: linear-gradient(#ff655b 0 55%, #dcebf4 56%); transform-origin: 50% 82%; transition: transform .25s linear; }
.compass .north { position: absolute; left: 50%; top: 3px; color: #ff8d85; font-weight: 800; transform: translateX(-50%); }
.tiltPlate { position: relative; width: 125px; aspect-ratio: 1; margin: auto; border: 2px solid #45657b; border-radius: 50%; background: radial-gradient(circle, transparent 0 8%, #27465c 9% 10%, transparent 11% 38%, #27465c 39% 40%, transparent 41%); }
.tiltPlate::before,.tiltPlate::after { content:""; position:absolute; background:#34566d; }.tiltPlate::before{left:50%;top:8%;bottom:8%;width:1px}.tiltPlate::after{top:50%;left:8%;right:8%;height:1px}
.tiltBubble { position: absolute; left: calc(50% - 10px); top: calc(50% - 10px); z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: #58d5ff; box-shadow: 0 0 18px #58d5ff; transition: transform .25s; }
.distanceCard { text-align: center; }.distanceGraphic { position: relative; display: flex; align-items: center; justify-content: center; height: 125px; }.distanceRobot { z-index: 1; font-size: 2.3rem; }
.distanceGraphic i { position: absolute; left: 50%; bottom: 10px; width: calc(38px + var(--ring, 0) * 24px); height: calc(20px + var(--ring, 0) * 13px); border: 3px solid #4acbff; border-bottom: 0; border-radius: 100px 100px 0 0; transform: translateX(-50%); opacity: calc(.9 - var(--ring, 0) * .12); }
.distanceGraphic i:nth-of-type(1){--ring:0}.distanceGraphic i:nth-of-type(2){--ring:1}.distanceGraphic i:nth-of-type(3){--ring:2}.distanceGraphic i:nth-of-type(4){--ring:3}.distanceGraphic i:nth-of-type(5){--ring:4}
.distanceGraphic.level-near i { border-color:#ff645d; animation: distancePulse .55s infinite alternate; }.distanceGraphic.level-mid i { border-color:#ffbe4b; }.distanceGraphic.level-far i { border-color:#4ae097; }
@keyframes distancePulse { to { opacity:.25; transform:translateX(-50%) scale(1.06); } }
.driveVisual { display:flex; align-items:center; justify-content:center; gap:8px; height:135px; }.liveWheel { width:32px; height:110px; overflow:hidden; border:4px solid #0a0d10; border-radius:13px; background:repeating-linear-gradient(0deg,#263543 0 8px,#6a8798 9px 13px); }.liveWheel.moving { animation: wheelMove .32s linear infinite; }.liveWheel.reverse { animation-direction:reverse; }
@keyframes wheelMove { to { background-position-y:26px; } }.robotChassis { display:grid; place-items:center; width:115px; height:95px; border:3px solid #4f7187; border-radius:24px; background:#27465b; }.robotChassis span { font-size:2rem; color:#55d6ff; }
.batteryCard { text-align:center; }.batteryShell { position:relative; width:105px; height:160px; margin:5px auto 10px; padding:7px; display:flex; align-items:flex-end; border:5px solid #7a97a9; border-radius:15px; }.batteryShell::before { content:""; position:absolute; top:-13px; left:33%; width:34%; height:9px; border-radius:5px 5px 0 0; background:#7a97a9; }.batteryFill { width:100%; height:60%; border-radius:7px; background:linear-gradient(#61e9a2,#20b875); transition:height .35s; }
.systemLights { display:grid; grid-template-columns:1fr 1fr; gap:18px 10px; padding:25px 5px; }.systemLights span { display:flex; align-items:center; gap:9px; color:#9ab5c8; }.systemLights i { width:16px; height:16px; border-radius:50%; background:#607383; box-shadow:0 0 0 4px rgba(96,115,131,.15); }.systemLights .ok i { background:#46dc91; box-shadow:0 0 14px #46dc91; }.systemLights .warn i { background:#ffb94d; box-shadow:0 0 14px #ffb94d; }
@media (max-width: 1100px) { .liveDashboard{grid-template-columns:repeat(2,minmax(220px,1fr))}.primaryCameraCard{grid-column:span 2}.cameraCard{grid-column:span 2} }
@media (max-width: 650px) { .liveDashboard{grid-template-columns:1fr}.primaryCameraCard,.cameraCard{grid-column:span 1}.liveTopbar{align-items:flex-start;flex-direction:column}.liveActions{width:100%}.liveActions button{flex:1} }

@media (min-width: 1101px) {
  .robotLivePage { overflow: hidden; }
  .liveTopbar { height: 68px; box-sizing: border-box; padding: 9px 18px; }
  .liveDashboard {
    height: calc(100vh - 68px);
    box-sizing: border-box;
    grid-template-rows: minmax(0, .9fr) minmax(0, 1.05fr) minmax(155px, .82fr);
    gap: 10px;
    padding: 10px;
  }
  .liveCard { min-height: 0; padding: 10px; border-radius: 14px; }
  .liveCard h2 { margin-bottom: 6px; font-size: .92rem; }
  .primaryCameraCard { min-height: 0; }
  .liveCameraFrame { min-height: 0; }
  .radarCard canvas { height: calc(100% - 38px); min-height: 130px; }
  .orientationCard { padding-inline: 8px; }
  .compass,.tiltPlate { width: min(108px, 42%); }
  .distanceGraphic { height: 105px; }
  .driveVisual { height: 108px; }
  .liveWheel { height: 88px; }
  .robotChassis { height: 78px; }
  .batteryShell { width: 70px; height: 105px; }
  .systemLights { padding: 18px 4px; gap: 14px 8px; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
}

button:hover {
  border-color: #aeb9af;
}

button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

button.danger {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

button.active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}

.topbar {
  min-height: 72px;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.brand {
  display: flex;
  align-items: center;
  flex: 1 1 210px;
  gap: 12px;
  min-width: 0;
}

.brand strong,
.brand span {
  display: block;
}

.brand span:not(.mark) {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #1f2b24;
  color: #fff;
  font-weight: 800;
}

.modeSwitch,
.courseSwitch {
  display: grid;
  flex: 0 1 auto;
  padding: 4px;
  border: 1px solid var(--line);
  background: #eef2ee;
  border-radius: 10px;
}

.modeSwitch {
  grid-template-columns: 1fr 1fr;
}

.courseSwitch {
  grid-template-columns: repeat(2, max-content);
}

.modeSwitch button,
.courseSwitch button {
  border: 0;
  background: transparent;
  min-width: 96px;
  padding: 0 10px;
  white-space: nowrap;
}

.modeSwitch button.active,
.courseSwitch button.active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(25, 34, 29, 0.12);
}

.projectActions {
  display: grid;
  grid-template-columns: repeat(3, 150px);
  flex: 0 1 auto;
  gap: 6px;
  min-width: 0;
}

.projectActions input,
.projectActions select {
  min-width: 0;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 10px;
}

.projectActions button {
  padding: 0 10px;
  white-space: nowrap;
}
.projectMenu{position:relative;z-index:30}.projectMenu summary{height:36px;display:flex;align-items:center;justify-content:center;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:#172f43;color:#eaf5fc;cursor:pointer;list-style:none;white-space:nowrap}.projectMenu summary::-webkit-details-marker{display:none}.projectMenu summary::after{content:"▾";margin-left:8px;color:#75cfee}.projectMenu[open] summary{border-color:#55c9ff}.projectMenu[open] summary::after{content:"▴"}.projectMenuItems{position:absolute;right:0;top:43px;width:260px;display:grid;gap:7px;padding:10px;border:1px solid #35566c;border-radius:12px;background:#0d2232;box-shadow:0 18px 45px rgba(0,0,0,.45)}.projectMenuItems button{width:100%;min-height:38px;text-align:left}.projectMenuItems .danger{margin-top:5px}
@media(max-width:980px){.projectMenuItems{left:0;right:auto;width:min(260px,calc(100vw - 36px))}.projectMenu summary{width:100%}}

.robotActions {
  display: flex;
  flex: 1 1 280px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.workspace {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  padding: 12px;
  gap: 12px;
}

body[data-course-mode="junior"] {
  --bg: #f7fbff;
  --panel: #ffffff;
  --line: #cfe0f2;
  --green: #22a06b;
  --blue: #2c7be5;
  --yellow: #ffd15c;
  --shadow: 0 12px 30px rgba(44, 123, 229, 0.12);
}

body[data-course-mode="junior"] .panel,
body[data-course-mode="junior"] button,
body[data-course-mode="junior"] input,
body[data-course-mode="junior"] textarea {
  border-radius: 12px;
}

body[data-course-mode="junior"] .panelHead h2 {
  font-size: 18px;
}

body[data-course-mode="junior"] .blockCard,
body[data-course-mode="junior"] .programBlock {
  padding: 9px 10px;
  border-left-width: 7px;
}

body[data-course-mode="junior"] .blockCard strong,
body[data-course-mode="junior"] .programBlock strong {
  font-size: 14px;
}

body[data-course-mode="advanced"] {
  --bg: #f3f5f6;
  --panel: #ffffff;
  --line: #d6dde1;
  --green: #247a5a;
  --blue: #245f92;
  --yellow: #e4b84f;
  --shadow: 0 8px 20px rgba(32, 42, 49, 0.08);
}

body[data-course-mode="advanced"] .panel {
  border-radius: 6px;
}

.trainingBox {
  display: none;
}

body[data-course-mode="junior"] .logsPanel,
body[data-course-mode="junior"] .splitBottom {
  display: none;
}

.programGrid {
  display: grid;
  grid-template-columns: minmax(210px, 23%) 8px minmax(320px, 1fr) 8px minmax(260px, 28%);
  grid-template-rows: minmax(360px, 1fr) 8px minmax(110px, 20%);
}

.simulationGrid {
  display: grid;
  grid-template-columns: minmax(230px, 24%) 8px minmax(340px, 1fr) 8px minmax(260px, 28%);
  grid-template-rows: minmax(360px, 1fr) 8px minmax(110px, 20%);
}

body[data-course-mode="junior"] .programGrid,
body[data-course-mode="junior"] .simulationGrid {
  grid-template-rows: minmax(360px, 1fr);
}

.panel {
  min-width: 0;
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.splitter {
  position: relative;
  border-radius: 8px;
  background: transparent;
}

.splitter::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 8px;
  background: #cbd4cc;
  opacity: 0;
  transition: opacity 120ms ease;
}

.splitter:hover::after,
.splitter.active::after {
  opacity: 1;
}

.splitter.vertical {
  grid-row: 1;
  cursor: col-resize;
}

.splitter.horizontal {
  grid-column: 1 / -1;
  cursor: row-resize;
}

.splitLeft {
  grid-column: 2;
}

.splitRight {
  grid-column: 4;
}

.splitBottom {
  grid-row: 2;
}

.blockPanel,
.robotPanel {
  grid-column: 1;
  grid-row: 1;
}

.blockPanel {
  display: grid;
  grid-template-rows: 48px auto minmax(0, 1fr);
}

.robotPanel {
  display: grid;
  grid-template-rows: auto auto 190px minmax(0, 1fr);
}

.canvasPanel,
.simPanel {
  grid-column: 3;
  grid-row: 1;
}

.simPanel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.chatPanel {
  grid-column: 5;
  grid-row: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
}

.simulationChatPanel {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.sideTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 10px 0;
}

.sideTabs button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.sideTabs button.active {
  background: #17211b;
  border-color: #17211b;
  color: #fff;
}

.sidePane {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.sensorPane {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  overflow: auto;
}

.logsPanel {
  grid-column: 1 / -1;
  grid-row: 3;
}

.panelHead {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.panelHead h2 {
  margin: 0;
  font-size: 16px;
}

.panelButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panelButtons button {
  min-height: 32px;
}

.simToolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.toolGroup {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #b9c9bd;
  border-radius: 8px;
  background: #eef5ef;
}

.toolGroup button {
  min-height: 34px;
  padding: 0 10px;
  border-color: #b7c7bd;
  background: #fff;
  color: #17211b;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(25, 34, 29, 0.08);
}

.toolGroup button.active {
  background: #dff0e6;
  border-color: var(--green);
  color: #123021;
}

#deleteWorldItemBtn {
  color: #9b2f2f;
}

#zoomOutBtn,
#zoomInBtn {
  width: 34px;
  padding: 0;
  font-size: 18px;
}

#runSimulationBtn {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.simToolbar .primary {
  min-width: 68px;
}

.simPanel .panelHead {
  height: auto;
  min-height: 48px;
  align-items: flex-start;
}

.simPanel .simulationStage {
  height: auto;
  min-height: 0;
}

.stack,
.componentList {
  height: calc(100% - 48px);
  overflow: auto;
  padding: 10px;
}

.libraryTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 10px;
}

.libraryTabs button {
  min-height: 34px;
}

.libraryTabs button.active {
  background: #e5f0e9;
}

#blockLibrary,
#variableLibrary {
  min-height: 0;
  height: auto;
}

.blockCard,
.programBlock,
.componentCard,
.variableCard,
.variableCreate {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 10px;
  margin-bottom: 6px;
}

.blockCard {
  position: relative;
  cursor: grab;
}

.deleteLibraryBlock {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 26px;
  min-height: 26px;
  padding: 0;
  color: var(--red);
}

.blockCard strong {
  padding-right: 30px;
}

.blockCard strong,
.programBlock strong,
.componentCard strong {
  display: block;
  font-size: 13px;
}

.blockCard span,
.programBlock span,
.componentCard span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.25;
}

.blockCard span {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blockCard.motor,
.programBlock.motor {
  border-left: 6px solid var(--green);
}

.blockCard.camera,
.programBlock.camera {
  border-left: 6px solid var(--blue);
}

.blockCard.sensor,
.programBlock.sensor {
  border-left: 6px solid #0f9f8f;
}

.blockCard.output,
.programBlock.output {
  border-left: 6px solid #d88428;
}

.blockCard.time,
.programBlock.time {
  border-left: 6px solid var(--yellow);
}

.blockCard.logic,
.programBlock.logic {
  border-left: 6px solid #8a63a8;
}

.blockCard.variable,
.programBlock.variable,
.variableCard {
  border-left: 6px solid #6c8b3d;
}

.dropZone {
  height: calc(100% - 48px);
  overflow: auto;
  padding: 10px;
  background:
    linear-gradient(#edf2ee 1px, transparent 1px),
    linear-gradient(90deg, #edf2ee 1px, transparent 1px);
  background-size: 28px 28px;
}

.dropZone.dragOver {
  outline: 3px solid rgba(47, 125, 87, 0.25);
  outline-offset: -8px;
}

.emptyHint {
  color: var(--muted);
  margin: 12px;
}

.programBlock {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  background: rgba(255, 255, 255, 0.96);
  cursor: grab;
}

.programBlock .blockTitle span {
  display: none;
}

.programBlock.logic .blockTitle span,
.programBlock.selectedProgramBlock .blockTitle span {
  display: block;
  font-size: 11px;
  margin-top: 1px;
}
.programBlock>.blockTitle{cursor:grab}.programBlock>.blockTitle:active{cursor:grabbing}.programBlock input,.programBlock select,.programBlock button{cursor:auto}

.programBlock:not(.selectedProgramBlock) > .blockFields,
.programBlock:not(.selectedProgramBlock) > .conditionBuilder,
.programBlock:not(.selectedProgramBlock) > .branchButtons,
.programBlock:not(.selectedProgramBlock) > .branchEditor {
  display: none;
}

.programBlock.selectedProgramBlock {
  outline: 2px solid rgba(47, 125, 87, 0.22);
  outline-offset: -2px;
}

.programBlock.dropBefore {
  outline: 3px solid rgba(47, 125, 87, 0.25);
  transform: translateY(2px);
}

.programBlock .removeBlock {
  width: 28px;
  min-height: 28px;
  padding: 0;
}

.blockTitle {
  min-width: 0;
}

.blockFields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 5px;
  margin-top: 5px;
}

.conditionBuilder {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 5px;
  padding: 6px;
  border: 1px solid #d7c6e2;
  border-radius: 8px;
  background: #fbf7fd;
}

.conditionPreview {
  grid-column: 1 / -1;
  margin: 0;
  padding: 5px 7px;
  border-radius: 8px;
  background: #fff;
  color: #4f3d61;
  font-size: 12px;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
}

.field input,
.field select,
.variableCard input,
.variableCreate input {
  width: 100%;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
}

.valueField {
  min-height: 28px;
  border-radius: 8px;
}

.variableChip {
  width: 100%;
  min-height: 30px;
  background: #eef5df;
  border-color: #b5c98d;
  color: #30411c;
}

.nestedDropZone {
  grid-column: 1 / -1;
  min-height: 38px;
  margin-top: 5px;
  padding: 5px 7px;
  border-radius: 8px;
  border: 1px dashed #bda8ce;
  background: #faf7fc;
}

.nestedDropZone.dragOver {
  outline: 3px solid rgba(138, 99, 168, 0.2);
}

.nestedDropZone .programBlock {
  padding: 6px 8px;
  margin-bottom: 5px;
}

.nestedDropZone .blockFields {
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 4px;
  margin-top: 4px;
}

.nestedDropZone .field {
  font-size: 10px;
}

.nestedDropZone .field input,
.nestedDropZone .field select {
  min-height: 26px;
}

.nestedDropZone .programBlock .removeBlock {
  width: 24px;
  min-height: 24px;
}

.variableCard {
  position:relative;
  cursor: grab;
}
.deleteVariableBtn{position:absolute;right:8px;top:8px;width:28px;min-height:28px;padding:0;border-color:#74434b;background:#3b2530;color:#ff9d98;font-size:19px;line-height:1}

.variableCard label,
.variableCard span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.variableCreate {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chatLog {
  overflow: auto;
  padding: 12px;
}

.message {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  line-height: 1.4;
  font-size: 14px;
}

.message.user {
  margin-left: auto;
  background: #e5f0e9;
}

.message.ai {
  background: #f0f3f6;
}

.chatMode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 10px 0;
}

.chatMode button {
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  color: var(--muted);
}

.chatMode button.active {
  background: #17211b;
  border-color: #17211b;
  color: #fff;
}

.chatInput {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.chatInput input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
}

.trainingBox {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #f8faf8;
}

.trainingActions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.trainingBox textarea {
  width: 100%;
  resize: vertical;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
}

.trainingBox span {
  color: var(--muted);
  font-size: 12px;
}

.sensorToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cameraView {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111a16;
  overflow: hidden;
}

.cameraScene {
  position: relative;
  height: 100%;
  min-height: 180px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 100%, rgba(61, 151, 97, 0.25), transparent 58%),
    #121c17;
  background-size: 24px 24px, 24px 24px, auto, auto;
}

.cameraScene::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72%;
  height: 100%;
  transform: translateX(-50%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: rgba(90, 170, 120, 0.14);
}

.cameraScene > span:not(.cameraTarget) {
  position: absolute;
  left: 12px;
  top: 10px;
  color: #dce8df;
  font-size: 12px;
  z-index: 2;
}

.cameraTarget {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 52px;
  padding: 5px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 12px;
  text-align: center;
  z-index: 3;
}

.cameraTarget.obstacle {
  background: rgba(211, 107, 87, 0.82);
}

.cameraTarget.line {
  background: rgba(34, 34, 34, 0.86);
}

.sensorReadouts {
  display: grid;
  gap: 8px;
}

.sensorReadouts article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.sensorReadouts strong,
.sensorReadouts span,
.sensorReadouts b {
  display: block;
}

.sensorReadouts span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.sensorReadouts b {
  margin-top: 8px;
  color: #17211b;
  font-size: 13px;
}

.nestedLabel {
  grid-column: 1 / -1;
  margin: 6px 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.branchButtons {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.branchButtons button {
  min-height: 30px;
}

.branchEditor {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: end;
  margin-top: 6px;
}

.branchEditor > button {
  width: 28px;
  min-height: 28px;
  padding: 0;
}

.logsPanel pre {
  height: calc(100% - 48px);
  margin: 0;
  overflow: auto;
  padding: 10px 12px;
  background: #17211b;
  color: #d7e8da;
  font-size: 12px;
  line-height: 1.45;
}

.robotBuilder {
  position: relative;
  min-height: 0;
  margin: 10px;
  border: 1px dashed #b9c4ba;
  border-radius: 8px;
  background:
    linear-gradient(#e4ebe5 1px, transparent 1px),
    linear-gradient(90deg, #e4ebe5 1px, transparent 1px),
    #f7faf7;
  background-size: 24px 24px;
  overflow: hidden;
}

.robotBody {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(96px, calc(100% - 20px));
  height: min(126px, calc(100% - 20px));
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 2px solid #2c3430;
  background: #ffffff;
  color: var(--muted);
  box-shadow: 0 8px 18px rgba(25, 34, 29, 0.10);
}

.robotBody::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 34px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--green);
}

.mountedComponent {
  position: absolute;
  box-sizing: border-box;
  min-width: 18px;
  min-height: 18px;
  border-radius: 8px;
  background: #e6f0ff;
  border: 1px solid #9eb8d8;
  display: grid;
  place-items: center;
  padding: 5px;
  font-size: 12px;
  line-height: 1.05;
  text-align: center;
  cursor: move;
  transform-origin: center;
  box-shadow: 0 4px 8px rgba(25, 34, 29, 0.12);
  overflow: visible;
}

.componentLabel {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.directionArrow {
  position: absolute;
  left: 50%;
  top: -9px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid #1f2b24;
  pointer-events: none;
}

.axisMarker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130%;
  height: 3px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #1f2b24;
  pointer-events: none;
}

.simComponent .directionArrow {
  top: -7px;
  border-left-width: 4px;
  border-right-width: 4px;
  border-bottom-width: 7px;
}

.mountedComponent.sensor,
.simComponent.sensor {
  border-color: #8ea8c8;
  background: #e6f0ff;
}

.mountedComponent.actuator,
.simComponent.actuator {
  border-color: #85b58e;
  background: #e5f3e8;
}

.mountedComponent.output,
.simComponent.output {
  border-color: #d6a05a;
  background: #fff0d8;
}

.mountedComponent.structure,
.simComponent.structure {
  border-color: #9ca4ae;
  background: #eceff3;
}

.mountedComponent.wheel,
.simComponent.wheel {
  border-radius: 50%;
  border-color: #1f2b24;
  background:
    radial-gradient(circle, #6f7782 0 34%, transparent 36%),
    repeating-conic-gradient(#2d3439 0 18deg, #151a1d 18deg 36deg);
  color: #fff;
}

.mountedComponent.wheel .componentLabel,
.simComponent.wheel .componentLabel {
  font-size: 9px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.mountedComponent.motor,
.simComponent.motor {
  background: #e5f3e8;
}

.mountedComponent.selected {
  outline: 3px solid rgba(47, 109, 155, 0.25);
  z-index: 3;
}

.removeMounted {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 22px;
  height: 22px;
  border: 1px solid #b84234;
  border-radius: 50%;
  background: #fff;
  color: #b84234;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  z-index: 6;
}

.removeMounted:hover {
  background: #fff0ee;
}

.inspector {
  margin: 0 10px 10px;
  max-height: 190px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.inspector strong,
.inspector span {
  display: block;
}

.inspector span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.inspectorActions {
  margin-top: 8px;
}

.inspectorActions button {
  width: 100%;
}

.inspectorField {
  display: grid;
  grid-template-columns: 72px 1fr 32px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.inspectorField input {
  width: 100%;
}

.componentList {
  min-height: 0;
  height: auto;
}

.componentCard {
  cursor: grab;
}

.componentCard small {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.componentCard.sensor {
  border-left: 6px solid var(--blue);
}

.componentCard.actuator {
  border-left: 6px solid var(--green);
}

.componentCard.output {
  border-left: 6px solid #d88428;
}

.componentCard.structure {
  border-left: 6px solid #6f7782;
}

.simulationStage {
  position: relative;
  height: calc(100% - 48px);
  overflow: hidden;
  background: #edf3ee;
  cursor: crosshair;
}
.simulationStage.panning{cursor:grabbing;user-select:none}.simulationStage.panning *{pointer-events:none}

.simulationWorld {
  position: absolute;
  left: -70%;
  top: -70%;
  width: 240%;
  height: 240%;
  transform-origin: center;
  transition: transform 160ms ease;
  background:
    linear-gradient(#d8e0d9 1px, transparent 1px),
    linear-gradient(90deg, #d8e0d9 1px, transparent 1px);
  background-size: 36px 36px;
}

.simRobot {
  position: absolute;
  left: 48%;
  top: 58%;
  width: 96px;
  height: 126px;
  border: 2px solid #1f2b24;
  border-radius: 8px;
  background: #fff;
  transition: transform 900ms linear, left 900ms linear, top 900ms linear;
  transform: rotate(0deg);
  box-shadow: 0 6px 16px rgba(25, 34, 29, 0.16);
}

.simRobot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 34px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--green);
}

.lineTrack {
  position: absolute;
  left: 36%;
  right: 36%;
  top: 68%;
  bottom: auto;
  height: 12px;
  border-radius: 999px;
  background: #222;
}

.simObstacle {
  position: absolute;
  border-radius: 8px;
  background: #d36b57;
  border: 1px solid #9e4638;
  box-shadow: 0 10px 22px rgba(80, 30, 20, 0.16);
  cursor: move;
  touch-action: none;
}

.roomLine {
  position: absolute;
  height: 5px;
  border-radius: 999px;
  background: #45514a;
  transform-origin: left center;
  cursor: pointer;
}

.roomLine.preview {
  height: 4px;
  background: #2f6d9b;
  opacity: 0.78;
  pointer-events: none;
  z-index: 4;
}

.roomLine.selected,
.simObstacle.selected {
  outline: 3px solid rgba(47, 109, 155, 0.35);
  outline-offset: 3px;
  z-index: 5;
}

.roomLine.selected {
  background: #2f6d9b;
}

.simComponent {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid #8ea8c8;
  background: #e6f0ff;
  font-size: 9px;
  line-height: 1;
  text-align: center;
  transform-origin: center;
  overflow: visible;
  z-index: 3;
}

.simComponent .componentLabel {
  font-size: 8px;
}

.simComponent .axisMarker {
  height: 2px;
}

.sensorCone {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 42px;
  height: 52px;
  transform: translateX(-50%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: rgba(47, 109, 155, 0.20);
  border-top: 1px solid rgba(47, 109, 155, 0.32);
  pointer-events: none;
  z-index: 1;
}

.sensorCone.distance {
  width: 30px;
  height: 96px;
  background: rgba(47, 125, 87, 0.24);
}

.sensorCone.line {
  width: 30px;
  height: 22px;
  background: rgba(34, 34, 34, 0.20);
}

.sensorCone.camera {
  width: 54px;
  height: 64px;
  background: rgba(47, 109, 155, 0.22);
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .topbar {
    height: auto;
    grid-template-columns: 1fr;
  }

  .robotActions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .projectActions {
    grid-template-columns: 1fr 1fr;
  }

  .projectActions input,
  .projectActions select,
  .projectActions button {
    width: 100%;
  }

  .robotActions button {
    flex: 1 1 150px;
  }

  .workspace {
    height: auto;
  }

  .programGrid,
  .simulationGrid {
    display: block;
  }

  .panel {
    height: 420px;
    margin-bottom: 12px;
  }

  .splitter {
    display: none;
  }

  .logsPanel {
    height: 180px;
  }
}

/* Abschließende Theme-Regeln gewinnen gegen die kursabhängigen Altfarben. */
body,body[data-course-mode="junior"],body[data-course-mode="advanced"]{--bg:#08131f;--panel:#102438;--line:#29465d;--text:#eaf5fc;--muted:#91adbf;--green:#28b97b;--blue:#49bce9;--red:#c94e4a;--yellow:#e6b94e;--shadow:0 14px 34px rgba(0,0,0,.28)}
body{background:radial-gradient(circle at 50% -20%,#173650 0,#0b1a28 42%,#07111b 100%);color:var(--text)}
.topbar{border-color:#29445d;background:rgba(7,16,27,.95);box-shadow:0 8px 26px rgba(0,0,0,.25)}
.panel{border-color:#29445d;background:linear-gradient(145deg,rgba(22,47,67,.97),rgba(11,27,41,.98));box-shadow:var(--shadow)}
.panelHead{border-color:#29445d;background:rgba(8,22,34,.72)}.panelHead h2{color:#c9e8f7}
button,.projectActions input,.projectActions select,.field input,.field select,.variableCard input,.variableCreate input,.chatInput input,.trainingBox textarea,.inspectorField input{border-color:#35566c;background:#172f43;color:#eaf5fc}
.modeSwitch,.courseSwitch,.toolGroup{border-color:#294a61;background:#0c1d2b}
.modeSwitch button.active,.courseSwitch button.active,.libraryTabs button.active,.sideTabs button.active,.chatMode button.active{border-color:#47748e;background:#244a62;color:#eaf8ff}
.toolGroup button,.sideTabs button,.chatMode button{border-color:#35566c;background:#172f43;color:#b8cedb}
.blockCard,.programBlock,.componentCard,.variableCard,.variableCreate{border-color:#35536a;background:linear-gradient(145deg,#1c3a50,#122b3e);color:#eff9ff;box-shadow:0 5px 14px rgba(0,0,0,.16)}
.blockCard span,.programBlock span,.componentCard span,.componentCard small,.field,.variableCard label,.variableCard span,.inspector span{color:#94afc0}
.dropZone{background-color:#0b1c2a;background-image:linear-gradient(rgba(65,104,129,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(65,104,129,.18) 1px,transparent 1px)}
.conditionBuilder,.nestedDropZone,.branchEditor{border-color:#5a4770;background:rgba(38,26,52,.56)}.conditionPreview{background:#271f36;color:#d9bdf0}
.message.user{background:#1b5548;color:#e7fff6}.message.ai{border:1px solid #315169;background:#193247;color:#e7f5fc}
.trainingBox,.inspector,.sensorReadouts article{border-color:#29445d;background:rgba(9,25,38,.72)}
.sensorReadouts b,.sensorReadouts strong{color:#eaf7fd}.logsPanel pre{background:#050e16;color:#9fe5c3}
.robotBuilder,.simulationStage{border-color:#29445d;background:#091926}.simulationWorld{background-color:#102838;background-image:linear-gradient(rgba(89,137,164,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(89,137,164,.12) 1px,transparent 1px)}

/* Kamera direkt neben dem Joystick. */
.manualControlPanel{width:min(1080px,96vw);max-height:calc(100vh - 96px);overflow:auto}
.manualControlBody{grid-template-columns:minmax(0,1.45fr) minmax(190px,.55fr);gap:24px;padding:24px}
.manualViewColumn{display:grid;grid-template-columns:minmax(230px,.9fr) minmax(300px,1.1fr);align-items:center;gap:20px}
.manualCameraFrame{position:relative;min-width:0;aspect-ratio:4/3;overflow:hidden;border:2px solid #456b83;border-radius:18px;background:#02070b;box-shadow:0 12px 28px rgba(0,0,0,.32)}
.manualCameraFrame img{width:100%;height:100%;display:block;object-fit:cover}
.manualCameraFrame span{position:absolute;left:10px;bottom:10px;padding:5px 9px;border-radius:8px;background:rgba(5,16,25,.78);color:#dff5ff;font-size:.82rem;font-weight:700}
.manualViewColumn .manualJoystick{width:min(360px,32vw)}
.robotLivePage.juniorLiveMode .manualControlBody{grid-template-columns:minmax(0,1fr) minmax(170px,.42fr)}
@media(max-width:850px){.manualControlBody,.robotLivePage.juniorLiveMode .manualControlBody{grid-template-columns:1fr}.manualViewColumn{grid-template-columns:1fr 1fr}.manualViewColumn .manualJoystick{width:min(310px,42vw)}.manualControlSide{grid-template-columns:1fr 1fr}.manualStop,.manualSpeed{grid-column:1/-1}}
@media(max-width:580px){.manualViewColumn{grid-template-columns:1fr}.manualCameraFrame{max-height:30vh}.manualViewColumn .manualJoystick{width:min(300px,78vw)}}

/* Responsive Reparaturen für Programmierung und Simulator. */
.hidden{display:none!important}
.chatMode button{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:980px){.robotPanel{height:680px!important}.simPanel{height:600px!important}.chatPanel{height:520px!important}.logsPanel{height:180px!important}.componentList{min-height:0}.simToolbar{justify-content:flex-end}}
@media(max-width:520px){.simToolbar{justify-content:flex-start}.toolGroup button{padding-inline:7px;font-size:12px}.chatMode button{font-size:12px}}

/* Bildliche Lidar-Ausgabe im Simulator. */
.lidarSensorReadout{display:grid!important;place-items:center;gap:8px;text-align:center}
.lidarMiniRadar{position:relative;width:118px;height:118px;border:1px solid #3e718c;border-radius:50%;background:radial-gradient(circle,rgba(67,142,178,.2) 0 2%,transparent 3% 30%,rgba(67,142,178,.28) 31% 32%,transparent 33% 62%,rgba(67,142,178,.28) 63% 64%,rgba(3,16,25,.75) 65%)}
.lidarMiniRadar::before,.lidarMiniRadar::after{content:"";position:absolute;background:#31566d}.lidarMiniRadar::before{left:50%;top:7%;bottom:7%;width:1px}.lidarMiniRadar::after{top:50%;left:7%;right:7%;height:1px}.lidarMiniRadar em{position:absolute;left:50%;top:50%;z-index:2;font-style:normal;transform:translate(-50%,-50%)}
.lidarMiniPoint{position:absolute;left:calc(50% - 5px);top:calc(50% - 5px);z-index:3;width:10px;height:10px;border-radius:50%;background:#ff6e61;box-shadow:0 0 10px #ff6e61}
.mountedComponent.wheel.paired,.simComponent.wheel.paired{border-color:#4ae097;box-shadow:0 0 0 3px rgba(74,224,151,.22),0 5px 14px rgba(0,0,0,.28)}.mountedComponent.wheel.paired::after{content:"✓";position:absolute;right:-7px;top:-9px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#27b978;color:#fff;font-size:12px;font-weight:900}
.motorSnapPoint{position:absolute;top:50%;z-index:5;width:13px;height:13px;border:3px solid #dff8ff;border-radius:50%;background:#49cfff;box-shadow:0 0 0 4px rgba(73,207,255,.18),0 0 14px #49cfff;transform:translateY(-50%)}.motorSnapPoint.left{left:-24px}.motorSnapPoint.right{right:-24px}.simComponent .motorSnapPoint{width:9px;height:9px;border-width:2px}.simComponent .motorSnapPoint.left{left:-18px}.simComponent .motorSnapPoint.right{right:-18px}
.drivePivotMarker{position:absolute;z-index:20;width:18px;height:18px;border:3px solid #fff;border-radius:50%;background:#ffbd4a;box-shadow:0 0 0 5px rgba(255,189,74,.2),0 0 15px #ffbd4a;transform:translate(-50%,-50%);pointer-events:none}.drivePivotMarker::before,.drivePivotMarker::after{content:"";position:absolute;background:#6a4708}.drivePivotMarker::before{left:50%;top:-5px;bottom:-5px;width:1px}.drivePivotMarker::after{top:50%;left:-5px;right:-5px;height:1px}.drivePivotMarker.compact{width:12px;height:12px;border-width:2px}
/* Blockbasierte Kamera-Werkstatt. */
.cameraTrainerLaunch{flex:0 0 auto;border-color:#3a7a9b!important;background:linear-gradient(145deg,#173d55,#102b3d)!important;color:#dff7ff!important;font-weight:800;box-shadow:0 6px 18px rgba(12,74,105,.22)}
body[data-course-mode="junior"] .cameraTrainerLaunch{display:none}
.cameraTrainerOverlay{position:fixed;inset:0;z-index:900;padding:18px;background:rgba(2,9,15,.88);backdrop-filter:blur(8px);overflow:auto;color:#eaf5fc}
.cameraTrainerPage{min-height:calc(100vh - 36px);max-width:1500px;margin:auto;padding:22px;border:1px solid #31556e;border-radius:22px;background:linear-gradient(145deg,#10283b,#081722);box-shadow:0 26px 80px rgba(0,0,0,.55)}
.cameraTrainerHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.cameraTrainerHeader span{color:#66d4ff;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.cameraTrainerHeader h1{margin:4px 0;font-size:clamp(1.5rem,3vw,2.4rem)}.cameraTrainerHeader p{margin:0;color:#9db9ca}.cameraTrainerHeader button{min-width:90px}
.cameraModelManager{display:grid;grid-template-columns:minmax(210px,1fr) minmax(150px,.7fr) auto minmax(170px,.8fr) auto auto;gap:9px;align-items:center;margin-bottom:16px;padding:12px 14px;border:1px solid #31566f;border-radius:14px;background:#0b2030}.cameraModelManager>div{display:grid;gap:3px}.cameraModelManager>div span{color:#8fabbc;font-size:.82rem}.cameraModelManager input,.cameraModelManager select{width:100%;min-height:39px;border:1px solid #355a70;border-radius:8px;background:#091a27;color:#edf9ff;padding:7px 10px}.cameraModelManager button{min-height:39px;white-space:nowrap}
.cameraTrainingFlow{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px;align-items:stretch;margin-bottom:18px}.cameraTrainingFlow>i{display:none}.cameraTrainingBlock{position:relative;display:grid;grid-template-columns:auto 1fr;gap:8px 12px;min-height:170px;padding:18px;border:2px solid #315b75;border-radius:16px;background:#102b3e}.cameraTrainingBlock>b{position:absolute;right:12px;top:10px;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#235b78;color:#aeeaff}.cameraTrainingBlock>span{font-size:2rem}.cameraTrainingBlock>div:first-of-type{padding-right:20px}.cameraTrainingBlock strong{font-size:1.05rem}.cameraTrainingBlock p{margin:5px 0;color:#9db9ca;line-height:1.35}.cameraTrainingBlock>button,.cameraLabelButtons{grid-column:1/-1;align-self:end}.cameraLabelButtons{display:grid;grid-template-columns:1fr 1fr;gap:7px}.cameraLabelButtons .active{border-color:#64dcff;background:#225978}.referenceBlock{border-color:#3c7da0}.sampleBlock{border-color:#8b6941}.trainBlock{border-color:#5a6eaa}.saveBlock{border-color:#3b8b69}
.cameraTrainerWorkspace{display:grid;grid-template-columns:minmax(440px,1.55fr) minmax(310px,.75fr);gap:18px}.cameraTrainerPreview,.cameraBlockBuilder{min-width:0;padding:16px;border:1px solid #31536a;border-radius:18px;background:#0b2030}.cameraTrainerFrame{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:14px;background:#02070b;touch-action:none;cursor:crosshair}.cameraTrainerFrame img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.cameraTrainerSelection{position:absolute;border:3px solid #ffbd4a;background:rgba(255,189,74,.15);box-shadow:0 0 0 9999px rgba(0,0,0,.12);pointer-events:none}.cameraTrainerStatus{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 4px 0;color:#a9c3d2}.cameraTrainerConnection{color:#5ce3a0}
.cameraBlockBuilder{display:grid;align-content:start;gap:12px}.cameraBlockBuilder h2{margin:0 0 4px}.cameraBlockBuilder>label{display:grid;gap:6px;color:#bcd0dc;font-weight:700}.cameraBlockBuilder input,.cameraBlockBuilder select{width:100%;min-height:42px;border:1px solid #355a70;border-radius:9px;background:#0a1925;color:#eef9ff;padding:8px 10px}.cameraThreshold{display:grid;grid-template-columns:1fr 55px;gap:10px;align-items:center}.cameraThreshold output{text-align:right;color:#66d4ff}.cameraBlockBuilder>p{margin:0;color:#8facbd}.cameraProfilesList{display:grid;gap:8px;margin-top:6px}.cameraProfilesList h3{margin:5px 0}.cameraProfilesList article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid #31536a;border-radius:10px;background:#102b3e}.cameraProfilesList article div{display:grid;gap:3px}.cameraProfilesList article span{color:#9bb6c7;font-size:.85rem}.cameraProfilesList article button{width:34px;height:34px;padding:0;color:#ff8d87}.cameraConditionSummary{grid-column:1/-1;padding:8px 10px;border-radius:8px;background:#17364a;color:#bdeaff;font-size:.86rem}
.conditionSourceMenu{position:relative;min-width:0}.conditionSourceMenu summary{display:flex;align-items:center;justify-content:space-between;min-height:30px;padding:0 9px;border:1px solid #35566c;border-radius:8px;background:#172f43;color:#eaf5fc;cursor:pointer;list-style:none}.conditionSourceMenu summary::-webkit-details-marker{display:none}.conditionSourceMenu summary::after{content:"▾";margin-left:8px;color:#6dd7ff}.conditionSourceMenu[open] summary{border-color:#57cfff}.conditionSourceMenu[open] summary::after{content:"▴"}.conditionSourceChoices{position:absolute;z-index:80;left:0;top:35px;min-width:100%;width:max-content;max-width:min(320px,70vw);display:grid;gap:4px;padding:6px;border:1px solid #3d647c;border-radius:10px;background:#0b2030;box-shadow:0 14px 35px rgba(0,0,0,.5)}.conditionSourceChoices button{min-height:34px;padding:6px 10px;text-align:left;white-space:nowrap}.conditionSourceChoices button.active{border-color:#58d4ff;background:#19435a;color:#e8faff}
.programBlock input,.programBlock textarea,[contenteditable="true"]{pointer-events:auto;user-select:text;-webkit-user-select:text}
.robotBuildActions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.robotPanel>.panelHead{height:auto;min-height:48px}.robotPanel .inspector{max-height:none;min-height:0}.robotBuildGuide{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center;margin:7px 10px 0;padding:6px 9px;border:1px solid #8a6735;border-radius:9px;background:#352819;color:#ffe5b8}.robotBuildGuide.ready{border-color:#318563;background:#173d31;color:#c9ffe5}.robotBuildGuide div{display:grid;gap:1px;min-width:0}.robotBuildGuide strong{font-size:.82rem}.robotBuildGuide small{overflow:hidden;color:inherit;opacity:.78;font-size:.7rem;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.buildGuideIcon{display:grid;place-items:center;min-width:28px;height:28px;padding:0 4px;border-radius:50%;background:rgba(255,255,255,.1);font-size:.78rem;font-weight:900}.robotBody{gap:3px}.robotBody>small{color:#708595;font-size:10px}.componentCard{position:relative;padding-bottom:42px}.componentCard .quickMountBtn{position:absolute;left:9px;right:9px;bottom:8px;min-height:28px;padding:4px 8px;border-color:#416c84;background:#17384c;color:#dff6ff;font-size:12px}.componentCard .quickMountBtn:hover{border-color:#68cdec;background:#22526c}
.componentPickerOverlay{position:fixed;inset:0;z-index:940;display:grid;place-items:center;padding:24px;background:rgba(2,9,15,.86);backdrop-filter:blur(7px)}.componentPicker{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(980px,94vw);max-height:min(780px,88vh);overflow:hidden;border:1px solid #31566f;border-radius:20px;background:linear-gradient(145deg,#10283b,#081722);box-shadow:0 28px 90px rgba(0,0,0,.6)}.componentPicker>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid #31536a}.componentPicker>header span{color:#64d5ff;font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.componentPicker>header h2{margin:3px 0 4px}.componentPicker>header p{margin:0;color:#9db8c9}.componentPicker>header button{flex:0 0 auto}.componentPicker .componentList{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));align-content:start;gap:12px;height:auto;min-height:0;overflow:auto;padding:18px}.componentPicker .componentCard{min-height:145px;cursor:default}.componentPicker .componentCard span{line-height:1.35}.componentPicker .quickMountBtn{min-height:34px}.componentPickerOverlay.hidden{display:none!important}@media(max-width:600px){.componentPickerOverlay{padding:0}.componentPicker{width:100vw;max-height:100vh;height:100vh;border-radius:0}.componentPicker>header{padding:14px;flex-direction:column}.componentPicker>header button{align-self:stretch}.componentPicker .componentList{grid-template-columns:1fr 1fr;padding:10px}.robotBuildActions{gap:4px}.robotBuildActions button{padding-inline:7px}}
.componentPicker .componentCard{cursor:pointer!important}.componentPicker .componentCard:focus-visible{outline:3px solid rgba(88,212,255,.45);border-color:#58d4ff}
.aiAuthButton{border-color:#745a9b!important;background:linear-gradient(145deg,#342752,#241b3c)!important;color:#eadcff!important;font-weight:800}.aiAuthButton.authenticated{border-color:#3a9e70!important;background:linear-gradient(145deg,#19543c,#123a2c)!important;color:#caffdf!important}.aiAuthOverlay{position:fixed;inset:0;z-index:970;display:grid;place-items:center;padding:20px;background:rgba(2,8,14,.88);backdrop-filter:blur(8px)}.aiAuthOverlay.hidden{display:none!important}.aiAuthDialog{width:min(650px,94vw);overflow:hidden;border:1px solid #3d5e74;border-radius:20px;background:linear-gradient(145deg,#10283b,#081722);box-shadow:0 28px 90px rgba(0,0,0,.62)}.aiAuthDialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid #31536a}.aiAuthDialog>header span{color:#c3a8ff;font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.aiAuthDialog>header h2{margin:4px 0}.aiAuthDialog>header p{margin:0;color:#9db8c9;line-height:1.4}.aiAuthDialog>header button{flex:0 0 auto}.aiAuthBody{display:grid;gap:12px;padding:22px}.aiAuthBody form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.aiAuthBody label{display:grid;gap:6px;color:#c7dbe6;font-weight:800}.aiAuthBody input{width:100%;min-height:42px;border:1px solid #3b6078;border-radius:9px;background:#0a1b28;color:#f1faff;padding:8px 10px}.aiAuthBody form button{min-height:42px}.aiAuthState{margin:2px 0;padding:10px 12px;border-radius:9px;background:#132f42;color:#bceaff}.aiAuthBody>small{color:#829eaf;line-height:1.4}@media(max-width:580px){.aiAuthDialog>header{flex-direction:column}.aiAuthDialog>header button{align-self:stretch}.aiAuthBody form{grid-template-columns:1fr}}
.robotPanel>.panelHead{display:grid;grid-template-columns:1fr;height:auto;min-height:48px;gap:7px;padding-block:8px}.robotBuildActions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%}.robotBuildActions button{min-width:0;padding-inline:6px;white-space:nowrap}
.robotConnectOverlay{position:fixed;inset:0;z-index:965;display:grid;place-items:center;padding:20px;background:rgba(2,8,14,.88);backdrop-filter:blur(8px)}.robotConnectOverlay.hidden{display:none!important}.robotConnectDialog{width:min(760px,95vw);max-height:92vh;overflow:auto;border:1px solid #365d75;border-radius:20px;background:linear-gradient(145deg,#10283b,#081722);box-shadow:0 28px 90px rgba(0,0,0,.62)}.robotConnectDialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid #31536a}.robotConnectDialog>header span{color:#67d8ff;font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.robotConnectDialog>header h2{margin:4px 0}.robotConnectDialog>header p{margin:0;color:#9db8c9;line-height:1.4}.robotConnectDialog>header button{flex:0 0 auto}.robotConnectBody{display:grid;gap:14px;padding:22px}.robotConnectionState{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;padding:14px;border:1px solid #765f3a;border-radius:12px;background:#33291c}.robotConnectionState i{width:18px;height:18px;border-radius:50%;background:#d69d42;box-shadow:0 0 14px rgba(214,157,66,.55)}.robotConnectionState div{display:grid;gap:3px}.robotConnectionState span{color:#b9cad4}.robotConnectionState.online{border-color:#318563;background:#153a2e}.robotConnectionState.online i{background:#4ae097;box-shadow:0 0 14px rgba(74,224,151,.65)}.robotConnectionState.offline{border-color:#9a4b48;background:#3b2022}.robotConnectionState.offline i{background:#f06b64}.robotPairingSteps{display:grid;gap:12px;padding:16px;border:1px solid #31566e;border-radius:14px;background:#0a1d2b}.pairingCode{display:grid;place-items:center;gap:4px;padding:14px;border-radius:12px;background:#142f43}.pairingCode span,.pairingCode small{color:#91adbf}.pairingCode strong{color:#7de3ff;font:900 2rem/1 monospace;letter-spacing:.16em}.robotPairingSteps ol{margin:0;padding-left:23px;color:#bed2de}.robotPairingSteps pre{margin:0;padding:14px;overflow:auto;border:1px solid #294e65;border-radius:10px;background:#040d14;color:#9fe5c3;white-space:pre-wrap;word-break:break-word}.robotConnectActions{display:flex;justify-content:space-between;gap:10px}.robotConnectActions button{flex:1}@media(max-width:580px){.robotConnectOverlay{padding:0}.robotConnectDialog{width:100vw;max-height:100vh;height:100vh;border-radius:0}.robotConnectDialog>header{flex-direction:column}.robotConnectDialog>header button{align-self:stretch}.robotConnectBody{padding:14px}.pairingCode strong{font-size:1.55rem}}
@media(max-width:1200px){.cameraModelManager{grid-template-columns:1fr 1fr 1fr}.cameraModelManager>div{grid-column:1/-1}}
@media(max-width:1050px){.cameraTrainingFlow{grid-template-columns:1fr 1fr}.cameraTrainerWorkspace{grid-template-columns:1fr}.cameraTrainerPreview{max-width:800px;width:100%;margin:auto}}
@media(max-width:620px){.cameraTrainerOverlay{padding:0}.cameraTrainerPage{min-height:100vh;padding:14px;border-radius:0}.cameraTrainingFlow,.cameraModelManager{grid-template-columns:1fr}.cameraModelManager>div{grid-column:auto}.cameraTrainerHeader{flex-direction:column}.cameraTrainerHeader button{align-self:stretch}.cameraTrainerWorkspace{grid-template-columns:1fr}.cameraTrainerPreview,.cameraBlockBuilder{padding:10px}}

/* Bildlicher Startbildschirm */
.welcomeScreen{position:fixed;inset:0;z-index:1400;display:grid;place-items:center;overflow:auto;padding:clamp(14px,3vw,34px);background:#07111b;color:#eaf5fc;isolation:isolate}.welcomeScreen.hidden{display:none!important}.welcomeScreen.leaving{opacity:0;transform:scale(1.015);transition:opacity .28s ease,transform .28s ease;pointer-events:none}.welcomeBackdrop{position:fixed;inset:0;z-index:-1;overflow:hidden;background:radial-gradient(circle at 16% 2%,rgba(57,156,207,.25),transparent 36%),radial-gradient(circle at 85% 92%,rgba(37,185,123,.18),transparent 38%),linear-gradient(145deg,#0b1c2b,#06101a 64%)}.welcomeBackdrop::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(103,189,231,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(103,189,231,.04) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(to bottom,black,transparent 88%)}.welcomeBackdrop i{position:absolute;border:1px solid rgba(95,200,246,.13);border-radius:50%;animation:welcomeFloat 9s ease-in-out infinite}.welcomeBackdrop i:nth-child(1){width:280px;height:280px;left:-90px;top:20%}.welcomeBackdrop i:nth-child(2){width:440px;height:440px;right:-160px;top:-130px;animation-delay:-3s}.welcomeBackdrop i:nth-child(3){width:190px;height:190px;right:22%;bottom:-90px;animation-delay:-6s}@keyframes welcomeFloat{50%{transform:translateY(-14px) scale(1.04);opacity:.55}}
.welcomeShell{width:min(1180px,100%);display:grid;grid-template-columns:minmax(0,.9fr) minmax(520px,1.1fr);overflow:hidden;border:1px solid #315a73;border-radius:26px;background:rgba(8,24,36,.94);box-shadow:0 35px 110px rgba(0,0,0,.62),0 0 70px rgba(56,170,222,.08)}.welcomeHeader{display:grid;grid-template-rows:auto 1fr auto;gap:26px;padding:clamp(24px,4vw,48px);border-right:1px solid #294b61;background:linear-gradient(155deg,rgba(20,54,76,.94),rgba(7,23,35,.98))}.welcomeBrand{display:flex;align-items:center;gap:11px;color:#cdefff}.welcomeBrand span{display:grid;place-items:center;width:42px;height:42px;border:1px solid #4f8ba9;border-radius:11px;background:linear-gradient(145deg,#286181,#15384e);color:#7ee1ff;font-weight:900;box-shadow:0 0 24px rgba(73,188,233,.18)}.welcomeBrand strong{font-size:.92rem;letter-spacing:.02em}.welcomeIntro{display:grid;grid-template-columns:minmax(0,1fr) 178px;align-items:center;gap:20px}.welcomeEyebrow,.welcomeChoiceTitle span,.welcomeCardCopy small{color:#64d5ff;font-size:.76rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.welcomeIntro h1{margin:7px 0 12px;font-size:clamp(2rem,4vw,3.45rem);line-height:.98;letter-spacing:-.045em}.welcomeIntro p{max-width:500px;margin:0;color:#a9c3d2;font-size:clamp(.94rem,1.3vw,1.08rem);line-height:1.55}
.welcomeRobot{position:relative;width:164px;height:205px;justify-self:end;filter:drop-shadow(0 20px 22px rgba(0,0,0,.4));animation:robotHover 3.6s ease-in-out infinite}@keyframes robotHover{50%{transform:translateY(-7px)}}.welcomeAntenna{position:absolute;left:79px;top:0;width:7px;height:28px;border-radius:8px;background:#5cb6d9}.welcomeAntenna::before{content:"";position:absolute;left:50%;top:-7px;width:15px;height:15px;border-radius:50%;background:#5ee2aa;box-shadow:0 0 18px #35d595;transform:translateX(-50%)}.welcomeRobotHead{position:absolute;left:20px;top:27px;width:126px;height:76px;border:3px solid #71c9e9;border-radius:26px 26px 21px 21px;background:linear-gradient(145deg,#245a78,#102f45);box-shadow:inset 0 -12px 20px rgba(0,0,0,.18)}.welcomeRobotHead i{position:absolute;top:24px;width:20px;height:20px;border-radius:50%;background:#7ff0ff;box-shadow:0 0 14px #57d7f2}.welcomeRobotHead i:first-child{left:26px}.welcomeRobotHead i:nth-child(2){right:26px}.welcomeRobotHead b{position:absolute;left:50%;bottom:13px;width:31px;height:7px;border-bottom:3px solid #72e3b0;border-radius:50%;transform:translateX(-50%)}.welcomeRobotBody{position:absolute;left:34px;top:111px;width:98px;height:68px;border:3px solid #477e99;border-radius:18px 18px 25px 25px;background:linear-gradient(145deg,#183f57,#0d2839)}.welcomeRobotBody span{position:absolute;inset:14px 25px;display:grid;place-items:center;border:1px solid #3f7994;border-radius:9px;background:#0b2434;color:#6fe2ff;font-size:.8rem;font-weight:900;letter-spacing:.12em}.welcomeRobotWheels i{position:absolute;top:142px;width:26px;height:54px;border:3px solid #477b94;border-radius:13px;background:repeating-linear-gradient(to bottom,#102532 0 7px,#27495c 7px 11px)}.welcomeRobotWheels i:first-child{left:10px}.welcomeRobotWheels i:last-child{right:8px}.welcomeSignal{position:absolute;right:-2px;top:12px;width:42px;height:42px}.welcomeSignal i{position:absolute;right:0;bottom:0;border:2px solid transparent;border-top-color:#58caee;border-radius:50%;transform:rotate(45deg)}.welcomeSignal i:first-child{width:16px;height:16px}.welcomeSignal i:nth-child(2){width:28px;height:28px}.welcomeSignal i:last-child{width:40px;height:40px}
.welcomeJourney{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:9px;padding:12px;border:1px solid #31536a;border-radius:16px;background:rgba(6,19,29,.72)}.welcomeJourney>div{display:grid;justify-items:center;gap:8px;min-width:0;color:#bcd2de;text-align:center}.welcomeJourney>div>strong{font-size:.76rem}.welcomeJourney>b{color:#4c8aa9;font-size:1.2rem}.welcomeJourney>div>span{position:relative;display:block;width:58px;height:42px}.journeyBlocks i{position:absolute;left:4px;width:38px;height:10px;border-radius:4px;background:#43bcea}.journeyBlocks i:nth-child(2){top:14px;left:12px;width:42px;background:#45d497}.journeyBlocks i:nth-child(3){top:28px;left:7px;width:32px;background:#e5b74b}.journeyWorld{overflow:hidden;border:1px solid #3f718b;border-radius:8px;background:#0b2a3a}.journeyWorld::before{content:"";position:absolute;left:9px;right:9px;bottom:7px;height:20px;border:2px solid #55b6d8;border-top:0;transform:perspective(25px) rotateX(12deg)}.journeyWorld i{position:absolute;left:26px;top:13px;width:9px;height:16px;border-radius:3px;background:#66dfa4;box-shadow:-8px 10px 0 -2px #355c70,8px 10px 0 -2px #355c70}.journeyRobot{border-radius:9px;background:#0b2a3a}.journeyRobot::before{content:"";position:absolute;left:14px;top:7px;width:30px;height:22px;border:2px solid #65c8e8;border-radius:9px;background:#18465f}.journeyRobot i{position:absolute;top:26px;width:10px;height:14px;border-radius:5px;background:#315d72}.journeyRobot i:first-child{left:10px}.journeyRobot i:last-child{right:10px}
.welcomeChoice{display:grid;align-content:center;gap:22px;padding:clamp(24px,3vw,42px);background:linear-gradient(160deg,rgba(7,22,34,.97),rgba(5,16,25,.99))}.welcomeChoiceTitle{display:grid;gap:4px}.welcomeChoiceTitle strong{color:#91adbf;font-size:.88rem;font-weight:600}.welcomeModeCards{display:grid;gap:15px}.welcomeModeCard{position:relative;display:grid;grid-template-columns:155px minmax(0,1fr);grid-template-rows:1fr auto;gap:0 20px;min-height:205px;padding:18px;overflow:hidden;border:1px solid #355d74;border-radius:19px;background:linear-gradient(145deg,#102c40,#0a1d2c);color:#eaf5fc;text-align:left;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.welcomeModeCard::after{content:"";position:absolute;inset:auto -45px -75px auto;width:190px;height:150px;border-radius:50%;background:var(--card-glow);filter:blur(14px);opacity:.25;pointer-events:none}.welcomeModeCard.beginner{--accent:#54dfa0;--card-glow:#35d38d}.welcomeModeCard.advanced{--accent:#61cef4;--card-glow:#42bfe9}.welcomeModeCard:hover,.welcomeModeCard:focus-visible{outline:none;transform:translateY(-4px);border-color:var(--accent);box-shadow:0 18px 38px rgba(0,0,0,.34),0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent)}.welcomeCardArt{position:relative;grid-row:1/3;width:155px;height:165px;align-self:center;overflow:hidden;border:1px solid #31566d;border-radius:15px;background:radial-gradient(circle at 50% 30%,rgba(68,177,222,.17),transparent 52%),#081a27}.welcomeCardCopy{display:grid;align-content:center;gap:5px;min-width:0}.welcomeCardCopy small{color:var(--accent)}.welcomeCardCopy>strong{font-size:1.45rem}.welcomeCardCopy>span{color:#a8bfcc;font-size:.88rem;line-height:1.42}.welcomeCardAction{display:flex;align-items:center;justify-content:space-between;align-self:end;margin-top:12px;padding-top:11px;border-top:1px solid #294c61;color:#dff7ff;font-size:.83rem;font-weight:800}.welcomeCardAction b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--accent);color:#072018;font-size:1rem}
.beginnerBlocks i{position:absolute;left:17px;width:80px;height:21px;border-radius:7px;box-shadow:0 5px 10px rgba(0,0,0,.2)}.beginnerBlocks i:first-child{top:22px;background:#42bce8}.beginnerBlocks i:nth-child(2){top:50px;left:28px;width:92px;background:#4ed694}.beginnerBlocks i:nth-child(3){top:78px;left:20px;width:70px;background:#e5b74b}.beginnerBlocks b{position:absolute;left:105px;top:90px;display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#51dfa0;color:#073122;font-size:.75rem;box-shadow:0 0 18px rgba(81,223,160,.4)}.beginnerBot{position:absolute;left:29px;bottom:13px;width:72px;height:41px;border:2px solid #65c8e8;border-radius:12px;background:#164259}.beginnerBot::before{content:"";position:absolute;left:17px;top:9px;width:8px;height:8px;border-radius:50%;background:#79eaff;box-shadow:27px 0 #79eaff}.beginnerBot i{position:absolute;top:31px;width:18px;height:24px;border-radius:8px;background:#243e4b}.beginnerBot i:first-child{left:-9px}.beginnerBot i:nth-child(2){right:-9px}.beginnerBot b{position:absolute;left:50%;top:-17px;width:3px;height:17px;background:#5ab7d7}.beginnerBot b::before{content:"";position:absolute;left:50%;top:-5px;width:8px;height:8px;border-radius:50%;background:#5ee2aa;transform:translateX(-50%)}
.advancedRadar{position:absolute;left:10px;top:11px;width:102px;height:102px;border:1px solid #39738f;border-radius:50%;background:repeating-radial-gradient(circle,transparent 0 16px,rgba(81,184,226,.13) 17px 18px),linear-gradient(90deg,transparent 49%,rgba(81,184,226,.14) 50%,transparent 51%),linear-gradient(transparent 49%,rgba(81,184,226,.14) 50%,transparent 51%)}.advancedRadar::after{content:"";position:absolute;left:50%;bottom:50%;width:2px;height:46px;background:linear-gradient(to top,#66d8ff,transparent);transform-origin:bottom;animation:radarSweep 2.8s linear infinite}@keyframes radarSweep{to{transform:rotate(360deg)}}.advancedRadar i{position:absolute;width:7px;height:7px;border-radius:50%;background:#60e7a7;box-shadow:0 0 10px #48d997}.advancedRadar i:first-child{left:27px;top:31px}.advancedRadar i:nth-child(2){right:22px;top:44px}.advancedRadar i:nth-child(3){left:47px;bottom:18px}.advancedRadar b{position:absolute;left:47px;top:47px;width:9px;height:9px;border-radius:3px;background:#78ddff}.advancedCamera{position:absolute;right:9px;bottom:12px;width:78px;height:59px;border:2px solid #4e91af;border-radius:9px;background:#0b2b3d;box-shadow:0 8px 15px rgba(0,0,0,.3)}.advancedCamera::before{content:"";position:absolute;left:8px;top:8px;width:59px;height:38px;background:linear-gradient(150deg,#183f53 35%,#2b6f69 36% 62%,#153246 63%)}.advancedCamera i{position:absolute;z-index:1;left:25px;top:15px;width:28px;height:23px;border:2px solid #f0c052}.advancedCamera b,.advancedCamera em{position:absolute;z-index:2;height:3px;border-radius:4px;background:#62d8ff}.advancedCamera b{left:-30px;bottom:7px;width:40px}.advancedCamera em{left:-20px;bottom:0;width:31px;background:#62e2a3}
@media(max-width:980px){.welcomeShell{grid-template-columns:1fr;max-width:760px}.welcomeHeader{gap:20px;border-right:0;border-bottom:1px solid #294b61}.welcomeIntro{grid-template-columns:minmax(0,1fr) 150px}.welcomeRobot{transform:scale(.86);transform-origin:center right}.welcomeModeCards{grid-template-columns:1fr 1fr}.welcomeModeCard{grid-template-columns:1fr;grid-template-rows:130px auto auto;min-height:370px}.welcomeCardArt{grid-row:auto;width:100%;height:125px}.beginnerBot{bottom:8px}.advancedCamera{bottom:8px}.welcomeCardAction{width:100%}}
@media(max-width:650px){.welcomeScreen{display:block;padding:0}.welcomeShell{min-height:100vh;border:0;border-radius:0}.welcomeHeader,.welcomeChoice{padding:22px 16px}.welcomeIntro{grid-template-columns:1fr}.welcomeRobot{display:none}.welcomeJourney{gap:4px}.welcomeJourney>div>strong{font-size:.66rem}.welcomeModeCards{grid-template-columns:1fr}.welcomeModeCard{grid-template-columns:112px minmax(0,1fr);grid-template-rows:1fr auto;min-height:172px;padding:13px;gap:0 13px}.welcomeCardArt{grid-row:1/3;width:112px;height:140px}.welcomeCardCopy>strong{font-size:1.2rem}.welcomeCardCopy>span{font-size:.78rem}.beginnerBlocks{transform:scale(.78);transform-origin:top left}.beginnerBot{transform:scale(.8);transform-origin:bottom left}.advancedRadar{transform:scale(.78);transform-origin:top left}.advancedCamera{transform:scale(.8);transform-origin:bottom right}}
.beginnerBlocks{position:absolute;inset:0;display:block}

/* Ruhigere, technischere Ausprägung des Startbildschirms */
.welcomeBackdrop i{animation:none;opacity:.62}.welcomeShell{border-radius:20px;box-shadow:0 28px 80px rgba(0,0,0,.58)}.welcomeHeader{background:linear-gradient(155deg,rgba(17,46,65,.97),rgba(7,21,32,.99))}.welcomeRobot{animation:none;filter:drop-shadow(0 15px 18px rgba(0,0,0,.34))}.welcomeAntenna::before{width:11px;height:11px;top:-4px;box-shadow:0 0 8px rgba(53,213,149,.6)}.welcomeRobotHead{border-width:2px;border-radius:18px;background:linear-gradient(145deg,#214d66,#112c3e)}.welcomeRobotHead i{top:27px;width:15px;height:12px;border-radius:4px;background:#78d7ed;box-shadow:0 0 7px rgba(87,215,242,.55)}.welcomeRobotHead i:first-child{left:29px}.welcomeRobotHead i:nth-child(2){right:29px}.welcomeRobotHead b{bottom:15px;width:28px;height:3px;border:0;border-radius:3px;background:#5ca9c2}.welcomeModeCard{border-radius:14px;background:linear-gradient(145deg,#10293a,#0a1c29)}.welcomeModeCard::after{opacity:.12;filter:blur(24px)}.welcomeModeCard:hover,.welcomeModeCard:focus-visible{transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,.3),0 0 0 2px color-mix(in srgb,var(--accent) 12%,transparent)}.welcomeCardArt{border-radius:10px;background:#091a26}.welcomeCardAction b{border-radius:7px;background:color-mix(in srgb,var(--accent) 76%,#1a4357);color:#edfaff}.beginnerBlocks i{border-radius:4px;filter:saturate(.78)}.beginnerBlocks b{border-radius:7px;background:#3ca878;box-shadow:none}.advancedRadar::after{animation-duration:4.5s;opacity:.75}
.welcomeBrand span,.mark{overflow:hidden;background:transparent}.welcomeBrand span img,.mark img{display:block;width:100%;height:100%;object-fit:contain}.brandHome{cursor:pointer;padding:4px 7px 4px 4px;border:1px solid transparent;border-radius:11px;transition:background .18s,border-color .18s}.brandHome:hover{border-color:#315a73;background:#10283a}.brandHome:focus-visible{outline:2px solid #61cef4;outline-offset:3px}.brandHome strong{color:#eaf5fc}
