:root{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#142a50;background:#f5f7fb;font-synthesis:none;font-size:15px}*{box-sizing:border-box}body{margin:0;min-width:320px}button,select,input,a{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #70a8ff;outline-offset:3px}[hidden]{display:none!important}.topbar{height:70px;background:#10284e;color:#fff;padding:0 max(24px,calc((100vw - 1120px)/2));display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:600}.brand-mark{font-size:26px;color:#a9caff}.brand-divider{color:#6580a7;margin:0 13px;font-weight:400}.test-label{font-size:12px;color:#c4d7f1;white-space:nowrap}main{max-width:1120px;margin:auto;padding:36px 24px 24px}.intro h1{font-size:30px;letter-spacing:-1px;margin:0 0 9px}.intro p{color:#697b95;margin:0 0 28px;line-height:1.6}.workspace{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);align-items:start;gap:24px}.capture-panel,.control-panel,.result-panel{background:white;border:1px solid #dde4ee;border-radius:12px;overflow:hidden}.capture-toolbar{height:54px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;font-size:13px}.capture-toolbar i{width:7px;height:7px;display:inline-block;margin-right:7px;border-radius:50%;background:#a4afbf}.capture-toolbar .recording i{background:#df4b4b;box-shadow:0 0 0 4px #df4b4b15}.capture-toolbar .ready i{background:#24965f}.text-button{border:0;background:none;color:#1263e6;padding:10px 0}.viewfinder{position:relative;aspect-ratio:4/3;background:#142337;overflow:hidden;isolation:isolate}.viewfinder video{width:100%;height:100%;position:absolute;inset:0;object-fit:contain}.viewfinder video.mirrored{transform:scaleX(-1)}.empty-camera{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#c1ccdb;gap:12px;text-align:center;padding:24px}.empty-camera svg{width:48px;height:48px;opacity:.7;margin-bottom:7px}.empty-camera strong{font-size:17px;font-weight:500}.empty-camera span{font-size:12px;color:#8ea1b8}.guide{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.guide-caption{position:absolute;bottom:13px;width:100%;text-align:center;font-size:11px;color:#fff;text-shadow:0 1px 4px #000;pointer-events:none}.countdown-overlay,.pause-overlay{position:absolute;inset:0;background:#10203780;display:flex;align-items:center;justify-content:center;flex-direction:column;color:white;gap:12px}.countdown-overlay strong{font-size:90px;line-height:1}.pause-overlay strong{font-size:26px;letter-spacing:2px}.pause-overlay span{font-size:12px}.camera-options{display:flex;justify-content:space-between;align-items:center;padding:13px 18px;gap:10px;font-size:11px;color:#72829a}.camera-options label{display:flex;align-items:center;gap:5px;color:#385174;white-space:nowrap}.camera-options input{accent-color:#1263e6;width:15px;height:15px;margin:0}.audio-row{display:flex;gap:12px;align-items:center;padding:0 18px 17px;font-size:11px;color:#72829a}.audio-meter{height:5px;flex:1;background:#eaf0f7;border-radius:3px;overflow:hidden}.audio-meter span{display:block;height:100%;width:0;background:#239569;transition:width .08s}#audio-hint{width:72px;text-align:right}.control-panel{padding:23px}.settings{display:grid;grid-template-columns:1fr 1fr;gap:12px}.settings label{font-size:11px;color:#72829a;display:grid;gap:7px}.settings select{min-width:0;width:100%;height:40px;border:1px solid #d8e0ec;background:#fff;border-radius:6px;padding:0 8px;color:#24436f;font-size:12px}.steps{display:flex;list-style:none;margin:24px 0;padding:0;justify-content:space-between;gap:6px;font-size:11px;color:#8594a9}.steps li{display:flex;align-items:center;gap:5px}.steps li>span{display:inline-grid;place-items:center;width:20px;height:20px;border:1px solid #dce3ed;border-radius:50%;font-size:10px}.steps li.active{color:#1263e6;font-weight:600}.steps li.active>span{background:#1263e6;color:#fff;border-color:#1263e6}.steps li.complete{color:#23875d}.steps li.complete>span{background:#edf7f0;border-color:#c5dfd0}.timer-block{text-align:center;border-top:1px solid #edf0f6;padding:22px 0 20px}.timer-block p{margin:0;color:#697b95;font-size:12px;line-height:1.6}.timer{font-size:62px;line-height:1.4;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-2px;color:#10284e}.timer.urgent{color:#c54335}#phase-help{min-height:38px;font-size:12px;max-width:290px;margin:auto}.primary,.download{width:100%;min-height:48px;border:0;border-radius:7px;background:#1263e6;color:white;font-size:14px;font-weight:600;display:inline-flex;justify-content:center;align-items:center;text-decoration:none;padding:10px 14px}.primary:hover,.download:hover{background:#0b54c7}.secondary-actions{display:flex;gap:10px;margin-top:10px}.secondary-actions button,.result-actions button{min-height:42px;border:1px solid #d8e0ec;background:white;border-radius:6px;color:#385174;flex:1;font-size:12px;padding:8px 12px}.record-info{display:flex;justify-content:space-between;color:#8190a5;font-size:11px;margin-top:18px}.local-note{font-size:11px;line-height:1.8;color:#8190a5;margin:14px 0 0;padding-top:13px;border-top:1px solid #edf0f6}.notice{padding:10px 12px;margin:0 0 13px;background:#eff6ff;color:#26577f;border:1px solid #cddff5;border-radius:6px;font-size:12px;line-height:1.7}.notice.error{color:#a3332b;background:#fff4f2;border-color:#f2ccc7}.result-panel{margin-top:24px;padding:22px}.result-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.result-heading h2{margin:0;font-size:19px}.result-heading p{color:#72829a;font-size:12px;line-height:1.7;margin:6px 0 16px}.result-heading>span{font-size:12px;color:#72829a}#playback{width:100%;max-height:460px;background:#142337;border-radius:7px}.result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:17px}.result-actions .download{width:auto;min-width:130px}.result-actions button{flex:initial}.result-note{font-size:11px;color:#8190a5;line-height:1.8;margin:14px 0 0}.chapters{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.chapters button{color:#1263e6;border:1px solid #cddff5;background:#f5f9ff;border-radius:5px;padding:8px 12px;font-size:12px}.instructions{margin-top:32px}.instructions h2{font-size:17px;margin:0 0 18px}.instructions>ol{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:28px;counter-reset:tips}.instructions>ol li{counter-increment:tips;font-size:12px;line-height:1.8;padding-left:28px;position:relative}.instructions>ol li:before{content:"0" counter(tips);position:absolute;left:0;top:0;color:#1263e6;font-size:11px}.instructions strong{display:block;font-weight:600;margin-bottom:4px}.instructions span{color:#72829a}.instructions details{margin-top:24px;border-top:1px solid #dde4ee;padding-top:17px;font-size:12px;color:#72829a;line-height:1.9}.instructions summary{cursor:pointer;color:#385174}.instructions details p{max-width:850px}footer{color:#98a4b5;font-size:10px;text-align:center;margin-top:32px;padding-bottom:env(safe-area-inset-bottom)}@media(max-width:760px){.topbar{height:56px;padding:0 18px}.brand{font-size:14px;gap:8px}.brand-divider{margin:0 9px}.test-label{font-size:10px}main{padding:24px 16px}.intro h1{font-size:25px}.intro p{font-size:12px;margin-bottom:20px}.workspace{grid-template-columns:1fr;gap:16px}.control-panel{padding:18px}.capture-toolbar{height:45px;padding:0 14px;font-size:12px}.camera-options{padding:12px 14px;font-size:10px}.audio-row{padding:0 14px 14px}.settings select{height:40px;font-size:13px}.steps{margin:19px 0;font-size:12px}.timer-block{padding:16px 0}.timer{font-size:58px}.timer-block #phase-help{min-height:auto;max-width:none}.record-info{margin-top:14px}.local-note{margin-top:12px}.instructions>ol{grid-template-columns:1fr;gap:15px}.instructions>ol li{padding-left:30px}.instructions strong{margin-bottom:1px}.result-panel{padding:16px}.result-heading{align-items:start}.result-actions .download{flex:1}.guide-caption{font-size:10px}.guide-shape{stroke-width:4px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* A portrait camera stays centered at its native ratio, never cropped. */
.viewfinder{margin-inline:auto;width:100%}
.capture-panel:has(.viewfinder[style*="max-width: min"]){background:#142337}
.capture-panel:has(.viewfinder[style*="max-width: min"]) .capture-toolbar,.capture-panel:has(.viewfinder[style*="max-width: min"]) .camera-options,.capture-panel:has(.viewfinder[style*="max-width: min"]) .audio-row{background:white}
.camera-hud{position:absolute;top:10px;right:12px;z-index:2;color:white;text-align:right;text-shadow:0 1px 4px #000;pointer-events:none}.camera-hud span{display:block;font-size:10px}.camera-hud strong{font-size:24px;font-variant-numeric:tabular-nums;font-weight:600}
/* Phone preflight and landscape recording. */
.preflight{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;background:white;border:1px solid #dde4ee;border-radius:9px;padding:13px 16px;margin-bottom:18px;font-size:12px;color:#385174}.preflight label{display:flex;align-items:center;gap:7px}.preflight input{accent-color:#1263e6;width:16px;height:16px;margin:0}.preflight button{border:1px solid #bad0ed;background:#f5f9ff;color:#1263e6;border-radius:5px;min-height:36px;padding:6px 12px;font-size:12px}.preflight>span{font-size:11px;color:#72829a}.settings output{display:flex;align-items:center;height:40px;border:1px solid #d8e0ec;border-radius:6px;padding:0 10px;color:#24436f;background:#f8faff;font-size:12px}.orientation-gate{padding:34px 22px;text-align:center;min-height:64svh;display:flex;align-items:center;justify-content:center;flex-direction:column;background:white;border:1px solid #dde4ee;border-radius:12px;margin:20px 0}.orientation-gate svg{width:130px;height:110px;color:#1263e6;margin-bottom:15px}.orientation-gate h2{font-size:25px;margin:0 0 14px}.orientation-gate p{color:#72829a;font-size:14px;line-height:1.9;margin:0 0 18px}.orientation-gate strong{font-size:12px;color:#385174;font-weight:500}.is-portrait .workspace,.is-portrait .preflight,.is-portrait .result-panel,.is-portrait .instructions{display:none}.audio-row #audio-hint{width:auto;flex:1;text-align:right;font-size:11px}.audio-check{font-size:13px;line-height:1.8;padding:10px 12px;background:#eff6ff;border-radius:6px;color:#26577f}.recording-layout .intro,.recording-layout .preflight,.recording-layout .instructions{display:none}
@media(orientation:landscape) and (max-height:600px){.topbar{height:35px;padding-inline:max(14px,env(safe-area-inset-left))}.brand{font-size:12px;gap:6px}.brand-mark{font-size:20px}.test-label{font-size:10px}main{padding:10px max(12px,env(safe-area-inset-right)) 14px;max-width:1200px}.intro h1{font-size:20px;margin-bottom:4px}.intro p{font-size:11px;margin-bottom:12px}.preflight{padding:8px 10px;margin-bottom:10px;gap:6px 12px;font-size:11px}.preflight button{min-height:30px;font-size:11px}.preflight>span{font-size:10px}.workspace{grid-template-columns:minmax(0,1.4fr) minmax(265px,1fr);gap:12px}.control-panel{padding:11px 13px}.capture-toolbar{height:30px;padding:0 11px;font-size:11px}.viewfinder{max-height:calc(100svh - 114px);aspect-ratio:16/9}.camera-options{padding:7px 10px;font-size:9px}.audio-row{padding:0 10px 8px;font-size:9px}.audio-row #audio-hint{font-size:9px}.settings{gap:8px}.settings label{font-size:10px;gap:4px}.settings select,.settings output{height:30px;font-size:11px}.steps{margin:10px 0;font-size:10px}.steps li>span{width:16px;height:16px;font-size:9px}.steps li{gap:4px}.timer-block{padding:7px 0 9px}.timer-block p,#phase-help{font-size:10px;line-height:1.5}.timer{font-size:44px;line-height:1.2}.timer-block #phase-help{min-height:30px}.primary{min-height:40px;font-size:12px;padding:7px 10px}.secondary-actions{margin-top:6px;gap:6px}.secondary-actions button{min-height:31px;font-size:10px;padding:5px}.record-info{margin-top:8px;font-size:9px}.local-note{font-size:9px;line-height:1.6;margin-top:8px;padding-top:7px}.recording-layout .local-note{display:none}.recording-layout .capture-panel{align-self:start}.notice{font-size:10px;padding:6px 8px;margin-bottom:8px}footer{margin-top:15px;font-size:9px}.recording-layout footer{display:none}.camera-hud strong{font-size:26px}.guide-caption{font-size:9px}.result-panel{margin-top:14px}.result-actions button,.result-actions .download{min-height:38px;font-size:12px}.result-note{font-size:10px}}
@media(orientation:landscape) and (max-height:600px){.recording-layout .topbar{display:none}}
/* One primary action at each stage; optional checks stay out of the main path. */
.preparing-layout .steps,.preparing-layout .record-info{display:none}.timer-block #phase-title{font-size:20px;line-height:1.4;font-weight:700;color:#10284e}.timer-block #phase-help{font-size:14px;line-height:1.65;color:#49617f;max-width:340px}.primary{min-height:56px;font-size:19px;letter-spacing:.02em;box-shadow:0 5px 13px #1263e61a}.optional-check{margin-top:15px;border-top:1px solid #e8edf4;padding-top:12px;color:#72829a;font-size:12px;line-height:1.7}.optional-check summary{cursor:pointer;color:#617791}.optional-check p{margin:9px 0}.optional-check button{display:block;width:100%;min-height:40px;border:1px solid #d8e0ec;background:#f8faff;border-radius:6px;color:#385174;font-size:13px}.secondary-actions button{border:0;background:transparent;min-height:30px;color:#8190a5;font-size:11px;text-decoration:underline}.review-layout .workspace,.review-layout .intro,.review-layout .instructions{display:none}.review-layout .result-panel{margin-top:0}.result-actions #dismiss-trial{background:#1263e6;border-color:#1263e6;color:white;font-weight:600}.countdown-overlay strong.announce-word{font-size:clamp(32px,5vw,62px)}.orientation-gate .rotation-lock-tile{width:92px;height:92px;display:grid;place-items:center;background:#fff0f0;border:1px solid #f1c3c3;border-radius:24px;color:#d84444;margin:14px 0 20px}.orientation-gate .rotation-lock-tile svg{width:64px;height:64px;margin:0;color:inherit}.orientation-gate .rotate-phone{display:flex;align-items:center;justify-content:center;gap:12px;padding-top:15px;border-top:1px solid #edf0f6;width:100%;max-width:330px}.orientation-gate .rotate-phone svg{width:70px;height:50px;margin:0;flex:none}.orientation-gate .rotate-phone strong{font-size:13px;line-height:1.7;text-align:left}.orientation-footnote{font-size:12px;color:#8190a5;margin-top:17px}.orientation-gate{min-height:62svh;padding:28px 20px}.orientation-gate h2{font-size:24px}.orientation-gate p{font-size:14px}
@media(orientation:landscape) and (max-height:600px){.intro,footer{display:none}.control-panel{padding:12px 14px}.timer-block #phase-title{font-size:18px}.timer-block #phase-help{font-size:12px;line-height:1.6;min-height:38px}.timer-block{padding:8px 0 12px}.primary{min-height:52px;font-size:18px;padding:9px 12px}.optional-check{margin-top:11px;padding-top:8px;font-size:11px}.optional-check button{min-height:38px;font-size:12px}.local-note{font-size:10px;line-height:1.6}.secondary-actions{margin-top:4px}.secondary-actions button{font-size:10px;min-height:23px;padding:3px}.timer{font-size:42px}.review-layout #playback{max-height:calc(100svh - 170px)}.review-layout .result-panel{padding:12px 16px}.review-layout .result-heading h2{font-size:17px}.review-layout .result-heading p{margin:4px 0 8px;font-size:11px}.review-layout .audio-check{font-size:11px;padding:5px 9px;margin:7px 0}.review-layout .result-actions{margin-top:8px}.review-layout .result-note{margin-top:7px}}
@media(orientation:landscape) and (max-height:340px){.topbar{height:28px}main{padding-top:6px}.control-panel{padding:9px 12px}.timer{font-size:34px}.timer-block{padding:5px 0 8px}.timer-block #phase-title{font-size:16px}.timer-block #phase-help{font-size:11px;min-height:30px;line-height:1.45}.primary{min-height:48px;font-size:17px}.local-note{display:none}.optional-check{margin-top:8px;padding-top:6px}}

/* Keep Safari's root viewport still; the application owns normal page scrolling. */
html{height:100%;overflow:hidden;overscroll-behavior:none}
body{position:fixed;inset:0;height:100dvh;overflow:hidden;display:flex;flex-direction:column;overscroll-behavior:none}
.topbar{flex-shrink:0}
main{width:100%;min-height:0;flex:1;overflow-y:auto;overscroll-behavior:none;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom}
.camera-hud strong.urgent{color:#ff7770;text-shadow:0 1px 4px #240000}
.result-heading>span{max-width:45%;text-align:right;line-height:1.7}

/* Practice tool: recording needs landscape; playback and saving work in either orientation. */
.is-portrait.review-layout .result-panel{display:block}
.review-layout .orientation-gate,.recording-layout .tool-help,.review-layout .tool-help{display:none}
.tool-help{margin-top:24px;border-top:1px solid #dde4ee;padding-top:16px;color:#72829a;font-size:12px;line-height:1.9}
.tool-help summary,.save-alternative summary{cursor:pointer;color:#385174}
.save-help{font-size:13px;line-height:1.7;color:#385174;margin:12px 0}
.save-alternative{margin-top:16px;font-size:12px;line-height:1.8;color:#72829a}
.save-alternative p{margin:8px 0}.save-alternative a{display:inline-flex;align-items:center;min-height:40px;color:#1263e6}
.result-actions #save-video{background:#1263e6;color:white;border-color:#1263e6;font-size:16px;min-height:50px;font-weight:650;min-width:180px}
.result-actions #save-video:disabled{opacity:.55}
@media(max-width:760px){.test-label{font-size:9px}.result-actions #save-video{flex-basis:100%}.review-layout main{padding-top:16px}.review-layout .result-panel{margin-top:0}.save-help{font-size:12px}}
@media(orientation:landscape) and (max-height:600px){.preparing-layout .tool-help,.preparing-layout .instructions{display:none}.save-help{font-size:11px;margin:8px 0}.result-actions #save-video{min-height:44px;font-size:15px}.review-layout #playback{max-height:calc(100svh - 200px)}.result-actions{gap:8px}}

/* Official brand and optional service destinations. */
.brand-logo{display:block;width:38px;height:38px;object-fit:contain;flex:none;border-radius:7px;background:white}
.brand{min-width:0}.brand-module{font-weight:500}
footer{display:flex;justify-content:center;align-items:center;gap:15px;flex-wrap:wrap;line-height:1.8}footer a{color:#617791;text-underline-offset:3px}
.service-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border:1px solid #dde4ee;border-radius:10px;padding:18px;margin-top:24px}
.service-owner{font-size:11px;color:#72829a}.service-entry h2{font-size:16px;margin:5px 0 0}.service-options{display:flex;gap:12px}.service-options a{display:grid;gap:5px;text-decoration:none;background:#f5f9ff;border:1px solid #dce7f5;border-radius:7px;padding:12px 16px;min-width:145px;color:#24436f}.service-options strong{font-size:13px}.service-options span{font-size:11px;color:#72829a}
.recording-layout .service-entry{display:none!important}
@media(max-width:760px){.brand-logo{width:31px;height:31px}.brand-divider{margin:0 7px}.service-entry{align-items:stretch;flex-direction:column;gap:12px}.service-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.service-options a{min-width:0;padding:12px}.brand-module{font-size:12px}.test-label{font-size:9px}}
@media(orientation:landscape) and (max-height:600px){.brand-logo{width:25px;height:25px}.brand-module{font-size:11px}.service-entry{margin-top:16px}.preparing-layout footer{display:flex;margin-top:12px;font-size:10px}.recording-layout footer{display:none}}

.brand-logo-window{display:block;position:relative;overflow:hidden;flex:none;width:108px;height:36px;background:#fff;border-radius:6px}
.brand-logo-window .brand-logo{position:absolute;width:108px;height:108px;max-width:none;top:-37px;left:0;border-radius:0;object-fit:contain}
.intro .brand-owner{font-size:12px;font-weight:650;color:#277545;margin-bottom:9px;letter-spacing:.03em}
@media(max-width:760px){.brand-logo-window{width:100px;height:34px}.brand-logo-window .brand-logo{width:100px;height:100px;top:-34px}.brand{gap:8px}.brand-module{font-size:11px}}
@media(orientation:landscape) and (max-height:600px){.brand-logo-window{width:81px;height:27px}.brand-logo-window .brand-logo{width:81px;height:81px;top:-28px}.brand-module{font-size:11px}}
