File size: 22,874 Bytes
b09157d
16215cb
b09157d
 
 
 
16215cb
 
 
 
022cb3a
 
73bd3c5
 
 
022cb3a
 
 
 
 
 
 
 
 
f5375f2
 
 
 
 
b09157d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
022cb3a
 
f5375f2
b09157d
022cb3a
f5375f2
 
 
b7125e0
 
 
 
 
f5375f2
b09157d
 
 
 
 
 
 
 
 
022cb3a
f5375f2
 
 
022cb3a
 
 
 
 
 
 
 
 
f5375f2
 
 
 
 
 
 
 
 
b09157d
022cb3a
 
 
b09157d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
db2d194
 
 
 
1a6f54f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
db2d194
1a6f54f
db2d194
 
 
b09157d
 
 
 
 
 
 
f5375f2
 
 
b09157d
f5375f2
b09157d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2eac511
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
.code-training { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); margin: 0; width: min(960px, calc(100vw - 440px)); height: min(860px, calc(100dvh - 48px)); padding: 0; overflow: auto; color: #f2eee7; background: #15151d; border: 1px solid #6b6771; border-radius: 10px; box-shadow: 0 18px 70px #0009; font: 12px/1.5 ui-monospace, monospace; }
.code-training { z-index: 25; }
.code-training[open] { display: flex; flex-direction: column; box-sizing: border-box; }
.code-training > * { flex-shrink: 0; }
.code-training .code-source { flex: 1 1 260px; min-height: 100px; height: auto; }
.code-training .code-terminal { flex: 0 1 100px; min-height: 48px; height: auto; }
.code-training-header, .code-training-toolbar { flex-wrap: wrap; }
.code-analysis { margin: 8px 16px; color: #c6e7cd; }
.code-analysis pre { white-space: pre-wrap; max-height: 180px; overflow: auto; font: inherit; }
.code-training.is-docked .code-analysis pre { max-height: 100px; }
.code-training button, .code-training select { font: inherit; color: inherit; background: #292833; border: 1px solid #66606c; border-radius: 4px; padding: 6px 12px; cursor: pointer; }
.code-training button:disabled { opacity: .4; cursor: default; }
.code-feedback { position: relative; }
.code-feedback summary { padding-right: 40px; }
.code-training .feedback-close { position: absolute; right: 6px; top: 3px; z-index: 1; padding: 0 8px; font-size: 20px; }
.code-training button:hover:not(:disabled) { color: #111; background: #ffad6b; }
.code-training :focus-visible { outline: 2px solid #ffad6b; outline-offset: -2px; }
.code-training-header { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #36323e; }
.code-training-header div { flex: 1; }
.code-training-header strong { font-size: 17px; letter-spacing: .08em; color: #ffad6b; }
.code-training-header span { display: block; font-size: 10px; color: #aaa3b0; }
.code-training-header label { font-size: 10px; }
.code-training-header select { display: block; }
.code-training .code-close { font-size: 24px; border: 0; background: transparent; padding: 0 4px; }
.three-toggle { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.three-toggle input { accent-color: #72d572; }
.code-training .help-toggle { width: 28px; height: 28px; padding: 0; border-radius: 50%; color: #15151d; background: #ffda72; font-weight: 800; }
.code-training .compile-run { min-width: 38px; padding-inline: 10px; color: #73e685; border-color: #4a9f58; font-size: 22px; font-weight: 900; line-height: 1; }
.code-training .compile-run:hover:not(:disabled) { color: #101810; background: #73e685; }
.debug-run > span { position: relative; display: inline-block; width: 30px; }
.debug-run svg { position: absolute; right: -3px; bottom: -4px; width: 15px; height: 15px; fill: #15151d; stroke: currentColor; stroke-width: 2; }
.debug-gutter { flex: 0 0 calc(4ch + 10px); padding: 12px 0; overflow: hidden; background: #191922; font: var(--editor-size)/1.5 var(--editor-font); }
.code-training .debug-gutter button { display: flex; justify-content: space-between; gap: 2px; box-sizing: border-box; width: 100%; height: calc(var(--editor-size) * 1.5); min-height: 0; padding: 0 3px; border: 0; border-radius: 0; background: transparent; color: #898392; font: inherit; }
.code-training .debug-gutter .has-breakpoint { color: #ff7c83; background: #57242a55; }
.code-training .debug-gutter .executable-line { border-right: 2px solid #53634f; }
.code-training .debug-gutter .current-line { color: #8af09c; background: #305037; }
.debug-line-highlight { position: absolute; left: 0; right: 0; background: #62d58020; border-left: 2px solid #73e685; pointer-events: none; }
.debug-panel { padding: 8px 12px; background: #19231d; border-bottom: 1px solid #44634d; }
.debug-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.debug-controls strong { color: #8af09c; margin-right: auto; }
.debug-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-height: 160px; overflow: auto; margin-top: 8px; }
.debug-values > div { min-width: 0; overflow-wrap: anywhere; }
.debug-values table { width: 100%; text-align: left; border-collapse: collapse; }
.debug-values th, .debug-values td { border-bottom: 1px solid #34473a; padding: 3px 8px 3px 0; }
.debug-values form { display: flex; gap: 6px; }
.debug-values input { min-width: 0; width: 140px; color: #eee; background: #101018; border: 1px solid #64796a; padding: 5px; }
.debug-watch { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.code-training .debug-watch button { padding: 0 6px; }
.debug-values td { vertical-align: top; }
.debug-watch { align-items: flex-start; }
.debug-watch-value { display: flex; align-items: baseline; min-width: 0; gap: 3px; }
.debug-array { min-width: 0; }
.code-training .debug-array-toggle { display: flex; align-items: baseline; gap: 4px; max-width: 100%; padding: 0; min-height: 0; border: 0; color: #b9edc4; background: transparent; text-align: left; }
.debug-array-toggle code { overflow-wrap: anywhere; }
.debug-array-toggle small { color: #a9b9ad; }
.debug-array-items { padding-left: 8px; border-left: 1px solid #48634e; margin-left: 4px; }
.debug-array-element { display: flex; align-items: baseline; gap: 4px; padding-top: 2px; }
.debug-array-index { flex-shrink: 0; color: #99bdff; }
.debug-array-pages { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-block: 3px; }
.debug-array-pages span { white-space: nowrap; }
.debug-array-pages form { display: inline-flex; }
.debug-array-pages input { width: 64px; }
.code-training.is-debugging .code-terminal { box-sizing: border-box; flex: 0 0 48px; min-height: 32px; padding: 4px 12px; }
.is-debugging .code-terminal-heading, .is-debugging .code-status { padding: 3px 12px; }
.is-debugging .code-input { padding-block: 3px; }
.is-debugging .debug-panel { padding: 4px 10px; }
.is-debugging .debug-controls { gap: 4px; }
.code-training.is-debugging .debug-panel button { min-height: 0; padding: 3px 7px; font-size: 11px; }
.code-training.is-debugging .debug-array-toggle { padding: 0; }
.is-debugging .debug-values { margin-top: 3px; gap: 12px; max-height: clamp(64px, 9dvh, 80px); font-size: 11px; }
.is-debugging .debug-values > div { overflow: auto; overscroll-behavior: contain; }
.is-debugging .debug-values th, .is-debugging .debug-values td { padding: 1px 6px 1px 0; }
.is-debugging .debug-values input { padding: 2px 5px; font: inherit; }
.code-training-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; }
.code-filename { flex: 1; color: #83caf5; }
.code-source { display: flex; height: clamp(280px, 48dvh, 560px); border-block: 1px solid #36323e; background: #101018; }
.code-source pre, .code-source textarea { margin: 0; padding: 12px; border: 0; font-family: var(--editor-font, Consolas, monospace); font-size: var(--editor-size, 14px); line-height: 1.5; font-weight: 400; font-variant-ligatures: none; letter-spacing: 0; tab-size: 4; }
.code-source pre { overflow: hidden; min-width: 42px; text-align: right; color: #787184; user-select: none; }
.code-editor { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.code-source .code-highlight { position: absolute; inset: 0; box-sizing: border-box; width: 100%; height: 100%; text-align: left; color: #d4d4d4; background: transparent; white-space: pre; pointer-events: none; }
.code-source textarea { position: absolute; inset: 0; box-sizing: border-box; width: 100%; height: 100%; resize: none; background: transparent; color: transparent; caret-color: #f2eee7; white-space: pre; overflow: auto; }
.code-source .code-squiggles { color: transparent; }
.squiggle-error, .squiggle-warning { text-decoration: underline wavy #f14c4c; text-decoration-skip-ink: none; text-underline-offset: 3px; }
.squiggle-warning { text-decoration-color: #cca700; }
.squiggle-tooltip { position: absolute; z-index: 2; max-width: min(520px, 90%); padding: 5px 8px; color: #e8e4ee; background: #252131; border: 1px solid #514a5c; border-left: 3px solid #f14c4c; border-radius: 3px; font: 12px/1.4 var(--editor-font, Consolas, monospace); white-space: pre-wrap; pointer-events: none; box-shadow: 0 4px 12px #0008; }
.squiggle-tooltip.is-warning { border-left-color: #cca700; }
.code-source textarea::selection { background: rgba(73, 130, 190, .58); color: transparent; }
.token-keyword, .token-type { color: #569cd6; }
.token-control, .token-preprocessor { color: #c586c0; }
.token-function { color: #dcdcaa; }
.token-variable { color: #9cdcfe; }
.token-constant { color: #4fc1ff; }
.token-string { color: #ce9178; }.token-comment { color: #6a9955; }.token-number { color: #b5cea8; }
.token-operator { color: #d4d4d4; }
.bracket-0 { color: #ffd700; }.bracket-1 { color: #da70d6; }.bracket-2 { color: #179fff; }
.code-occurrence { padding: 0; color: inherit; background: #264f78; box-shadow: inset 0 0 0 1px #7cb8e0; border-radius: 2px; }
.code-status { padding: 8px 16px; margin: 0; color: #ffc58f; font-size: 11px; }
.code-diagnostics { padding: 0 16px 8px; }
.has-errors .code-diagnostics { color: #ffacac; }
.has-warnings .code-diagnostics { color: #ffe17a; }
.code-diagnostics pre { max-height: 110px; overflow: auto; white-space: pre-wrap; }
.code-terminal-heading { display: flex; justify-content: space-between; gap: 8px; padding: 8px 16px; background: #24222c; font-size: 11px; }
.code-terminal-heading span { color: #aaa3b0; font-size: 10px; }
.code-terminal { margin: 0; padding: 12px 16px; height: 120px; background: #09090f; color: #c6e7cd; white-space: pre-wrap; overflow: auto; overflow-wrap: anywhere; }
.code-input { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: #09090f; }
.code-input span { color: #ffad6b; }
.code-input input { flex: 1; width: 0; min-width: 0; border: 0; background: transparent; color: #fff; padding: 7px 0; font: inherit; }
.code-training footer { padding: 7px 16px; font-size: 10px; color: #aaa3b0; }
.code-notice { color: #ffc58f; margin: 8px 16px; }
.reachy-help { position: relative; margin: 0 16px 10px; padding: 10px; border: 1px solid #ffda72; background: #252331; color: #fff1b3; }
.reachy-help p { margin: 4px 0 8px; color: #c8c0cf; }
.reachy-help textarea { display: block; box-sizing: border-box; width: 100%; min-height: 58px; margin-bottom: 8px; padding: 7px; resize: vertical; color: #f2eee7; background: #101018; border: 1px solid #66606c; font: inherit; }
.reachy-help pre { white-space: pre-wrap; color: #c6e7cd; }
.help-status { margin: 8px 0; color: #83caf5; }
.file-picker { display: none; }
.load-confirm { margin: 0 16px 10px; padding: 10px; border: 1px solid #83caf5; background: #202534; color: #e7f4ff; }
.load-confirm p { margin: 4px 0 8px; color: #c8c0cf; }
.load-confirm button { margin-right: 6px; margin-bottom: 3px; }
.code-training.is-docked { width: min(960px, calc(100vw - 440px)); }
.code-training.is-docked .code-source { display: none; }
.code-training.is-docked .code-terminal { height: 88px; }
.code-training.is-docked .code-diagnostics pre { max-height: 60px; }
.code-training[open].exercise-running { display: none; }
.race-controls { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 28; display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid #777; border-radius: 8px; color: #ffd08f; background: #15151d; font: 12px monospace; }
.race-controls button { background: #292833; color: white; border: 1px solid #777; padding: 8px; cursor: pointer; }
.board-input-panel { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 28; width: min(520px, calc(100vw - 24px)); border: 1px solid #a18ab8; border-radius: 12px; overflow: hidden; background: #15151df2; color: #f5f1e9; font: 13px/1.4 ui-monospace, monospace; box-shadow: 0 8px 32px #0007; }
.board-turn { display: flex; align-items: center; gap: 10px; padding: 12px 16px 4px; font-weight: 700; }
.team-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #f5f1e9; box-shadow: 0 0 9px #ffffff44; }
.team-dot.team-2 { background: #ac72f5; }
.board-prompt { margin: 0; padding: 4px 16px 8px; max-height: 42px; overflow: auto; white-space: pre-wrap; color: #c9bed7; font: inherit; }
.workshop-terminal .board-prompt { max-height: 130px; min-height: 30px; }
.board-actions { display: flex; justify-content: space-between; padding: 6px 12px; gap: 10px; }
.board-input-panel button { border: 1px solid #73667f; border-radius: 5px; background: #292333; color: #fff; padding: 7px 10px; cursor: pointer; font: inherit; }
.board-input-panel button:disabled { opacity: .4; cursor: default; }
.board-input-panel input:focus { outline: 1px solid #b88aef; outline-offset: 3px; }
.training-duck-slot, .training-reachy-slot { position: fixed; bottom: 12px; width: clamp(140px, 15vw, 260px); height: clamp(160px, 26vh, 280px); pointer-events: none; }
.training-reachy-slot { left: 8px; } .training-duck-slot { right: 8px; }
.exercise-panel { position: fixed; z-index: 26; top: 82px; right: 24px; width: min(210px, calc(100vw - 32px)); color: #f2eee7; font: 12px/1.5 ui-monospace, monospace; }
.exercise-panel-button { display: block; width: auto; margin-left: auto; padding: 6px 9px; color: #fff1b3; background: #252331; border: 1px solid #d89b4d; border-radius: 5px; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; text-align: left; }
.exam-toggle { margin-top: 7px; }
.exam-toggle[aria-pressed="true"] { background: #513461; border-color: #d49ce8; }
.exam-panel label { display: block; margin-top: 12px; }
.exam-panel input { display: block; box-sizing: border-box; width: 100%; margin-top: 4px; padding: 8px; background: #0d0d16; color: white; border: 1px solid #84718e; border-radius: 4px; font: inherit; }
.exam-panel .exercise-item[aria-pressed="true"] { border-color: #d49ce8; background: #3c294c; }
.exam-panel p { margin-top: 12px; overflow-wrap: anywhere; }
.exam-panel .exam-warning, .exam-panel [role="alert"] { color: #ffd08f; }
.exam-panel button:disabled, .exercise-panel-button:disabled { opacity: .5; cursor: default; }
.exam-statement { margin: 0 16px 12px; padding: 12px; border-left: 3px solid #c58be1; background: #292033; color: #f4e6fd; }
.exam-statement p { margin: 6px 0 0; white-space: pre-wrap; line-height: 1.5; }
.code-training.is-quiz > :not(.code-training-header):not(.exam-quiz) { display: none; }
.exam-quiz { margin: 0 16px 16px; padding: 16px; border-left: 3px solid #c58be1; background: #292033; color: #f4e6fd; font-size: 14px; }
.exam-quiz > p { color: #c7bfd0; line-height: 1.5; }
.exam-quiz ol { margin: 16px 0; padding: 0; list-style: none; }
.exam-quiz li { margin-bottom: 20px; padding: 16px 18px; background: #1d1826; border: 1px solid #4a3d55; border-left: 4px solid #6e5a7c; border-radius: 8px; }
.exam-quiz li.is-answered { border-left-color: #7fd6a4; }
.exam-quiz fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.exam-quiz legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; color: #ffffff; font: 600 16px/1.45 system-ui, "Segoe UI", sans-serif; }
.exam-quiz legend + * { clear: both; }
.exam-quiz .exam-quiz-number { display: block; width: fit-content; margin-bottom: 6px; padding: 2px 8px; border-radius: 999px; background: #c58be1; color: #1d1826; font: 700 11px/1.6 system-ui, "Segoe UI", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.exam-quiz li.is-answered .exam-quiz-number { background: #7fd6a4; }
.exam-quiz .exam-quiz-code { margin: 0 0 14px; padding: 12px 14px; overflow-x: auto; background: #101018; color: #d4d4d4; border: 1px solid #36323e; border-radius: 6px; font-family: var(--editor-font, Consolas, monospace); font-size: var(--editor-size, 14px); line-height: 1.5; font-variant-ligatures: none; tab-size: 4; }
.exam-quiz .exam-quiz-answer { padding-top: 12px; border-top: 1px dashed #4a3d55; }
.exam-quiz .exam-quiz-answer-title { display: block; margin-bottom: 8px; color: #b9a9c6; font: 600 12px/1.4 system-ui, "Segoe UI", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.exam-quiz label { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding: 9px 12px; background: #262030; border: 1px solid #4a3d55; border-radius: 6px; cursor: pointer; transition: background .12s, border-color .12s; }
.exam-quiz label:hover { background: #2f2740; border-color: #84718e; }
.exam-quiz label:has(input:checked) { background: #3a2a4a; border-color: #c58be1; box-shadow: inset 0 0 0 1px #c58be1; }
.exam-quiz label:has(input:focus-visible) { outline: 2px solid #f4e6fd; outline-offset: 2px; }
.exam-quiz label input { flex: none; margin: 0; accent-color: #c58be1; }
.exam-quiz label span { font: 13px/1.4 ui-monospace, Consolas, monospace; color: #f4e6fd; }
.exam-quiz textarea { box-sizing: border-box; width: 100%; min-height: 80px; padding: 8px; background: #0d0d16; color: white; border: 1px solid #84718e; border-radius: 4px; font: inherit; resize: vertical; }
.exam-quiz textarea:focus { outline: none; border-color: #c58be1; box-shadow: 0 0 0 2px #c58be155; }
.exam-quiz .exam-quiz-confirm { padding: 12px; border: 1px solid #d49ce8; border-radius: 4px; }
.exam-quiz .exam-quiz-confirm p { margin: 0 0 10px; color: #ffd08f; }
.exam-quiz .exam-quiz-confirm button + button { margin-left: 8px; }
.exercise-panel-content { max-height: min(620px, calc(100dvh - 145px)); margin-top: 7px; padding: 12px; overflow-y: auto; overscroll-behavior: contain; background: #15151d; border: 1px solid #6b6771; border-radius: 6px; box-shadow: 0 18px 50px #0009; scrollbar-color: #d89b4d #101018; }
.exercise-panel-content strong { display: block; color: #ffad6b; letter-spacing: .06em; }
.exercise-panel-content h2 { margin: 9px 0; color: #ffad6b; font-size: 15px; }
.exercise-panel-content p { margin: 0; color: #d8d2dd; white-space: normal; }
.exercise-panel-content code { color: #9ee6aa; word-break: break-word; }
.exercise-item, .exercise-back { display: block; width: 100%; margin-top: 9px; padding: 8px; color: #d7efff; background: #202534; border: 1px solid #4a6680; border-radius: 4px; font: inherit; text-align: left; cursor: pointer; }
.exercise-back { color: #ffc58f; background: transparent; border: 0; padding-inline: 0; }
body.code-training-active { background: #0c0c12; }
body.code-training-active #root > :not(.game-canvas) { visibility: hidden; }
body.training-3d-off .game-canvas { visibility: hidden; }
@media (max-width: 900px) { .code-training, .code-training.is-docked, .code-training.exercise-running { width: calc(100vw - 24px); left: 50%; } .exercise-panel { top: auto; bottom: 12px; right: 12px; } }
@media (max-width: 700px) { .code-training { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: calc(100vw - 16px); height: calc(100dvh - 24px); } .code-training-header { gap: 8px; padding: 10px; } .code-training-header strong { font-size: 14px; } .code-terminal-heading span { display: none; } .code-training button { min-height: 36px; } .code-source { height: 38dvh; } }
@media (max-width: 900px) {
  .code-training { top: 48px; transform: translateX(-50%); height: calc(100dvh - 240px); }
  .training-duck-slot, .training-reachy-slot { width: 145px; height: 175px; }
  .exercise-panel { top: 8px; bottom: auto; }
}

/* Maximise editing space; the right rail keeps both real robot views visible. */
.code-training, .code-training.is-docked {
  inset: 8px auto auto 8px; transform: none; width: calc(100vw - 240px);
  height: calc(100dvh - 16px); max-width: none; max-height: none;
}
.code-training-header { padding: 10px 12px; gap: 10px; }
.code-training-toolbar { padding: 8px 12px; gap: 6px; }
.code-training .code-filename { flex: 0 1 auto; margin-right: auto; }
.editor-setting { display: inline-flex; align-items: center; gap: 5px; color: #c7bfd0; font-size: 11px; }
.code-training .editor-setting select { padding: 5px; }
.exercise-panel { top: 8px; right: 8px; width: 216px; }
body:not(.exam-active) .exercise-panel-content { max-height: calc(100dvh - 470px); min-height: 100px; }
.training-duck-slot, .training-reachy-slot { left: auto; right: 12px; width: 208px; height: 190px; }
.training-duck-slot { bottom: 8px; }
.training-reachy-slot { bottom: 206px; }
.code-training.is-exam {
  inset: 0; width: 100vw; height: 100dvh; padding-right: 280px;
  border: 0; border-radius: 0; box-shadow: none;
}
body.exam-active .exercise-panel { top: 12px; right: 12px; width: 256px; }
body.exam-active .exercise-panel-content { max-height: calc(100dvh - 106px); }
.code-training.is-exam.exam-wide { padding: 0; }
.code-training.is-exam.exam-wide .code-training-header { padding-right: 210px; min-height: 56px; }
body.exam-active .exam-tools-collapsed { width: 190px; height: auto; background: transparent; border: 0; }
.exam-tools-collapsed > :not(.exam-tools-toggle):not(.exam-toggle) { display: none; }
@media (max-width: 1000px) and (min-width: 701px) {
  .code-training, .code-training.is-docked { width: calc(100vw - 200px); }
  .exercise-panel { width: 176px; }
  .training-duck-slot, .training-reachy-slot { width: 172px; height: 160px; }
  .training-reachy-slot { bottom: 176px; }
  body:not(.exam-active) .exercise-panel-content { max-height: calc(100dvh - 400px); }
  .code-training.is-exam { width: 100vw; padding-right: 232px; }
  body.exam-active .exercise-panel { width: 208px; }
}
@media (max-width: 700px) {
  .code-training, .code-training.is-docked { width: calc(100vw - 16px); height: calc(100dvh - 164px); }
  .training-duck-slot, .training-reachy-slot { width: 100px; height: 140px; bottom: 4px; }
  .training-duck-slot { right: 4px; }.training-reachy-slot { right: auto; left: 4px; }
  .exercise-panel { top: auto; bottom: 12px; right: calc(50% - 82px); width: 164px; }
  body:not(.exam-active) .exercise-panel-content { position: absolute; bottom: 72px; right: 0; width: min(280px, calc(100vw - 40px)); max-height: 50dvh; }
  .code-training.is-exam { inset: 0; width: 100vw; height: 100dvh; padding: min(300px, 40dvh) 0 0; }
  body.exam-active .exercise-panel { inset: 0 0 auto; width: auto; height: min(300px, 40dvh); box-sizing: border-box; padding: 8px; display: flex; flex-wrap: wrap; gap: 6px; overflow: auto; background: #15151d; border-bottom: 1px solid #6b6771; }
  body.exam-active .exercise-panel-button { margin: 0; }
  body.exam-active .exercise-panel-content { flex: 1 0 100%; box-sizing: border-box; margin: 0; max-height: none; }
  body.exam-active .exam-tools-collapsed { inset: 8px 8px auto auto; padding: 0; }
  .code-training.is-exam.exam-wide { padding: 0; }
  .debug-values { grid-template-columns: 1fr; }
}
.exam-help { margin: 0 12px 10px; }
.exam-help button { padding: 2px 10px; }
.exam-help p { margin: 8px 0 0; padding: 8px 10px; border-left: 3px solid #c58be1; background: #292033; color: #f4e6fd; line-height: 1.5; }