#studio-scan3d{max-width:1160px;color:#e5f4fa}
.vectrivo-scan3d{display:grid;gap:16px;padding-bottom:35px}
.scan3d-intro,.scan3d-privacy,.scan3d-limit{max-width:880px;line-height:1.55;color:#bed1de;margin:0}
.scan3d-privacy{padding:13px 15px;border:1px solid #397a75;background:#103a3a;border-radius:12px;color:#d0f5e9}
.scan3d-name{display:grid;gap:7px;max-width:580px;font-weight:650}
.scan3d-name input{min-height:48px;background:#0c2134;color:white;border:1px solid #52819a;border-radius:9px;padding:10px;font:inherit}
.scan3d-instructions{background:#152d43;border:1px solid #3e6078;border-radius:12px;padding:16px}
.scan3d-instructions h3{margin:0;color:#7fe4d2}.scan3d-instructions p{margin:7px 0 0;color:#c8dce8}
.scan3d-camera-box{position:relative;max-width:850px;min-height:230px;background:#081523;border:1px dashed #5a8a9b;border-radius:12px;display:grid;place-items:center;overflow:hidden}
.scan3d-video{width:100%;max-height:52vh;object-fit:contain}.scan3d-video[hidden]{display:none}
.scan3d-camera-placeholder{padding:30px;max-width:580px;text-align:center;color:#b3cbd7;line-height:1.6}
.scan3d-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.scan3d-actions button,.scan3d-import{cursor:pointer;border:1px solid #52869c;border-radius:9px;padding:11px 15px;min-height:48px;background:#18384e;color:#efffff;font:inherit;font-weight:650}
.scan3d-actions button.scan3d-primary{background:#3ed3bd;color:#092e35;border-color:#72ebd9}.scan3d-actions button:disabled{opacity:.47;cursor:not-allowed}
.scan3d-import{position:relative;display:inline-grid;place-items:center}.scan3d-import input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.scan3d-progress{margin:0;color:#83edce;font-weight:650}.scan3d-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.scan3d-photo{display:grid;gap:7px;border:1px solid #3c6278;border-radius:10px;padding:8px;background:#10273b}.scan3d-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:5px}.scan3d-photo span{font-size:.79rem;color:#bbd3db}.scan3d-photo button{font:inherit;font-size:.85rem;background:#22485d;color:white;border:1px solid #50849b;border-radius:8px;min-height:42px}
.scan3d-message{min-height:20px;color:#ffd08e}.vectrivo-scan3d :is(button,input):focus-visible{outline:3px solid #75efda;outline-offset:2px}
@media(max-width:650px){.scan3d-actions>button,.scan3d-import{flex:1 0 42%}.scan3d-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.scan3d-camera-box{min-height:175px}}

/* Timed capture for a rotating stand */
.scan3d-timed{display:grid;gap:12px;background:#122d40;border:1px solid #4b8292;border-radius:12px;padding:16px}
.scan3d-timed h3{color:#9df2e1;font-size:1.12rem;margin:0}
.scan3d-timed-help,.scan3d-rotation-hint{color:#bed9e5;margin:0;line-height:1.5}
.scan3d-timed-options{display:flex;flex-wrap:wrap;gap:12px}
.scan3d-timed-options label{display:grid;gap:7px;min-width:170px;font-weight:650;flex:1 1 175px}
.scan3d-timed-options select{font:inherit;min-height:48px;background:#092237;color:#effffa;border:1px solid #69a4af;border-radius:9px;padding:9px}
.scan3d-timed-counter{margin:0;min-height:1.8em;color:#7ff1d3;font-weight:800;font-size:1.08rem}
.scan3d-timed :is(button,select):focus-visible{outline:3px solid #75efda;outline-offset:2px}
@media(max-width:650px){.scan3d-timed{padding:12px}.scan3d-timed-options label{min-width:135px;flex-basis:140px}.scan3d-timed .scan3d-actions button{flex:1 1 42%}}

/* Local Mac photo-to-3D reconstruction pilot, deliberately opt-in and collapsed. */
.scan3d-reconstruct{border:1px solid #4b8495;border-radius:12px;background:#103345;color:#d5edf4;padding:14px;max-width:100%}
.scan3d-reconstruct summary{cursor:pointer;font-weight:750;color:#9af1e2;min-height:36px;line-height:1.5}
.scan3d-reconstruct p{color:#d0e6ed;line-height:1.6;margin:12px 0}
.scan3d-reconstruct-steps{margin:10px 0;padding-inline-start:22px;line-height:1.7;color:#d0e6ed}
.scan3d-reconstruct-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.scan3d-reconstruct-actions a,.scan3d-reconstruct-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 13px;border:1px solid #70aabc;border-radius:9px;background:#19465c;color:#e9fffd;text-decoration:none;font:inherit;font-weight:650;text-align:center;cursor:pointer}
.scan3d-reconstruct-actions a:focus-visible,.scan3d-reconstruct-actions button:focus-visible,.scan3d-reconstruct summary:focus-visible{outline:3px solid #75efda;outline-offset:3px}
.scan3d-reconstruct-warning{color:#ffdaad!important;font-size:.91rem}
@media(max-width:650px){.scan3d-reconstruct-actions>*{width:100%;flex:1 1 100%}}

/* Opt-in photo detail and physical-reference scale calculation */
.scan3d-detail{display:grid;gap:7px;font-weight:650;max-width:350px}
.scan3d-detail select,.scan3d-calibration :is(input,select){min-height:46px;border:1px solid #5794a7;border-radius:9px;background:#092237;color:#effffa;font:inherit;padding:9px;max-width:100%}
.scan3d-detail-hint{color:#aac7d5;font-size:.86rem;max-width:700px;margin:0;line-height:1.5}
.scan3d-calibration{padding:10px 13px;margin-top:14px;border:1px solid #4b8398;border-radius:10px;background:#0b293b}
.scan3d-calibration summary{cursor:pointer;min-height:38px;line-height:1.6;color:#a9eee3;font-weight:700}
.scan3d-calibration-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.scan3d-calibration-fields label{display:grid;gap:6px;font-size:.9rem;color:#d8edf0}
.scan3d-calibration-result{border-top:1px solid #375e70;padding-top:10px;font-weight:700}
.scan3d-calibration :is(input,select,summary):focus-visible{outline:3px solid #75efda;outline-offset:2px}
@media(max-width:650px){.scan3d-calibration-fields{grid-template-columns:1fr}}

/* Camera inactivity/privacy notice */
.scan3d-idle-help{margin:8px 0;padding:10px 12px;border:1px solid #3e6172;border-radius:9px;background:#102b3b;color:#b5e5e4;font-size:.88rem;line-height:1.5}

.scan3d-quick-tools{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}.scan3d-quick-tools button{min-height:44px;padding:10px 12px;border:1px solid #4e91a1;border-radius:9px;background:#14344b;color:#ecffff;font:inherit;font-weight:650;cursor:pointer}.scan3d-quick-tools button:focus-visible{outline:3px solid #80e8d6;outline-offset:2px}

/* Open-source scan conversion: keep genuine model import accessible on mobile. */
.scan3d-result-import{display:inline-flex;max-width:100%;margin:10px 0 4px;align-items:center;justify-content:center;min-height:48px;padding:11px 15px;border-radius:9px;border:1px solid #70aabc;background:#19465c;color:#e9fffd;font-weight:700;position:relative;overflow:hidden;cursor:pointer}.scan3d-result-import input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.scan3d-reconstruct h4{margin:18px 0 4px;color:#a0efdf;font-size:1rem}.scan3d-result-import:focus-within{outline:3px solid #75efda;outline-offset:2px}

/* Optional advisory pixel review: no automatic capture blocking, accessible warnings. */
.scan3d-quality-warning{display:block;color:#ffe4aa;font-size:.77rem;line-height:1.45;padding:6px 7px;border:1px solid #ac8752;border-radius:7px;background:#3b2d23;overflow-wrap:anywhere}

/* Hardware-aware camera autofocus, user-selected subject, and non-destructive retakes. */
.scan3d-focus-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;border:1px solid #376e77;background:#0d3040;border-radius:10px;padding:10px 12px}
.scan3d-focus-status{margin:0;flex:1 1 280px;min-width:0;color:#d7f1ef;font-size:.87rem;line-height:1.5}
.scan3d-focus-row button{font:inherit;font-size:.86rem;font-weight:650;min-height:44px;padding:8px 12px;color:#d5fff5;background:#183d50;border:1px solid #598e99;border-radius:9px;cursor:pointer}
.scan3d-focus-row button:disabled{opacity:.46;cursor:not-allowed}
.scan3d-focus-ring{position:absolute;width:52px;height:52px;border:2px solid #6bffdc;border-radius:50%;box-shadow:0 0 0 2px #07202bdc,0 0 16px #3fedbc99;transform:translate(-50%,-50%);pointer-events:none;z-index:2;display:block}
.scan3d-focus-ring::before,.scan3d-focus-ring::after{content:'';position:absolute;background:#6bffdc;left:50%;top:50%;transform:translate(-50%,-50%)}
.scan3d-focus-ring::before{width:18px;height:2px}.scan3d-focus-ring::after{width:2px;height:18px}
.scan3d-focus-ring[hidden]{display:none!important}
.scan3d-camera-box:has(.scan3d-video:not([hidden])) .scan3d-video{cursor:crosshair;touch-action:manipulation}
.scan3d-photo-actions{display:flex;gap:6px;flex-wrap:wrap}
.scan3d-photo-actions button{flex:1 1 45%;min-height:44px;font-weight:650;white-space:normal}
.scan3d-photo:has(.scan3d-quality-warning){border-color:#b28c4c}
.vectrivo-scan3d :is(.scan3d-focus-row button,.scan3d-photo-actions button):focus-visible{outline:3px solid #75efda;outline-offset:2px}
@media(max-width:650px){.scan3d-focus-row button{flex:1 1 40%}.scan3d-focus-status{flex-basis:100%}}

/* Optional beta phone handoff: direct browser-to-browser transfer, no cloud photo storage. */
.scan3d-handoff{border:1px solid #568c96;border-radius:12px;padding:12px 15px;background:#102d3e;color:#dceef6;min-width:0}
.scan3d-handoff summary{cursor:pointer;font-weight:750;line-height:1.5;min-height:44px;padding:8px 0;color:#95efdc}
.scan3d-handoff-help{color:#bfd8e6;font-size:.9rem;line-height:1.55;margin:8px 0 12px}
.scan3d-handoff-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:10px}
.scan3d-handoff-actions button{min-height:44px;padding:10px 12px;background:#1b485b;border:1px solid #66a8b8;border-radius:8px;color:#f2ffff;font:inherit;font-weight:650;cursor:pointer}
.scan3d-handoff-actions button.scan3d-primary{background:#40ccb8;border-color:#72e5d5;color:#062b35}
.scan3d-handoff-actions button:disabled{opacity:.45;cursor:not-allowed}
.scan3d-handoff-qr{min-height:0;max-width:100%;display:grid;justify-items:start;color:#d6f4f3;line-height:1.5;font-size:.85rem}
.scan3d-handoff-qr:not(:empty){margin:8px 0;padding:10px;background:#fff;color:#072733;width:max-content;max-width:100%;border-radius:9px}
.scan3d-handoff-qr canvas,.scan3d-handoff-qr img{max-width:100%;height:auto}
.scan3d-handoff-link{display:block;width:100%;min-width:0;box-sizing:border-box;border:1px solid #54899c;background:#081d2d;color:#eefdfb;padding:10px;font:inherit;font-size:.86rem;border-radius:8px}
.scan3d-handoff-status{min-height:1.4rem;margin:8px 0 0;color:#ffe2a8;line-height:1.5;font-size:.9rem;overflow-wrap:anywhere}
.scan3d-handoff :is(button,summary,input):focus-visible{outline:3px solid #7aecd9;outline-offset:3px}
@media(max-width:650px){.scan3d-handoff-actions button{flex:1 1 42%}.scan3d-handoff{padding:10px 12px}}
