:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Microsoft YaHei,sans-serif;color:#182621;background:#f4f6f5;color-scheme:light;--muted: #52625a;--line: #d8e1dc;--green: #087056;--accent: #8af1c4}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}svg{display:block;width:1.2em;height:1.2em}main{width:min(100% - 32px,920px);margin:0 auto;padding:32px 0 24px}header{display:flex;align-items:center;gap:12px;margin-bottom:19px}.mark{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;color:var(--green);background:#def3e9;font-size:20px}h1{font-size:22px;line-height:1.3;margin:0}.tag{border-left:1px solid var(--line);padding-left:12px;color:var(--muted);font:600 11px/1.4 system-ui,sans-serif}.workspace{display:grid;grid-template-columns:1.28fr 1fr;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}.stage{position:relative;isolation:isolate;overflow:hidden;aspect-ratio:4 / 3;background:#17221e;color:#f4fff9}.stage:before{content:"";position:absolute;inset:0;background-image:linear-gradient(#fff1 1px,transparent 1px),linear-gradient(90deg,#fff1 1px,transparent 1px);background-size:32px 32px;pointer-events:none}video,#face-points{position:absolute;inset:0;width:100%;height:100%;transform:scaleX(-1)}video{object-fit:cover}#face-points{pointer-events:none}#points-toggle{position:absolute;top:10px;right:10px;width:44px;height:44px;padding:0;background:#101a16;color:#e4eee8;z-index:1}#points-toggle[aria-pressed=true]{color:var(--accent);border-color:#80a695}.camera-label{position:absolute;top:14px;left:14px;display:flex;align-items:center;gap:7px;padding:6px 9px;border-radius:5px;background:#101a16;color:#f2faf5;font-size:12px}.camera-label>span:first-child{width:7px;height:7px;border-radius:50%;background:#84918a}.stage[data-state=running] .camera-label>span:first-child,.stage[data-state=align] .camera-label>span:first-child{background:var(--accent)}.guide{position:absolute;inset:16% 25%;pointer-events:none;color:#80a695}.guide span{position:absolute;width:21px;height:21px;border:2px solid currentColor}.guide span:nth-child(1){inset:0 auto auto 0;border-right:0;border-bottom:0;border-top-left-radius:8px}.guide span:nth-child(2){inset:0 0 auto auto;border-left:0;border-bottom:0;border-top-right-radius:8px}.guide span:nth-child(3){inset:auto auto 0 0;border-right:0;border-top:0;border-bottom-left-radius:8px}.guide span:nth-child(4){inset:auto 0 0 auto;border-left:0;border-top:0;border-bottom-right-radius:8px}.stage[data-state=running] .guide,.stage[data-state=passed] .guide{color:var(--accent);filter:drop-shadow(0 0 2px #15241b)}.stage-icon{position:absolute;inset:0;display:grid;place-items:center;color:#9db9aa;font-size:45px;pointer-events:none}.stage[data-state=running] .stage-icon,.stage[data-state=align] .stage-icon{display:none}.stage[data-state=passed] .stage-icon{color:var(--accent)}.stage[data-state=failed] .stage-icon{color:#f3b39b}.panel{min-width:0;display:flex;flex-direction:column;padding:26px}.progress{display:flex;justify-content:space-between;gap:12px;align-items:center;color:var(--muted);font-size:13px;font-weight:600}#counter,#timer{font-variant-numeric:tabular-nums}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:10px}.steps i{height:4px;border-radius:2px;background:#e4ebe7}.steps i[data-status=active]{background:#72bd9f}.steps i[data-status=done]{background:var(--green)}.prompt{flex:1;padding:26px 0 19px;min-height:126px}h2{font-size:24px;line-height:1.3;margin:0 0 8px;overflow-wrap:anywhere}.prompt p{margin:0;color:var(--muted);font-size:14px;line-height:1.65;overflow-wrap:anywhere}.controls{display:flex;align-items:center;gap:10px;min-height:46px}button{height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:6px;border:1px solid transparent;font:inherit;font-weight:650;cursor:pointer}button:focus-visible{outline:3px solid #397bc1;outline-offset:2px}#start{flex:1;color:#fff;background:var(--green);padding:0 10px}#start:hover:not(:disabled){background:#065941}#start:disabled{cursor:progress;background:#e4ebe7;color:#4b5d53}#stop{flex:0 0 46px;background:#fff;color:#34443c;border-color:var(--line)}#stop:hover{background:#f4f6f5}#timer{margin-left:auto;color:var(--muted);font-size:14px;white-space:nowrap}footer{display:flex;align-items:center;gap:7px;margin-top:16px;color:var(--muted);font-size:12px}@media(max-width:670px){main{width:min(100% - 28px,480px);padding-top:18px}header{margin-bottom:14px}.workspace{grid-template-columns:minmax(0,1fr)}.panel{padding:18px}.prompt{min-height:113px;padding-top:18px;padding-bottom:14px}h2{font-size:21px}}
