.intro{margin-bottom:20px}.template-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.template-choice{display:flex;gap:14px;align-items:center;text-align:left;border:1px solid var(--border);background:#fcfbf5;padding:13px 18px;border-radius:11px}.template-choice[aria-pressed=true]{background:#edf1e0;border-color:#9fb588;box-shadow:inset 0 0 0 1px #9fb588}.template-choice .template-icon{font-size:27px;width:38px;height:38px;border-radius:9px;display:grid;place-items:center;background:#e8ecda;color:#718762}.template-choice:nth-child(2) .template-icon{background:#e8e0ed;color:#897396}.template-choice:nth-child(3) .template-icon{background:#e3ece8;color:#729589}.template-choice strong{display:block;font-size:13px;margin-bottom:4px}.template-choice small{font-size:10px;color:var(--muted)}.build-path{border:1px solid var(--border);border-radius:12px;background:#fcfcf5;margin-bottom:20px;overflow:hidden}.build-steps{display:flex;background:#f0f3e6;border-bottom:1px solid #e2e7d8;padding:6px 10px;gap:5px}.build-steps button{flex:1;padding:7px 9px;text-align:left;font-size:10px;color:#8c987f;display:flex;align-items:center;gap:7px}.build-steps button span{border:1px solid #cbd6bc;border-radius:50%;width:19px;height:19px;display:grid;place-items:center;flex-shrink:0;font-size:9px}.build-steps button[aria-current=step]{color:#3d6345;background:#e3eccf}.build-steps button[aria-current=step] span{background:#6d8b55;color:#fff;border-color:#6d8b55}.build-detail{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:13px 19px}.build-detail strong{font-size:12px}.build-detail p{font-size:11px;margin:4px 0 0;color:var(--muted)}.step-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.step-actions .quiet{font-size:10px}#template-ideas{display:contents}.game-footer{gap:6px}#score{text-align:right;white-space:nowrap}#exercise-result:empty{display:none}#exercise-result{color:#7a8c5f;max-width:600px}.build-detail #exercise-result[data-pass=false]{color:#a87947}@media(max-width:900px){.template-choice{padding:12px;gap:9px}.template-choice small{display:none}.build-detail{align-items:flex-start}.step-actions{flex-direction:column;gap:3px}.build-steps button{font-size:9px;padding:6px 3px}}@media(max-width:580px){.template-picker{gap:7px}.template-choice{flex-direction:column;text-align:center;gap:7px;padding:10px 5px}.template-choice strong{font-size:11px;margin:0}.template-choice .template-icon{width:30px;height:30px;font-size:24px}.build-steps{gap:2px;padding:6px}.build-steps button{flex-direction:column;text-align:center;gap:4px}.build-detail{padding:12px;flex-direction:column;gap:11px}.step-actions{flex-direction:row;justify-content:space-between;width:100%}.game-footer{font-size:9px;padding:0 10px}.game-footer .separator{padding:0 3px}kbd{font-size:9px}}

.workshop-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;position:relative}
.workshop-heading h1{font-size:24px;margin:0}
#game-chooser summary{cursor:pointer;font-size:12px;color:var(--muted);padding:8px;border-radius:6px}
#game-chooser summary:focus-visible{outline:2px solid #6d8b55;outline-offset:3px}
#game-chooser[open] .template-picker{position:absolute;top:100%;left:0;right:0;z-index:10;padding:12px;background:#fcfbf5;border:1px solid var(--border);border-radius:11px;box-shadow:0 8px 24px #263c2420;margin:4px 0 0}
@media(max-width:580px){.workshop-heading h1{font-size:20px}}

/* One toolbar for the workshop; Pip introduces the selected exercise. */
.topbar > .workshop-heading { display:none; }
body[data-mode="workshop"] .topbar { max-width:1460px; padding-top:10px; padding-bottom:10px; gap:24px; }
body[data-mode="workshop"] .topbar > .workshop-heading { display:flex; flex:1; margin:0; min-width:0; }
body[data-mode="workshop"] .brand-note,
body[data-mode="workshop"] .header-actions { display:none; }
#workshop-main { padding-top:14px; }
.exercise-menu { position:relative; }
.exercise-menu > summary { display:flex; align-items:center; gap:14px; cursor:pointer; list-style:none; border:1px solid var(--border); border-radius:8px; padding:10px 14px; min-height:44px; font-size:12px; background:#fffdf5; }
.exercise-menu > summary::-webkit-details-marker { display:none; }
.exercise-menu[open] > summary { background:#e9edde; }
.exercise-menu .build-steps { position:absolute; z-index:20; top:calc(100% + 8px); right:0; width:280px; display:flex; flex-direction:column; gap:4px; padding:6px; border:1px solid var(--border); border-radius:12px; background:#fffdf5; box-shadow:0 12px 32px #243d3326; }
.exercise-menu .build-steps button { flex-direction:row; font-size:12px; padding:12px; text-align:left; }
.exercise-actions { display:flex; align-items:center; gap:4px; }
#exercise-result { margin:0; padding:10px 16px; font-size:12px; line-height:1.5; border-bottom:1px solid var(--border); background:#f9fbf1; }
#exercise-result[data-pass="false"] { color:#a87947; }
#workshop-main .file-tab { display:none; }
#workshop-main .conversation { margin-top:12px; }
.editor-tools { display:flex; align-items:center; flex-wrap:wrap; gap:4px; }
.editor-tools button { padding:7px 9px; font-size:11px; }
#workshop-main .code-card > .panel-heading { height:auto; min-height:54px; flex-wrap:wrap; padding-top:8px; padding-bottom:8px; }
@media(max-width:780px) {
  body[data-mode="workshop"] .topbar { gap:10px; }
  body[data-mode="workshop"] .topbar > .workshop-heading { flex-wrap:wrap; gap:8px; }
  body[data-mode="workshop"] .workshop-actions { width:auto; flex-wrap:wrap; gap:6px; }
  body[data-mode="workshop"] .workshop-heading h1 { font-size:20px; }
  .exercise-menu { position:static; }
  .exercise-menu .build-steps { right:0; left:0; width:auto; }
}
