:root{color-scheme:light;--ink:#243f3b;--muted:#647773;--line:#d6dfd8;--green:#27685c;--paper:#f5f5ee;font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-size:17px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,select,input,textarea{font:inherit}button,a,select,input{touch-action:manipulation}button{border:1px solid var(--line);background:transparent;color:inherit;padding:9px 12px;border-radius:7px;cursor:pointer;min-height:42px}button:hover{background:#e5ece4}button:active{transform:translateY(1px)}button:disabled{opacity:.42;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d39146;outline-offset:3px}button[aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}[hidden]{display:none!important}header,.title-row,main,footer{max-width:1600px;margin:auto;padding-left:28px;padding-right:28px}header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:13px;padding-bottom:10px;border-bottom:1px solid var(--line)}a{color:var(--green)}.brand{text-decoration:none;font-weight:700}.brand span{font-weight:400;color:var(--muted);font-size:.85rem}.head-actions{display:flex;gap:8px}.head-actions button{border:0;font-size:.88rem}.title-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding-top:18px;padding-bottom:18px}.eyebrow{font-size:.8rem;color:var(--muted);margin-bottom:6px;letter-spacing:1px}h1{font-size:1.9rem;margin:0;font-weight:650;letter-spacing:1px}h1 span{font-size:.95rem;font-weight:400;letter-spacing:0;margin-left:16px;color:var(--muted)}.mode-switch{display:flex;padding:4px;border:1px solid var(--line);border-radius:10px;background:#e9eee5;gap:4px;flex-shrink:0}.mode-switch button{border:0;font-weight:600}.mode-switch button[aria-pressed=true]{background:#fff;color:var(--green);box-shadow:0 1px 5px #284d3b18}main{display:grid;grid-template-columns:minmax(0,1fr) 365px;gap:22px}h2{font-size:1rem;margin:0;font-weight:650}.stage-top{display:flex;justify-content:space-between;align-items:center;background:#132622;color:#e1ebe3;padding:11px 18px;border-radius:13px 13px 0 0;font-size:.88rem}.status-dot{display:inline-block;width:7px;height:7px;background:#9dd2b6;border-radius:100%;margin-right:8px}.stage{position:relative;background:#000;overflow:hidden;height:clamp(340px,calc(100dvh - 375px),660px);min-height:340px;border-radius:0 0 13px 13px}#specimen{width:100%;height:100%;display:block}.stage-corner{position:absolute;left:16px;bottom:12px;display:grid;gap:4px;color:#b9c9bf;font-size:.69rem;pointer-events:none}.zoom-tools{position:absolute;right:14px;bottom:15px;display:flex;gap:5px}.zoom-tools button{background:#132622df;border-color:#64807266;color:#ecf0e6;font-size:.8rem}.zoom-tools button:first-child,.zoom-tools button:nth-child(2){font-size:1.2rem;width:42px;padding:0}.pause-badge{position:absolute;top:15px;left:16px;background:#223a30e6;color:white;padding:7px 12px;border-radius:6px}.view-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 0}.view-controls button{font-size:.86rem;padding:7px 12px}.speed-controls{display:flex;gap:4px;margin-right:auto}.scene-note{color:var(--muted);font-size:.88rem;line-height:1.5;padding-bottom:12px}.summary{border-top:1px solid var(--line);padding-top:12px}.section-heading{display:flex;align-items:center;gap:9px}.section-heading>span{font-size:.78rem;color:var(--muted);margin-left:auto}.section-heading>button{font-size:.8rem;padding:4px 9px;min-height:32px;margin-left:auto}.chart{display:grid;gap:8px;margin-top:10px}.chart-row{display:grid;grid-template-columns:58px minmax(0,1fr) 105px;align-items:center;gap:10px;font-size:.85rem}.bar-track{height:14px;background:#e3e8df;border-radius:3px}.bar-fill{background:#83a99b;height:100%;border-radius:3px}.chart-row:first-child .bar-fill{background:var(--green)}.chart-row small{color:var(--muted)}.empty{color:var(--muted);font-size:.85rem;margin:6px 0}.panel{background:#fffdf7;border:1px solid var(--line);border-radius:11px;padding:16px;margin-bottom:12px}.concentrations{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:14px}.concentrations button{padding:10px 3px;font-size:1.15rem}.concentrations small{font-size:.75rem}.subtle{color:var(--muted);font-size:.8rem;line-height:1.55;margin:10px 0 0}.readouts{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:12px 0}.readouts>div{display:grid;gap:2px}.readouts strong{font:500 2.8rem/1.1 Georgia,serif;font-variant-numeric:tabular-nums}.readouts span{font-size:.76rem;color:var(--muted)}.progress-track{height:4px;background:#e5e9df;overflow:hidden;border-radius:3px}.progress-track i{display:block;width:0;height:100%;background:#71a895}.counting-mode{display:flex;gap:6px;margin:12px 0 10px}.counting-mode button{flex:1;font-size:.83rem;padding:6px;min-height:36px}.primary{display:block;width:100%;background:var(--green);color:#fff;border-color:var(--green);font-weight:600}.primary:hover{background:#1d5349}.count-actions{display:flex;gap:6px;margin-top:8px}.count-actions button{font-size:.86rem;padding:9px}.count-actions #tap{flex:1;background:#ecf1e8}.count-actions small{font-size:.68rem;color:var(--muted)}#feedback{color:var(--green);font-size:.8rem;line-height:1.5;margin-top:10px;min-height:1.5em}#result{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}#result label{display:flex;align-items:center;gap:7px;font-size:.9rem}input[type=number]{width:78px}input,select,textarea{border:1px solid #b6c7bd;background:#fff;color:var(--ink);padding:8px;border-radius:5px;max-width:100%}#result-rate{display:block;margin:8px 0}.teaching-note{display:flex;gap:12px;padding:4px 4px}.teaching-note p{font-size:.83rem;line-height:1.6;color:var(--muted);margin:6px 0}.teaching-note button{border:0;padding:4px 0;min-height:30px;font-size:.82rem;color:var(--green)}.note-number{display:grid;place-items:center;flex-shrink:0;border:1px solid #a8bcae;border-radius:50%;width:25px;height:25px;font:italic 18px Georgia}#plan-form>label{display:block;margin:12px 0 6px;font-size:.85rem}#hypothesis{width:100%;font-size:.85rem}.plan-groups{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0;font-size:.86rem}.plan-groups label{display:flex;align-items:center;gap:3px}.plan-groups input{width:18px;height:18px;accent-color:var(--green)}.plan-row{display:flex;gap:15px;font-size:.84rem}.plan-row label{display:grid;gap:5px}#start-plan{margin-top:12px}#plan-progress p{font-size:.86rem;line-height:1.5;margin:12px 0}footer{display:flex;gap:18px;align-items:center;padding-top:16px;padding-bottom:16px;color:var(--muted);font-size:.75rem}footer button{margin-left:auto;border:0;font-size:.8rem}dialog{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:22px;width:min(850px,94vw);max-height:88dvh}dialog::backdrop{background:#10272099;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding-bottom:10px}.modal-head h2{font-size:1.25rem}.modal-head button{font-size:1.4rem;padding:0;width:42px}#modal-body{font-size:.95rem;line-height:1.75}#modal-body h3{font-size:1rem;margin:18px 0 6px}#modal-body p{margin:12px 0}#modal-body ul{padding-left:22px}.table-wrap{overflow:auto;max-height:45vh}table{border-collapse:collapse;width:100%;font-size:.85rem;white-space:nowrap}td,th{border-bottom:1px solid var(--line);text-align:left;padding:8px}th{background:#e8ede3;position:sticky;top:0}textarea{display:block;width:100%;min-height:110px;resize:vertical}.modal-actions{display:flex;gap:8px;margin-top:14px}.modal-actions button{flex:1}.corpus{font-size:.8rem;color:var(--muted);overflow-wrap:anywhere}.method-grid{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.method-grid label{display:grid;gap:5px}.source-photo{height:160px;max-width:100%;object-fit:contain;background:black;border-radius:8px}body[data-mode=inquiry] .stage{height:clamp(340px,calc(100dvh - 375px),660px)}
@media(min-width:1100px) and (max-height:820px){:root{font-size:16px}.title-row{padding-top:12px;padding-bottom:12px}.panel{padding:13px}.readouts strong{font-size:2.5rem}.panel{margin-bottom:10px}.stage{min-height:315px}.teaching-note p{margin:4px 0}footer{padding-top:8px;padding-bottom:8px}}
@media(min-width:1500px){main{grid-template-columns:minmax(0,1fr) 400px}:root{font-size:19px}.stage{height:clamp(440px,calc(100dvh - 420px),700px)}}
@media(max-width:1050px){header,.title-row,main,footer{padding-left:18px;padding-right:18px}h1 span{display:block;margin:5px 0 0}main{grid-template-columns:minmax(0,1fr) 330px;gap:14px}.mode-switch button{font-size:.85rem}.stage{min-height:350px}.zoom-tools{right:8px;bottom:55px;flex-wrap:wrap;max-width:110px}.stage-corner{font-size:.65rem}.view-controls{gap:5px}.view-controls button{padding:7px;font-size:.8rem}}
@media(max-width:760px){:root{font-size:17px}header,.title-row,main,footer{padding-left:14px;padding-right:14px}.brand span{display:none}header{padding-top:8px;padding-bottom:8px}.head-actions{gap:0}.head-actions button{padding:7px}.title-row{display:block;padding-top:14px}.title-row h1{font-size:1.65rem}.mode-switch{margin-top:13px;width:100%}.mode-switch button{flex:1;font-size:1rem}main{display:flex;flex-direction:column;gap:14px}.stage,body[data-mode=inquiry] .stage{height:390px;min-height:0}.stage-top{font-size:.8rem;padding:10px}.zoom-tools{max-width:none;bottom:45px;right:8px}.zoom-tools button{font-size:.74rem}.view-controls{justify-content:space-between}.view-controls button{font-size:.8rem}.speed-controls{margin:0}.scene-note{font-size:.82rem}.summary{padding-bottom:2px}.panel{padding:16px}footer{flex-wrap:wrap;gap:6px 15px}footer button{margin-left:0}.chart-row{grid-template-columns:50px minmax(0,1fr) 102px}.plan-row{gap:25px}.modal-actions{flex-wrap:wrap}dialog{padding:16px}.stage-corner{left:12px;font-size:.62rem}}
@media(prefers-reduced-motion:reduce){button:active{transform:none}}
#specimen{width:76%}.heart-detail{position:absolute;right:24px;top:40px;width:24%;max-width:230px;color:#dce9de;text-align:center;font-size:.83rem}.heart-detail svg{display:block;width:100%;margin:12px 0;border:1px solid #77908466;border-radius:50%;background:#000}.heart-detail small{font-size:.72rem;color:#a7bbae}#labels text{font-size:30px}@media(max-width:1050px){#specimen{width:100%}.heart-detail{display:none}}
.large-text .title-row{flex-wrap:wrap}.large-text main{grid-template-columns:1fr}.large-text .stage{height:580px}.large-text .heart-detail{display:none}.large-text #specimen{width:100%}.large-text .concentrations{grid-template-columns:repeat(4,minmax(0,1fr))}.large-text .concentrations button{white-space:nowrap}.large-text aside{max-width:none}.large-text .chart-row{grid-template-columns:4rem minmax(0,1fr) 7rem}@media(max-width:760px){.observation,aside{display:contents}#observe-panel,#inquiry-panel{order:0}.stage-top{order:1}.stage{order:2}.view-controls{order:3}.scene-note{order:4}.measurement{order:5}.summary{order:6}.teaching-note{order:7}body[data-sampling=true] .stage{position:sticky;top:0;height:250px;z-index:3;border-radius:10px;box-shadow:0 4px 18px #0003}body[data-sampling=true] .stage-corner{display:none}body[data-sampling=true] .zoom-tools{bottom:8px}body[data-sampling=true] .scene-note{display:none}body[data-sampling=true] .view-controls{padding:0}}

/* v1.1: visible pause/stop controls; independent resumable modes. */
.session-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}.session-controls button{min-height:46px;font-weight:650;font-size:1rem}#pause{background:#f7e6b8;color:#5a411a;border:1.5px solid #be9143}#pause.resume{background:#27685c;color:#fff;border-color:#27685c}#stop{background:#fff4ec;color:#8a4825;border:1.5px solid #c78e6e}.session-controls button:disabled{background:transparent;border-color:var(--line);color:var(--muted);opacity:.5}.heart-detail small{display:block;line-height:1.35}.heart-detail svg{max-height:220px;margin:8px auto}.heart-detail{top:24px}#heart,#heart-detail{vector-effect:non-scaling-stroke}.mode-switch button:focus-visible{outline-offset:1px}@media(max-width:760px){.session-controls button{min-height:48px}.count-actions #tap{min-height:48px}}
