/* v37: full-width explanations, vertical Python task, bonus in the level menu. */
body.game-theme.work .work-head p {max-width:none!important}
body.game-theme.work .work-head>div {flex:1;min-width:0}
body.game-theme.work .level-task-complete .work-head {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 20px}
body.game-theme.work .level-task-complete .work-head>div {display:contents}
body.game-theme.work .level-task-complete .work-head .tag {grid-column:1;grid-row:1;justify-self:start;align-self:start;margin-bottom:0}
body.game-theme.work .level-task-complete .work-head .step-count {grid-column:2;grid-row:1;align-self:start}
body.game-theme.work .level-task-complete .work-head h2,
body.game-theme.work .level-task-complete .work-head p {grid-column:1 / -1;width:100%;max-width:none!important}
body.game-theme.work .level-task-complete .work-head p+p {margin-top:8px!important}
body.game-theme.work .level-task .stage-back,
body.game-theme.work .mission-summary>.actions,
body.game-theme.work[data-stage="7"] .stage-back {justify-content:center!important}
body.game-theme.work .level-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
body.game-theme.work .bonus-level-card {border-color:#f2c36f}
body.game-theme.work .bonus-unlock-note {font-size:13px!important;line-height:1.5!important;margin-top:auto!important;color:#f2c36f}
body.game-theme.work .workspace.code-writing {max-width:1160px!important;overflow:visible!important}
body.game-theme.work .coding-workspace {display:flex;flex-direction:column;gap:28px;align-items:stretch}
body.game-theme.work .coding-theory {position:static;min-width:0;width:100%}
body.game-theme.work .coding-theory>h3 {font-size:25px!important;margin:0 0 18px;color:#f2c36f!important}
body.game-theme.work .coding-theory .code-primer {display:grid;grid-template-columns:1fr;gap:16px}
body.game-theme.work .coding-theory .code-primer article {display:flex;padding:20px;gap:18px}
body.game-theme.work .coding-theory .code-primer article>div {flex:1;min-width:0}
body.game-theme.work .coding-theory .code-primer article>span {font-size:30px!important}
body.game-theme.work .coding-theory .code-primer h3 {font-family:Arial,Helvetica,sans-serif!important;font-size:19px!important;line-height:1.4!important;text-transform:none!important}
body.game-theme.work .coding-theory .code-primer p {font-size:15px!important;line-height:1.6!important;max-width:none}
body.game-theme.work .coding-theory .code-primer article>div>code {font-size:18px!important;padding:12px}
body.game-theme.work .coding-theory .code-order-note {padding:18px;font-size:15px!important;line-height:1.6!important;margin-bottom:0;color:#fff!important}
body.game-theme.work .coding-practice {min-width:0;width:100%}
body.game-theme.work .code-brief .task-code-example {margin:10px 0!important;padding:9px 12px;border-left:3px solid #f2c36f;background:#0c0b10;font-size:14px!important;color:#fff}
body.game-theme.work .code-brief .task-code-example code {font-size:16px!important}
body.game-theme.work .code-brief .task-step-help {font-size:14px!important;line-height:1.55!important;margin:10px 0 0!important;color:#e8e1ec}
body.game-theme.work .code-reflection p+p {margin-top:16px!important}
body.game-theme.work .analyst-reflection p {font-size:16px!important;line-height:1.6!important;margin:0 0 16px}
body.game-theme.work .analyst-reflection p:last-child {margin-bottom:0}
@media(max-width:650px) {
 body.game-theme.work .level-grid {grid-template-columns:1fr}
 body.game-theme.work .coding-theory .code-primer article {padding:16px;gap:14px}
 body.game-theme.work .coding-theory .code-primer article>div>code {font-size:16px!important}
 body.game-theme.work .level-success-actions {gap:12px;flex-direction:column;align-items:center}
 body.game-theme.work .level-success-actions button {width:100%;max-width:360px}
}

/* Keep the profile balanced after removing the separate total card. */
body.game-theme.work .profile-summary {grid-template-columns:repeat(2,minmax(0,1fr))}
body.game-theme.work #draft-stock button {display:block}
/* Keep the print studio visible behind the optional training tasks. */
body.game-theme.work:has(.study-scene80)>:is(#scene,.shade){display:none!important}
body.game-theme.work #app:has(>.study-scene80){position:relative;isolation:isolate}
body.game-theme.work .study-scene80{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;object-fit:cover;object-position:center;pointer-events:none;z-index:-2;background:#634758}
body.game-theme.work #app:has(>.study-scene80)::before{content:'';position:fixed;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(180deg,#25172555 0%,transparent 28%,transparent 72%,#2b1b304f 100%)}
