.python-robot-app {
  --python-robot-line: rgba(139, 174, 225, 0.32);
  --python-robot-panel: #0a1c35;
  --python-robot-panel-soft: #102a4e;
  --python-robot-text: #ebf4ff;
  min-width: 0;
  color: var(--python-robot-text);
  color-scheme: dark;
  border: 1px solid var(--python-robot-line);
  border-radius: 14px;
  overflow: hidden;
  background: #06172d;
  box-shadow: 0 18px 38px rgba(0, 8, 24, 0.22);
}

.python-robot-app *,
.python-robot-app *::before,
.python-robot-app *::after { box-sizing: border-box; }

.python-robot-app__header,
.python-robot-app__header-actions,
.python-robot-panel-heading,
.python-robot-editor__topline,
.python-robot-editor__actions,
.python-robot-runtime__controls,
.python-robot-hints__actions { display: flex; align-items: center; gap: 10px; }
.python-robot-source-info { margin-top: 10px; color: #c5dcfa; font-size: 0.8rem; line-height: 1.45; }
.python-robot-source-info summary { cursor: pointer; color: #e1efff; font-weight: 800; }
.python-robot-source-info ul { margin: 7px 0 0; padding-left: 19px; }
.python-robot-source-info a { color: #a9d0ff; }

.python-robot-app__header {
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--python-robot-line);
  background: linear-gradient(90deg, rgba(13, 39, 73, 0.88), rgba(7, 25, 48, 0.98));
}

.python-robot-app__header h2,
.python-robot-app h3,
.python-robot-app h4 { margin: 0; color: #f6faff; }
.python-robot-app__header h2 { margin-top: 3px; font-size: clamp(1.1rem, 1.7vw, 1.42rem); line-height: 1.25; }

.python-robot-app__eyebrow,
.python-robot-app__task-label,
.python-robot-status-label {
  margin: 0;
  color: #a8cdfd;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.python-robot-app__header-actions { justify-content: flex-end; flex-wrap: wrap; }
.python-robot-level { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 9px; color: #d7e9ff; border: 1px solid rgba(147, 193, 249, 0.5); border-radius: 999px; background: rgba(57, 98, 151, 0.38); font-size: 0.78rem; font-weight: 800; }
.python-robot-app__header-actions .is-recommended { border-color: rgba(255, 210, 117, 0.85); box-shadow: 0 0 0 2px rgba(255, 210, 117, 0.2); }
.python-robot-track-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; color: #b9d4f5; font-size: 0.76rem; font-weight: 700; }
.python-robot-track-switch .ui-button { --ui-btn-height-sm: 34px; --ui-btn-padding-x: 11px; font-size: 0.8rem; }
.python-robot-track.is-active { --ui-btn-border: rgba(255, 212, 126, 0.78); --ui-btn-border-hover: rgba(255, 226, 163, 0.92); --ui-btn-highlight: rgba(255, 220, 140, 0.16); }
.python-robot-track:disabled { cursor: not-allowed; opacity: 0.45; }

.python-robot-task-selector { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr); gap: 8px 16px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--python-robot-line); background: rgba(8, 28, 53, 0.62); }
.python-robot-task-selector__copy { min-width: 0; }
.python-robot-task-selector__hint { margin: 3px 0 0; color: #bed8fa; font-size: 0.78rem; line-height: 1.35; }
.python-robot-task-selector__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.python-robot-task-selector__select { width: 100%; min-height: 40px; padding: 7px 36px 7px 11px; color: #f3f8ff; border-color: rgba(135, 183, 239, 0.58); background-color: #102b50; font: 800 0.84rem var(--font-sans, sans-serif); }
.python-robot-task-selector__select:disabled { cursor: not-allowed; opacity: 0.58; }
.python-robot-task-selector__hierarchy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; min-width: 0; }

.python-robot-app__workspace {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  grid-template-rows: auto minmax(0, var(--python-robot-workspace-main-height, auto));
  min-width: 0;
}
.python-robot-app__context { display: contents; }
.python-robot-task-panel {
  grid-column: 1 / -1;
  padding: 12px 18px 13px;
  border-bottom: 1px solid var(--python-robot-line);
  background: rgba(7, 25, 48, 0.46);
}
.python-robot-app__context,
.python-robot-world-panel,
.python-robot-app__editor { min-width: 0; min-height: 0; }
.python-robot-world-panel {
  grid-column: 1;
  min-height: 0;
  overflow: visible;
}
.python-robot-app__editor {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
  background: rgba(8, 26, 48, 0.72);
}

.python-robot-app__task-copy { max-width: min(78ch, 100%); margin: 7px 0 0; color: #dbeaff; font-size: 0.91rem; line-height: 1.5; }
.python-robot-focus { display: inline-flex; margin: 9px 0 0; padding: 4px 7px; color: #cfe5ff; border: 1px solid rgba(125, 174, 230, 0.32); border-radius: 999px; background: rgba(43, 80, 125, 0.24); font-size: 0.72rem; font-weight: 800; }
.python-robot-focus[hidden] { display: none !important; }

.python-robot-task-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 10px; }
.python-robot-hints,
.python-robot-world-cases { min-width: 0; }
.python-robot-hints__actions { justify-content: flex-start; }
.python-robot-text-button { min-height: 32px; padding: 5px 8px; color: #cfe4ff !important; border: 1px solid rgba(131, 177, 231, 0.42) !important; border-radius: 7px; background: rgba(35, 70, 112, 0.42) !important; font: 700 0.79rem var(--font-sans, sans-serif); cursor: pointer; }
.python-robot-text-button:hover,
.python-robot-text-button:focus-visible { color: #fff !important; border-color: rgba(255, 212, 126, 0.78) !important; background: rgba(77, 87, 116, 0.55) !important; outline: none; }
.python-robot-text-button:disabled { cursor: not-allowed; opacity: 0.48; }
.python-robot-hints__content { margin-top: 8px; padding: 9px 11px; border-left: 2px solid #7fb2ed; background: rgba(43, 80, 125, 0.24); }
.python-robot-hints__counter { margin: 0 0 5px; color: #a9cdfa; font-size: 0.78rem; font-weight: 800; }
.python-robot-hints ol { margin: 0; padding-left: 20px; color: #dbeaff; font-size: 0.86rem; line-height: 1.5; }

.python-robot-world-panel { min-width: 0; padding: 13px; border: 1px solid var(--python-robot-line); border-radius: 11px; background: linear-gradient(145deg, rgba(16, 43, 80, 0.82), rgba(5, 20, 40, 0.96)); }
.python-robot-panel-heading { justify-content: space-between; align-items: flex-start; margin-bottom: 9px; }
.python-robot-panel-heading h3 { font-size: 1rem; }
.python-robot-panel-heading > span { max-width: 42%; color: #b7d6ff; font-size: 0.76rem; text-align: right; }
.python-robot-world__status { min-height: 1.2em; margin: 3px 0 0; color: #bdd8fa; font-size: 0.78rem; }

.python-robot-world-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.python-robot-world-tools .python-robot-text-button { min-height: 29px; font-size: 0.72rem; }
.python-robot-world-viewport { overflow: auto; max-width: 100%; padding-bottom: 2px; }
.python-robot-world { display: grid; grid-template-columns: repeat(var(--python-robot-world-columns), minmax(0, 1fr)); gap: clamp(2px, 0.45vw, 5px); width: var(--python-robot-world-width, 100%); min-width: 100%; margin: 0 auto; padding: clamp(5px, 1vw, 8px); border: 1px solid rgba(137, 177, 232, 0.4); border-radius: 9px; background: #06172d; }
.python-robot-world__cell { position: relative; display: grid; min-width: 0; aspect-ratio: 1; place-items: center; border: 1px solid rgba(128, 170, 222, 0.25); border-radius: 5px; background: linear-gradient(135deg, rgba(49, 94, 146, 0.64), rgba(26, 57, 99, 0.6)); }
.python-robot-world__cell.is-obstacle { background: repeating-linear-gradient(135deg, rgba(48, 64, 85, 0.94) 0 4px, rgba(28, 43, 62, 0.94) 4px 8px); border-color: rgba(169, 189, 213, 0.52); }
.python-robot-world__cell.terrain-space { background: radial-gradient(circle at 24% 28%, #dcecff 0 1px, transparent 2px), radial-gradient(circle at 76% 72%, #dcecff 0 1px, transparent 2px), #09142f; }
.python-robot-world__cell.terrain-starfield { background: radial-gradient(circle at 28% 30%, #fff 0 2px, transparent 3px), radial-gradient(circle at 70% 68%, #fff 0 1px, transparent 2px), #17295a; }
.python-robot-world__cell.terrain-supporting-ground { background: linear-gradient(#41556d 0 64%, #263949 64%); }
.python-robot-world__cell.terrain-platform { background: linear-gradient(#7e9ec1 0 42%, #2e547d 42%); }
.python-robot-world__cell.terrain-free-air { background: linear-gradient(180deg, rgba(157, 204, 248, .22), rgba(31, 62, 107, .5)); }
.python-robot-world__cell.is-painted { background: repeating-linear-gradient(45deg, rgba(44, 149, 129, 0.86) 0 4px, rgba(24, 94, 83, 0.86) 4px 8px); }
.python-robot-world__cell.is-active { box-shadow: 0 0 0 2px rgba(255, 213, 132, 0.76), 0 0 18px rgba(255, 213, 132, 0.36); }
.python-robot-world__marker,
.python-robot-world__fixture,
.python-robot-world__item,
.python-robot-world__robot { position: absolute; display: block; }
.python-robot-world__marker { z-index: 1; width: 68%; height: 68%; color: #ffd373; opacity: 0.9; }
.python-robot-world__marker--paint-target { color: #96e4d4; }
.python-robot-world__fixture { z-index: 2; width: 64%; height: 64%; color: #9ec7ff; }
.python-robot-world__fixture--beacon { color: #d0a84f; }
.python-robot-world__fixture--laser-emitter { color: #ee9f60; }
.python-robot-world__fixture--laser-target { color: #8dd5ff; }
.python-robot-world__fixture--laser-mirror { color: #e7efff; }
.python-robot-world__fixture--island { color: #65bd84; }
.python-robot-world__item--fish { color: #7ad5dd; }
.python-robot-world__item--marble { color: #d38ee3; }
.python-robot-world__item--gear { color: #f1c56c; }
.python-robot-world__fixture.is-active { color: #ffe073; filter: drop-shadow(0 0 5px rgba(255, 224, 115, 0.65)); }
.python-robot-world__item { z-index: 3; width: 45%; height: 45%; color: #f0a55d; transform: translate(30%, 30%); }
.python-robot-world__robot { z-index: 4; width: 66%; height: 66%; color: #f2f7ff; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.36)); }
.python-robot-world__value { position: absolute; z-index: 5; right: 4px; bottom: 3px; min-width: 1.15em; padding: 1px 3px; border-radius: 4px; background: #e7fbff; color: #0b3850; font-size: 0.73rem; font-weight: 800; line-height: 1.15; text-align: center; }
.python-robot-world :is(svg) { display: block; width: 100%; height: 100%; }
.python-robot-world__text { min-height: 1.4em; margin: 8px 0 0; color: #d9e9ff; font-size: 0.84rem; line-height: 1.4; }
.python-robot-world__facts { display: flex; flex-wrap: wrap; gap: 5px 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.python-robot-world__facts li { padding: 4px 6px; color: #d8e8ff; border: 1px solid rgba(139, 174, 225, 0.3); border-radius: 6px; background: rgba(45, 82, 132, 0.24); font-size: 0.72rem; font-weight: 700; }
.python-robot-world__legend { margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(139, 174, 225, 0.24); }
.python-robot-world__legend[hidden] { display: none; }
.python-robot-world__legend h4 { margin-bottom: 5px; font-size: 0.78rem; }
.python-robot-world__legend ul { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; }
.python-robot-world__legend li { display: inline-flex; align-items: center; gap: 4px; color: #cfe4ff; font-size: 0.72rem; }
.python-robot-world__legend-icon { width: 18px; height: 18px; color: #cfe4ff; }

.python-robot-runtime { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(139, 174, 225, 0.24); }
.python-robot-runtime__heading { min-width: 94px; }
.python-robot-runtime__summary { margin: 3px 0 0; color: #d5e7ff; font-size: 0.82rem; font-weight: 700; }
.python-robot-runtime__controls { flex-wrap: wrap; justify-content: flex-start; }
.python-robot-runtime[data-runtime-state="running"] #pythonRobotPrimaryAction { border-color: rgba(255, 210, 117, 0.84); box-shadow: 0 0 0 2px rgba(255, 210, 117, 0.16); }
.python-robot-runtime__speed { display: flex; grid-column: 1 / -1; align-items: center; gap: 8px; margin: 0; color: #c8defa; font-size: 0.78rem; font-weight: 700; }
.python-robot-runtime__speed .ui-select { min-height: 32px; padding: 4px 28px 4px 8px; color: #e7f1ff; border-color: rgba(135, 183, 239, 0.58); background-color: #102b50; font-size: 0.79rem; }
.python-robot-check { display: flex; grid-column: 1 / -1; align-items: center; flex-wrap: wrap; gap: 8px; }
.python-robot-check span { color: #b7d1ef; font-size: 0.76rem; line-height: 1.35; }

.python-robot-world-feedback { margin-top: 11px; padding: 9px 10px; border: 1px solid; border-radius: 8px; font-size: 0.82rem; line-height: 1.4; }
.python-robot-world-feedback strong,
.python-robot-world-feedback p { display: block; margin: 0; }
.python-robot-world-feedback p { margin-top: 3px; }
.python-robot-world-feedback.is-success { color: #d8ffe3; border-color: rgba(111, 214, 146, 0.58); background: rgba(48, 126, 76, 0.3); }
.python-robot-world-feedback.is-warning { color: #ffe6bd; border-color: rgba(240, 182, 102, 0.6); background: rgba(133, 85, 30, 0.3); }
.python-robot-status-line { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.python-robot-status-line p { min-height: 1.2em; margin: 0; color: #dbeaff; font-size: 0.81rem; }
.python-robot-status-line p[data-tone="warning"] { color: #ffe0a6; }
.python-robot-status-line p[data-tone="success"] { color: #b7edca; }

.python-robot-editor__topline { justify-content: space-between; align-items: flex-start; }
.python-robot-editor__topline h3 { margin-bottom: 4px; }
.python-robot-editor__topline p { max-width: 440px; margin: 0; color: #c8ddfb; font-size: 0.83rem; line-height: 1.4; }
.python-robot-editor__actions { flex: 0 0 auto; justify-content: flex-end; flex-wrap: wrap; }
.python-robot-budget { margin: 0 !important; padding: 6px 8px; color: #dceeff !important; border: 1px solid rgba(135, 183, 239, 0.4); border-radius: 8px; background: rgba(50, 91, 143, 0.3); font-size: 0.76rem !important; font-weight: 800; text-align: right; }
.python-robot-budget.is-warning { color: #ffe2a9 !important; border-color: rgba(255, 191, 96, 0.65); background: rgba(136, 92, 31, 0.28); }
.python-robot-context-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(135, 183, 239, 0.35); border-radius: 9px; background: rgba(20, 52, 91, 0.34); }
.python-robot-context-actions[hidden] { display: none; }
.python-robot-context-actions > span { margin-right: auto; color: #cfe4ff; font-size: 0.76rem; font-weight: 800; }

.python-robot-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; border-bottom: 1px solid var(--python-robot-line); scrollbar-width: thin; }
.python-robot-tabs[hidden],
.python-robot-editor__panels[hidden],
.python-robot-python-track[hidden],
.python-robot-editor__actions[hidden] { display: none !important; }
.python-robot-app .python-robot-tab { flex: 0 0 auto; min-height: 35px; padding: 6px 12px; color: #cbdffb !important; border: 1px solid rgba(126, 170, 221, 0.42) !important; border-radius: 8px; background: rgba(18, 48, 87, 0.76) !important; font: inherit; font-size: 0.86rem; font-weight: 800; cursor: pointer; }
.python-robot-tab:hover,
.python-robot-tab:focus-visible,
.python-robot-app .python-robot-tab.is-active { color: #fff !important; border-color: rgba(148, 193, 249, 0.74) !important; background: rgba(65, 109, 171, 0.8) !important; outline: none; }

.python-robot-editor__panels,
.python-robot-python-track,
.python-robot-view { min-width: 0; min-height: 0; }
.python-robot-editor__panels,
.python-robot-python-track { flex: 1 1 auto; }
.python-robot-editor__panels { display: grid; }
.python-robot-view,
.python-robot-python-track,
.python-robot-compare__blocks,
.python-robot-compare__python { display: flex; flex-direction: column; }
.python-robot-view[hidden] { display: none !important; }
.python-robot-view__note { flex: 0 0 auto; margin: 0 0 8px; color: #bed8fa; font-size: 0.8rem; line-height: 1.35; }
.python-robot-blockly-host { display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; }
.python-robot-blockly { flex: 1 1 auto; width: 100%; min-height: 0; overflow: hidden; border: 1px solid rgba(132, 175, 229, 0.48); border-radius: 10px; background: #0b203e; }
.python-robot-blockly .blocklySvg { background: radial-gradient(circle at top right, rgba(76, 123, 185, 0.22), transparent 42%), #0b203e; }
.python-robot-blockly .blocklyToolboxDiv,
.python-robot-blockly .blocklyFlyout { background: #071a34 !important; color: #e9f3ff !important; }
.python-robot-blockly .blocklyToolboxCategory,
.python-robot-blockly .blocklyTreeRow { background: transparent !important; }
.python-robot-blockly .blocklyToolboxCategory:hover,
.python-robot-blockly .blocklyToolboxCategory.blocklyToolboxSelected,
.python-robot-blockly .blocklyTreeSelected { background: rgba(65, 109, 171, 0.62) !important; }
.python-robot-blockly .blocklyTreeLabel,
.python-robot-blockly .blocklyToolboxCategoryLabel { color: #e3efff !important; font-family: var(--font-sans); }
.python-robot-blockly .blocklyFlyoutBackground { fill: #071a34 !important; fill-opacity: 1 !important; }
.python-robot-blockly .blocklyMainBackground { stroke: rgba(121, 161, 211, 0.2); }
.python-robot-blockly .blocklyScrollbarHandle { fill: rgba(123, 169, 222, 0.62) !important; }
.python-robot-blockly .blocklyZoom image,
.python-robot-blockly .blocklyTrash image { filter: brightness(0) invert(1) opacity(0.88); }
.python-robot-blockly .python-robot-block--loose .blocklyPath { filter: saturate(0.5); }

.python-robot-readonly-note { display: flex; justify-content: space-between; gap: 14px; padding: 9px 11px; color: #d7e9ff; border: 1px solid rgba(139, 180, 231, 0.35); border-radius: 9px; background: rgba(45, 82, 132, 0.32); font-size: 0.82rem; }
.python-robot-readonly-note span { color: #b9d4f5; }
.python-robot-readonly-note--compact { display: block; margin-bottom: 8px; padding: 7px 9px; }
.python-robot-code { flex: 1 1 auto; min-height: 0; overflow: auto; margin-top: 9px; padding: 8px 0; border: 1px solid rgba(127, 169, 223, 0.38); border-radius: 10px; background: #06172d; font: 0.88rem/1.58 var(--font-mono, monospace); }
.python-robot-code--view { min-height: 0; }
.python-robot-code__line { display: grid; grid-template-columns: 42px minmax(0, 1fr); width: 100%; min-height: 1.58em; margin: 0; padding: 0 13px 0 0; color: #e8f3ff; border: 0; background: transparent; font: inherit; text-align: left; white-space: pre; }
.python-robot-code__line.is-interactive { cursor: pointer; }
.python-robot-code__line.is-interactive:hover,
.python-robot-code__line.is-interactive:focus-visible { background: rgba(94, 143, 204, 0.18); outline: none; }
.python-robot-code__line.is-active { background: rgba(251, 201, 103, 0.2); box-shadow: inset 3px 0 #ffd16f; }
.python-robot-code__number { padding-right: 10px; color: #86a7d0; text-align: right; user-select: none; }
.python-robot-code code { overflow: hidden; font: inherit; text-overflow: ellipsis; }

.python-robot-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 12px; min-height: 0; }
.python-robot-compare h4 { margin-bottom: 8px; font-size: 0.9rem; }
.python-robot-compare__blocks,
.python-robot-compare__python { min-width: 0; min-height: 0; }
.python-robot-compare__blocks { padding: 10px; border: 1px solid rgba(133, 172, 221, 0.34); border-radius: 10px; background: rgba(7, 24, 48, 0.62); }
.python-robot-compare .python-robot-blockly { height: auto; min-height: 0; }
.python-robot-compare .python-robot-code { margin-top: 0; }

.python-robot-python-track { gap: 8px; }
.python-robot-python-import { margin: 0; padding: 9px 11px; color: #dcecff; border: 1px solid rgba(127, 169, 223, 0.38); border-radius: 8px; background: rgba(6, 23, 45, 0.82); font: 0.86rem/1.4 var(--font-mono, monospace); }
.python-robot-python-editor__label { margin-top: 4px; color: #dcecff; font-size: 0.84rem; font-weight: 800; }
.python-robot-python-editor { flex: 1 1 auto; width: 100%; min-height: 0; resize: none !important; overflow: auto; padding: 12px 14px; color: #edf5ff; border: 1px solid rgba(127, 169, 223, 0.5); border-radius: 10px; outline: none; background: #06172d; font: 0.9rem/1.58 var(--font-mono, monospace); tab-size: 4; }
.python-robot-python-editor:focus-visible { border-color: rgba(255, 211, 115, 0.84); box-shadow: 0 0 0 3px rgba(255, 211, 115, 0.18); }
.python-robot-python-editor[aria-invalid="true"] { border-color: rgba(240, 182, 102, 0.82); background: rgba(74, 38, 20, 0.38); }
.python-robot-python-editor__help,
.python-robot-python-editor__diagnostic { margin: 0; font-size: 0.8rem; line-height: 1.45; }
.python-robot-python-editor__help { color: #b9d4f5; }
.python-robot-python-editor__diagnostic { padding: 8px 10px; color: #ffe3b7; border-left: 3px solid #e5a14e; background: rgba(133, 85, 30, 0.3); }

.python-robot-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.python-robot-tooltip { position: fixed; z-index: 10010; max-width: min(31rem, calc(100vw - 16px)); padding: 7px 9px; color: #f7fbff; border: 1px solid rgba(255, 214, 133, 0.84); border-radius: 7px; background: #071a34; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); font-size: 0.78rem; line-height: 1.35; pointer-events: none; }
.python-robot-tooltip[hidden] { display: none; }
.python-robot-app :is(button, a, select):focus-visible { outline: 3px solid rgba(255, 213, 132, 0.88); outline-offset: 2px; }

:root[data-layout-mode="extended"] #app-content[data-python-robot-page="true"] .page--tool,
:root[data-layout-mode="extended"] #app-content[data-python-robot-page="true"] .hero--tool { max-width: none; }

@media (max-width: 980px) {
  .python-robot-app__workspace { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
  .python-robot-app__header-actions { gap: 7px; }
  .python-robot-app__header-actions .ui-button { padding-inline: 8px; }
}

@media (max-width: 860px) {
  .python-robot-app__workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .python-robot-task-panel,
  .python-robot-world-panel,
  .python-robot-app__editor { grid-column: 1; }
  .python-robot-world-panel { overflow: visible; border-right: 0; border-bottom: 1px solid var(--python-robot-line); border-radius: 0; }
  .python-robot-app__editor { min-height: 0; overflow: visible; }
  .python-robot-editor__panels,
  .python-robot-python-track { min-height: clamp(20rem, 52svh, 34rem); }
  .python-robot-task-selector { grid-template-columns: minmax(0, 1fr); }
  .python-robot-task-selector__hierarchy { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .python-robot-app__header,
  .python-robot-editor__topline { display: block; }
  .python-robot-app__header-actions { justify-content: flex-start; margin-top: 10px; }
  .python-robot-editor__actions { justify-content: flex-start; margin-top: 9px; }
  .python-robot-context-actions { align-items: flex-start; }
  .python-robot-context-actions > span { flex-basis: 100%; }
  .python-robot-task-selector { padding: 12px; }
  .python-robot-app__editor { padding: 12px; }
  .python-robot-task-panel { padding: 12px; }
  .python-robot-runtime { grid-template-columns: minmax(0, 1fr); }
  .python-robot-runtime__controls,
  .python-robot-runtime__speed,
  .python-robot-check { grid-column: auto; }
  .python-robot-compare { grid-template-columns: minmax(0, 1fr); }
  .python-robot-compare { grid-template-rows: minmax(13rem, 1fr) minmax(13rem, 1fr); }
  .python-robot-readonly-note { display: block; }
  .python-robot-readonly-note span { display: block; margin-top: 3px; }
  .python-robot-editor__panels,
  .python-robot-python-track { min-height: min(60svh, 112vw); }
}

@media (max-width: 480px) {
  .python-robot-task-actions { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .python-robot-hints__actions,
  .python-robot-world-cases > div { width: 100%; }
  .python-robot-hints__actions .python-robot-text-button,
  .python-robot-world-cases > div .python-robot-text-button { width: 100%; }
}

@media (min-width: 681px) and (max-width: 1180px) {
  .python-robot-compare { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(13rem, 1fr) minmax(13rem, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .python-robot-app *,
  .python-robot-app *::before,
  .python-robot-app *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

.python-robot-world-cases { display: grid; gap: 0.35rem; margin: 0; padding: 0; }
.python-robot-world-cases p { margin: 0; color: #b9d4f5; font-size: 0.8rem; }
.python-robot-world-cases > div { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Training 70 semantic projections */
.python-robot-world .dbook-task-asset { display: block; width: 100%; height: 100%; color: inherit; }
.python-robot-world .dbook-task-asset__svg { width: 100%; height: 100%; }
.python-robot-world.projection-top-down-course-grid.has-absolute-sensors { gap: 0; padding: 0; border-color: rgba(151, 179, 211, 0.42); }
.python-robot-world.projection-top-down-course-grid.has-absolute-sensors .python-robot-world__cell { border: 0; border-radius: 0; background: #173653; }
.python-robot-world.projection-top-down-course-grid.has-absolute-sensors .python-robot-world__cell.is-obstacle { background: linear-gradient(135deg, #35465a 0 50%, #263442 50%); box-shadow: inset 0 0 0 1px rgba(223, 235, 249, 0.08); }
.python-robot-world.projection-top-down-space-grid { gap: 0; padding: 0; border: 0; border-radius: 8px; background: #050a1c; }
.python-robot-world.projection-top-down-space-grid .python-robot-world__cell { border: 0; border-radius: 0; background: radial-gradient(circle at 22% 28%, rgba(255,255,255,.68) 0 1px, transparent 1.4px), radial-gradient(circle at 77% 72%, rgba(181,205,255,.56) 0 1px, transparent 1.6px), #08132c; }
.python-robot-world.projection-top-down-space-grid .terrain-starfield { background: radial-gradient(circle at 30% 30%, #fff 0 1.5px, transparent 1.8px), radial-gradient(circle at 70% 70%, #fff 0 1px, transparent 1.4px), #10285a; }
.python-robot-world.projection-top-down-space-grid .python-robot-world__fixture--asteroid { width: 86%; height: 86%; color: #d09b76; z-index: 5; }
.python-robot-world.projection-side-view-platform-grid { gap: 0; padding: 8px 0; border: 0; background: linear-gradient(#183a64, #32688e 66%, #154465 66%); }
.python-robot-world.projection-side-view-platform-grid .python-robot-world__cell { border: 0; border-radius: 0; background: transparent; }
.python-robot-world.projection-side-view-platform-grid .terrain-supporting-ground { background: linear-gradient(#516c6f 0 24%, #2c463c 24%); }
.python-robot-world.projection-side-view-platform-grid .terrain-platform { background: linear-gradient(transparent 0 47%, #c2d2df 47% 61%, #39546e 61%); }
.python-robot-world.projection-side-view-platform-grid .python-robot-world__cell.is-platform-preview::after { position: absolute; inset: 43% 9% auto; height: 12%; border: 2px dashed rgba(255, 226, 147, .9); border-radius: 4px; content: ''; }
.python-robot-world.projection-side-view-platform-grid .python-robot-world__robot { bottom: 4%; width: 60%; height: 60%; }
.python-robot-world.projection-top-down-laser-grid .python-robot-world__cell { background: #111d34; }
.python-robot-world.projection-top-down-laser-grid .python-robot-world__cell.has-laser-beam { box-shadow: inset 0 0 0 2px rgba(255, 123, 98, .75), 0 0 12px rgba(255, 121, 89, .55); }
.python-robot-world__laser-beam { position: absolute; z-index: 8; color: #ff9a77; font-size: clamp(1rem, 2.5vw, 1.7rem); text-shadow: 0 0 9px #ff5b40; }
.python-robot-world.projection-top-down-paint-grid .python-robot-world__cell.is-paint-target { background: rgba(79, 199, 170, .18); box-shadow: inset 0 0 0 2px rgba(136, 239, 203, .62); }
.python-robot-world.projection-top-down-paint-grid .python-robot-world__cell.is-painted { background: linear-gradient(135deg, rgba(43, 163, 130, .92), rgba(28, 102, 91, .94)); }
.python-robot-world.projection-top-down-paint-grid .python-robot-world__cell.is-painted.is-paint-target::after { position: absolute; z-index: 9; right: 5px; top: 3px; color: #effff7; font-size: .78rem; font-weight: 900; content: '✓'; }
.python-robot-world.projection-top-down-fishing-grid .python-robot-world__cell { background: linear-gradient(135deg, #1b5d80, #16466c); }
.python-robot-world.projection-top-down-fishing-grid .python-robot-world__fixture--fishing-net { width: 78%; height: 78%; color: #b5e9ff; }
.python-robot-world.projection-top-down-fishing-grid .python-robot-world__fixture--island { width: 86%; height: 86%; color: #7fce8d; }
.python-robot-world__carried-item { position: absolute; z-index: 7; top: 2px; right: 1px; width: 33%; height: 33%; color: #ffe08b; }
.python-robot-world__value--source { right: 3px; bottom: 3px; background: #d7f5ff; border: 1px solid #4690ac; color: #073c52; }
.python-robot-world__value--target { left: 3px; right: auto; bottom: 3px; background: #e8ffd9; border: 1px solid #4f9a62; color: #18452b; }
.python-robot-world__robot.is-orientation-neutral .dbook-task-asset__accent { display: none; }
.python-robot-world__robot[data-direction="east"] .dbook-task-asset { transform: rotate(90deg); }
.python-robot-world__robot[data-direction="south"] .dbook-task-asset { transform: rotate(180deg); }
.python-robot-world__robot[data-direction="west"] .dbook-task-asset { transform: rotate(270deg); }
.python-robot-world.is-large-world { grid-template-columns: repeat(var(--python-robot-world-columns), minmax(var(--python-robot-world-min-cell), 1fr)); min-width: calc(var(--python-robot-world-columns) * var(--python-robot-world-min-cell)); }
.python-robot-world.is-large-world .python-robot-world__cell { min-width: var(--python-robot-world-min-cell); }
.python-robot-world-legend-icon .dbook-task-asset { width: 100%; height: 100%; }
.python-robot-world-legend-icon .dbook-task-asset__state-glyph { display: none; }
.python-robot-task-selector__chapter { display: flex; align-items: center; min-height: 40px; margin: 0; padding: 7px 11px; color: #f0f7ff; border: 1px solid rgba(135, 183, 239, 0.45); border-radius: 8px; background: rgba(31, 69, 111, .46); font-size: .84rem; font-weight: 800; }
.python-robot-language-knowledge { margin: 0; padding: 7px 10px; border: 1px solid rgba(135, 183, 239, .36); border-radius: 9px; background: rgba(20, 52, 91, .28); }
.python-robot-language-knowledge summary { cursor: pointer; color: #dcecff; font-size: .82rem; font-weight: 800; }
.python-robot-language-knowledge__table { width: 100%; margin-top: 8px; border-collapse: collapse; color: #dcecff; font-size: .76rem; }
.python-robot-language-knowledge__table :is(th, td) { padding: 5px 7px; border: 1px solid rgba(135, 183, 239, .25); text-align: left; vertical-align: top; }
.python-robot-language-knowledge__table td:last-child { font-family: var(--font-mono, monospace); }
.python-robot-python-parallel { padding: 8px 10px; border: 1px solid rgba(135, 183, 239, .32); border-radius: 8px; background: rgba(19, 49, 86, .32); }
.python-robot-python-parallel summary { cursor: pointer; color: #dbeaff; font-size: .8rem; font-weight: 800; }
.python-robot-python-parallel p { margin: 7px 0; color: #bcd6f7; font-size: .78rem; line-height: 1.35; }
.python-robot-python-parallel ol { margin: 0; padding-left: 22px; color: #e5f0ff; font: .78rem/1.45 var(--font-mono, monospace); }
.python-robot-compass,
.python-robot-laser-compass { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; margin-top: 8px; padding: 7px 9px; border: 1px solid rgba(133, 181, 236, .35); border-radius: 8px; background: rgba(12, 36, 67, .58); color: #bcd8f9; font-size: .74rem; }
.python-robot-compass[hidden],
.python-robot-laser-compass[hidden] { display: none; }
.python-robot-compass strong,
.python-robot-laser-compass strong { color: #e8f4ff; }
.python-robot-compass [data-direction] { opacity: .38; }
.python-robot-compass [data-direction].is-enabled { color: #ffe29a; opacity: 1; font-weight: 800; }
.python-robot-laser-compass span:last-child { min-width: 6.4em; color: #ffe29a; font-family: var(--font-mono, monospace); line-height: 1.2; white-space: pre; }
