#workshop-home { --activity-ink:#344e52; --activity-muted:#64776b; --activity-line:#d9dfd1; background:#f3f0e3; }
#workshop-home .activity-house-mark { color:#9da781; }
.wb-collection { margin-left:auto; padding:8px 13px; border-radius:20px; background:#e7eddf; color:#879782; font-size:12px; }
.wb-content { height:calc(100% - 116px); padding:0 28px 24px; display:flex; flex-direction:column; gap:15px; }
.wb-toolbar { display:flex; align-items:center; gap:20px; justify-content:space-between; }
.wb-modes, .wb-levels { display:flex; gap:8px; }
.wb-modes { flex-shrink:0; }
#workshop-home[data-mode="homework"] .wb-modes { width:100%; }
#workshop-home[data-mode="homework"] .wb-modes button { flex:1; }
#workshop-home .wb-modes button { min-height:54px; background:#faf8ec; color:#83948b; padding:11px 24px; box-shadow:none; }
#workshop-home .wb-modes button[aria-pressed="true"] { background:#dce9e3; border-color:#96b3a8; color:#476f6b; }
#workshop-home .wb-levels button { min-height:44px; padding:9px 14px; border:1px solid transparent; box-shadow:none; background:transparent; font-size:12px; color:#96a08d; }
#workshop-home .wb-levels button[aria-pressed="true"] { background:#e9ecd9; border-color:#d2d9be; color:#6e835d; }
.wb-bench { flex:1; min-height:0; display:flex; flex-direction:column; gap:10px; padding:18px 22px; border:2px solid #d7e0d7; border-radius:27px; background-color:#f8fbf2; background-image:linear-gradient(#8caca008 1px,transparent 1px),linear-gradient(90deg,#8caca008 1px,transparent 1px); background-size:24px 24px; }
.wb-hero { display:flex; align-items:center; gap:20px; flex:0 1 130px; min-height:90px; padding:0 15px; border-bottom:1px solid #dde4d4; }
.wb-invention { height:100%; width:200px; flex-shrink:0; }
.wb-invention svg { display:block; width:100%; height:100%; overflow:visible; }
.wb-invention-copy small { font-size:10px; letter-spacing:2px; color:#9ca58d; }
.wb-invention-copy h2 { font-size:23px; margin:6px 0; letter-spacing:2px; }
.wb-machine-status { margin:0; font-size:12px; color:#94a28a; }
.wb-energy { margin-left:auto; min-width:270px; }
.wb-energy > div:first-child { display:flex; align-items:baseline; gap:8px; }
.wb-energy > div:first-child > span { font-size:12px; color:#8b9b8c; margin-right:auto; }
.wb-energy b { font-size:28px; font-variant-numeric:tabular-nums; color:#638d82; }
.wb-energy small { font-size:12px; color:#9ba58c; }
.wb-energy-cells, .wb-minimeter { display:grid; grid-template-columns:repeat(10,1fr); gap:4px; }
.wb-energy-cells { margin-top:6px; height:20px; }
.wb-energy-cells i, .wb-minimeter i { border:1px solid #cedacc; background:#e6eddf; border-radius:4px; }
.wb-energy-cells i.filled, .wb-minimeter i.filled { background:#9dc5b2; border-color:#87b5a2; }
.wb-history { margin:6px 0 0; min-height:18px; font-size:12px; color:#99a491; letter-spacing:2px; }
.wb-route-area { min-height:170px; flex:1; display:flex; flex-direction:column; }
.wb-route-heading { display:flex; justify-content:space-between; align-items:center; min-height:44px; margin-bottom:9px; }
.wb-route-heading > div:first-child { display:flex; align-items:baseline; gap:13px; }
.wb-paper-number { font-size:10px; color:#a0aa97; letter-spacing:1px; }
.wb-route-heading h3 { font-size:17px; font-weight:600; margin:0; }
.wb-nav { display:flex; align-items:center; gap:13px; }
#workshop-home .wb-nav button { width:44px; height:44px; padding:0; font-size:25px; background:#f3f3e7; box-shadow:none; color:#8c9e8d; }
.wb-page { font-size:11px; color:#9da792; font-variant-numeric:tabular-nums; }
.wb-route { flex:1; min-height:0; display:flex; align-items:stretch; gap:10px; }
.wb-node { flex:1; min-width:0; padding:12px 15px 10px; border:2px solid #dadfc9; background:#f3f2df; border-radius:19px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.wb-node[data-kind="charge"] { background:#e0eeea; border-color:#c6dfd6; }
.wb-node[data-kind="consume"] { background:#f7e9d9; border-color:#e8d4b9; }
.wb-node[data-kind="queue"] { background:#e9efe2; border-color:#d4dfc9; }
.wb-node > small { font-size:12px; color:#86947c; }
.wb-node-number { flex:1; min-height:62px; display:flex; align-items:center; justify-content:center; gap:8px; color:#637f74; font-size:38px; font-weight:650; font-variant-numeric:tabular-nums; }
.wb-node[data-kind="consume"] .wb-node-number { color:#b0865f; }
.wb-node-number em { font-style:normal; font-size:30px; }
.wb-slot { display:grid; place-items:center; width:72px; height:60px; border:2px dashed #a9b9a3; border-radius:12px; background:#fffdf0; color:#7c947c; }
.wb-slot.is-over { background:#d1e9d5; border-color:#5e9777; box-shadow:0 0 0 6px #9acba733; }
.wb-minimeter { width:100%; max-width:210px; height:10px; gap:3px; margin-top:5px; }
.wb-minimeter i { border-radius:2px; }
.wb-node-energy { margin-top:5px; font-size:11px; color:#98a18b; }
.wb-connector { width:24px; flex-shrink:0; align-self:center; text-align:center; color:#bcc7b3; font-size:22px; }
.wb-connector.is-lit { color:#80af98; }
.wb-node.is-active { border-color:#85b9a4; box-shadow:0 0 0 4px #b5d9bf26; }
.wb-node.is-mismatch { border-color:#d2a47a; background:#f6e6d3; box-shadow:none; }
.wb-parts { display:flex; align-items:center; justify-content:center; gap:28px; min-height:84px; padding:7px 12px; border-radius:18px; background:#eeecda; }
.wb-parts > div:first-child { min-width:180px; }
.wb-parts b { font-size:14px; color:#899473; }
.wb-parts small { display:block; margin-top:5px; font-size:10px; color:#a2a68b; }
.wb-choices { display:flex; gap:18px; }
#workshop-home .wb-choices button { width:76px; height:65px; padding:0; border:2px solid #c6d3b7; border-bottom-width:5px; border-radius:15px; background:#fffcef; color:#6e896f; font-size:29px; font-weight:600; touch-action:none; user-select:none; -webkit-user-select:none; }
#workshop-home .wb-choices button.is-used { border-color:#8db6a3; background:#dfece0; }
#workshop-home button:disabled { transform:none; cursor:default; }
#workshop-home .wb-choices button:disabled { opacity:.6; }
#workshop-home .wb-replay { font-size:11px; box-shadow:none; border:0; background:transparent; color:#9aa187; min-height:44px; }
.wb-bottom { display:flex; align-items:center; gap:12px; min-height:38px; }
.wb-feedback { flex:1; font-size:13px; line-height:1.7; color:#81967f; margin:0; }
.wb-save-note { font-size:9px; color:#a6b09b; white-space:nowrap; }
#workshop-home[data-phase="mismatch"] .wb-feedback { color:#ae835f; }
#workshop-home[data-phase="success"] .wb-feedback { color:#658b65; }
.wb-drag-number { position:absolute; width:64px; height:64px; display:grid; place-items:center; z-index:5; pointer-events:none; background:#e6efcf; color:#648068; border:2px solid #93b99a; border-radius:15px; font-size:30px; font-weight:650; box-shadow:0 10px 25px #658a7333; }
/* Keep the soft paper palette, with readable labels and countable energy cells. */
#workshop-home .wb-modes button, #workshop-home .wb-levels button { color:#5e7164; }
.wb-collection, .wb-machine-status, .wb-energy > div:first-child > span,
.wb-history, .wb-node > small, .wb-node-energy, .wb-parts b, .wb-feedback { color:#596f60; }
.wb-invention-copy small, .wb-paper-number, .wb-page, .wb-parts small { color:#6b7862; }
.wb-node-number, .wb-slot, #workshop-home .wb-choices button { color:#365d50; }
.wb-node[data-kind="consume"] .wb-node-number { color:#98602f; }
.wb-energy-cells i.filled, .wb-minimeter i.filled { background:#6aa98c; border-color:#538d74; }
#workshop-home[data-phase="mismatch"] .wb-feedback { color:#975c2c; }
#workshop-home[data-phase="success"] .wb-feedback { color:#3c7047; }
.wb-running .wb-machine-light { fill:#9cd2b6; }
.wb-running .wb-eyes { fill:#c5f1df; }
.wb-running .wb-arm-left { transform-origin:89px 123px; animation:wb-wave-left 1.2s ease-in-out infinite; }
.wb-running .wb-arm-right { transform-origin:172px 123px; animation:wb-wave-right 1.2s ease-in-out infinite; }
.wb-running .wb-car { animation:wb-drive 1.6s ease-in-out infinite; }
.wb-running .wb-wheel { animation:wb-roll 1s linear infinite; }
.wb-running .wb-plane { animation:wb-fly 2s ease-in-out infinite; }
.wb-running .wb-propeller { transform-origin:221px 130px; animation:wb-prop .3s linear infinite; }
@keyframes wb-wave-left { 50% { transform:rotate(24deg); } }
@keyframes wb-wave-right { 50% { transform:rotate(-24deg); } }
@keyframes wb-drive { 50% { transform:translate(14px,-2px); } }
@keyframes wb-roll { to { transform:rotate(360deg); } }
@keyframes wb-fly { 50% { transform:translate(8px,-12px); } }
@keyframes wb-prop { 50% { transform:scaleY(.12); } }
@media (max-height:760px), (max-width:1100px) {
  .wb-content { height:calc(100% - 92px); padding-bottom:18px; gap:12px; }
  #workshop-home .wb-modes button { min-height:48px; padding:10px 14px; font-size:14px; }
  #workshop-home .wb-levels button { padding:8px; font-size:11px; white-space:nowrap; }
  .wb-toolbar { gap:10px; }
  .wb-bench { padding:12px 18px; gap:8px; }
  .wb-hero { flex-basis:100px; gap:12px; padding:0 4px; }
  .wb-invention { width:160px; }
  .wb-invention-copy h2 { font-size:20px; }
  .wb-energy { min-width:240px; }
  .wb-energy b { font-size:24px; }
  .wb-route-heading { margin-bottom:5px; }
  .wb-route { gap:7px; }
  .wb-node { padding:8px 12px; }
  .wb-node-number { min-height:57px; font-size:33px; }
  .wb-slot { height:53px; width:64px; }
  .wb-parts { min-height:72px; padding:5px 10px; gap:22px; }
  #workshop-home .wb-choices button { height:58px; width:68px; }
  .wb-feedback { font-size:12px; }
}
@media (prefers-reduced-motion:reduce) { #workshop-home *, #workshop-home { animation:none !important; transition:none !important; } }
