/* Bundled Android photo workflow. No hosted service is needed. */
body.workspace-photo .app-header{display:none}body.workspace-photo{background:#f1f4f9;padding-bottom:0}body.workspace-photo #photo-screen{max-width:700px;margin:auto;padding:0 16px calc(162px + env(safe-area-inset-bottom));min-height:100dvh}.photo-heading{height:81px;display:flex;align-items:center;justify-content:space-between;gap:15px}.photo-heading h1{font-size:25px;letter-spacing:-.8px;margin:5px 0 0}.photo-heading .eyebrow{font-size:9px;letter-spacing:1.3px;color:#647a98}.photo-heading>button{border-radius:50%;min-width:39px;min-height:39px;height:39px;padding:0;font-size:18px;background:#e5ecf6;color:#567299;border:0}.photo-steps{display:flex;padding:5px;background:#e5ebf4;border-radius:12px;gap:3px}.photo-steps button{flex:1;min-width:0;padding:8px 3px;min-height:43px;display:flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:8px;background:none;color:#7b8da5;font-size:11px;box-shadow:none}.photo-steps b{font-size:10px;border-radius:50%;width:19px;height:19px;display:grid;place-items:center;background:#d8e1ef;font-weight:600}.photo-steps button.active{background:white;color:#245baf;box-shadow:0 2px 5px #1f3a6312;font-weight:700}.photo-steps button.active b{background:#276de0;color:white}.photo-steps button.done{color:#41705d}.photo-steps button.done b{background:#d7e9df}.photo-task{padding:18px 1px 14px}.photo-task h2{font-size:19px;margin:0 0 6px;font-weight:700;letter-spacing:-.5px}.photo-task p{font-size:12px;line-height:1.5;color:#6c7e96;margin:0}.photo-stage{position:relative;width:100%;height:clamp(230px,37dvh,360px);background:#e7edf5;border:1px solid #d6e0ee;overflow:hidden;border-radius:14px;touch-action:none;overscroll-behavior:contain}.photo-stage canvas{display:block;width:100%;height:100%;touch-action:none}.photo-stage #photo-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;pointer-events:none;color:#6d86a9}.photo-stage #photo-placeholder>span{font-size:42px;font-weight:200;line-height:1.2}.photo-stage #photo-placeholder strong{font-size:14px;font-weight:600}.photo-stage #photo-placeholder p{font-size:11px;margin:0;color:#8a9aaf}.photo-zoom{position:absolute;right:10px;bottom:10px;background:#1c2d46c9;color:white;font-size:10px;border-radius:5px;padding:4px 7px;pointer-events:none}.photo-step-panel{padding-top:13px}.photo-acquire{display:grid;grid-template-columns:1fr 1fr;gap:9px}.photo-acquire button{font-size:13px;min-height:49px;border-radius:10px}.photo-toolbar{display:flex;gap:6px;flex-wrap:wrap;margin:11px 0}.photo-toolbar button{font-size:10px;padding:8px 10px;min-height:40px;border-radius:8px;flex:1;white-space:nowrap;background:#fff;color:#536c91;border-color:#dce4f0}.photo-toolbar button.active{color:#276de0;border-color:#88ade8;background:#edf4ff}#photo-remove{flex:0;min-width:40px;font-size:20px}.photo-hint{font-size:11px;color:#778ba5;line-height:1.6;margin:11px 1px}.photo-flow-footer{position:fixed;left:0;right:0;bottom:calc(70px + env(safe-area-inset-bottom));height:82px;padding:12px max(16px,calc((100vw - 668px)/2));background:#ffffffed;backdrop-filter:blur(12px);border-top:1px solid #dce4ef;display:flex;align-items:center;gap:10px;z-index:28;box-shadow:0 -6px 24px #182f4d06}.photo-flow-footer #photo-prev{width:38px;min-width:38px;min-height:46px;font-size:19px;padding:0;border-radius:10px;background:#f2f5fa}.photo-flow-footer>div{flex:1;min-width:0}.photo-flow-footer span{font-size:8px;font-weight:700;letter-spacing:1px;color:#8b9bb1;display:block}.photo-flow-footer small{font-size:10px;color:#526987;display:block;margin-top:3px;line-height:1.35;max-height:29px;overflow:hidden}.photo-flow-footer #photo-next{min-height:48px;font-size:12px;white-space:nowrap;padding:9px 13px;border-radius:10px;background:#276de0;color:white;border-color:#276de0}.photo-flow-footer #photo-next:disabled{background:#ccdaed;border-color:#ccdaed;color:#718baa;opacity:1}.photo-shapes{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.photo-shapes button{padding:9px 3px;font-size:10px;min-height:44px;border-radius:8px;color:#617795;background:white}.photo-shapes button.active{background:#e6efff;border-color:#8baee8;color:#276de0;font-weight:700}#photo-outline-status{margin:8px 1px;font-size:11px;color:#3d7759}#photo-outline-status.invalid{color:#a86b25!important}#photo-content[data-step="3"] .photo-stage{height:160px}#photo-content[data-step="3"]:has(#photo-calibration-controls:not([hidden])) .photo-stage{height:270px}.photo-dimension-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0}.photo-dimension-grid label{font-size:11px;font-weight:600;color:#516b8f}.photo-dimension-grid label span{font-size:9px;font-weight:400;color:#91a0b4}.photo-dimension-grid input{width:100%;min-height:49px;font-size:17px;font-weight:600;margin-top:6px;padding:9px!important;background:#fff!important;border:1px solid #d7e2f1!important;border-radius:9px;color:#213c62}#photo-holder-options .photo-dimension-grid input{font-size:15px}#photo-calibration-controls{display:flex;gap:7px;flex-wrap:wrap;align-items:flex-end;padding:12px;background:#e8effa;border-radius:10px;margin-top:10px}#photo-calibration-controls label{flex:1;min-width:140px;font-size:11px;color:#536c90}#photo-calibration-controls input{width:100%;min-height:45px;font-size:16px;margin-top:6px}#photo-calibration-controls button{font-size:11px;min-height:44px;padding:9px 11px}#photo-calibrate{font-size:12px;min-height:44px;border-radius:9px}.photo-step-panel>.control-label{font-size:12px;margin:15px 0}.photo-step-panel>.control-label select{font-size:13px;min-height:46px;margin-top:6px}.photo-hole-section{margin-top:20px;padding-top:15px;border-top:1px solid #dce4ef}.photo-subheading{display:flex;align-items:center;justify-content:space-between;gap:12px}.photo-subheading h3{font-size:14px;margin:0}.photo-subheading button{font-size:11px;min-height:39px}.photo-hole-row{display:grid;grid-template-columns:1fr 1fr 1fr 34px;gap:7px;margin-top:10px;align-items:end}.photo-hole-row label{font-size:10px;color:#6a809e}.photo-hole-row input{width:100%;font-size:16px;min-height:44px;margin-top:5px;padding:8px}.photo-hole-row button{font-size:20px;padding:0;min-height:44px;min-width:34px}.photo-notes{margin:15px 0;color:#677e9f;font-size:12px}.photo-notes summary{min-height:40px;align-content:center}.photo-notes textarea{width:100%;font-size:16px;min-height:80px}.photo-preview-controls{display:flex;gap:7px;align-items:center;margin:11px 0}.photo-preview-controls button{font-size:11px;min-height:40px;padding:8px 11px}.photo-preview-controls span{font-size:10px;color:#7c8ea5;line-height:1.4;flex:1;text-align:right}#photo-model-preview{position:relative;height:clamp(270px,43dvh,410px);border:1px solid #d5dfed;border-radius:14px;overflow:hidden;background:#e8eef7}#photo-model-preview>canvas{display:block;width:100%;height:100%;touch-action:none}#photo-model-loading{position:absolute;inset:0;display:grid;place-items:center;color:#53749e;font-size:13px;background:#e8eef7ed;z-index:2;text-align:center;padding:20px}#photo-model-summary{font-size:12px;padding:13px;background:#e5effb;color:#365e96;border-radius:9px;line-height:1.6;min-height:44px}#photo-model-error{font-size:13px;padding:14px;background:#fff0e5;color:#a04d1f;border:1px solid #f2d4ba;border-radius:9px;margin:12px 0}#photo-retry{font-size:12px;margin:10px 0}.workspace-photo .app-nav{position:fixed;bottom:0;left:0;right:0;height:calc(70px + env(safe-area-inset-bottom));padding:0 5px env(safe-area-inset-bottom);gap:0;z-index:30}.workspace-photo .app-nav button{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:10px;gap:4px;padding:0 2px}.workspace-photo .app-nav button span{font-size:22px}.workspace-photo #toast{bottom:calc(161px + env(safe-area-inset-bottom))}
@media(max-height:650px){.photo-stage{height:230px}.photo-heading{height:70px}.photo-task{padding:12px 0}.photo-flow-footer{height:74px}.photo-task p{font-size:11px}#photo-model-preview{height:250px}}
@media(max-width:360px){.photo-flow-footer{gap:7px;padding-left:11px;padding-right:11px}.photo-flow-footer #photo-next{font-size:11px;padding:8px 10px}.photo-flow-footer small{font-size:9px}.photo-shapes button{font-size:9px}.photo-toolbar{gap:4px}.photo-toolbar button{font-size:9px;padding:7px}.photo-steps button{font-size:10px;gap:4px}.photo-dimension-grid{gap:6px}}
