:root{--lab-bg:#fff8e7;--lab-paper:#fff;--lab-ink:#2b2b3a;--lab-muted:#666978;--lab-line:#e6ddc7;--lab-green:#3e9f7d;--lab-green-dark:#27745a;--lab-orange:#ef7d32;--lab-orange-dark:#b9561d;--lab-yellow:#fff0b9;--lab-blue:#eaf5ff;--lab-shadow:0 12px 30px rgba(62,75,61,.10)}
body.researcher-ui{background:var(--lab-bg);color:var(--lab-ink)}
.researcher-ui .hero,.researcher-ui .stepnav,.researcher-ui .lesson-route{display:none!important}
.researcher-ui .topbar{background:#294c3e;border:0}.researcher-ui .topbar a{color:#fff}
.researcher-header{width:min(1220px,calc(100% - 28px));margin:14px auto 10px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.researcher-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--lab-ink);font-weight:900}.researcher-brand b{font-size:clamp(18px,2.5vw,25px)}.researcher-brand small{display:block;color:var(--lab-green-dark);letter-spacing:.08em;font-size:11px}
.researcher-home{background:#fff;border:1px solid var(--lab-line);border-radius:999px;padding:9px 14px;text-decoration:none;color:var(--lab-green-dark);font-weight:800}
.researcher-nav{width:min(1220px,calc(100% - 28px));margin:0 auto 16px;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:#fff;border:1px solid var(--lab-line);padding:7px;border-radius:18px;position:sticky;top:4px;z-index:30;box-shadow:0 6px 18px #504b3e14}
.researcher-nav button{border:0;border-radius:12px;min-height:46px;background:transparent;color:#6b6b74;font-weight:900;font-size:15px}.researcher-nav button[aria-current=step]{background:var(--lab-green-dark);color:#fff;box-shadow:0 3px 0 #1c5542}
.researcher-ui main.shell{width:min(1220px,calc(100% - 28px));padding:0 0 44px}
.researcher-screen{display:none}.researcher-screen.is-active{display:block}
.researcher-welcome{display:grid;grid-template-columns:minmax(0,.95fr) minmax(340px,1.15fr);overflow:hidden;background:#fff;border:2px solid var(--lab-line);border-radius:26px;box-shadow:var(--lab-shadow);min-height:420px}
.researcher-welcome-copy{padding:clamp(24px,4vw,46px)}.researcher-kicker{font-size:12px;letter-spacing:.14em;font-weight:900;color:var(--lab-green-dark)}.researcher-welcome h1,.researcher-welcome h2{font-size:clamp(30px,4vw,48px);line-height:1.22;margin:7px 0 14px;color:var(--lab-ink)}.researcher-welcome p{font-size:17px;color:#555966}.researcher-promise{background:#eff8f3;border-left:5px solid #60c3a4;padding:12px 14px;border-radius:12px;margin:18px 0}.researcher-primary{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:10px 22px;border:0;border-radius:16px;background:var(--lab-orange);color:#fff!important;text-decoration:none;font-weight:900;box-shadow:0 4px 0 var(--lab-orange-dark);cursor:pointer}.researcher-primary:active{transform:translateY(2px);box-shadow:0 2px 0 var(--lab-orange-dark)}
.researcher-scene{position:relative;min-height:420px;background:#e9f5ed}.researcher-scene .room{width:100%;height:100%;min-height:420px;object-fit:cover;display:block}.researcher-scene .doc{position:absolute;right:2%;bottom:0;width:min(35%,190px);max-height:70%;object-fit:contain}.researcher-bubble{position:absolute;left:5%;top:7%;max-width:55%;background:#fff;border:3px solid #60c3a4;border-radius:18px;padding:12px 15px;font-weight:900;box-shadow:0 7px 16px #294c3e18}
.researcher-coach{display:grid;grid-template-columns:70px 1fr;gap:12px;align-items:center;background:#fff;border:2px solid #60c3a4;border-radius:18px;padding:10px 14px;margin:0 0 14px;box-shadow:0 4px 0 #dcebdc}.researcher-coach img{width:64px;height:70px;object-fit:contain}.researcher-coach strong{display:block;color:var(--lab-green-dark);font-size:14px}.researcher-coach p{margin:2px 0;font-size:15px}
.researcher-ui .labgrid{grid-template-columns:minmax(0,1.6fr) minmax(310px,.85fr);gap:16px}.researcher-ui .card,.researcher-ui .panel,.researcher-ui .section{border:1px solid var(--lab-line);border-radius:20px;box-shadow:0 5px 0 #ece3cf;background:#fff}.researcher-ui .scopeStage{background:#edf4ed;border-radius:0 0 20px 20px}.researcher-ui .scopeFrame{max-width:520px}.researcher-ui .panel{max-height:none;overflow:visible}.researcher-ui .btn.primary{background:var(--lab-orange)}.researcher-ui .btn.secondary{background:#f3f7f4;color:#315f4e;border-color:#bfd4c9}
.researcher-taskbar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.researcher-taskbar button{flex:1 1 175px;border:1px solid #cddfd5;background:#fff;border-radius:14px;min-height:44px;padding:8px 12px;font-weight:800;color:#315f4e}.researcher-taskbar button.is-current{background:#e9f6ef;border-color:#60c3a4}
.researcher-notebook-intro{background:#fff5dc;border-left:5px solid var(--lab-orange);border-radius:14px;padding:14px 16px;margin:0 0 14px}.researcher-notebook-intro h2{margin:0 0 4px}.researcher-notebook-intro p{margin:4px 0}
.researcher-return{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px;padding:12px 14px;border:2px solid #bfe3d5;border-radius:16px;background:#f3fbf7}.researcher-return p{margin:0;color:#466257}.researcher-return [hidden]{display:none}.researcher-bench-record{margin:14px 0}
.researcher-ui #study-note{display:block!important;width:100%;min-height:120px;border:1px solid #b9cec3;border-radius:14px;padding:11px;background:#fff}.researcher-ui .teacher-plan{margin-top:14px}.researcher-ui .study-checks,.researcher-ui .study-storage{margin-top:14px}
.researcher-directory{background:var(--lab-bg)!important}.researcher-directory .hero{display:none}.researcher-directory main{padding-top:12px}.researcher-directory .researcher-lobby{margin:24px auto 26px}.researcher-directory .filters{background:#fff;border:1px solid var(--lab-line);border-radius:18px}.researcher-directory .resource{position:relative;border:2px solid var(--lab-line)!important;border-radius:22px!important;box-shadow:0 6px 0 #eee4ce!important;padding-top:18px!important;transition:transform .15s ease,box-shadow .15s ease}.researcher-directory .resource:hover{transform:translateY(-2px);box-shadow:0 8px 0 #e8dcc0!important}.station-icon{width:70px;height:70px;object-fit:contain;float:right;margin:0 0 8px 10px;background:#fff8e7;border-radius:18px;padding:7px}.station-label{display:inline-block;font-size:12px;letter-spacing:.08em;font-weight:900;color:var(--lab-green-dark);background:#eaf6ef;border-radius:999px;padding:3px 9px;margin-bottom:6px}.mission-line{font-size:14px;color:#5f626d;margin:8px 0 12px}.researcher-directory .resource .open{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:#eaf6ef!important;color:#245742!important;border-radius:12px;padding:8px 13px!important;font-weight:900;text-decoration:none}
@media(max-width:850px){.researcher-welcome{grid-template-columns:1fr}.researcher-scene{min-height:270px;order:-1}.researcher-scene .room{min-height:270px;height:270px}.researcher-welcome-copy{padding:22px}.researcher-ui .labgrid{grid-template-columns:1fr}.researcher-ui .panel{max-height:none;overflow:visible}.researcher-nav{grid-template-columns:repeat(2,1fr);position:static}.researcher-bubble{max-width:62%}}
@media(max-width:700px){.researcher-ui main.shell,.researcher-header,.researcher-nav{width:calc(100% - 18px)}.researcher-header{margin-top:8px}.researcher-ui .labgrid{display:flex;flex-direction:column}.researcher-ui .labgrid>.card:first-child{position:static;max-height:none;overflow:visible}.researcher-ui .scopeStage{padding:5px}.researcher-ui .scopeFrame{max-width:min(58vw,245px)}.researcher-ui .scopeModelNote{display:none}.researcher-ui .cardhead{padding:9px 12px}.researcher-ui .cardhead h2{font-size:16px}.researcher-ui .slide-workbench{padding:6px 12px}.researcher-ui .slide-pad{height:72px}.researcher-ui .panel{padding:14px}.researcher-coach{grid-template-columns:48px 1fr;padding:7px 9px}.researcher-coach img{width:44px;height:50px}.researcher-bubble{font-size:14px}.researcher-welcome h1,.researcher-welcome h2{font-size:30px}}
@media print{.researcher-header,.researcher-nav,.researcher-coach,.researcher-welcome,.researcher-taskbar,.researcher-ui .topbar,.researcher-ui .footer,.researcher-ui .recordTools button:not(#printRecord){display:none!important}.researcher-ui main.shell{width:100%;padding:0}.researcher-screen{display:none!important}.researcher-screen[data-screen=notebook]{display:block!important}.researcher-ui .card,.researcher-ui .section{box-shadow:none;border:0}.researcher-ui #study-note{white-space:pre-wrap;min-height:80px}.researcher-ui .labgrid>.card:first-child{position:static!important;max-height:none!important}}
/* mini-lab visual alignment */
.researcher-ui,.researcher-directory{--lab-bg:#fff8e7;--lab-paper:#fffdf8;--lab-ink:#2b2b3a;--lab-green:#60c3a4;--lab-green-dark:#357e69;--lab-orange:#ff8c42;--lab-yellow:#f5c542;--lab-blue:#4fa3e3;--lab-pink:#f06292;--lab-line:#e7dfc9}
.researcher-header{background:rgba(255,253,248,.92);border:1px solid var(--lab-line);border-radius:20px;padding:9px 13px;box-shadow:0 5px 0 #eadfc8}
.researcher-brand>span:first-child{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#eaf8f3;border:2px solid #bfe3d5;font-size:22px}
.researcher-nav{background:#fffdf8;border:2px solid var(--lab-line);box-shadow:0 5px 0 #eadfc8}
.researcher-nav button{position:relative}
.researcher-nav button[aria-current=step]{background:#60c3a4;color:#20352f;box-shadow:0 3px 0 #3f9c80}
.researcher-welcome{border:3px solid #eadfc8;box-shadow:0 9px 0 #eadfc8;background:#fffdf8}
.researcher-welcome-copy{background:linear-gradient(145deg,#fffdf8,#fff8e7)}
.researcher-kicker{display:inline-block;background:#eaf8f3;border:1px solid #bfe3d5;border-radius:999px;padding:4px 9px;color:#357e69}
.researcher-promise{background:#fff3c7;border:2px solid #f0d77c;border-left-width:6px}
.researcher-primary{background:#ff8c42;box-shadow:0 4px 0 #d96f2a;border-radius:999px}
.researcher-scene{background:#dff3ea}
.researcher-bubble{border-color:#60c3a4;box-shadow:0 5px 0 #bfe3d5}
.researcher-bubble:after{content:"";position:absolute;right:28px;bottom:-13px;border:7px solid transparent;border-top-color:#60c3a4;transform:skewX(-18deg)}
.researcher-coach{border:2px solid #bfe3d5;background:#fffdf8;box-shadow:0 4px 0 #dcefe7}
.researcher-ui .card,.researcher-ui .panel,.researcher-ui .section{background:#fffdf8;border:2px solid #e7dfc9;box-shadow:0 5px 0 #eadfc8}
.researcher-ui .scopeStage{background:linear-gradient(#eef8f2,#dceee3)}
.researcher-ui .scopeFrame canvas{box-shadow:0 0 0 10px #36564d,0 10px 20px rgba(43,62,54,.22)}
.researcher-ui .slide-workbench{background:#fff9ec;border-top:1px dashed #dccfab}
.researcher-ui .slide-pad{background:linear-gradient(180deg,#e8f8ff,#d9eef8);border:2px solid #92c8de}
.researcher-ui .choice label{border:2px solid #d8d6c7;border-radius:14px}
.researcher-ui .choice input:checked+label{border-color:#60c3a4;background:#eaf8f3;color:#2b6755;box-shadow:0 0 0 2px rgba(96,195,164,.18)}
.researcher-ui .btn{border-radius:999px}
.researcher-ui .btn.primary{background:#ff8c42;box-shadow:0 3px 0 #d96f2a}
.researcher-ui .btn.secondary{background:#fff;color:#357e69;border:2px solid #bfe3d5}
.researcher-taskbar button{background:#fffdf8;border:2px solid #d7dfd2;border-radius:16px;box-shadow:0 3px 0 #e4dfcf}
.researcher-taskbar button.is-current{background:#eaf8f3;border-color:#60c3a4;box-shadow:0 3px 0 #bfe3d5}
.researcher-notebook-intro{background:#fff3c7;border:2px solid #f0d77c;border-left:6px solid #ff8c42}
.researcher-directory .resource{background:#fffdf8!important;border:2px solid #e7dfc9!important;box-shadow:0 5px 0 #eadfc8!important}
.researcher-directory .resource:nth-child(4n+1) .station-icon{background:#eaf8f3}.researcher-directory .resource:nth-child(4n+2) .station-icon{background:#eaf5ff}.researcher-directory .resource:nth-child(4n+3) .station-icon{background:#fff3c7}.researcher-directory .resource:nth-child(4n) .station-icon{background:#fdebf2}
.station-icon{border:2px solid #efe4c9;border-radius:20px}
.station-label{background:#eaf8f3;color:#357e69;border:1px solid #bfe3d5}
.researcher-directory .resource .open{background:#ff8c42!important;color:#fff!important;border-radius:999px;box-shadow:0 3px 0 #d96f2a}
@media(max-width:700px){.researcher-ui .labgrid>.card:first-child{border-color:#60c3a4;background:#fffdf8}.researcher-nav button{font-size:14px}.researcher-header{border-radius:16px}}

/* Mini-lab visual language: cream paper, sticker cards, playful research bench */
.researcher-ui,.researcher-directory{background:
radial-gradient(circle at 14% 8%,rgba(255,208,102,.18),transparent 22rem),
radial-gradient(circle at 86% 12%,rgba(96,195,164,.15),transparent 24rem),
var(--lab-bg)!important}
.researcher-header{background:#fffaf0;border:2px solid #efe1bd;border-radius:20px;padding:10px 14px;box-shadow:0 5px 0 #eadab5}
.researcher-brand span:first-child{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#fff0c8;border:2px solid #f5c542;font-size:24px;transform:rotate(-4deg)}
.researcher-home{background:#eaf7f0;border:2px solid #9bd7c3;box-shadow:0 3px 0 #b6dccf}
.researcher-nav{background:#fffaf0;border:2px solid #eadab5;box-shadow:0 5px 0 #e8d6aa}
.researcher-nav button{position:relative}.researcher-nav button[aria-current=step]{background:#60c3a4;box-shadow:0 4px 0 #3f9c80;color:#173f32}
.researcher-welcome{border:3px solid #eadab5;box-shadow:0 8px 0 #eadab5;background:#fffdf8}
.researcher-welcome-copy{position:relative}.researcher-welcome-copy:after{content:"";position:absolute;right:22px;top:22px;width:74px;height:74px;background:url("../tools/mini-lab/img/badge-tools.png") center/contain no-repeat;transform:rotate(8deg);opacity:.95;pointer-events:none}
.researcher-promise{display:grid;gap:7px;background:#fff4c9;border:2px solid #f2d77e;border-left-width:6px;box-shadow:0 3px 0 #f2ddb0}
.researcher-promise b{color:#7a5914}.researcher-promise span{display:block}
.researcher-guess{display:block;margin-top:4px;padding-top:7px;border-top:1px dashed #d3b95f;color:#5f501f;font-style:normal;font-size:13px}
.researcher-kit{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}.researcher-kit span{background:#fff;border:2px solid #e7dec8;border-radius:999px;padding:7px 11px;font-weight:800;font-size:13px;box-shadow:0 2px 0 #eee3ca}
.researcher-scene{background:#e9f6ef;border-left:3px solid #eadab5}.researcher-bubble{border-color:#60c3a4;box-shadow:0 4px 0 #b9dfd2}
.researcher-primary{background:#ff8c42;box-shadow:0 4px 0 #d96f2a;border:2px solid #d96f2a}
.researcher-coach{background:#f5fff9;border:3px solid #60c3a4;box-shadow:0 5px 0 #b7ddcf}
.researcher-coach img{filter:drop-shadow(0 3px 0 rgba(0,0,0,.08))}
.researcher-ui .card,.researcher-ui .panel,.researcher-ui .section{border:2px solid #e8dec7;box-shadow:0 6px 0 #eadfca;background:#fffefb}
.researcher-ui .panel{background:#fffaf0}.researcher-ui .panel>h2:before{content:"🧰 ";font-size:1.05em}
.researcher-ui .scopeStage{background:linear-gradient(#dceee4,#c8dfd3);border-top:2px solid #c6ddcf}
.researcher-ui .scopeFrame canvas{box-shadow:0 0 0 12px #304a42,0 12px 30px rgba(38,63,53,.25)}
.researcher-ui .slide-workbench{background:#fff6da;border-top:2px dashed #e8c96f}
.researcher-ui .slide-pad{background:#f8fbff;border:2px solid #9bbbc9;box-shadow:inset 0 0 0 4px #edf5f7}
.researcher-ui .objectiveChoices label{border:2px solid #d8cfbb;background:#fffdf7}.researcher-ui .objectiveChoices input:checked+label{background:#ddf5e9;border-color:#60c3a4;box-shadow:0 3px 0 #afd8c8;color:#245c49}
.researcher-ui input[type=range]{accent-color:#60c3a4}
.researcher-ui .status{border:2px solid #b9d6e4;border-left:6px solid #4fa3e3;background:#eef8ff}.researcher-ui .status.good{background:#effbf4;border-color:#7fceb2}.researcher-ui .status.warn{background:#fff1eb;border-color:#ef9a78}
.researcher-ui .readouts{gap:8px}.researcher-ui .meter{border:2px solid #d5e5dd;border-radius:16px;background:#294c3e;box-shadow:0 3px 0 #c9d9d1}
.researcher-taskbar button{background:#fffdf7;border:2px solid #dfd5bd;box-shadow:0 3px 0 #ebdfc3}.researcher-taskbar button.is-current{background:#dff5ea;border-color:#60c3a4;box-shadow:0 3px 0 #acd8c8}
.researcher-notebook-intro{display:flex;gap:12px;align-items:center;background:#fff3c7;border:2px solid #e8c96f;border-left:7px solid #ff8c42;box-shadow:0 4px 0 #ead9a8}.notebook-sticker{font-size:36px}
.researcher-ui .inquiry-guide{background:#f5fff9;border:2px solid #a7d7c5;border-radius:16px;padding:12px}
.researcher-ui .quizItem{background:#fffaf0;border:2px solid #e7ddc4;border-radius:16px;padding:12px;margin:12px 0}
.researcher-directory .resource{background:#fffef9!important}.researcher-directory .resource:before{content:"";position:absolute;inset:8px;border:1px dashed #eadfca;border-radius:16px;pointer-events:none}
.researcher-directory .resource h2,.researcher-directory .resource h3{position:relative}.station-label{background:#ddf5e9;border:1px solid #91cfb7}
@media(max-width:700px){.researcher-welcome-copy:after{width:54px;height:54px;right:12px;top:12px}.researcher-header{border-radius:15px;padding:8px 10px}.researcher-brand span:first-child{width:38px;height:38px}.researcher-brand b{font-size:17px}.researcher-brand small{font-size:9px}.researcher-home{padding:7px 10px;font-size:13px}}

.researcher-ui>.topbar,.researcher-directory>.topbar{display:none!important}
.researcher-directory .researcher-header{margin-top:14px}

/* Shared station layout for prediction-free batch-two labs */
.researcher-station .layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.78fr);gap:16px;align-items:start}
.researcher-station .layout>.observation{order:1}
.researcher-station .layout>.controls{order:2;background:#fffaf0;max-height:none;overflow:visible}
.researcher-station .observation .stage{background:#f1f7f4;border:2px solid #c9ddd2;border-radius:18px;min-height:300px;max-height:48vh;padding:12px;overflow:auto;touch-action:pan-y;scroll-margin-top:86px}
.researcher-station .observation .stage [data-lab-drag]{touch-action:none;cursor:grab}
.researcher-station .observation .stage [data-lab-drag]:active{cursor:grabbing}
.researcher-station #readouts{scroll-margin-top:86px}
.researcher-station .observation .stage svg{display:block;width:auto;max-width:100%;max-height:calc(48vh - 28px);height:auto;margin:auto}
.researcher-station .controls fieldset{border:0;padding:0;margin:0}
.researcher-station .controls label{font-weight:800;color:#365c4d}
.researcher-station .controls select,.researcher-station .controls input[type=range]{width:100%;margin-bottom:10px}
.researcher-station .controls .actions{display:grid;grid-template-columns:1.1fr 1fr;gap:8px;align-items:center}
.researcher-station .controls #run{background:#ff8c42;color:#fff;border:2px solid #d96f2a;box-shadow:0 3px 0 #d96f2a}
.researcher-station .controls #add-record{width:100%;margin-top:10px;background:#60c3a4;color:#173f32;border:2px solid #3f9c80;box-shadow:0 3px 0 #3f9c80;font-weight:900}
.researcher-station .missions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.researcher-station .missions button{min-height:54px;border:2px solid #dfd5bd;border-radius:15px;background:#fffdf7;box-shadow:0 3px 0 #ebdfc3;color:#315f4e;font-weight:900}
.researcher-station .missions button[aria-current=true]{background:#dff5ea;border-color:#60c3a4;box-shadow:0 3px 0 #acd8c8}
.researcher-station #mission-prompt{background:#eef9f3;border-left:5px solid #60c3a4;border-radius:12px;padding:10px 12px}
.researcher-station .readouts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.researcher-station .readouts .meter{background:#294c3e;color:#fff;border:2px solid #46695b;border-radius:15px;padding:10px;box-shadow:0 3px 0 #c9d9d1}
.researcher-station .readouts .meter strong{display:block;font-size:1.15rem;color:#fff}
.researcher-station #records-section table{background:#fff}
.researcher-station #records-section th{background:#e6f5ed;color:#294c3e}
.researcher-station .lesson-meta{margin-top:14px}
.researcher-station .teach-text,.researcher-station .safety{margin-top:14px}
.researcher-station .step{display:inline-block;border-radius:999px;background:#fff0c8;color:#7a5914;border:1px solid #ead081;padding:3px 9px;font-size:11px;font-weight:900;letter-spacing:.08em}
@media(max-width:820px){.researcher-station .layout{grid-template-columns:1fr}.researcher-station .layout>.observation{order:1}.researcher-station .layout>.controls{order:2;max-height:none;overflow:visible}.researcher-station .missions{grid-template-columns:1fr}}
@media(max-width:700px){.researcher-station .layout>.observation{display:contents}.researcher-station .observation .stage{position:sticky;top:6px;z-index:10;min-height:180px;max-height:40svh;padding:6px;border-color:#60c3a4;box-shadow:0 8px 18px #294c3e28}.researcher-station .readouts{grid-template-columns:1fr 1fr}.researcher-station .controls .actions{grid-template-columns:1fr}}
@media print{.researcher-station .observation .stage{position:static!important;max-height:none!important;overflow:visible!important;touch-action:auto}.researcher-station .observation .stage svg{max-height:none!important}.researcher-return,.researcher-bench-record{display:none!important}}

/* Keep longer teaching diagrams in page flow at every viewport size. */
.researcher-station .observation .stage.is-tall{position:static;max-height:none;overflow:visible}
.researcher-station .observation .stage.is-tall svg{max-height:none}

/* 手機圖解：預設整張縮入畫面；過高的多面板圖不固定；可切換放大 */
.researcher-zoom{display:none}
@media(max-width:700px){
.researcher-station .observation .stage svg{width:100%;max-width:100%}
.researcher-station .observation .stage.is-zoomed{touch-action:pan-x pan-y;overflow:auto}
.researcher-station .observation .stage.is-zoomed svg{width:620px;max-width:none;max-height:none}
.researcher-zoom{display:inline-flex;width:auto;align-items:center;min-height:40px;margin:6px 0;padding:0 14px;border-radius:999px;border:2px solid #c9ddd2;background:#fff;font:inherit;font-size:.9rem;color:#1f4a3c}
}
@media print{.researcher-zoom{display:none!important}}

/* 矮桌機視窗：壓縮控制面板，讓「加入觀察紀錄」留在畫面內 */
@media(min-width:901px) and (max-height:860px){.researcher-station .controls textarea{min-height:56px;height:56px}.researcher-station .controls .control{margin-bottom:8px}.researcher-station .controls h2,.researcher-station .controls h3{margin-bottom:8px}}

.notebook-doc{flex:0 0 auto;width:76px;height:auto;align-self:flex-end}
@media(max-width:560px){.notebook-doc{width:56px}}

/* 2026 premium polish: calmer surfaces, clearer type scale, stronger visual hierarchy */
.researcher-ui,.researcher-directory{
--lab-bg:#fbf7ec;--lab-paper:#fffdfa;--lab-ink:#202832;--lab-muted:#5d6670;
--lab-line:#e5dece;--lab-green:#58b99a;--lab-green-dark:#246b57;
--lab-orange:#f7833b;--lab-orange-dark:#d56525;
font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",system-ui,-apple-system,sans-serif;
font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
.researcher-ui button,.researcher-ui input,.researcher-ui select,.researcher-ui textarea,
.researcher-directory button,.researcher-directory input,.researcher-directory select{
font-family:inherit;
}
.researcher-header{width:min(1240px,calc(100% - 32px));margin:16px auto 12px;padding:9px 12px;background:rgba(255,253,249,.94);border:1px solid rgba(211,201,179,.8);border-radius:18px;box-shadow:0 8px 26px rgba(53,67,58,.08);backdrop-filter:blur(12px)}
.researcher-brand{gap:11px}.researcher-brand span:first-child{width:42px;height:42px;border:1px solid #e5c66b;border-radius:13px;background:#fff4cf;box-shadow:0 4px 12px rgba(158,116,28,.12);transform:rotate(-3deg)}
.researcher-brand b{font-size:clamp(18px,2vw,23px);letter-spacing:.01em}.researcher-brand small{font-size:10px;line-height:1.25;color:#39846e;letter-spacing:.12em}
.researcher-home{padding:8px 14px;background:#f1faf6;border:1px solid #a9d8c8;border-radius:999px;box-shadow:none;font-size:14px;color:#246b57;transition:background .18s ease,transform .18s ease}
.researcher-home:hover{background:#e5f6ef;transform:translateY(-1px)}

.researcher-nav{width:min(1240px,calc(100% - 32px));margin-bottom:18px;gap:6px;padding:6px;background:rgba(255,253,249,.96);border:1px solid rgba(211,201,179,.82);border-radius:18px;box-shadow:0 8px 28px rgba(53,67,58,.08);backdrop-filter:blur(14px)}
.researcher-nav button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:50px;padding:7px 14px;border-radius:13px;color:#667078;font-size:15px;font-weight:700;letter-spacing:.01em;transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}
.researcher-nav button:hover{background:#f5f1e8;color:#364640}
.researcher-nav button[aria-current=step]{background:linear-gradient(135deg,#64c5a7,#53b493);color:#133e32;box-shadow:0 5px 14px rgba(50,139,110,.22),inset 0 1px rgba(255,255,255,.48);transform:none}
.researcher-step-number{display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;border-radius:50%;background:rgba(37,78,66,.08);font-size:15px;line-height:1}
.researcher-nav button[aria-current=step] .researcher-step-number{background:rgba(255,255,255,.46)}

.researcher-ui main.shell{width:min(1240px,calc(100% - 32px));padding-bottom:54px}
.researcher-welcome{grid-template-columns:minmax(420px,.92fr) minmax(0,1.08fr);min-height:570px;background:var(--lab-paper);border:1px solid rgba(211,201,179,.9);border-radius:28px;box-shadow:0 18px 50px rgba(57,65,51,.12);isolation:isolate}
.researcher-welcome-copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(34px,4.2vw,58px);background:linear-gradient(145deg,#fffefa 0%,#fff9e9 100%)}
.researcher-welcome-copy:after{right:28px;top:26px;width:68px;height:68px;opacity:.88;filter:drop-shadow(0 6px 10px rgba(99,79,31,.12))}
.researcher-kicker{align-self:flex-start;padding:5px 11px;border:1px solid #a9d8c8;background:#edf9f4;color:#23715b;font-size:11px;line-height:1.4;letter-spacing:.16em}
.researcher-welcome h1,.researcher-welcome h2{max-width:10.5em;margin:12px 0 14px;color:#242631;font-size:clamp(38px,4vw,54px);font-weight:900;line-height:1.16;letter-spacing:-.035em;text-wrap:balance}
.researcher-welcome p{max-width:34em;margin:0 0 4px;color:#505967;font-size:clamp(16px,1.55vw,18px);line-height:1.82}
.researcher-welcome p small{font-size:13px;color:#77756e}
.researcher-promise{gap:5px;margin:20px 0 14px;padding:14px 17px;background:#fff5d8;border:1px solid #ead287;border-left:5px solid #e7b93f;border-radius:14px;box-shadow:none}
.researcher-promise b{margin-bottom:2px;color:#71530b;font-size:15px}.researcher-promise span{color:#564d35;font-size:15px;line-height:1.65}
.researcher-guess{font-size:12px;line-height:1.55}.researcher-kit{gap:7px;margin:0 0 20px}.researcher-kit span{padding:6px 10px;border:1px solid #ddd7c9;background:rgba(255,255,255,.82);border-radius:999px;box-shadow:none;color:#37423e;font-size:13px;font-weight:700}
.researcher-primary{min-height:52px;padding:11px 24px;border:0;border-radius:999px;background:linear-gradient(135deg,#ff9350,#f17b34);box-shadow:0 8px 18px rgba(217,101,37,.24);font-size:16px;letter-spacing:.015em;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.researcher-primary:hover{filter:saturate(1.05);transform:translateY(-1px);box-shadow:0 10px 22px rgba(217,101,37,.28)}
.researcher-primary:active{transform:translateY(1px);box-shadow:0 5px 12px rgba(217,101,37,.22)}

.researcher-scene{min-height:570px;overflow:hidden;background:#e6f3ec;border-left:1px solid rgba(211,201,179,.72)}
.researcher-scene:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(255,251,239,.2),transparent 30%),linear-gradient(0deg,rgba(17,49,41,.12),transparent 26%)}
.researcher-scene .room{min-height:570px;height:100%;object-position:center center;filter:saturate(.94) contrast(.99)}
.researcher-scene .room[src*="scene-biology"]{transform:scaleX(-1);transform-origin:center}
.researcher-scene:has(.doc[src*="doc-microscope"]) .room[src*="scene-biology"]{object-position:right center}
.researcher-scene .doc{left:3.5%;right:auto;bottom:-2px;z-index:3;width:clamp(238px,39%,286px);max-height:84%;filter:drop-shadow(0 13px 14px rgba(24,48,40,.22))}
.researcher-scene .doc[src*="doc-wave"]{width:clamp(218px,36%,268px)}
.researcher-scene .doc[src*="doc-microscope"]{left:1.5%;right:auto;width:clamp(285px,48%,360px);max-height:79%}
.researcher-bubble{left:auto;right:6%;top:9%;z-index:4;width:min(260px,42%);max-width:none;padding:14px 17px;background:rgba(255,255,255,.96);border:2px solid #58b99a;border-radius:18px;box-shadow:0 10px 26px rgba(39,91,73,.18);color:#26333b;font-size:16px;font-weight:800;line-height:1.65}
.researcher-bubble:before,.researcher-bubble:after{content:"";position:absolute;right:auto;bottom:auto;border:0;transform:none;pointer-events:none;clip-path:polygon(100% 0,0 50%,100% 100%)}
.researcher-bubble:before{left:-16px;top:58%;width:16px;height:20px;background:#58b99a}
.researcher-bubble:after{left:-11px;top:calc(58% + 3px);width:12px;height:14px;background:rgba(255,255,255,.96)}

.researcher-coach{grid-template-columns:76px 1fr;gap:15px;margin-bottom:18px;padding:11px 16px;background:linear-gradient(135deg,#f7fffb,#eef9f4);border:1px solid #9bd4c0;border-radius:18px;box-shadow:0 8px 22px rgba(46,95,78,.09)}
.researcher-coach img{width:72px;height:82px;filter:drop-shadow(0 5px 7px rgba(30,58,48,.14))}.researcher-coach strong{font-size:13px;letter-spacing:.05em}.researcher-coach p{margin:1px 0;color:#42524c;font-size:15px;line-height:1.65}

.researcher-ui .labgrid,.researcher-station .layout{gap:20px}
.researcher-ui .card,.researcher-ui .panel,.researcher-ui .section{background:#fffdfa;border:1px solid #dfd8ca;border-radius:20px;box-shadow:0 12px 32px rgba(59,65,50,.09)}
.researcher-ui .cardhead{padding:16px 19px 13px;border-bottom:1px solid #e6e0d6}.researcher-ui .cardhead h2,.researcher-ui .section h2{font-size:clamp(18px,1.8vw,22px);letter-spacing:-.015em}
.researcher-ui .panel{padding:20px;background:#fffdfa}.researcher-ui .panel>h2:before{content:""}.researcher-ui .panel h2{margin-bottom:16px;font-size:20px;letter-spacing:-.015em}
.researcher-ui .control{margin-bottom:16px}.researcher-ui .control label,.researcher-station .controls label{margin-bottom:7px;color:#304b42;font-size:15px;font-weight:750}.researcher-ui .control output{font-variant-numeric:tabular-nums}
.researcher-ui select,.researcher-ui textarea{border:1px solid #becdc5!important;border-radius:11px!important;background:#fff!important;color:#28342f;box-shadow:0 1px 2px rgba(30,49,41,.04)}
.researcher-ui select:focus,.researcher-ui textarea:focus{border-color:#58b99a!important;box-shadow:0 0 0 4px rgba(88,185,154,.15)}
.researcher-ui input[type=range]{accent-color:#43a987}
.researcher-ui .actions{gap:10px}.researcher-ui .btn{min-height:48px;padding:10px 15px;border-radius:999px;font-size:15px;font-weight:800;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
.researcher-ui .btn:hover:not(:disabled){transform:translateY(-1px)}
.researcher-ui .btn.primary,.researcher-station .controls #run{background:linear-gradient(135deg,#ff9250,#f17b34);border:0;box-shadow:0 7px 16px rgba(217,101,37,.22)}
.researcher-ui .btn.secondary{background:#fff;border:1px solid #a9d8c8;color:#246b57;box-shadow:none}
.researcher-ui .status{margin-top:16px;padding:12px 15px;background:#eef7fb;border:1px solid #b9d6e4;border-left:5px solid #4fa3e3;border-radius:12px;box-shadow:none;font-size:15px;line-height:1.65}.researcher-ui .status strong{margin-bottom:1px}
.researcher-ui .particleStage{background:#f2f7f5;border-radius:0 0 20px 20px}.researcher-ui .particleBox{border-color:#cbdad4;border-radius:14px}.researcher-ui .particleBox h3{background:#edf5f2}.researcher-ui .equation{background:#19384f}
.researcher-ui .readouts{gap:10px}.researcher-ui .meter,.researcher-station .readouts .meter{min-height:96px;padding:12px 14px;background:linear-gradient(145deg,#294c3e,#244438);border:1px solid #3f6254;border-radius:15px;box-shadow:0 8px 18px rgba(30,63,51,.16)}
.researcher-ui .meter .name{color:#cfe4dc;font-size:13px}.researcher-ui .meter .value{margin-top:4px;font-size:clamp(17px,1.8vw,22px)}.researcher-ui .meter .note{color:#bdd5cc;font-size:12px}
.researcher-station .layout{grid-template-columns:minmax(0,1.45fr) minmax(330px,.72fr)}
.researcher-station .observation .stage{background:#f3f8f5;border:1px solid #c5d8cf;border-radius:18px;box-shadow:inset 0 1px 0 #fff}
.researcher-station .controls #add-record{border:0;background:linear-gradient(135deg,#68c6a8,#54b392);box-shadow:0 7px 16px rgba(53,139,111,.2)}
.researcher-station .missions{gap:10px}.researcher-station .missions button{min-height:54px;padding:8px 12px;background:#fffefa;border:1px solid #dcd4c4;border-radius:14px;box-shadow:0 5px 14px rgba(79,71,49,.07);font-size:14px}.researcher-station .missions button[aria-current=true]{background:#e9f8f2;border-color:#76c8ad;box-shadow:0 6px 15px rgba(74,151,126,.12)}
.researcher-notebook-intro,.researcher-return{border-width:1px;box-shadow:0 9px 24px rgba(67,66,48,.08)}

@media(max-width:850px){
.researcher-welcome{grid-template-columns:1fr;min-height:0}.researcher-scene{order:-1;min-height:330px;border-left:0;border-bottom:1px solid rgba(211,201,179,.72)}.researcher-scene .room{height:330px;min-height:330px;object-position:center 48%}.researcher-scene .doc{left:3%;right:auto;width:clamp(158px,28%,208px);max-height:86%}.researcher-scene .doc[src*="doc-microscope"]{left:1%;right:auto;width:clamp(205px,38%,275px);max-height:82%}.researcher-bubble{left:auto;right:10%;top:8%;width:250px;max-width:42%}.researcher-welcome-copy{padding:34px}.researcher-welcome h1,.researcher-welcome h2{font-size:clamp(34px,6vw,46px)}
.researcher-station .layout{grid-template-columns:1fr}
}
@media(max-width:700px){
.researcher-ui,.researcher-directory{font-size:15px}.researcher-ui main.shell,.researcher-header,.researcher-nav{width:calc(100% - 20px)}
.researcher-header{margin-top:9px;padding:7px 9px}.researcher-brand span:first-child{width:36px;height:36px}.researcher-brand b{font-size:16px}.researcher-brand small{font-size:8px}.researcher-home{padding:7px 10px;font-size:12px}
.researcher-nav{position:static;gap:5px;padding:5px;border-radius:15px}.researcher-nav button{gap:6px;min-height:44px;padding:6px 8px;border-radius:11px;font-size:13px}.researcher-step-number{width:21px;height:21px;flex-basis:21px;font-size:13px}
.researcher-scene{min-height:280px}.researcher-scene .room{height:280px;min-height:280px}.researcher-scene .doc{left:4px;right:auto;width:144px;max-height:82%}.researcher-scene .doc[src*="doc-wave"]{width:136px}.researcher-scene .doc[src*="doc-microscope"]{left:-4px;right:auto;width:176px;max-height:79%}.researcher-bubble{left:auto;right:12px;top:18px;width:auto;max-width:calc(100% - 158px);padding:10px 12px;border-width:1.5px;border-radius:14px;font-size:13px;line-height:1.55}.researcher-scene:has(.doc[src*="doc-microscope"]) .researcher-bubble{max-width:calc(100% - 190px)}.researcher-bubble:before{left:-13px;top:56%;bottom:auto;width:13px;height:17px}.researcher-bubble:after{left:-9px;top:calc(56% + 3px);bottom:auto;width:10px;height:11px}
.researcher-welcome-copy{padding:27px 22px 30px}.researcher-welcome-copy:after{width:48px;height:48px}.researcher-kicker{font-size:9px}.researcher-welcome h1,.researcher-welcome h2{max-width:calc(100% - 42px);margin-top:10px;font-size:32px;line-height:1.19}.researcher-welcome p{font-size:15px;line-height:1.75}.researcher-promise{margin:17px 0 13px;padding:12px 13px}.researcher-promise b,.researcher-promise span{font-size:14px}.researcher-kit{margin-bottom:17px}.researcher-kit span{padding:5px 9px;font-size:12px}.researcher-primary{min-height:48px;padding:9px 20px;font-size:15px}
.researcher-coach{grid-template-columns:52px 1fr;gap:10px;padding:8px 10px;border-radius:15px}.researcher-coach img{width:50px;height:60px}.researcher-coach p{font-size:13px;line-height:1.55}
.researcher-ui .card,.researcher-ui .panel,.researcher-ui .section{border-radius:16px;box-shadow:0 8px 22px rgba(59,65,50,.08)}.researcher-ui .panel{padding:15px}.researcher-ui .panel h2{font-size:18px}.researcher-ui .readouts{gap:8px}.researcher-ui .meter,.researcher-station .readouts .meter{min-height:86px;padding:10px 11px;border-radius:13px}.researcher-ui .meter .name{font-size:12px}.researcher-ui .meter .note{font-size:11px}
.researcher-station .observation .stage{box-shadow:0 8px 20px rgba(41,76,62,.16)}
}
@media(prefers-reduced-motion:reduce){.researcher-ui *,.researcher-directory *{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
@media print{.researcher-ui,.researcher-directory{background:#fff!important}.researcher-ui .card,.researcher-ui .panel,.researcher-ui .section{box-shadow:none}.researcher-scene:after{display:none}}

/* Image-relative alignment overrides the usable CSS-only fallback above. */
.researcher-scene .researcher-bubble.is-aligned{left:var(--speech-left);right:auto;top:var(--speech-top)}
.researcher-bubble.is-aligned:before{top:var(--speech-tail-top)}
.researcher-bubble.is-aligned:after{top:calc(var(--speech-tail-top) + 3px)}

.researcher-save{display:grid;gap:8px;margin-top:18px;padding:16px;background:#eff8f3;border:1px solid #b4d9c9;border-radius:16px}
.researcher-save .researcher-bench-record{width:100%;margin:0;font:inherit;font-weight:800;line-height:1.5}
.researcher-save-status{margin:0;color:#34584a;font-size:13px;line-height:1.6}
.researcher-notebook-link{justify-self:start;min-height:44px;border:0;background:transparent;padding:5px 0;color:#246b57;font:inherit;font-size:14px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.researcher-return[hidden]{display:none!important}
.researcher-ui :is(.quizItem fieldset,#quizScore,.scopeStage,.labgrid>.card,.researcher-save){scroll-margin-top:86px}
@media(max-width:850px){.researcher-ui :is(.quizItem fieldset,#quizScore,.scopeStage,.labgrid>.card,.researcher-save){scroll-margin-top:18px}}
@media print{.researcher-save{display:none!important}}

/* ==========================================================================
   BHCS brand theme — 百宏「實驗紀錄簿」 (2026-09-21)
   設計語彙與官網一致：方格紙 + 紅筆批改。深藍墨水字、紅筆標註、橘色只留給「下一步」。
   這一層只改外觀與排版順序，不改任何互動邏輯；要調整品牌色請改下面的 --bh-* 變數。
   變數一律使用 --bh- 前綴：各教材頁自己的 :root 已經占用 --ink、--paper、--red 等名稱。
   ========================================================================== */
:root{
  --bh-ink:#16233A;--bh-ink-soft:#43516B;--bh-ink-faint:#7C879B;
  --bh-paper:#FCFCFA;--bh-card:#FFFFFF;--bh-surface:#F2F4F7;
  --bh-grid:#DCE2EA;--bh-grid-strong:#C9D2DE;
  --bh-red:#C8352B;--bh-red-soft:#F6E3E1;
  --bh-orange:#E8620C;--bh-orange-dark:#C24F06;
  --bh-note:#FFF6D6;--bh-note-line:#E9D48A;
  --bh-ok:#1E7A4C;--bh-ok-soft:#E7F4EC;
  --bh-sans:"Noto Sans TC","PingFang TC","Microsoft JhengHei",system-ui,sans-serif;
  --bh-serif:"Noto Serif TC","Songti TC","PMingLiU","Noto Serif CJK TC",serif;
  --bh-mono:"IBM Plex Mono","Roboto Mono",ui-monospace,Menlo,Consolas,monospace;
  --bh-radius:6px;--bh-radius-s:4px;
  --bh-shadow:0 1px 2px rgba(22,35,58,.06),0 8px 24px rgba(22,35,58,.06);
  --bh-wrap:1180px;
}

/* ---------- 1. 底：方格紙 ---------- */
body.researcher-ui,body.researcher-directory{
  font-family:var(--bh-sans);color:var(--bh-ink);line-height:1.75;letter-spacing:.01em;
  -webkit-font-smoothing:antialiased;
  background-color:var(--bh-paper)!important;
  background-image:
    linear-gradient(var(--bh-grid) 1px,transparent 1px),
    linear-gradient(90deg,var(--bh-grid) 1px,transparent 1px),
    linear-gradient(var(--bh-grid-strong) 1px,transparent 1px),
    linear-gradient(90deg,var(--bh-grid-strong) 1px,transparent 1px)!important;
  background-size:24px 24px,24px 24px,120px 120px,120px 120px!important;
  background-position:-1px -1px!important;background-attachment:scroll!important;
}
body.researcher-ui .topbar,body.researcher-directory .topbar{display:none!important}
body.researcher-ui :focus-visible,body.researcher-directory :focus-visible{outline:3px solid var(--bh-orange);outline-offset:2px}
body.researcher-ui a,body.researcher-directory a{color:var(--bh-ink);text-decoration-color:var(--bh-grid-strong);text-underline-offset:3px}
body.researcher-ui a:hover,body.researcher-directory a:hover{text-decoration-color:var(--bh-red)}
body.researcher-ui h1,body.researcher-ui h2,body.researcher-directory h1,body.researcher-directory h2{
  font-family:var(--bh-serif);font-weight:900;color:var(--bh-ink);letter-spacing:-.01em}
body.researcher-ui h3,body.researcher-directory h3{color:var(--bh-ink)}

/* ---------- 2. 刊頭：與官網同一條 ---------- */
body .researcher-header{
  width:100%;max-width:none;margin:0;padding:0 max(16px,calc((100% - var(--bh-wrap))/2));
  min-height:60px;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:12px;
  background:rgba(252,252,250,.94);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border:0;border-bottom:1px solid var(--bh-grid-strong);border-radius:0;box-shadow:none}
body .researcher-brand{display:flex;align-items:center;gap:10px;min-width:0;color:var(--bh-ink);text-decoration:none}
body .researcher-brand>span:first-child{display:none}
body .researcher-brand .bh-logo{width:34px;height:34px;flex:none;background:url(logo.png) center/contain no-repeat}
body .researcher-brand small{font-family:var(--bh-mono);font-size:10.5px;font-weight:500;letter-spacing:.2em;color:var(--bh-red);text-transform:uppercase;line-height:1.3}
body .researcher-brand b{font-family:var(--bh-serif);font-weight:900;font-size:clamp(16px,2vw,19px);line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
body .bh-header-links{display:flex;align-items:center;gap:4px;flex:none}
body .researcher-home,body .bh-header-link{
  background:none;border:0;border-radius:var(--bh-radius-s);padding:8px 10px;min-height:40px;display:inline-flex;align-items:center;
  font-size:14px;font-weight:500;color:var(--bh-ink-soft);text-decoration:none;box-shadow:none;white-space:nowrap}
body .researcher-home:hover,body .bh-header-link:hover{color:var(--bh-ink);background:var(--bh-surface)}
body .researcher-home{border:1px solid var(--bh-ink);color:var(--bh-ink);font-weight:700}

/* ---------- 3. 四步流程：紀錄簿索引標籤 ---------- */
body .researcher-nav{
  width:min(var(--bh-wrap),calc(100% - 32px));margin:18px auto 18px;padding:0;gap:0;
  display:grid;grid-template-columns:repeat(4,1fr);
  background:var(--bh-card);border:1px solid var(--bh-ink);border-radius:var(--bh-radius);box-shadow:none;overflow:hidden;
  position:sticky;top:8px;z-index:30}
body .researcher-nav button{
  position:relative;min-height:48px;border:0;border-radius:0;background:transparent;box-shadow:none;
  display:flex;align-items:center;justify-content:center;gap:8px;padding:6px 8px;
  font-family:var(--bh-sans);font-size:15px;font-weight:700;color:var(--bh-ink-soft);cursor:pointer}
body .researcher-nav button+button{border-left:1px solid var(--bh-grid-strong)}
body .researcher-nav button:hover{background:var(--bh-surface);color:var(--bh-ink)}
body .researcher-nav button[aria-current=step]{background:var(--bh-ink);color:#fff;box-shadow:inset 0 -3px 0 var(--bh-red)}
body .researcher-nav .researcher-step-number{
  font-family:var(--bh-mono);font-size:12px;font-weight:600;letter-spacing:.04em;
  width:auto;height:auto;background:none!important;border:0;border-radius:0;color:var(--bh-red);box-shadow:none}
body .researcher-nav button[aria-current=step] .researcher-step-number{color:#FFB199}

/* ---------- 4. 主要容器 ---------- */
body.researcher-ui main.shell,body.researcher-ui main#main{width:min(var(--bh-wrap),calc(100% - 32px));margin-inline:auto;padding:0 0 56px}
body.researcher-ui .card,body.researcher-ui .panel,body.researcher-ui .section,
body.researcher-ui .researcher-welcome,body.researcher-directory .researcher-welcome{
  background:var(--bh-card);border:1px solid var(--bh-grid-strong);border-radius:var(--bh-radius);box-shadow:var(--bh-shadow)}
body.researcher-ui .panel h2,body.researcher-ui .section h2,body.researcher-ui .cardhead h2{font-size:1.25rem;line-height:1.4;color:var(--bh-ink)}
body.researcher-ui .cardhead{border-bottom:1px solid var(--bh-grid);padding:14px 18px}
body.researcher-ui .subtle,body.researcher-ui .panel p.subtle{color:var(--bh-ink-faint)}

/* ---------- 5. 接任務（歡迎畫面） ---------- */
body .researcher-welcome{overflow:hidden;border-color:var(--bh-ink)!important}
body .researcher-welcome-copy{background:var(--bh-card)}
body .researcher-kicker{
  display:inline-block;background:none;border:0;border-radius:0;padding:0;
  font-family:var(--bh-mono);font-size:12px;font-weight:500;letter-spacing:.2em;color:var(--bh-red);text-transform:uppercase}
body .researcher-welcome h1,body .researcher-welcome h2{
  font-family:var(--bh-serif);font-weight:900;color:var(--bh-ink);line-height:1.25;margin:10px 0 18px;
  font-size:clamp(28px,3.6vw,44px);display:inline-block;padding-bottom:12px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C 60 2, 120 11, 180 6 S 270 3, 297 7' fill='none' stroke='%23C8352B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") left bottom/100% 10px no-repeat}
body .researcher-welcome p{color:var(--bh-ink-soft);font-size:16.5px;line-height:1.85}
body .researcher-welcome p small{color:var(--bh-ink-faint);font-size:13.5px}
body .researcher-promise{
  background:var(--bh-paper);border:1px solid var(--bh-grid-strong);border-left:3px solid var(--bh-ink);
  border-radius:var(--bh-radius-s);padding:14px 16px;margin:18px 0;box-shadow:none}
body .researcher-promise b{display:block;font-family:var(--bh-mono);font-size:12px;font-weight:600;letter-spacing:.14em;color:var(--bh-ink);margin-bottom:6px}
body .researcher-promise span{display:block;color:var(--bh-ink);font-size:15px;line-height:1.9}
body .researcher-promise .researcher-guess{display:block;margin-top:8px;padding-top:8px;border-top:1px dashed var(--bh-grid-strong);font-style:normal;color:var(--bh-ink-soft);font-size:14px}
body .researcher-kit{gap:6px}
body .researcher-kit span{background:var(--bh-surface);border:0;border-radius:var(--bh-radius-s);box-shadow:none;color:var(--bh-ink-soft);font-size:13px;font-weight:500;padding:4px 10px}
body .researcher-scene{background:var(--bh-surface);border-left:1px solid var(--bh-ink)}
body .researcher-welcome .researcher-badge,body .researcher-welcome-copy::after{display:none!important}
body .researcher-scene .researcher-bubble{background:#fff;border-color:var(--bh-ink);border-radius:10px;box-shadow:3px 3px 0 rgba(22,35,58,.18);color:var(--bh-ink);font-weight:700}
body .researcher-bubble:before{background:var(--bh-ink)}
body .researcher-bubble:after{background:#fff}

/* ---------- 6. 按鈕：橘色只給「下一步」 ---------- */
body .researcher-primary,
body.researcher-ui .btn.primary,body.researcher-ui button.primary,
body.researcher-station .controls #run{
  background:var(--bh-orange)!important;background-image:none!important;color:#fff!important;border:1px solid var(--bh-orange-dark)!important;
  border-radius:var(--bh-radius-s)!important;box-shadow:none!important;font-weight:700;letter-spacing:.02em;
  transition:background .15s,transform .15s}
body .researcher-primary:hover,body.researcher-ui .btn.primary:hover,body.researcher-ui button.primary:hover,
body.researcher-station .controls #run:hover{background:var(--bh-orange-dark)!important}
body .researcher-primary:active{transform:translateY(1px)}
body .researcher-primary:disabled,body.researcher-ui .btn:disabled,body.researcher-ui button:disabled{
  background:var(--bh-surface)!important;color:var(--bh-ink-faint)!important;border-color:var(--bh-grid-strong)!important;opacity:1;cursor:not-allowed}
body.researcher-ui .btn.secondary,body.researcher-ui button:not(.primary):not(.researcher-primary):not([data-to]):not(.researcher-notebook-link):not(.researcher-zoom),
body.researcher-directory .actions button{
  background:#fff;background-image:none;color:var(--bh-ink);border:1px solid var(--bh-ink);border-radius:var(--bh-radius-s);box-shadow:none;font-weight:700}
body.researcher-ui .btn.secondary:hover,body.researcher-ui button:not(.primary):not(.researcher-primary):not([data-to]):hover{background:var(--bh-surface)}
/* 「收進手冊」是完成一輪後的動作：用墨水色實心，和橘色「開始」分出先後 */
body.researcher-station .controls #add-record:not(:disabled),
body .researcher-save .researcher-bench-record:not(:disabled){
  background:var(--bh-ink)!important;border-color:var(--bh-ink)!important;color:#fff!important}
body.researcher-station .controls #add-record:not(:disabled):hover,
body .researcher-save .researcher-bench-record:not(:disabled):hover{background:#0d1626!important}
body .researcher-notebook-link,body .researcher-zoom{
  background:none!important;border:0!important;box-shadow:none!important;padding:6px 0;min-height:40px;
  color:var(--bh-ink)!important;font-weight:700;text-decoration:underline;text-decoration-color:var(--bh-red);text-underline-offset:4px;cursor:pointer}
body .researcher-zoom{display:inline-flex;margin-top:6px}

/* ---------- 7. 表單控制 ---------- */
body.researcher-ui select,body.researcher-ui textarea,body.researcher-ui input[type=text],body.researcher-ui input[type=search],
body.researcher-directory select,body.researcher-directory input[type=search]{
  border:1px solid var(--bh-grid-strong)!important;border-radius:var(--bh-radius-s)!important;background-color:#fff;color:var(--bh-ink);box-shadow:none}
body.researcher-ui select:hover,body.researcher-ui textarea:hover,body.researcher-directory select:hover,body.researcher-directory input[type=search]:hover{border-color:var(--bh-ink-faint)!important}
body.researcher-ui input[type=range]{accent-color:var(--bh-ink)}
body.researcher-ui input[type=radio],body.researcher-ui input[type=checkbox]{accent-color:var(--bh-ink);width:18px;height:18px}
body.researcher-ui .control label,body.researcher-ui .control legend,body.researcher-station .controls label,body.researcher-station .controls legend{
  color:var(--bh-ink)!important;font-size:14.5px;font-weight:700}
body.researcher-ui .controls output,body.researcher-ui .control output,body.researcher-ui .value{font-family:var(--bh-mono);font-weight:600;color:var(--bh-red)!important}
body.researcher-ui .choice label{border:1px solid var(--bh-grid-strong);border-radius:var(--bh-radius-s);background:#fff;color:var(--bh-ink-soft);box-shadow:none;font-weight:700}
body.researcher-ui .choice input:checked+label{background:var(--bh-ink);border-color:var(--bh-ink);color:#fff;box-shadow:none}
body.researcher-ui .choice input:focus-visible+label{outline:3px solid var(--bh-orange);outline-offset:2px}

/* ---------- 8. 余老師提示：便利貼 ---------- */
body .researcher-coach{
  position:relative;grid-template-columns:56px 1fr;gap:14px;align-items:center;
  background:var(--bh-note);border:1px solid var(--bh-note-line);border-radius:2px;box-shadow:2px 3px 0 rgba(22,35,58,.08);
  padding:10px 16px 10px 14px;margin:0 0 18px}
body .researcher-coach::before{content:"";position:absolute;left:50%;top:-9px;width:84px;height:18px;transform:translateX(-50%) rotate(-1.5deg);background:rgba(200,53,43,.16);border-left:1px dashed rgba(200,53,43,.35);border-right:1px dashed rgba(200,53,43,.35)}
body .researcher-coach img{width:52px;height:58px}
body .researcher-coach strong{font-family:var(--bh-mono);font-size:12px;letter-spacing:.14em;color:var(--bh-red)}
body .researcher-coach p{color:var(--bh-ink);font-size:15px;line-height:1.7;margin:2px 0}
body .researcher-coach p+p{color:var(--bh-ink-soft);font-size:14px}

/* ---------- 9. 觀察區與儀表 ---------- */
body.researcher-ui .stage,body.researcher-station .observation .stage,body.researcher-ui .scopeStage{
  background:#fff;background-image:linear-gradient(var(--bh-surface) 1px,transparent 1px),linear-gradient(90deg,var(--bh-surface) 1px,transparent 1px);background-size:20px 20px;
  border:1px solid var(--bh-grid-strong);border-radius:var(--bh-radius-s);box-shadow:none}
body.researcher-ui .card>.stage,body.researcher-ui .card>.scopeStage{border:0;border-radius:0 0 var(--bh-radius) var(--bh-radius)}
body.researcher-station .observation .stage .empty,body.researcher-ui .stage .empty{
  color:var(--bh-ink-faint);font-size:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:240px;margin:0;text-align:center}
body.researcher-station .observation .stage .empty::before{content:"";width:72px;height:80px;background:var(--bh-empty-art,none) center/contain no-repeat;opacity:.9}
body.researcher-ui .readout,body.researcher-ui .readouts{gap:10px}
body.researcher-ui .meter,body.researcher-station .readouts .meter{
  min-height:0;padding:12px 14px;background:var(--bh-ink)!important;background-image:none!important;color:#C9D2DE;
  border:0;border-radius:var(--bh-radius-s);box-shadow:none;font-size:13px;line-height:1.5}
body.researcher-ui .meter strong,body.researcher-ui .meter b,body.researcher-ui .meter .big,body.researcher-station .readouts .meter strong{
  display:block;font-family:var(--bh-mono);font-size:1.28rem;font-weight:600;color:#fff;letter-spacing:-.01em;margin-top:2px}
body.researcher-ui .meter small,body.researcher-ui .meter span{color:#9FADC2}
body.researcher-ui .status,body.researcher-station #mission-prompt{
  background:var(--bh-paper)!important;border:1px solid var(--bh-grid-strong);border-left:3px solid var(--bh-ink)!important;border-radius:var(--bh-radius-s)!important;color:var(--bh-ink);box-shadow:none}
body.researcher-ui .status.good{border-left-color:var(--bh-ok)!important;background:var(--bh-ok-soft)!important}
body.researcher-ui .status.warn{border-left-color:var(--bh-red)!important;background:var(--bh-red-soft)!important}
body.researcher-ui .formula{background:var(--bh-surface);border-radius:var(--bh-radius-s);font-family:var(--bh-mono);font-size:14px}
body.researcher-station .step{background:none;border:0;padding:0;border-radius:0;font-family:var(--bh-mono);font-size:11.5px;font-weight:500;letter-spacing:.2em;color:var(--bh-red)}

/* 任務卡 */
body.researcher-station .missions button,body .researcher-taskbar button{
  min-height:48px;text-align:left;padding:10px 14px;background:#fff!important;border:1px solid var(--bh-grid-strong)!important;border-radius:var(--bh-radius-s)!important;
  box-shadow:none!important;color:var(--bh-ink)!important;font-size:14.5px;font-weight:700}
body.researcher-station .missions button:hover,body .researcher-taskbar button:hover{border-color:var(--bh-ink)!important}
body.researcher-station .missions button[aria-current=true],body .researcher-taskbar button.is-current{
  border-color:var(--bh-ink)!important;box-shadow:inset 3px 0 0 var(--bh-red)!important;background:var(--bh-paper)!important}

/* 兩欄操作台：先設定（左）→ 再觀察（右），和 01／02 的編號同方向 */
@media(min-width:901px){
  body.researcher-station .layout{grid-template-columns:minmax(300px,.62fr) minmax(0,1.38fr);grid-template-areas:"controls observation";gap:20px}
  body.researcher-station .layout>.controls{order:1;position:sticky;top:72px;background:var(--bh-card)}
  body.researcher-station .layout>.observation{order:2}
}
body.researcher-station .layout>.controls{background:var(--bh-card)}
body.researcher-station label.coach{display:flex;align-items:center;gap:10px;background:var(--bh-paper);border:1px dashed var(--bh-grid-strong);border-radius:var(--bh-radius-s);padding:8px 12px;font-size:14px;color:var(--bh-ink-soft);font-weight:500;margin:0 0 8px}
body.researcher-station label.coach input{flex:none;margin:0}
body.researcher-station .lab-drag-tip{font-size:13.5px;color:var(--bh-ink-faint);margin:0 0 10px}
body.researcher-station .display-mode{font-size:13.5px;color:var(--bh-ink-soft)}

/* 收進手冊 */
body .researcher-save{background:var(--bh-paper);border:1px solid var(--bh-grid-strong);border-radius:var(--bh-radius-s);box-shadow:none;padding:14px}
body .researcher-save .researcher-primary{width:100%;margin:0 0 6px}
body .researcher-save-status{color:var(--bh-ink-soft);font-size:13.5px}

/* ---------- 10. 研究手冊 ---------- */
body .researcher-notebook-intro{background:var(--bh-card);border:1px solid var(--bh-ink);border-left:1px solid var(--bh-ink);border-radius:var(--bh-radius);box-shadow:none;padding:16px 20px}
body .researcher-notebook-intro h2{font-size:1.45rem}
body .researcher-notebook-intro p{color:var(--bh-ink-soft)}
body .researcher-return{background:var(--bh-note);border:1px solid var(--bh-note-line);border-radius:2px;box-shadow:2px 3px 0 rgba(22,35,58,.08)}
body .researcher-return p{color:var(--bh-ink)}
body.researcher-ui table{border-collapse:collapse;background:#fff}
body.researcher-ui th{background:var(--bh-ink)!important;color:#fff!important;font-size:13.5px;font-weight:700;letter-spacing:.04em}
body.researcher-ui td{border-bottom:1px solid var(--bh-grid)}
body.researcher-ui .table-wrap{border:1px solid var(--bh-grid-strong);border-radius:var(--bh-radius-s)}
body.researcher-ui .comparison-pair article{border:1px solid var(--bh-grid-strong);border-radius:var(--bh-radius-s);background:var(--bh-paper)}

/* ---------- 11. 挑戰題：整列可點 ---------- */
body.researcher-ui fieldset{border:1px solid var(--bh-grid-strong);border-radius:var(--bh-radius-s)}
body.researcher-ui legend{font-weight:700;color:var(--bh-ink)}
body.researcher-ui .quiz label,body.researcher-ui .quizItem label{
  display:flex;align-items:center;gap:10px;min-height:46px;padding:8px 12px;margin:6px 0;
  border:1px solid var(--bh-grid);border-radius:var(--bh-radius-s);background:#fff;cursor:pointer;font-weight:500}
body.researcher-ui .quiz label:hover,body.researcher-ui .quizItem label:hover{border-color:var(--bh-ink-faint)}
body.researcher-ui .quiz label:has(input:checked),body.researcher-ui .quizItem label:has(input:checked){border-color:var(--bh-ink);background:var(--bh-paper);box-shadow:inset 3px 0 0 var(--bh-red)}
body.researcher-ui .quiz label input,body.researcher-ui .quizItem label input{margin:0;flex:none}
body.researcher-ui .feedback{color:var(--bh-ink);font-weight:700}
body.researcher-ui .feedback.good,body.researcher-ui .feedback.ok{color:var(--bh-ok)}
body.researcher-ui .feedback.bad,body.researcher-ui .feedback.wrong{color:var(--bh-red)}
body.researcher-ui details>summary{cursor:pointer;font-weight:700;color:var(--bh-ink)}

/* ---------- 12. 頁尾 ---------- */
body.researcher-ui footer,body.researcher-ui .foot,body.researcher-directory .foot,body.researcher-directory footer{
  background:var(--bh-ink)!important;color:#C9D2DE;font-size:14px;border-top:3px solid var(--bh-red)}
body.researcher-ui footer a,body.researcher-ui .foot a,body.researcher-directory .foot a{color:#fff!important;text-decoration-color:rgba(255,255,255,.4)}

/* ---------- 13. 研究基地（總覽） ---------- */
body.researcher-directory main.shell{width:min(var(--bh-wrap),calc(100% - 32px));padding-top:0}
body.researcher-directory .researcher-lobby{margin:24px 0 28px}
body.researcher-directory main>.panel{background:var(--bh-card);border:1px solid var(--bh-grid-strong);border-radius:var(--bh-radius);box-shadow:none;padding:16px 18px;margin-bottom:8px;
  display:grid;grid-template-columns:1fr auto;gap:12px 18px;align-items:end}
body.researcher-directory .filters{background:none;border:0;border-radius:0;padding:0;box-shadow:none;gap:12px}
body.researcher-directory .filters label{font-size:13px;font-weight:700;color:var(--bh-ink-soft);margin-bottom:4px}
body.researcher-directory .filters select,body.researcher-directory .filters input{min-height:44px}
body.researcher-directory main>.panel .actions{margin:0;display:flex;align-items:center;gap:12px;flex-wrap:nowrap}
body.researcher-directory .filter-count{margin:0;font-family:var(--bh-mono);font-size:13px;color:var(--bh-ink-soft);white-space:nowrap}
body.researcher-directory .bh-group{margin:34px 0 0}
body.researcher-directory .bh-group[hidden]{display:none}
body.researcher-directory .bh-group-head{display:flex;align-items:baseline;gap:12px;margin:0 0 14px;padding-bottom:8px;border-bottom:1px solid var(--bh-ink)}
body.researcher-directory .bh-group-head h2{font-size:1.5rem;margin:0}
body.researcher-directory .bh-group-head span{font-family:var(--bh-mono);font-size:12.5px;letter-spacing:.08em;color:var(--bh-red)}
body.researcher-directory .bh-group-head p{margin:0 0 0 auto;font-size:14px;color:var(--bh-ink-soft)}
body.researcher-directory .catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.researcher-directory .resource{
  position:relative;display:grid!important;grid-template-columns:64px 1fr;grid-template-rows:auto auto 1fr auto;column-gap:14px;row-gap:2px;align-content:start;
  background:var(--bh-card)!important;border:1px solid var(--bh-grid-strong)!important;border-radius:var(--bh-radius)!important;box-shadow:none!important;
  padding:16px!important;transition:border-color .15s,box-shadow .15s,transform .15s;outline:0}
body.researcher-directory .resource::before,body.researcher-directory .resource::after{display:none!important}
body.researcher-directory .resource:hover,body.researcher-directory .resource:focus-within{border-color:var(--bh-ink)!important;box-shadow:4px 4px 0 rgba(22,35,58,.10)!important;transform:translate(-1px,-1px)}
body.researcher-directory .resource[hidden]{display:none!important}
body.researcher-directory .resource .station-icon{grid-column:1;grid-row:1/span 3;width:64px;height:64px;margin:0;padding:6px;background:var(--bh-surface);border:0;border-radius:var(--bh-radius-s);box-shadow:none;object-fit:contain}
body.researcher-directory .resource .tags,body.researcher-directory .resource .station-label{display:none!important}
body.researcher-directory .resource .bh-meta{grid-column:2;grid-row:1;font-family:var(--bh-mono);font-size:11.5px;letter-spacing:.06em;color:var(--bh-red);margin:0}
body.researcher-directory .resource h2{grid-column:2;grid-row:2;font-family:var(--bh-serif);font-size:1.12rem;line-height:1.4;margin:0 0 4px}
body.researcher-directory .resource p{grid-column:2;margin:0;font-size:14px;line-height:1.7;color:var(--bh-ink-soft)}
body.researcher-directory .resource p.subtle,body.researcher-directory .resource h2+p:not(.mission-line){display:none}
body.researcher-directory .resource:not(:has(.mission-line)) h2+p{display:block}
body.researcher-directory .resource .mission-line{grid-row:3;background:none;border:0;padding:0}
body.researcher-directory .resource .open{
  grid-column:1/-1;grid-row:4;margin:12px 0 0;padding:10px 0 0;border:0;border-top:1px dashed var(--bh-grid-strong);border-radius:0;background:none!important;box-shadow:none!important;
  display:flex;justify-content:space-between;align-items:center;min-height:0;color:var(--bh-ink)!important;font-size:14px;font-weight:700;text-decoration:none;text-align:left}
body.researcher-directory .resource .open::after{content:"";position:absolute;inset:0}
body.researcher-directory .resource .open .bh-time{font-family:var(--bh-mono);font-weight:500;font-size:12.5px;color:var(--bh-ink-faint)}
body.researcher-directory .resource:hover .open{color:var(--bh-orange-dark)!important}
body.researcher-directory .empty{color:var(--bh-ink-soft)}

/* ---------- 14. 手機 ---------- */
@media(max-width:900px){
  body.researcher-directory .catalog{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .researcher-scene{border-left:0;border-bottom:1px solid var(--bh-ink)}
}
@media(max-width:700px){
  body .researcher-header{min-height:52px;padding:0 12px}
  body .researcher-brand small{display:none}
  body .researcher-brand .bh-logo{width:30px;height:30px}
  body .bh-header-link{display:none}
  body .researcher-home{padding:6px 10px;min-height:36px;font-size:13px}
  body .researcher-nav{width:calc(100% - 20px);margin:10px auto 12px;grid-template-columns:repeat(4,1fr)!important;top:6px}
  body .researcher-nav button{min-height:46px;flex-direction:column;gap:0;font-size:13px;padding:4px 2px;line-height:1.3}
  body .researcher-nav .researcher-step-number{font-size:10.5px}
  body.researcher-ui main.shell,body.researcher-ui main#main,body.researcher-directory main.shell{width:calc(100% - 20px)}
  body .researcher-welcome h1,body .researcher-welcome h2{font-size:clamp(26px,7.4vw,32px)}
  body .researcher-coach{grid-template-columns:44px 1fr;gap:10px;padding:10px 12px}
  body .researcher-coach img{width:42px;height:48px}
  body .researcher-coach p{font-size:14px}
  body .researcher-coach p+p{display:none}
  body.researcher-directory main>.panel{grid-template-columns:1fr}
  body.researcher-directory .filters{grid-template-columns:1fr 1fr}
  body.researcher-directory .filters>div:last-child{grid-column:1/-1}
  body.researcher-directory .catalog{grid-template-columns:1fr;gap:10px}
  body.researcher-directory .resource{grid-template-columns:52px 1fr;padding:12px!important}
  body.researcher-directory .resource .station-icon{width:52px;height:52px}
  body.researcher-directory .bh-group-head p{display:none}
  /* 操作台：設定 → 觀察 → 讀值 → 解釋 → 收進手冊，一路往下不回頭 */
  body.researcher-station .layout{display:flex;flex-direction:column;gap:0;background:var(--bh-card);border:1px solid var(--bh-grid-strong);border-radius:var(--bh-radius);padding:14px;box-shadow:var(--bh-shadow)}
  body.researcher-station .layout>.controls,body.researcher-station .layout>.observation{display:contents}
  body.researcher-station .layout>.controls>*{order:1}
  body.researcher-station .layout>.observation>*{order:2}
  body.researcher-station .layout>.controls>label[for=explanation-input],
  body.researcher-station .layout>.controls>#explanation-input,
  body.researcher-station .layout>.controls>#add-record{order:3}
  body.researcher-station .layout>.controls>label[for=explanation-input]{margin-top:18px;padding-top:14px;border-top:1px dashed var(--bh-grid-strong)}
  body.researcher-station .layout>.observation>.step{margin-top:20px;padding-top:14px;border-top:1px dashed var(--bh-grid-strong)}
  body.researcher-station .layout a[href="#observation-title"],body.researcher-station .layout a[href="#explanation-input"]{display:none}
  body.researcher-station .missions{grid-template-columns:1fr}
}
@media print{
  body.researcher-ui,body.researcher-directory{background:#fff!important;background-image:none!important}
  body .researcher-header,body .researcher-nav,body .researcher-coach{display:none!important}
}

/* ---------- 15. 第一批教材的舊元件 ---------- */
body.researcher-ui .choice input:checked+label{color:#fff!important}
body.researcher-ui .meter .value,body.researcher-ui .meter output{color:#fff!important;font-family:var(--bh-mono);font-weight:600;font-size:clamp(1.2rem,2.4vw,1.6rem)}
body.researcher-ui .meter .name{color:#C9D2DE;font-size:13px}
body.researcher-ui .meter .note{color:#9FADC2;font-size:12px}
body.researcher-ui .meter.alert{background:var(--bh-red)!important}
body.researcher-ui.legacy-researcher .readouts,body.researcher-ui .labgrid~.readouts,body.researcher-ui .labgrid .readouts{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
body.researcher-ui .workflow{gap:0;border:1px solid var(--bh-grid-strong);border-radius:var(--bh-radius-s);overflow:hidden;background:#fff}
body.researcher-ui .workflow div{border:0;border-radius:0;background:none;padding:10px 12px}
body.researcher-ui .workflow div+div{border-left:1px solid var(--bh-grid)}
body.researcher-ui .workflow b{font-family:var(--bh-mono);font-size:12px;color:var(--bh-red);letter-spacing:.06em}
body.researcher-ui .workflow span{color:var(--bh-ink);font-size:14.5px;font-weight:700}
body.researcher-ui .fact,body.researcher-ui .quizItem{border:1px solid var(--bh-grid-strong);border-radius:var(--bh-radius-s);background:#fff}
body.researcher-ui .fact h3{color:var(--bh-ink)}
body.researcher-ui .fact p,body.researcher-ui .lead{color:var(--bh-ink-soft)}
body.researcher-ui .teacher{background:var(--bh-paper);border:1px dashed var(--bh-grid-strong);border-radius:var(--bh-radius-s)}
body.researcher-ui .teacher h3{color:var(--bh-ink)}
body.researcher-ui .safety{background:var(--bh-red-soft);border-color:#E5B9B4}
body.researcher-ui .safety h2{color:var(--bh-red)}
body.researcher-ui .tableWrap{border:1px solid var(--bh-grid-strong);border-radius:var(--bh-radius-s)}
body.researcher-ui .quizItem fieldset{border:0}
body.researcher-ui .feedback.no{color:var(--bh-red)}
body.researcher-ui .mode select,body.researcher-ui .mode label{font-size:13.5px}
body.researcher-ui .chip,body.researcher-ui .tag{border-radius:var(--bh-radius-s);border-color:var(--bh-grid-strong);color:var(--bh-ink-soft)}
@media(max-width:700px){
  body.researcher-ui .workflow{grid-template-columns:1fr 1fr}
  body.researcher-ui .workflow div+div{border-left:0;border-top:1px solid var(--bh-grid)}
}
@media(max-width:850px){
  body.researcher-ui .labgrid>*{width:100%;max-width:100%;align-self:stretch;min-width:0}
  body.researcher-ui .labgrid .readouts,body.researcher-ui .labgrid>.readouts{grid-template-columns:1fr 1fr}
  body.researcher-ui .stage{min-height:0}
}
@media(max-width:700px){
  body.researcher-station .layout{align-items:stretch}
  body.researcher-station .layout>.controls>*,body.researcher-station .layout>.observation>*{max-width:100%;min-width:0}
  body.researcher-station .layout select,body.researcher-station .layout .actions button{width:100%}
  body.researcher-station .layout .actions{display:grid;grid-template-columns:1.4fr 1fr;gap:8px}
}

/* ---------- 16. 收尾：殘留的青綠／米黃外框 ---------- */
body.researcher-ui .labgrid>.card,body.researcher-ui .labgrid>.panel{border:1px solid var(--bh-grid-strong)!important;box-shadow:var(--bh-shadow)!important;background:var(--bh-card)!important}
body.researcher-ui .coach:not(label){background:var(--bh-note)!important;border:1px solid var(--bh-note-line)!important;border-left:3px solid var(--bh-red)!important;border-radius:var(--bh-radius-s)!important;color:var(--bh-ink);box-shadow:none!important}
body.researcher-ui .coach:not(label) strong{color:var(--bh-ink)}
body.researcher-ui .slide-workbench{background:var(--bh-paper)!important;border-top:1px dashed var(--bh-grid-strong)!important}
body.researcher-ui .slide-pad{background:#fff!important;border:1px solid var(--bh-ink-faint)!important;border-radius:var(--bh-radius-s);box-shadow:inset 0 0 0 4px var(--bh-surface)!important}
body.researcher-ui .objectiveChoices .choice input:checked+label{background:var(--bh-ink)!important;color:#fff!important;border-color:var(--bh-ink)!important}
body.researcher-ui .objectiveChoices .choice input:disabled+label{background:var(--bh-surface)!important;color:var(--bh-ink-faint)!important;border-color:var(--bh-grid)!important}
body.researcher-ui button:disabled,body.researcher-ui .btn:disabled{box-shadow:none!important;background-image:none!important}
body.researcher-station #current-conditions:empty,body.researcher-station #readouts:empty{display:none}
body.researcher-ui .featureTag,body.researcher-ui .present,body.researcher-ui .absent{border-radius:var(--bh-radius-s)}
body.researcher-directory main>.catalog.bh-grouped{display:block}
body.researcher-directory .resource h3{grid-column:2;grid-row:2;font-family:var(--bh-serif);font-weight:900;font-size:1.12rem;line-height:1.4;margin:0 0 4px;color:var(--bh-ink)}
body.researcher-directory .resource h3+p:not(.mission-line){display:none}
body.researcher-directory .resource:not(:has(.mission-line)) h3+p{display:block}
body.researcher-ui .meter .value{font-size:clamp(1.05rem,1.55vw,1.35rem)!important;line-height:1.35}
body.researcher-directory .resource .station-icon{background:var(--bh-surface)!important}

/* ---------- 17. 完成狀態：余老師歡呼 ---------- */
body .researcher-done,body .researcher-cheer{
  display:grid;grid-template-columns:64px 1fr;gap:16px;align-items:center;margin:0 0 18px;padding:14px 18px;
  background:var(--bh-ok-soft);border:1px solid #B9DCC7;border-left:3px solid var(--bh-ok);border-radius:var(--bh-radius-s)}
body .researcher-cheer{margin:16px 0 0}
body .researcher-done[hidden],body .researcher-cheer[hidden]{display:none}
body .researcher-done img,body .researcher-cheer img{width:64px;height:auto;max-height:120px;object-fit:contain}
body .researcher-done strong,body .researcher-cheer strong{display:block;font-family:var(--bh-serif);font-weight:900;font-size:1.15rem;color:var(--bh-ink)}
body .researcher-done p,body .researcher-cheer p{margin:4px 0 10px;color:var(--bh-ink-soft);font-size:14.5px;line-height:1.7}
body .researcher-done .researcher-primary,body .researcher-cheer .researcher-primary{min-height:42px;padding:8px 16px;font-size:14.5px}
body.researcher-station .observation .stage .empty::before{width:70px;height:112px}
@media(max-width:700px){body .researcher-done,body .researcher-cheer{grid-template-columns:48px 1fr;gap:12px;padding:12px}body .researcher-done img,body .researcher-cheer img{width:48px}}
@media print{body .researcher-done,body .researcher-cheer{display:none!important}}

/* ---------- 18. 預覽圖解：條件一變就先畫，讀值要按「開始觀察」 ---------- */
body.researcher-station .observation .stage.is-preview{position:relative}
body.researcher-station .observation .stage.is-preview>svg,body.researcher-station .observation .stage.is-preview>*:not(.empty){opacity:.5;filter:saturate(.6);transition:opacity .15s}
body.researcher-station .observation .stage.is-preview::after{
  content:attr(data-preview-label);position:absolute;left:10px;top:10px;z-index:2;opacity:1;
  font-family:var(--bh-mono);font-size:12px;letter-spacing:.06em;color:#fff;background:var(--bh-ink);padding:4px 10px;border-radius:2px;border-left:3px solid var(--bh-red);pointer-events:none}
@media print{body.researcher-station .observation .stage.is-preview::after{display:none}}

/* ---------- 19. 矮桌機首屏：保留任務與操作入口，省略重複裝備／時間提示 ---------- */
@media (min-width:851px) and (max-height:800px){
  body .researcher-header{min-height:52px}
  body .researcher-nav{margin-top:10px;margin-bottom:10px}
  body .researcher-nav button{min-height:42px}
  body .researcher-welcome{min-height:calc(100svh - 128px)}
  body .researcher-welcome-copy{padding:24px 32px}
  body .researcher-welcome h1,body .researcher-welcome h2{font-size:36px;line-height:1.18;margin:8px 0 12px}
  body .researcher-welcome p{font-size:15px;line-height:1.7;margin:0}
  body .researcher-promise{padding:10px 14px;margin:14px 0;gap:3px}
  body .researcher-promise b{margin-bottom:4px}
  body .researcher-promise span{font-size:14px;line-height:1.7}
  body .researcher-promise .researcher-guess{font-size:13px;line-height:1.5;margin-top:6px;padding-top:6px}
  body .researcher-welcome .researcher-kit,body .researcher-welcome-copy>p:has(small){display:none}
  body .researcher-scene{min-height:0}
  body .researcher-scene .room{position:absolute;inset:0;width:100%;height:100%;min-height:0}
  body .researcher-scene .doc{bottom:0}
}

/* ---------- 20. 顯微鏡桌機：器材在左、余老師從右側指向器材 ---------- */
@media (min-width:851px){
  body .researcher-scene.doc-right .room{transform:none;object-position:left center}
  body .researcher-scene.doc-right .doc{left:auto;right:2%;bottom:0;transform:scaleX(-1);max-height:82%}
}

/* ---------- 21. 對話置於人物上方，露出桌面器材；短尾向下指向說話者 ---------- */
body .researcher-scene .doc,body .researcher-scene.doc-right .doc{
  max-height:calc(100% - var(--speech-reserve,112px))}
body .researcher-scene .researcher-bubble.is-aligned::before{
  top:100%;bottom:auto;left:var(--speech-tail-left);right:auto;width:20px;height:14px;
  clip-path:polygon(0 0,100% 0,50% 100%)}
body .researcher-scene .researcher-bubble.is-aligned::after{
  top:calc(100% - 1px);bottom:auto;left:calc(var(--speech-tail-left) + 3px);right:auto;width:14px;height:11px;
  clip-path:polygon(0 0,100% 0,50% 100%)}
