/* Controls Trainer — Level 1 bonus "Build the motor rung yourself" (js/l1-bonus-rung.js).
   (cl-batch266, John 2026-11-15: "Do all seven", beta-test item 7) A light card like Step 1's work order, between Step 3's
   intro and the ControlsTrainer 5000 studio; collapsed by default. Level 1 only. */
.l1b{margin:12px;padding:0;background:#fff;color:#213f55;border:1px solid #c4d3de;border-left:4px solid #eea12c;border-radius:9px;font-size:14px;line-height:1.45;min-width:0}
.l1b [hidden]{display:none!important}
.l1b-h{margin:0;font-size:inherit}
.l1b-toggle{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;width:100%;margin:0;padding:10px 14px;background:none;border:0;border-radius:9px;color:inherit;font:inherit;text-align:left;cursor:pointer}
.l1b-toggle:hover{background:#f8fbfd}
.l1b-toggle:focus-visible,.l1b button:focus-visible,.l1b summary:focus-visible{outline:3px solid #2f7fc1;outline-offset:2px}
.l1b-tag{background:#eea12c;color:#2b1a00;font-weight:800;font-size:12px;letter-spacing:.06em;padding:2px 7px;border-radius:4px}
.l1b-name{font-weight:700}
.l1b-sub{color:#5a7184}
.l1b-state{margin-left:auto;font-size:12px;font-weight:700;color:#7a4b00;background:#fff4e0;border:1px solid #f1cf94;border-radius:999px;padding:1px 9px}
.l1b-chev{color:#5a7184;transition:transform .15s}
.l1b-open .l1b-chev{transform:rotate(180deg)}
.l1b-body{padding:2px 14px 14px;border-top:1px solid #e3e9ef}
.l1b-body p{margin:10px 0}
.l1b-intro{color:#2e4a5f}
.l1b-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.l1b-btn{min-height:36px;padding:7px 14px;border:1px solid #9fb4c5;border-radius:7px;background:#f4f8fb;color:#1d3a50;font:inherit;font-weight:600;cursor:pointer}
.l1b-btn:hover{background:#e8f0f6}
.l1b-primary{background:#1f6fb2;border-color:#1f6fb2;color:#fff}
.l1b-primary:hover{background:#185c95}
.l1b-link{padding:0;border:0;background:none;color:#1f6fb2;font:inherit;font-weight:600;text-decoration:underline;cursor:pointer}
.l1b-note{padding:8px 10px;background:#fff7e8;border:1px solid #f1cf94;border-radius:7px}
.l1b-warn{padding:8px 10px;background:#fdecec;border:1px solid #efb3b3;border-radius:7px;color:#7a1f1f}
/* (cl-batch266, John 2026-11-15: "Do all seven", beta-test item 7, review fix) the line shown when a bonus rung was rebuilt exactly as supplied */
.l1b-same{padding:8px 10px;background:#eaf6ee;border:1px solid #a9d6b6;border-radius:7px;color:#155c2c}
.l1b-guide{margin:10px 0;padding-left:22px}
.l1b-guide li{margin:5px 0;overflow-wrap:anywhere}
.l1b-reveal{margin:8px 0;padding:6px 10px;background:#f8fbfd;border:1px solid #dbe5ed;border-radius:7px}
.l1b-reveal summary{cursor:pointer;font-weight:600;color:#1f6fb2}
.l1b-reveal code{font-family:ui-monospace,Consolas,Menlo,monospace;font-size:13px;overflow-wrap:anywhere}
.l1b-test{margin-top:12px;padding-top:4px;border-top:1px dashed #d3dce5}
.l1b-pre{color:#5a7184}
.l1b-now{font-weight:600}
.l1b-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.l1b-chip{font-family:ui-monospace,Consolas,Menlo,monospace;font-size:12px;padding:2px 8px;border-radius:5px;background:#eef2f5;color:#4d6273;border:1px solid #d3dce5}
.l1b-chip.on{background:#e3f6e8;color:#155c2c;border-color:#8fd3a3}
.l1b-chip.out{font-weight:700}
.l1b-ops{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.l1b-op{min-height:38px;min-width:76px;padding:7px 12px;border:1px solid #9fb4c5;border-radius:7px;background:#f4f8fb;color:#1d3a50;font:inherit;font-weight:700;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none}
.l1b-op.start{background:#1e8a45;border-color:#1e8a45;color:#fff}
.l1b-op.stop{background:#c62828;border-color:#c62828;color:#fff}
.l1b-op.estop{background:#fff3f3;border-color:#c62828;color:#8e1b1b}
.l1b-op.held{box-shadow:inset 0 3px 6px rgba(0,0,0,.35);filter:brightness(.9)}
.l1b-tests{margin:10px 0;padding-left:0;list-style:none}
.l1b-t{display:block;margin:4px 0;padding:6px 8px;border-radius:6px;background:#f6f9fb;overflow-wrap:anywhere}
.l1b-mark{display:inline-block;width:1.4em;font-weight:800;color:#8aa0b2}
.l1b-t.is-pass{background:#e9f7ee}
.l1b-t.is-pass .l1b-mark{color:#1e8a45}
.l1b-t.is-fail{background:#fdf0f0}
.l1b-t.is-fail .l1b-mark{color:#c62828}
.l1b-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.l1b-tmsg{display:block;margin:3px 0 0 1.4em;color:#7a1f1f;font-size:13px}
.l1b-tmsg:empty{display:none}
.l1b-unexp{padding:8px 10px;background:#fdecec;border:1px solid #efb3b3;border-radius:7px;color:#7a1f1f}
.l1b-result{margin:10px 0;padding:10px 12px;background:#e9f7ee;border:1px solid #9ed6ae;border-radius:8px}
.l1b-result p{margin:6px 0}
.l1b-ok{font-weight:700;color:#155c2c}
.l1b-l1ok{color:#155c2c}
.l1b-l1no{color:#6b4300}
.l1b-end{padding-top:10px;border-top:1px solid #e3e9ef}
/* the studio's status bar: the bonus tick count */
.l1b-stick{margin-left:10px;color:#ffd38a;font-weight:600}
/* while the bonus is in progress the editor's logic-check notes stay hidden: they spell out the answer, and the card says
   what the checklist needs instead (decision 3) */
body.l1b-active #l1sLogic,body.l1b-active .l1lp-warn{display:none!important}
@media (max-width:650px){.l1b{margin:8px}}   /* lines up with the studio's own phone margin (level1-studio.css) */
@media (max-width:600px){
  .l1b-toggle{padding:10px 12px}
  .l1b-sub{flex-basis:100%}
  .l1b-state{margin-left:0}
  .l1b-body{padding:2px 12px 12px}
  .l1b-btn{flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){.l1b-chev{transition:none}}
