:root{--blue:#08b0e1;--blue-dark:#087d9c;--gray:#808080;--ink:#172c38;--muted:#5e747f;--line:#dbe7ec;--bg:#f3f8fa;--soft:#edf8fc;--radius:18px;font-family:'Gotham','Montserrat','Avenir Next',system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}html{scroll-behavior:auto}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #056d9e;outline-offset:3px}.app{max-width:520px;margin:0 auto;min-height:100dvh;background:#fff;box-shadow:0 0 60px #1c476218;display:flex;flex-direction:column}.top{padding:12px 20px 9px;border-top:6px solid var(--blue);border-bottom:1px solid #ebf1f3;text-align:center;background:#fff}.header-logo{display:block;height:45px;max-width:92%;object-fit:contain;margin:0 auto}.brand-sub{margin-top:3px;font-size:9px;letter-spacing:.21em;color:var(--blue-dark);font-weight:800}.global-footer{font-size:10px;color:#788e98;text-align:center;padding:16px 10px 22px;border-top:1px solid var(--line);margin-top:auto}main{padding:22px 22px 35px;flex:1}h1{font-size:clamp(26px,6.2vw,35px);letter-spacing:-.035em;line-height:1.14;margin:3px 0 13px}h2{font-size:21px;line-height:1.25;margin:8px 0 14px}h3{font-size:16px;margin:6px 0}p{line-height:1.5;color:var(--muted);margin:0 0 15px;font-size:14px}.eyebrow{color:var(--blue-dark);font-size:11px;letter-spacing:.14em;font-weight:800;text-transform:uppercase;margin:0 0 10px}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.topback{border:0;background:none;color:var(--blue-dark);font-weight:750;font-size:14px;padding:9px 0 18px;display:flex;align-items:center;gap:7px}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:11px}.bold{font-weight:750}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:14px;padding:14px 15px;background:var(--blue);color:#073342;font-size:14px;font-weight:800;border:1px solid #079dd1;min-height:50px;text-decoration:none;white-space:normal;text-align:center}.button:hover{background:#27bfe9}.button.secondary{background:#f0f8fc;color:#167a99;border-color:#cee8f1}.button.ghost{background:transparent;color:var(--blue-dark);border-color:transparent}.button.dark{background:#173e51;border-color:#173e51;color:#fff}.block{width:100%}.mt8{margin-top:8px}.mt16{margin-top:16px}.mt24{margin-top:24px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:17px;margin:14px 0}.soft-card{background:var(--soft);border-color:#d1eaf3}.mode{width:100%;display:flex;gap:12px;align-items:center;padding:17px;border:1px solid #dce7ec;border-radius:18px;background:white;color:inherit;text-align:left;margin:12px 0;box-shadow:0 5px 18px #13567c08}.mode .modeicon{width:48px;height:48px;flex-shrink:0;display:grid;place-items:center;border-radius:15px;background:#e6f7fc;color:#1384a4;font-size:25px}.mode strong{font-size:15px}.mode small{display:block;color:var(--muted);margin-top:4px;font-size:12px}.mode .chev{font-size:27px;margin-left:auto;color:var(--blue-dark)}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:18px 0}.step{padding:12px 7px;text-align:center;border:1px solid var(--line);border-radius:12px;color:#647882;font-size:11px;line-height:1.35}.step span{display:grid;place-items:center;background:#dff5fc;color:#047b9f;border-radius:100px;width:26px;height:26px;margin:0 auto 7px;font-weight:800}.step b{display:block;color:#284758;font-size:12px}.hero{border-radius:20px;background:#e8f8fc;padding:18px 20px;margin:16px 0;display:flex;gap:12px;align-items:center}.hero .glyph{width:65px;height:65px;border:2px solid #a0dbe9;border-radius:13px;display:grid;place-items:center;font-size:37px;background:#fff;flex-shrink:0}.hero b{font-size:14px}.hero p{margin:4px 0 0;font-size:12px}.notice{border-radius:14px;padding:13px 14px;background:#eef8fc;border:1px solid #cce9f0;color:#486b77;font-size:12px;line-height:1.5;margin:12px 0}.warning{background:#fff8e9;border-color:#eee0b4;color:#785f2b}.danger{background:#fff0f0;border-color:#f2c1c1;color:#873a3a}.prep{display:flex;gap:13px;margin:12px 0;padding:10px 0;border-bottom:1px solid #eff3f5}.prep .no{font-weight:850;color:var(--blue-dark)}.prep b{font-size:14px}.prep .small{margin-top:3px;display:block}.progress{display:flex;gap:4px;margin:6px 0 20px}.progress span{height:6px;background:#e4eaed;border-radius:10px;flex:1}.progress .current{background:var(--blue)}.progress .done{background:#428f80}.progress .skipped{background:#dbbc72}.chip{border:1px solid #d3e4e8;background:#eff9fb;border-radius:40px;padding:5px 9px;font-size:11px;color:#337382;white-space:nowrap}.camera-box{position:relative;width:100%;aspect-ratio:3/4;background:#192a32;border-radius:18px;overflow:hidden;margin:12px 0 7px;display:flex;align-items:center;justify-content:center}.camera-box.wide{aspect-ratio:4/3}.camera-box video{position:absolute;width:100%;height:100%;object-fit:contain;background:#10181d}.camera-box.front video{transform:scaleX(-1)}.camera-overlay{position:absolute;inset:9% 10%;pointer-events:none;z-index:2;border:3px dashed #e6f6fbcc;border-radius:40% 40% 36% 36%/35% 35% 40% 40%;box-shadow:0 0 0 100vw #0002,inset 0 0 0 2px #16476135}.camera-overlay.profile{border-radius:43% 25% 40% 30%;transform:translateX(12%)}.camera-overlay.mouth{inset:30% 7% 30%;border-radius:48%;}.camera-overlay.arch{inset:26% 12% 25%;border-radius:45% 45% 28% 28%}.camera-overlay.side{inset:31% 8% 29%;border-radius:40%}.camera-overlay.extra{inset:18% 9%;border-radius:20%}.camera-head{position:absolute;left:11px;right:11px;top:12px;display:flex;justify-content:space-between;gap:5px;z-index:3;color:white}.camera-head span{background:#172b34c9;border-radius:8px;padding:7px;font-size:11px}.camera-hint{position:absolute;left:13px;right:13px;bottom:14px;background:#102530d9;color:#fff;padding:11px 10px;border-radius:11px;z-index:4;font-size:12px;font-weight:650;text-align:center}.camera-placeholder{color:white;text-align:center;padding:24px;z-index:1}.camera-placeholder .glyph{font-size:45px}.camera-placeholder p{color:#d6e4eb;margin:10px 0}.shutter{height:72px;width:72px;border-radius:50%;border:5px solid #fff;box-shadow:0 0 0 3px var(--blue);background:var(--blue);flex-shrink:0;display:grid;place-items:center;color:#073342;font-size:13px;font-weight:800}.shutter:disabled{box-shadow:0 0 0 3px #8999a0;background:#8ba1ac}.camera-bar{display:flex;align-items:center;justify-content:space-around;gap:9px;margin:17px 0 13px}.round{height:50px;min-width:50px;border-radius:50%;border:1px solid #c9e4ed;background:#eff9fc;color:var(--blue-dark);font-size:25px}.linkbtn{border:0;background:none;color:var(--blue-dark);padding:10px 0;text-decoration:underline;font-size:13px;font-weight:700}.photo-frame{background:#f0f5f8;border-radius:17px;overflow:hidden;min-height:280px;display:grid;place-items:center}.photo-frame img{max-width:100%;width:100%;max-height:480px;object-fit:contain}.photo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;margin:15px 0}.photo-tile{border:1px solid var(--line);background:white;border-radius:15px;overflow:hidden;text-align:left;padding:0;color:inherit;min-width:0}.photo-thumb{height:125px;display:grid;place-items:center;background:#edf5f7;overflow:hidden}.photo-thumb img{height:100%;width:100%;object-fit:cover}.placeholder-thumb{font-size:29px;color:#9eb4bb}.photo-title{font-size:12px;font-weight:800;padding:10px 10px 3px}.photo-status{font-size:11px;color:#528e82;padding:0 10px 12px}.photo-status.skip{color:#9e7a39}.photo-status.wait{color:#7e95a3}.interest-grid{display:flex;flex-direction:column;gap:8px;margin:14px 0 20px}.interest{display:flex;align-items:center;gap:12px;padding:12px 11px;border:1px solid var(--line);border-radius:12px;font-size:13px;min-height:48px}.interest:has(input:checked){background:#ecf9fc;border-color:#73c9df}.interest input{width:20px;height:20px;accent-color:var(--blue);flex-shrink:0}.field{display:block;font-size:13px;font-weight:800;margin:12px 0 7px}.textinput{width:100%;border-radius:12px;border:1px solid #cadee5;background:#fff;padding:12px 13px;color:var(--ink);font-size:15px}.textarea{min-height:120px;resize:vertical}.pill-list{display:flex;gap:6px;flex-wrap:wrap;margin:9px 0}.pill{border-radius:20px;padding:7px 10px;background:#e6f6fb;color:#24687d;font-size:11px}.office-logo{width:min(100%,250px);display:block;margin:20px auto;object-fit:contain}.summary-item{padding:13px 0;border-bottom:1px solid var(--line);font-size:14px}.summary-item b{display:block;margin-bottom:5px}.summary-item p{margin-bottom:0}.actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.busy{color:#eaf9fc;font-size:60px;font-weight:850}.modal-wrap{position:fixed;inset:0;background:#0e2532a8;z-index:1000;display:flex;justify-content:center;align-items:center;padding:18px}.modal{background:white;width:min(100%,480px);max-height:90dvh;overflow:auto;border-radius:20px;padding:21px}.guide-example{height:215px;display:grid;place-items:center;background:#eff7fa;border-radius:15px;margin:10px 0 14px;overflow:hidden}.guide-example svg{width:100%;height:100%;max-width:300px}.text-count{text-align:right;font-size:11px;color:#8999a3;margin-top:4px}.fileinfo{font-size:11px;color:var(--muted);margin:10px 0 0}.offline{color:#826824}.status-chip{background:#ebf6f0;color:#326c59;padding:6px 10px;border-radius:20px;font-size:11px}.toast{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);background:#153c50;color:white;padding:13px 18px;border-radius:12px;z-index:9999;width:min(92vw,480px);font-size:13px;box-shadow:0 12px 30px #0004;text-align:center}.empty{color:#7d95a1;text-align:center;font-size:13px;padding:20px}.qrbox{display:grid;place-items:center;margin:20px 0;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff;min-height:180px}.qrbox svg{width:min(80%,270px);height:auto}.qrbox small{color:var(--muted);text-align:center}.separator{height:1px;background:var(--line);margin:15px 0}.download-help{margin:16px 0;font-size:12px;color:var(--muted)}@media(min-width:640px){body{padding:22px 10px}.app{border:1px solid #dbe7ec;border-radius:24px;overflow:hidden;min-height:calc(100dvh - 44px)}main{padding:28px 30px 36px}.camera-box{aspect-ratio:4/3}}@media(max-width:345px){main{padding:17px 14px 25px}.header-logo{height:37px}.chip{white-space:normal}.steps{gap:3px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}.notice-toast[hidden]{display:none}

[hidden]{display:none!important}

.prewrap{white-space:pre-wrap}.breakurl{overflow-wrap:anywhere}


/* v0.1.1: dedicated viewport-filling camera. The camera UI never requires page scrolling. */
body:has(.capture-stage){overflow:hidden;overscroll-behavior:none}
.capture-stage{position:fixed;inset:0;z-index:900;background:#091821;color:#f5fbfe;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;width:100%;height:100vh;height:100dvh;max-height:100dvh;overflow:hidden;isolation:isolate}
.capture-top{grid-row:1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:calc(7px + env(safe-area-inset-top,0px)) 12px 6px;background:#112a39;min-height:45px}
.capture-back,.capture-fullscreen{border:1px solid #42606d;background:#183a49;color:#e9f6fa;border-radius:9px;min-width:43px;min-height:34px;padding:6px 9px;font-size:15px;font-weight:700}
.capture-stage-title{font-size:13px;text-align:center;font-weight:800;letter-spacing:.03em}
.capture-fullscreen{font-size:21px;line-height:18px}
.capture-info{grid-row:2;padding:9px 13px 6px;background:#102b3b;min-height:0;overflow:hidden}
.capture-photo-title{font-size:17px;font-weight:820;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.capture-direction{font-size:11px;line-height:1.27;margin-top:4px;color:#d2e8f3;max-height:2.54em;overflow:hidden}
.rotate-advice{background:#12465b;border-left:3px solid #08b0e1;color:#d8f5ff;font-size:11px;line-height:1.3;padding:5px 7px;border-radius:5px;margin-top:6px}
.capture-progress .progress{margin:7px 0 1px;gap:4px}.capture-progress .progress span{height:4px;background:#335163}.capture-progress .progress span.current{background:#08b0e1}.capture-progress .progress span.done{background:#45bba4}.capture-progress .progress span.skipped{background:#cba35e}
.capture-view.camera-box{grid-row:3;min-height:0;min-width:0;height:100%;width:100%;margin:0;aspect-ratio:auto;border-radius:0;border:0;background:#03080b}
.capture-view.camera-box video{width:100%;height:100%;object-fit:contain;background:#03080b}
.capture-view .camera-head{top:8px;left:9px;right:9px}.capture-view .camera-head span{font-size:10px;padding:5px 6px}
.capture-view .camera-hint{bottom:8px;left:12px;right:12px;font-size:11px;padding:7px 9px}
.capture-view .camera-overlay{box-shadow:0 0 0 100vw #0002,inset 0 0 0 2px #16476135}
.capture-controls{grid-row:4;background:#102b3b;min-height:0;padding:7px 14px calc(7px + env(safe-area-inset-bottom,0px))}
.capture-controls .camera-bar{margin:0 auto;max-width:330px;gap:12px;display:flex;justify-content:space-between;align-items:center}
.capture-controls .shutter{width:66px;height:66px;min-width:66px;border:4px solid #fff;box-shadow:0 0 0 2px #08b0e1;background:transparent;color:#fff}
.shutter-core{display:block;width:48px;height:48px;border-radius:50%;background:#08b0e1}
.capture-controls .shutter:disabled .shutter-core{background:#708390}
.camera-control{display:flex;min-width:62px;min-height:54px;flex-direction:column;gap:2px;align-items:center;justify-content:center;background:transparent;border:0;color:#dcf3ff;font-size:10px;font-weight:750}
.camera-control-icon{font-size:26px;line-height:1.1}.camera-control-label{font-size:10px}
.capture-bottom{display:flex;justify-content:space-between;align-items:center;gap:5px;max-width:480px;margin:5px auto 0}
.capture-camera-name{font-size:10px;color:#b7d9e8;white-space:nowrap}
.capture-skip{border:0;background:transparent;color:#bfeeff;font-size:12px;text-decoration:underline;font-weight:750;min-height:30px;padding:3px 4px;white-space:nowrap}
.capture-zoom{color:#9dbcc8;font-size:9px;margin:0 auto;max-width:480px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.capture-view .camera-placeholder{z-index:2}.capture-view .camera-placeholder .glyph{font-size:35px}
@media (orientation:landscape) and (max-height:670px){
 .capture-stage{grid-template-columns:minmax(0,1fr) clamp(164px,25vw,250px);grid-template-rows:auto minmax(0,1fr) auto;gap:0}
 .capture-view.camera-box{grid-column:1;grid-row:1/4;align-self:stretch}
 .capture-top{grid-column:2;grid-row:1;padding:calc(5px + env(safe-area-inset-top,0px)) 7px 5px;gap:3px;min-height:33px}
 .capture-back,.capture-fullscreen{min-width:35px;min-height:31px;padding:3px;font-size:12px}.capture-back span{display:none}.capture-fullscreen{font-size:18px}
 .capture-stage-title{font-size:11px}
 .capture-info{grid-column:2;grid-row:2;padding:7px 9px 0;overflow:hidden}
 .capture-photo-title{font-size:clamp(13px,2.5vh,19px);white-space:normal}
 .capture-direction{font-size:10px;line-height:1.23;max-height:3.7em}
 .rotate-advice{display:none}
 .capture-progress .progress{margin:9px 0 0}
 .capture-controls{grid-column:2;grid-row:3;padding:4px 7px calc(4px + env(safe-area-inset-bottom,0px))}
 .capture-controls .camera-bar{gap:1px;max-width:none}
 .capture-controls .shutter{width:clamp(54px,13vh,66px);min-width:clamp(54px,13vh,66px);height:clamp(54px,13vh,66px)}
 .capture-controls .shutter-core{width:clamp(36px,9vh,48px);height:clamp(36px,9vh,48px)}
 .camera-control{min-width:34px;min-height:44px}
 .camera-control-icon{font-size:23px}.camera-control-label{font-size:9px}
 .capture-bottom{flex-wrap:wrap;justify-content:center;gap:0}
 .capture-camera-name{font-size:9px}.capture-skip{font-size:11px;min-height:26px}
 .capture-zoom{font-size:8px;text-align:center}
 .capture-view .camera-hint{font-size:10px;left:9px;right:9px;bottom:8px}
 .capture-view .camera-overlay.mouth,.capture-view .camera-overlay.arch,.capture-view .camera-overlay.side{inset:24% 17%}
}
@media (orientation:landscape) and (max-height:370px){.capture-direction{display:none}.capture-progress .progress{margin:5px 0 0}.capture-info{padding:4px 7px 0}.capture-controls .camera-bar{gap:0}.capture-zoom{display:none}}
@media (max-height:530px) and (orientation:portrait){.capture-direction{display:none}.rotate-advice{font-size:10px;padding:3px 6px;margin-top:3px}.capture-controls .shutter{height:54px;width:54px;min-width:54px}.shutter-core{height:38px;width:38px}.capture-controls .camera-bar{gap:5px}.capture-info{padding:5px 10px}.capture-photo-title{font-size:14px}}

/* v0.1.2: unambiguous saved session versus fresh start */
.saved-session{padding:19px 17px 16px;background:#f2fafc;border:1px solid #b9e5f1}
.saved-session h2{margin:0 0 9px;font-size:22px}.saved-session .eyebrow{margin-bottom:8px}
.saved-session p{font-size:13px}.reset-choice{background:#fff;color:#903c3c;border-color:#e6baba}
.reset-choice:hover{background:#fff4f4}.reset-modal{max-width:460px}.reset-modal h2{margin-top:7px}.reset-modal strong{color:#713534}
.reset-symbol{background:#fff0e6;border:2px solid #e1ae8c;color:#934c24;font-weight:900;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;font-size:23px}
.reset-actions{display:grid;gap:9px;margin-top:20px}.danger-button{background:#a13b3b;color:#fff;border:1px solid #8e3333}.danger-button:hover{background:#8e3333}.danger-button:disabled{opacity:.65}


/* v0.1.2: close-up coaching, handheld fullscreen, anatomical arch outlines */
.capture-fullscreen{display:flex;align-items:center;justify-content:center;gap:5px;padding-inline:9px}
.capture-fullscreen-symbol{font-size:20px;line-height:1}
.capture-fullscreen-text{font-size:11px;font-weight:750}
.capture-stage .camera-overlay.arch{inset:17% 13%;border:0;box-shadow:none;background:transparent;border-radius:0;overflow:visible}
.capture-stage .camera-overlay.arch svg{width:100%;height:100%;display:block;overflow:visible;filter:drop-shadow(0 0 2px #03121bcc)}
.camera-coach-wrap{z-index:1500;padding:16px;background:#061b27ba;align-items:center}
.camera-coach{max-width:430px;background:#fff;border-radius:22px;padding:24px;box-shadow:0 16px 50px #0006}
.camera-coach h2{font-size:25px;margin:10px 0 12px;color:#152e3e}
.camera-coach p{font-size:14px}
.camera-coach .coach-icon{width:65px;height:65px;display:flex;align-items:center;justify-content:center;border-radius:18px;background:#e7f9fe;color:#087d9c;font-size:39px;margin-bottom:13px}
.camera-coach .coach-phone{position:relative;font-size:51px;line-height:1}
.camera-coach .coach-phone span{position:absolute;right:6px;bottom:0;font-size:22px;font-weight:900}
@media (orientation:landscape) and (max-height:670px){
 .capture-fullscreen{padding-inline:3px}
 .capture-fullscreen-text{font-size:9px}
 .capture-fullscreen-symbol{font-size:15px}
 .capture-stage .camera-overlay.arch{inset:17% 19%}
}
@media (orientation:landscape) and (max-height:370px){.capture-fullscreen-text{display:none}}
@media (max-width:350px){.capture-fullscreen-text{font-size:9px}}

/* v0.1.3: fullscreen app (persistent across capture/retake), viewport settling,
   clinically directional side-profile and right/left bite framing. */
.app:fullscreen{box-sizing:border-box;width:100%;height:100%;min-height:100%;max-width:none;max-height:none;min-width:0;margin:0;padding:0;box-shadow:none;border:0;border-radius:0;overflow-y:auto;overflow-x:hidden;background:white}
.app:fullscreen:has(.capture-stage){overflow:hidden}
.app:fullscreen .capture-stage{position:fixed;inset:0;width:100%;height:100%;max-height:100%;min-height:0;margin:0;padding:0;overflow:hidden}
.capture-stage .camera-overlay.profile,.capture-stage .camera-overlay.side{border:0;border-radius:0;transform:none;box-shadow:none;background:transparent;overflow:visible}
.capture-stage .camera-overlay.profile{inset:12% 16%}
.capture-stage .camera-overlay.side{inset:26% 13%}
.capture-stage .camera-overlay.profile svg,.capture-stage .camera-overlay.side svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 2px #07141bcc)}
.capture-stage .camera-overlay.profile.nose-right svg,.capture-stage .camera-overlay.side.point-right svg{transform:scaleX(-1)}
@media (orientation:landscape) and (max-height:670px){
 .capture-stage .camera-overlay.profile{inset:8% 21%}
 .capture-stage .camera-overlay.side{inset:21% 19%}
}
