/* Full visual viewport, including browsers without the native Fullscreen API. */
body.capture-active{overflow:hidden;background:#071d30}
.capture-stage{position:fixed;inset:0;z-index:1500;width:100%;height:100vh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#071d30;color:#fff;overflow:hidden}
.capture-head{display:flex;align-items:center;gap:12px;padding:max(12px,env(safe-area-inset-top)) 16px 10px;background:#102b46}
.capture-head>div{flex:1}.capture-head small{color:#d9bd80;font:10px/1.4 monospace;letter-spacing:.06em}.capture-head h1{color:#fff;font-size:20px!important;margin:3px 0!important;letter-spacing:0}
.capture-stage button{background:#183c57;color:#fff;border:1px solid #7791a1;min-height:44px;font-size:13px;padding:8px 12px}.capture-stage button:hover{background:#285273;border-color:#e8bf70}
.capture-view{position:relative;min-height:0;overflow:hidden;background:#030c14;isolation:isolate}
.capture-view video,.capture-view>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.capture-wireframe{position:absolute;inset:4%;width:92%;height:92%;color:#ffe09a;opacity:.7;pointer-events:none;filter:drop-shadow(0 1px 2px #000);z-index:2}
.capture-wireframe text{stroke:none;fill:currentColor;font:8px sans-serif;text-anchor:middle;letter-spacing:.5px}
#camera-state{position:absolute;top:9px;left:12px;z-index:3;background:#071d30dc;color:#f4dfb3;border-radius:4px;padding:5px 8px;font:10px/1.3 monospace;max-width:90%}
.wireframe-note{position:absolute;bottom:7px;left:0;width:100%;text-align:center;color:#fff;font-size:11px;text-shadow:0 1px 3px #000;background:#071d3099;z-index:3}
.capture-controls{padding:9px 16px max(10px,env(safe-area-inset-bottom));background:#102b46}
.capture-controls p{color:#f3e2bd;font-size:12px;line-height:1.35;margin:0 0 8px}.capture-controls p span{color:#b9cbd8;display:block;font-size:11px}
.capture-tools{display:grid;grid-template-columns:1fr 1.45fr 1fr;gap:12px;align-items:center}.capture-tools .capture-shutter{border:3px solid #fff;background:#e8bf70;color:#102b46;border-radius:32px;min-height:58px;font-size:14px;font-weight:800;box-shadow:0 0 0 2px #c79842}
.capture-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:5px}.capture-bottom button{background:none;border:0;padding:5px;min-height:35px;font-size:12px}.capture-bottom span{color:#b9cbd8;font-size:10px;text-align:right}
.capture-active #message:not(:empty){position:fixed;z-index:1600;bottom:190px;left:16px;right:16px;max-width:600px;margin:0 auto;color:#102b46;box-shadow:0 5px 24px #0008}
.capture-active footer{display:none}
.capture-controls>p{font-size:15px;line-height:1.35}.capture-controls>p span{font-size:12px;margin-top:4px}
#example{padding:20px;max-width:560px;overflow-y:auto;overscroll-behavior:contain;font-size:17px;line-height:1.5}
#example h2{font-size:28px;margin:10px 0}#example h3{font:750 18px/1.35 system-ui;margin:0 0 8px;color:#102b46}
#example p{color:#394f5e;margin:8px 0 14px}#example-ask{font-size:19px;font-weight:650}
#example figure{margin:16px 0}#example figure img{max-height:280px}#example figcaption{font-size:14px;line-height:1.45;color:#506574;margin-top:8px}
#example-details section{margin:18px 0}#example-details li{margin:8px 0;padding-left:3px}#example-details ol,#example-details ul{padding-left:24px}
.guide-good,.guide-retake,.guide-fallback{padding:16px;border-radius:12px;border:1px solid #d8dfd6;background:#f0f6ee}
.guide-retake{background:#fff5e6;border-color:#e6cca1}.guide-fallback{background:#edf3f7;border-color:#c7d5df}
#example-details summary{min-height:44px;padding:10px 0;font-weight:700;cursor:pointer}
.guide-return{position:sticky;bottom:-20px;background:#fbfcfd;padding:12px 0 max(12px,env(safe-area-inset-bottom));border-top:1px solid #d8e0e5}
.photo-check{padding:18px;background:#fff7e3;border:1px solid #e7d19e;border-radius:14px;margin:16px 0}.photo-check h2{font-size:22px;margin:0 0 6px}.photo-check p{font-size:14px;margin:0 0 10px}.photo-check ul{padding-left:22px;font-size:16px}.photo-check li{margin:6px 0}.photo-check button{width:100%;font-size:15px}
@media(orientation:landscape) and (max-height:550px){.capture-stage{grid-template-columns:minmax(0,1fr) 210px;grid-template-rows:auto minmax(0,1fr)}.capture-head{grid-column:1/-1;padding:6px 12px}.capture-view{grid-column:1;grid-row:2}.capture-controls{grid-column:2;grid-row:2;overflow:auto}.capture-tools{grid-template-columns:1fr;gap:6px}.capture-bottom{flex-wrap:wrap}.capture-head h1{font-size:16px!important}.capture-controls p{font-size:11px}.capture-tools .capture-shutter{min-height:46px}.capture-active #message:not(:empty){bottom:12px;right:225px}}
