.guide .goal{margin-top:16px;padding:14px}
.guide .tip{margin-top:16px;padding:14px 0 0;border:0;border-top:1px solid #dce6ec;border-radius:0;background:transparent}
.guide .tip strong{color:#244c50}
.guided-demo{margin-top:12px;padding-top:12px;border-top:1px solid #c9e8df}
.guided-demo[hidden]{display:none}
.guided-demo-head{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px;color:#075f5c;font-size:13px}
.guided-demo-head span{font-size:12px;font-weight:700}
#guided-instruction{margin:8px 0 6px;line-height:1.6;font-size:13px;color:#244c50}
.guide .guided-feedback{min-height:20px;margin:0 0 10px;color:#147c6b;font-size:12px;line-height:1.5}
.guided-demo-actions{display:flex;flex-wrap:wrap;gap:8px}
.guided-demo-actions button{padding:7px 10px;border-radius:7px;border:1px solid #0b9b89;background:#0b9b89;color:#fff;font-size:12px;font-weight:700;cursor:pointer}
.guided-demo-actions button:disabled{opacity:.5;cursor:not-allowed}
.guided-demo-actions #guided-restart{background:#fff;color:#0b756d}
.diagram-wrap svg .tutorial-focus-node{filter:drop-shadow(0 0 12px #ffcf58)}
.diagram-wrap svg .tutorial-focus-node .node,.diagram-wrap svg .tutorial-focus-node .gate-shape{stroke:#ffd35e;stroke-width:5}
.diagram-wrap svg .port.tutorial-focus-port{stroke:#ffd35e;stroke-width:6;filter:drop-shadow(0 0 8px #ffd35e)}
.tutorial-focus-control{outline:3px solid #f7bc40!important;outline-offset:3px;box-shadow:0 0 0 6px #f7bc4033}
.truth-table.tutorial-focus-control{border-radius:8px}

/* 与开发板实验一致：导航下方直接进入三栏工作区，左栏独立滚动。 */
.lab-shell{max-width:none;height:calc(100dvh - 68px);margin:0;padding:0;overflow:hidden}
.lab-grid{height:100%;grid-template-columns:minmax(290px,21%) minmax(0,1fr) minmax(260px,22%);gap:0}
.lab-grid>.card{min-height:0;padding:20px;border-top:0;border-bottom:0;border-radius:0;box-shadow:none;overflow:auto}
.lab-grid>.card+.card{border-left:0}
.guide-heading .kicker{margin:0;color:#008e83;font-size:11px;font-weight:800;letter-spacing:1.5px}
.guide-heading h1{margin:16px 0 10px;font-size:clamp(22px,2vw,30px);line-height:1.25}
.guide-heading #task-intro{margin:0;color:#62788a;font-size:13px;line-height:1.65}
.guide #guide-heading{display:none}
.guide #guide-concept{margin:18px 0 0;color:#476174;font-size:13px;line-height:1.65}
.guide .goal{margin-top:18px;padding:14px;border:1px solid #d6e7fb;border-radius:8px;background:#eef6ff;color:#243752}
.guide .goal>strong,.guide .goal>#task-goal{display:inline}
.guide .goal>#task-goal{margin:0 0 0 3px;color:#315b85}
.guide .guided-demo{margin-top:9px;padding:0;border:0}
.guide .guided-demo-head{color:#1d5b93}
.guide #guided-instruction{color:#315b85}
.guide .guided-feedback{color:#315b85}
.guide .guided-demo-actions button{border-color:#a9c5db;background:#fff;color:#235b83}
.guide .guided-demo-actions #guided-next:not(:disabled){background:#e4f2ff}
.guide .goal{font-size:13px}
.guide .guided-demo-head{flex-wrap:nowrap;justify-content:space-between;font-size:12px}
.guide .guided-demo-head span{font-size:12px}
.guide #guided-title{margin:10px 0 5px;color:#153b62;font-size:15px;line-height:1.3}
.guide #guided-instruction{margin:5px 0 8px;font-size:12px;line-height:1.55}
.guide .guided-feedback{font-size:11px}
.guide .guided-demo-actions{gap:5px}
.guide .guided-demo-actions button{padding:6px 7px;font-size:12px}
.guide .guided-demo-actions #guided-restart{margin-left:auto}
.workspace .task-options{justify-content:flex-start;margin:0 0 18px;padding-bottom:16px;border-bottom:1px solid #dce6ec}
.workspace .task-options .task-picker{flex:1 1 145px;min-width:135px}
.workspace .task-options .task-picker:first-child{flex:1.4 1 205px;min-width:180px}
.workspace .panel-head{flex-wrap:wrap}

@media(max-width:1250px){
  .lab-shell{height:auto;min-height:calc(100dvh - 68px);overflow:visible}
  .lab-grid{height:auto;grid-template-columns:minmax(270px,32%) minmax(0,1fr)}
  .lab-grid>.card{border-bottom:1px solid #dce6ec;overflow:visible}
  .lab-grid>.results{grid-column:1/-1;display:block}
}
@media(max-width:750px){
  .lab-grid{grid-template-columns:minmax(0,1fr)}
  .lab-grid>.card{grid-column:auto;padding:16px}
  .workspace .task-options .task-picker,.workspace .task-options .task-picker:first-child{min-width:0}
}
