:root{--bg: #dfe2d2;--panel: rgba(245, 247, 238, .94);--panel-warm: linear-gradient(180deg, rgba(244, 247, 236, .98), rgba(232, 236, 221, .96));--panel-cool: linear-gradient(180deg, rgba(250, 250, 245, .98), rgba(243, 243, 237, .96));--ink: #1d2733;--muted: #5e6d74;--line: #bdc3af;--accent: #b35a2b;--accent-soft: rgba(179, 90, 43, .14);--cool-soft: rgba(108, 116, 90, .1);--cool-accent: #6f7461;--workspace-panel: linear-gradient(160deg, rgba(255, 255, 252, .98), rgba(248, 248, 244, .96));--workspace-edge: #d9ddd0;--workspace-ink: #34392f}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;color:var(--ink);font-family:Avenir Next,Segoe UI,Helvetica Neue,Arial,sans-serif;font-size:.8125rem;background:radial-gradient(circle at 8% 12%,rgba(179,90,43,.16),transparent 30%),radial-gradient(circle at 88% 14%,rgba(108,116,90,.14),transparent 34%),linear-gradient(180deg,#edf0e1 0%,var(--bg) 100%);min-height:100vh}.app-shell{min-height:100vh;padding-top:0!important}.app-shell .row>*{margin-top:0}.app-topbar{position:sticky;top:0;z-index:1100;width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem max(1rem,env(safe-area-inset-left)) 1.05rem max(1rem,env(safe-area-inset-right));background:radial-gradient(circle at 8% 12%,rgba(179,90,43,.16),transparent 30%),radial-gradient(circle at 88% 14%,rgba(108,116,90,.14),transparent 34%),linear-gradient(180deg,#edf0e1d1,#dfe2d2c7);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 10px 24px #291f140f}.app-topbar-left{display:flex;flex-direction:column;gap:.85rem;min-width:0;flex:1 1 auto}.app-topbar-brand{flex:0 0 auto;display:inline-flex;align-items:center;gap:.7rem}.app-topbar-brand-mark{width:28px;height:28px;flex:0 0 28px;display:block}.eyebrow{margin:0;font-size:.8125rem;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);font-weight:500}.app-topbar-nav{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.app-topbar-nav-desktop{display:flex}.app-topbar-mobile-menu{display:none}.app-topbar-link,.app-topbar-support{display:inline-flex;align-items:center;justify-content:center;min-height:0;padding:3px 9px;border-radius:999px;border:1px solid rgba(32,25,19,.16);background:#ffffffa3;box-shadow:0 2px #ffffff80 inset,0 3px 10px #3d392b0f;color:#1d1d1bf5;text-decoration:none;font-weight:600;transition:background .12s ease,border-color .12s ease,color .12s ease,transform .12s ease,box-shadow .12s ease}.app-topbar-link:hover,.app-topbar-support:hover{border-color:#20191342;background:#ffffffd1;color:#1d1d1bf5;transform:translateY(-1px)}.app-topbar-toggle{gap:.65rem}.app-topbar-toggle-icon{display:inline-flex;flex-direction:column;justify-content:center;gap:.18rem;width:1.2rem;height:1.2rem;flex:0 0 1.2rem}.app-topbar-toggle-icon span{display:block;width:100%;height:.14rem;border-radius:999px;background:currentColor}.app-topbar-link.is-active{border-color:transparent;background:#9b7a34;box-shadow:0 8px 18px #9b7a3447,0 1px #ffffff38 inset;color:#fffaf4f5}.app-topbar-support{flex:0 0 auto;white-space:nowrap}.app-topbar-mobile-panel{margin-top:.8rem;padding:.7rem;border-radius:18px;border:1px solid rgba(32,25,19,.12);background:#ffffffc7;box-shadow:0 8px 18px #3d392b14}.app-topbar-mobile-link{display:block;width:100%;padding:3px 9px;border-radius:14px;color:#1d1d1bf5;font-weight:600;text-decoration:none}.app-topbar-mobile-link+.app-topbar-mobile-link{margin-top:.35rem}.app-topbar-mobile-link.is-active{background:#9b7a34;color:#fffaf4f5}.app-legal{font-size:.75rem;line-height:1.35;color:#34392fb3}.app-footer{padding:1.2rem 1rem 2rem;text-align:center}.app-footer-copy{margin:0 0 .5rem;font-size:.75rem;line-height:1.35;color:#34392fb3}.footer-contact-link{display:inline-block;margin-top:.15rem;color:#34392fe6;font-weight:500;text-decoration-color:#34392f59;text-underline-offset:.16em}.footer-contact-link:hover{color:var(--ink);text-decoration-color:#1d27338c}.legal-links{display:flex;justify-content:center;flex-wrap:wrap;gap:.85rem;font-size:.75rem}.legal-links a{color:#34392fd1;text-decoration:none}.legal-links a:hover,.legal-links a[aria-current=page]{color:var(--ink);text-decoration:underline;text-underline-offset:.16em}.collapse{display:none}.collapse.show{display:block}@media(max-width:991px){body{background:radial-gradient(circle at 50% -10%,rgba(179,90,43,.16),transparent 34%),linear-gradient(180deg,#eef1e7,#dde2d3)}.app-topbar{top:0;align-items:center;padding-top:calc(.9rem + env(safe-area-inset-top));padding-bottom:.85rem;background:linear-gradient(180deg,#f5f7f0eb,#e9ede1d1);box-shadow:0 10px 24px #291f140d}.app-topbar-brand{display:inline-flex;align-items:center;gap:.55rem}.app-topbar-brand-mark{width:24px;height:24px;flex:0 0 24px}.app-topbar-support{align-self:flex-start;margin-left:auto}.app-topbar-nav-desktop{display:none}.app-topbar-mobile-menu{display:block;width:100%}.app-topbar-toggle{width:100%;justify-content:flex-start;gap:.8rem;min-height:3.2rem;padding:.7rem 1rem;border-radius:999px;border-color:#a49c8c8c;background:#ffffffe6;box-shadow:0 2px #ffffffb8 inset,0 3px 10px #3d392b14;font-size:.95rem;font-weight:700;text-align:left}.app-topbar-mobile-panel{width:100%}}@media(max-width:767px){.app-shell{padding-left:.75rem!important;padding-right:.75rem!important}.app-topbar-link,.app-topbar-support{min-height:0;padding:3px 9px}}.card{background:var(--panel);backdrop-filter:blur(12px);border-radius:20px;box-shadow:0 16px 38px #402f1a17,0 2px #ffffff73 inset}.tool-notice{display:flex;align-items:center;gap:.38rem;width:fit-content;max-width:calc(100% - 1rem);margin:.25rem .75rem 1rem;padding:.26rem .28rem .26rem .65rem;border:1px solid rgba(94,109,116,.18);border-radius:999px;background:#ffffffb3;color:#34392fb8;font-size:.84rem;line-height:1.2;box-shadow:0 1px #ffffffb8 inset}.tool-notice-label{font-weight:700;color:#34392fd6}.tool-notice-copy{font-weight:500}.tool-notice-link{color:#8d4d2a;font-weight:700;text-decoration:underline;text-underline-offset:.15em}.tool-notice-link:hover{color:#6d3b1f}.tool-notice-dismiss{display:inline-flex;align-items:center;justify-content:center;width:1.6rem;height:1.6rem;min-width:1.6rem;margin-left:.05rem;padding:0;border:0;border-radius:999px;background:transparent;color:#34392f94;cursor:pointer}.tool-notice-dismiss:hover,.tool-notice-dismiss:focus-visible{color:#34392fe0;background:#5e6d7414}.tool-notice-dismiss-icon{font-size:1rem;font-weight:700;line-height:1}.left-rail,.image-pane{overflow:hidden}.left-rail{height:100%;background:radial-gradient(circle at top left,rgba(179,90,43,.1),transparent 28%),var(--panel-warm)}.image-pane{height:100%;background:radial-gradient(circle at top right,rgba(108,116,90,.12),transparent 28%),var(--panel-cool)}.app-title{font-size:clamp(1.45rem,2vw,1.95rem);line-height:1.05;font-weight:800;letter-spacing:-.02em;color:var(--ink)}.app-badge{border-color:var(--line)!important;color:var(--muted)!important;background:#ffffffc7!important;font-weight:600}.guide-mode-status-wrap{display:inline-flex;align-items:center;justify-content:flex-end;gap:.5rem;flex-wrap:wrap}.guide-placement-status-group{display:inline-flex;flex-direction:column;align-items:flex-end;gap:.28rem;max-width:20rem}.guide-placement-status{display:inline-flex;align-items:center;gap:.42rem;min-height:1.95rem;padding:.25rem .68rem;border-radius:999px;border:1px solid rgba(176,185,164,.75);background:#ffffffd1;color:#34392fdb;font-size:.76rem;font-weight:700;white-space:nowrap}.guide-placement-dot{width:.46rem;height:.46rem;border-radius:999px;background:currentColor}.guide-placement-status-detail{max-width:20rem;font-size:.72rem;line-height:1.28;font-weight:500;color:var(--muted);text-align:right}.guide-placement-status.is-auto{border-color:#34745a47;background:#34745a14;color:#35745a}.guide-placement-status.is-promoted{border-color:#b35a2b4d;background:#b35a2b14;color:#8d4d2a}.guide-placement-status.is-rough{border-color:#796f5452;background:#796f5414;color:#6d654e}.guide-placement-status.is-manual{border-color:#2f5f8642;background:#2f5f8614;color:#2f5f86}.section-block+.section-block{margin-top:1.5rem}.display-controls-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.display-control,.mobile-display-control{min-width:0}.section-block{border:1px solid rgba(189,195,175,.82);border-radius:18px;padding:1rem;background:#ffffff57}.tool-controls{background:linear-gradient(180deg,#ffffff52,#f2f6ea4d)}.tool-faq{display:grid;gap:.65rem}.faq-item{border:1px solid rgba(189,195,175,.72);border-radius:14px;background:#ffffff80;overflow:hidden}.faq-item .accordion-header,.faq-item .accordion-collapse,.faq-item .accordion-body{border-radius:0}.faq-item .accordion-button{background:transparent;box-shadow:none;padding:.85rem 1rem;font-size:.93rem;font-weight:700;color:var(--ink);border:0;border-radius:0}.tool-faq .accordion-item:first-of-type,.tool-faq .accordion-item:last-of-type{border-radius:14px}.tool-faq .accordion-item:first-of-type .accordion-button,.tool-faq .accordion-item:last-of-type .accordion-button.collapsed,.tool-faq .accordion-item:first-of-type .accordion-button.collapsed,.tool-faq .accordion-item:last-of-type .accordion-button{border-radius:0}.tool-faq .accordion-item:first-of-type .accordion-button.collapsed{border-top-left-radius:14px;border-top-right-radius:14px}.tool-faq .accordion-item:last-of-type .accordion-button.collapsed{border-bottom-left-radius:14px;border-bottom-right-radius:14px}.tool-faq .accordion-item:first-of-type .accordion-collapse,.tool-faq .accordion-item:last-of-type .accordion-collapse{border-radius:0}.tool-faq .accordion-item:last-of-type .accordion-collapse.show .accordion-body{border-bottom-left-radius:14px;border-bottom-right-radius:14px}.faq-item .accordion-button:not(.collapsed){color:var(--ink);background:#ffffff61;box-shadow:none}.faq-item .accordion-button:after{width:1rem;height:1rem;background-size:1rem}.faq-item .accordion-body{padding:0 1rem .95rem}.faq-item p,.faq-item .faq-list{margin:0;font-size:.9rem;line-height:1.45;color:var(--muted)}.faq-item .accordion-body p+p{margin-top:.9rem;padding-top:.9rem;border-top:1px solid rgba(189,195,175,.5)}.perspective-suggestion{display:flex;align-items:center;justify-content:space-between;gap:.9rem;padding:.8rem .95rem;border-radius:14px;border:1px solid rgba(179,90,43,.22);background:#b35a2b14}.perspective-suggestion-copy{font-size:.92rem;line-height:1.35;color:#5f412f;font-weight:600}.perspective-suggestion-actions{display:flex;gap:.75rem;flex-shrink:0}.mobile-perspective-suggestion{display:none}.section-title{font-size:.98rem;line-height:1.2;font-weight:700;letter-spacing:-.01em;color:var(--ink);white-space:nowrap}.muted{color:var(--muted)}.policy-copy{color:var(--ink)}.policy-copy p{margin:0 0 .9rem;color:#34392fe0}.btn{padding:3px 9px;font-weight:600}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;background:#ffffffd1;border:1px solid var(--line);border-radius:14px;padding:.9rem 1rem;min-height:88px;line-height:1.55;box-shadow:inset 0 1px #fff9,0 1px 2px #19222a0a}#manualResultsText{border-color:#b35a2b57;background:linear-gradient(180deg,#fafcf4f5,#eff4e7eb);box-shadow:inset 0 1px #ffffffb3,0 6px 16px #b35a2b0f}.mobile-results-card{display:none}.mobile-results-kicker{font-size:.7rem;line-height:1;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);font-weight:700}.mobile-results-export-btn{display:none;align-items:center;justify-content:center;min-width:2.3rem;min-height:2.3rem;padding:.2rem .55rem}#mobileResultsText{border-color:#b35a2b57;background:linear-gradient(180deg,#fafcf4f5,#eff4e7eb);box-shadow:inset 0 1px #ffffffb3,0 6px 16px #b35a2b0f;font-size:.76rem;text-align:center;min-height:0;padding:.7rem .85rem;line-height:1.45}.toolbar-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.65rem}.tooltip-trigger{display:block;min-width:0}.toolbar-buttons .tooltip-trigger,.mobile-results-card .tooltip-trigger{height:100%}.tooltip-trigger>.btn{width:100%;height:100%}.toolbar-buttons-rotation{grid-template-columns:repeat(3,minmax(0,1fr))}.toolbar-buttons-rotation:has(#exportImageBtn){grid-template-columns:repeat(4,minmax(0,1fr))}.mobile-image-toolbar{display:none;margin-bottom:.85rem}.mobile-app-chrome{display:none}.mobile-tool-surface{display:contents}.mobile-image-view,.mobile-inner-tilt{display:none;margin-bottom:.85rem}.mobile-image-view-inline{align-items:center;gap:.75rem}.mobile-display-controls-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(92px,110px);gap:.65rem;align-items:end}.mobile-display-controls-row .form-label{margin-bottom:.25rem!important}.mobile-image-view-inline .form-label{flex-shrink:0}.mobile-image-view-inline .form-select{min-width:0}.toolbar-buttons-mobile{grid-template-columns:repeat(6,minmax(0,1fr));gap:.45rem}.mobile-fine-rotate-btn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:.08rem}.mobile-fine-rotate-label{font-size:.63rem;line-height:1;font-weight:700}.inner-tilt-panel{border:1px solid rgba(91,102,88,.18);border-radius:8px;background:#fafcf485;padding:.85rem .95rem}.inner-tilt-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.inner-tilt-badge{flex:0 0 auto;border:1px solid rgba(91,102,88,.18);border-radius:999px;color:#667163;background:#ffffff9e;font-size:.66rem;font-weight:800;letter-spacing:0;line-height:1;padding:.24rem .45rem;text-transform:uppercase}.inner-tilt-controls{display:grid;gap:.65rem;margin-top:.8rem}.inner-tilt-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:.55rem}.inner-tilt-row .mobile-fine-rotate-btn{min-width:2.35rem;min-height:2.05rem;padding:.25rem .4rem;border-radius:9px;gap:.02rem;font-size:.74rem;line-height:1;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:manipulation}.inner-tilt-row .mobile-fine-rotate-btn i{font-size:.86rem;line-height:1}.inner-tilt-row .mobile-fine-rotate-label{font-size:.52rem}.inner-tilt-axis{color:#5b6658;font-weight:600;font-size:.9rem}.inner-tilt-value{min-width:4.4rem;min-height:2.5rem;padding:.3rem .6rem;text-align:center;line-height:1.15;border-radius:10px;border:1px solid rgba(179,90,43,.18);background:#ffffffb3}.inner-tilt-value.mono{display:inline-flex;align-items:center;justify-content:center;padding:.3rem .6rem;line-height:1;font-size:.88rem;white-space:nowrap}.inner-tilt-value.is-active{border-color:#b84c2a6b;background:#b84c2a1f;color:#8d4d2a;font-weight:800}.edge-details{margin-top:.85rem;color:#5b6658}.edge-details summary{cursor:pointer;font-size:.82rem;font-weight:700}.edge-details-text{margin-top:.55rem;color:#3f473e}.btn{border-radius:12px;font-weight:600;font-family:inherit;font-size:.95rem;padding:.6rem .8rem;white-space:nowrap;touch-action:manipulation}.tooltip{--bs-tooltip-bg: rgba(29, 39, 51, .92);--bs-tooltip-color: #fffdf8;--bs-tooltip-border-radius: 8px;--bs-tooltip-padding-x: .55rem;--bs-tooltip-padding-y: .35rem;--bs-tooltip-font-size: .77rem}.btn-outline-secondary{--bs-btn-color: var(--ink);--bs-btn-border-color: rgba(176, 185, 164, .95);--bs-btn-hover-bg: rgba(111, 116, 97, .12);--bs-btn-hover-border-color: rgba(111, 116, 97, .38);--bs-btn-hover-color: var(--ink);--bs-btn-active-bg: rgba(179, 90, 43, .18);--bs-btn-active-border-color: rgba(179, 90, 43, .4);--bs-btn-active-color: var(--ink);background:linear-gradient(180deg,#fbfcf7fa,#eff3e8f5);box-shadow:0 1px #ffffffb3 inset}.form-select{border-color:#b0b9a4f2;border-radius:12px;background-color:#fbfcf7fa;color:var(--ink);box-shadow:0 1px #ffffffb3 inset}.form-select:focus{border-color:#b35a2b66;box-shadow:0 0 0 .2rem #b35a2b24,0 1px #ffffffb3 inset}.workspace-shell{margin-top:0;position:relative;min-width:0}.workspace-shell:after{content:"";position:absolute;inset:0;border-radius:18px;background:#0f131100;pointer-events:none;transition:background .12s ease;z-index:2}.workspace-shell.is-focusing:after{background:#0f13114d}.left-rail .card-body{overflow:visible}.workspace{position:relative;width:100%;min-width:0;min-height:760px;max-height:calc(100vh - 56px);overflow:auto;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;border:1px solid var(--workspace-edge);border-radius:18px;background:var(--workspace-panel),linear-gradient(135deg,#ffffff6b,#f4f4ee2e);box-shadow:inset 0 1px #ffffffb8,0 16px 28px #3d392b14}.workspace.page-scroll-mode{min-height:0;max-height:none;overflow:visible}.workspace.fit-viewport-locked{min-height:var(--fit-viewport-height);max-height:var(--fit-viewport-height);overflow:auto}.workspace.drag-active{border-color:#b35a2b73;box-shadow:inset 0 0 0 2px #b35a2b29,0 18px 34px #5b5d4e14;background:linear-gradient(160deg,#fffffcfa,#f7f7f1f5),linear-gradient(135deg,#b35a2b14,#6f74610d)}.workspace-empty{display:grid;place-items:center;min-height:420px;color:var(--muted);padding:2rem;text-align:center;cursor:pointer}.workspace-empty-card{width:min(100%,28rem)}.workspace-empty-eyebrow{display:inline-flex;align-items:center;min-height:1.9rem;padding:.2rem .75rem;border-radius:999px;border:1px solid rgba(179,90,43,.2);background:#b35a2b14;color:#8d4d2a;font-size:.74rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.upload-title{font-size:1.08rem;line-height:1.15;font-weight:700;letter-spacing:-.01em;color:var(--workspace-ink)}.upload-copy{font-size:.95rem;color:#6d6f63;white-space:nowrap}.desktop-only-inline{display:inline}.mobile-only-copy{display:none}.workspace-empty-notes{display:flex;justify-content:center;gap:.55rem;flex-wrap:wrap;margin-top:1rem}.workspace-empty-note{display:inline-flex;align-items:center;min-height:1.9rem;padding:.24rem .72rem;border-radius:999px;background:#fffc;border:1px solid rgba(176,185,164,.68);color:#34392fd6;font-size:.78rem;font-weight:600}.upload-actions{display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap}.mobile-only-inline{display:none}.prescreen-toolbar{display:grid;gap:.85rem}.prescreen-toolbar-row{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.prescreen-toolbar-row .form-select{min-width:132px;max-width:190px}.prescreen-toolbar-row .prescreen-zoom-select{min-width:92px;max-width:110px}.prescreen-inline-group{display:inline-flex;align-items:center;gap:.5rem;white-space:nowrap}.prescreen-shell{min-height:0}.prescreen-pane{height:auto;overflow:visible}.prescreen-pane-body{height:auto}.prescreen-workspace{display:grid;place-items:center;min-height:0;max-height:none;overflow:visible}.prescreen-stage{width:100%;display:grid;place-items:center;padding:1.5rem}#prescreenCanvas{display:block;max-width:100%;height:auto;touch-action:none;border-radius:18px;border:1px solid rgba(217,221,208,.45);background:#fffffff5;box-shadow:0 18px 34px #1d273324,0 1px #ffffffb8 inset}.prescreen-loupe{z-index:5}.prescreen-note{margin-top:1rem}.prescreen-warning-emphasis{font-weight:800;color:var(--ink)}.prescreen-intensity{border-top:1px solid rgba(189,195,175,.55);padding-top:.85rem}.prescreen-intensity-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.45rem}.prescreen-intensity-value{font-size:.75rem;font-weight:600;color:var(--muted)}.canvas-stage{position:relative;display:block;width:fit-content;margin-left:auto;margin-right:auto;line-height:0;user-select:none;-webkit-user-select:none}.rotated-layer{position:absolute;left:50%;top:50%;transform-origin:center center}.canvas-stage img{position:absolute;inset:0;display:block;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none;filter:saturate(1.02) contrast(1.01)}#borderBandCanvas{image-rendering:pixelated;image-rendering:crisp-edges}.canvas-stage canvas{position:absolute;inset:0;display:block;cursor:crosshair;touch-action:none}.rotation-flash{position:absolute;inset:0;pointer-events:none;opacity:0;background:radial-gradient(circle at center,#ffffff47,#fff0 68%);transition:opacity .11s ease}.rotation-flash.is-active{opacity:1}.gesture-hint{position:absolute;left:50%;bottom:1rem;transform:translate(-50%,.45rem);z-index:4;display:flex;align-items:center;gap:.45rem;padding:.52rem .72rem;border-radius:999px;background:#fffcf6db;border:1px solid rgba(29,39,51,.1);box-shadow:0 8px 18px #1d27331f;color:#1d2733;pointer-events:none;opacity:0;transition:opacity .18s ease,transform .18s ease}.gesture-hint.is-visible{opacity:1;transform:translate(-50%)}.gesture-hint-icon{color:#b84c2a;font-size:.92rem}.gesture-hint-text{font-size:.82rem;font-weight:700;white-space:nowrap}.loupe{position:absolute;left:0;top:0;width:176px;height:176px;border-radius:20px;overflow:hidden;pointer-events:none;z-index:4;border:1px solid rgba(111,116,97,.35);background:#fffffcf5;box-shadow:0 18px 34px #1d27332e,0 1px #ffffffb8 inset}.loupe:before{content:"";position:absolute;inset:10px;border-radius:14px;border:1px solid rgba(29,39,51,.1);pointer-events:none}.loupe canvas{display:block;width:100%;height:100%}.loupe-assist-status{position:absolute;left:50%;bottom:10px;transform:translate(-50%);z-index:2;pointer-events:none;padding:.4rem .55rem;border-radius:14px;border:1px solid rgba(255,255,252,.12);background:#1b232cd6;color:#fffffcf5;font-size:.72rem;font-weight:600;letter-spacing:.01em;max-width:min(148px,calc(100% - 1rem));min-width:108px;white-space:normal;text-align:center;line-height:1.2;box-shadow:0 10px 18px #1d27332e,0 1px #ffffff0f inset}.snap-toast{position:absolute;left:50%;top:18px;transform:translate(-50%,-6px);z-index:5;pointer-events:none;padding:.42rem .72rem;border-radius:999px;border:1px solid rgba(111,116,97,.28);background:#1b232cdb;color:#fffffcf5;font-size:.78rem;font-weight:600;letter-spacing:.01em;text-align:center;box-shadow:0 12px 24px #1d273333,0 1px #ffffff14 inset;white-space:nowrap;opacity:0;transition:opacity .22s ease,transform .22s ease}.snap-toast.is-multiline{max-width:min(calc(100% - 24px),320px);line-height:1.25;white-space:normal;overflow-wrap:anywhere}.snap-toast.is-visible{opacity:1;transform:translate(-50%)}.zoom-control-wrap{position:absolute;right:14px;bottom:14px;z-index:3;min-width:78px;user-select:none;-webkit-user-select:none}.zoom-current-label{display:inline-flex;align-items:center;justify-content:center;width:100%;padding:.28rem .5rem;border-radius:999px;border:1px solid rgba(111,116,97,.22);background:#fffffcd1;color:#1d2733d1;font-size:.72rem;font-weight:600;letter-spacing:.01em;box-shadow:0 8px 18px #1d273314,0 1px #ffffff8c inset;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);user-select:none;-webkit-user-select:none}.zoom-preset-select{position:absolute;inset:0;pointer-events:auto;font-family:inherit;appearance:none;-webkit-appearance:none;cursor:pointer;opacity:0}.zoom-preset-select:focus{outline:none}.zoom-control-wrap:has(.zoom-preset-select:focus) .zoom-current-label{border-color:#b35a2b5c;box-shadow:0 0 0 .18rem #b35a2b1f,0 8px 18px #1d273314,0 1px #ffffff8c inset}.camera-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:1rem;overflow:auto;overscroll-behavior:contain;background:#1d2733c7;backdrop-filter:blur(8px)}.camera-dialog{width:min(100%,720px);max-height:min(100vh - 2rem,920px);overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;border-radius:22px;border:1px solid rgba(217,221,208,.45);background:linear-gradient(180deg,#fafaf5fa,#f2f3ecf5);box-shadow:0 26px 56px #1d27333d;padding:1rem}.perspective-dialog{display:flex;flex-direction:column;overflow-x:hidden;background:linear-gradient(180deg,#fafaf5fa,#f2f3ecf5)}#perspectiveModal .perspective-dialog{width:min(100%,980px);height:min(100dvh - 2rem,900px);max-height:min(100dvh - 2rem,900px);overflow:hidden}.camera-header{display:flex;align-items:start;justify-content:space-between;gap:1rem;margin-bottom:.9rem}.perspective-dialog .camera-header{flex-wrap:nowrap;align-items:flex-start;margin:-1rem -1rem 0;padding:1rem 1rem .9rem;background:linear-gradient(180deg,#fafaf5fc,#f2f3ecf5);border-bottom:1px solid rgba(189,195,175,.58)}.perspective-dialog .camera-header>:first-child{min-width:0;flex:1 1 auto}.perspective-dialog .btn-close{flex:0 0 auto;margin-left:auto}.perspective-step-label{color:#6a4e3aeb;font-size:.78rem;font-weight:700;letter-spacing:0;text-transform:uppercase}.camera-copy{color:var(--muted)}.camera-preview{position:relative;width:100%;aspect-ratio:3 / 4;border-radius:18px;overflow:hidden;background:#171d1a;box-shadow:inset 0 0 0 1px #ffffff14}.perspective-preview{position:relative;display:flex;flex:1 1 auto;align-items:center;justify-content:center;width:100%;min-height:0;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;overscroll-behavior:contain;border-radius:18px;overflow:hidden;background:linear-gradient(180deg,#171d1af5,#1f2622fa);box-shadow:inset 0 0 0 1px #ffffff14}.perspective-preview:after{content:"";position:absolute;inset:0;border-radius:inherit;background:#0f131100;pointer-events:none;transition:background .12s ease}.perspective-preview:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;background:radial-gradient(circle at center,#ffffff47,#fff0 68%);transition:opacity .11s ease}.perspective-preview.is-rotating:before{opacity:1}.perspective-preview.is-focusing:after{background:#0f131161}.perspective-canvas{display:block;flex:0 0 auto;width:100%;height:auto;touch-action:none;overscroll-behavior:contain;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;cursor:grab}.perspective-canvas.is-dragging{cursor:grabbing}.perspective-loupe{z-index:5;width:220px;height:220px;border-color:#b84c2a6b;box-shadow:0 18px 34px #1d273333,0 0 0 3px #b84c2a1f,0 1px #ffffffb8 inset}.perspective-straighten-control{margin-top:.85rem;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.perspective-mode-toggle{display:flex;justify-content:center;gap:.5rem;margin-top:.4rem;margin-bottom:.85rem}.perspective-mode-toggle .btn{min-width:6.75rem;padding:.32rem .7rem;font-size:.8125rem;font-weight:600;line-height:1.15;border-radius:999px}.perspective-mode-toggle .btn.is-active{background:#b35a2bf5;border-color:#b35a2bf5;color:#fffdf8}.perspective-straighten-row{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:.8rem}.perspective-straighten-row .form-range{margin:0;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;appearance:none;-webkit-appearance:none;background:transparent}.perspective-straighten-row .form-range::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:11px;border:1px solid rgba(111,116,97,.3);border-radius:4px;background:#fffcf6f5;box-shadow:0 1px #ffffffb3 inset,0 2px 6px #1d273324;cursor:ew-resize}.perspective-straighten-row .form-range::-moz-range-thumb{width:18px;height:11px;border:1px solid rgba(111,116,97,.3);border-radius:4px;background:#fffcf6f5;box-shadow:0 1px #ffffffb3 inset,0 2px 6px #1d273324;cursor:ew-resize}.perspective-straighten-row .form-range::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:#5e6d743d;box-shadow:inset 0 1px 2px #1d273314}.perspective-straighten-row .form-range::-moz-range-track{height:4px;border-radius:999px;background:#5e6d743d;box-shadow:inset 0 1px 2px #1d273314}.camera-preview video,.camera-overlay{position:absolute;inset:0;width:100%;height:100%}.camera-preview video{object-fit:cover}.camera-overlay{pointer-events:none}.camera-frame{position:absolute;left:50%;top:50%;width:min(82%,360px);aspect-ratio:2.5 / 3.5;transform:translate(-50%,-50%);border-radius:22px;box-shadow:0 0 0 9999px #0a0f0d75,inset 0 0 0 2px #fffffff0,inset 0 0 0 10px #ffffff0f}.camera-corner{position:absolute;width:28px;height:28px;border-color:#b35a2bfa;border-style:solid;border-width:0}.camera-corner-tl{left:10px;top:10px;border-left-width:4px;border-top-width:4px;border-top-left-radius:10px}.camera-corner-tr{right:10px;top:10px;border-right-width:4px;border-top-width:4px;border-top-right-radius:10px}.camera-corner-bl{left:10px;bottom:10px;border-left-width:4px;border-bottom-width:4px;border-bottom-left-radius:10px}.camera-corner-br{right:10px;bottom:10px;border-right-width:4px;border-bottom-width:4px;border-bottom-right-radius:10px}.camera-error{margin-top:.85rem;padding:.85rem .95rem;border-radius:14px;color:#8a2f19;background:#b35a2b1f;border:1px solid rgba(179,90,43,.2)}.camera-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:.95rem}.perspective-dialog .camera-actions{justify-content:flex-end;align-items:center;flex-wrap:wrap;margin-top:.85rem;padding-top:.8rem;padding-bottom:calc(.35rem + env(safe-area-inset-bottom));background:transparent;border-top:1px solid rgba(189,195,175,.58)}.perspective-reset-btn{margin-right:auto;color:#585e4ec7;background:transparent;border-color:transparent;box-shadow:none}.perspective-reset-btn:hover,.perspective-reset-btn:focus-visible{color:#474e40f5;background:#5e6d7414;border-color:#5e6d7424}@media(max-width:1599px){.workspace{min-height:520px;max-height:72vh}.prescreen-workspace,.workspace.page-scroll-mode{min-height:0;max-height:none}.toolbar-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:1600px){.left-rail{position:sticky;top:1rem}}@media(min-width:992px){.mobile-image-toolbar,.mobile-image-view,.mobile-inner-tilt,.mobile-perspective-suggestion,.mobile-results-card,.guide-placement-status-mobile,.mobile-app-chrome{display:none!important}.image-pane-column{position:sticky;top:6.5rem;align-self:flex-start}.image-pane{height:auto!important}.workspace,.workspace.page-scroll-mode,.workspace.fit-viewport-locked{min-height:calc(100dvh - 13rem);max-height:calc(100dvh - 13rem);overflow:auto}}@media(max-width:991px){.app-info-column{order:2}.image-pane-column{order:1}.mobile-only-inline{display:inline-flex}.desktop-only-inline{display:none}.mobile-only-copy{display:inline}.mobile-app-chrome{display:grid;gap:.7rem;margin-bottom:.8rem;padding:.95rem 1rem .9rem;border-radius:22px;border:1px solid rgba(189,195,175,.82);background:radial-gradient(circle at top right,rgba(179,90,43,.12),transparent 36%),linear-gradient(180deg,#fcfbf6fa,#f3f5ecf5);box-shadow:0 18px 32px #402f1a14,0 1px #ffffff8c inset}.mobile-app-chrome-top{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.mobile-app-kicker-row{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-start}.mobile-app-kicker{font-size:.72rem;line-height:1;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);font-weight:700}.mobile-app-title{font-size:clamp(1.45rem,2vw,1.95rem);line-height:1.05;font-weight:800;letter-spacing:-.02em;color:var(--ink)}.mobile-app-badge{display:inline-flex;align-items:center;min-height:1.95rem;padding:.24rem .72rem;border-radius:999px;background:#ffffffd1;border:1px solid rgba(189,195,175,.9);color:var(--muted);font-size:.76rem;font-weight:700;white-space:nowrap;vertical-align:middle}.mobile-app-badge-right{margin-left:5px}.mobile-app-copy{color:#34392fdb;font-size:.9rem;line-height:1.45}.mobile-app-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.guide-placement-status-mobile{align-items:flex-start;margin:.55rem 0 .5rem;max-width:100%}.guide-placement-status-mobile .guide-placement-status-detail{max-width:100%;text-align:left}.mobile-app-step{display:inline-flex;align-items:center;justify-content:center;min-height:2.1rem;border-radius:14px;border:1px solid rgba(189,195,175,.72);background:#ffffff94;color:#34392fb8;font-size:.77rem;font-weight:700}.mobile-app-step.is-active{border-color:#b35a2b47;background:#b35a2b1f;color:#8d4d2a}.mobile-image-toolbar{position:static;display:block;margin-bottom:0;padding-top:0;border-radius:0;border:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}.mobile-image-toolbar .btn{min-height:3.25rem;padding:.6rem .8rem;border-radius:16px;font-size:.82rem;line-height:1.05;white-space:nowrap}.mobile-image-toolbar .mobile-fine-rotate-btn{gap:.02rem}.mobile-image-toolbar .mobile-fine-rotate-label{font-size:.58rem}.mobile-image-view{display:block;margin-bottom:0;padding:0rem 0 0;border-radius:0;border:0;background:transparent}.mobile-inner-tilt{display:block;margin-bottom:0;padding-top:.85rem}.mobile-image-view-inline{display:flex}.mobile-display-controls-row{display:grid}.mobile-perspective-suggestion{display:flex;min-height:3.7rem}.mobile-tool-surface.is-image-loaded .mobile-perspective-suggestion[hidden]{display:flex;visibility:hidden;pointer-events:none}.mobile-tool-surface:not(.is-image-loaded) .mobile-image-view,.mobile-tool-surface:not(.is-image-loaded) .mobile-image-toolbar,.mobile-tool-surface:not(.is-image-loaded) .guide-placement-status-mobile,.mobile-tool-surface:not(.is-image-loaded) .mobile-inner-tilt,.mobile-tool-surface:not(.is-image-loaded) .mobile-perspective-suggestion,.mobile-tool-surface:not(.is-image-loaded) .mobile-results-card{display:none!important}.mobile-results-card{display:block;border-radius:0;padding:.85rem 0 0;background:transparent;border:0;box-shadow:none;min-height:8.2rem}.mobile-results-export-btn{display:inline-flex}#mobileResultsText{line-height:1.4;padding:.7rem .75rem;white-space:pre-wrap;min-height:6.4rem}.mobile-duplicate-control-group{display:none}.left-rail{background:linear-gradient(180deg,#f9faf4fa,#eff3e9f5)}.left-rail .card-body{padding:1rem!important}.left-rail .app-title{font-size:1.1rem}.left-rail .muted{font-size:.87rem;line-height:1.45}.image-pane{background:radial-gradient(circle at top center,rgba(108,116,90,.12),transparent 32%),linear-gradient(180deg,#f8f9f4fa,#eff3eaf5)}.mobile-tool-surface{display:grid;gap:0;width:100%;min-width:0;margin-top:.85rem;padding:.8rem;border-radius:28px;border:1px solid rgba(189,195,175,.78);background:radial-gradient(circle at top right,rgba(179,90,43,.08),transparent 36%),linear-gradient(180deg,#fbfbf7fa,#f1f4ebf5);box-shadow:0 18px 32px #402f1a14,0 1px #ffffff94 inset}.workspace-shell{border-radius:24px;padding:0;padding-bottom:.5rem;background:transparent}.workspace{min-height:54vh;max-height:none;border-radius:22px;background:radial-gradient(circle at top center,rgba(255,255,255,.32),transparent 35%),var(--workspace-panel),linear-gradient(135deg,#ffffff6b,#f4f4ee2e)}.workspace-empty{min-height:48vh;padding:1.5rem}.workspace.fit-viewport-locked{min-height:min(max(var(--fit-viewport-height),48vh),58vh);max-height:min(max(var(--fit-viewport-height),48vh),58vh);overflow:auto}.mobile-tool-surface .mobile-image-view,.mobile-tool-surface .mobile-image-toolbar,.mobile-tool-surface .mobile-results-card,.mobile-tool-surface .guide-placement-status-mobile,.mobile-tool-surface .mobile-inner-tilt,.mobile-tool-surface .mobile-perspective-suggestion,.mobile-tool-surface .workspace-shell{position:relative;min-width:0;width:100%}.mobile-tool-surface>.mobile-perspective-suggestion,.mobile-tool-surface>.mobile-image-view,.mobile-tool-surface>.mobile-image-toolbar,.mobile-tool-surface>.mobile-inner-tilt,.mobile-tool-surface>.mobile-results-card{margin-top:0!important}.mobile-tool-surface .mobile-image-view:before{display:none}.btn{white-space:normal;line-height:1.2}.section-title,.upload-copy{white-space:normal}.camera-dialog{width:100%;max-height:none;margin:auto 0;padding:.9rem}.camera-header,.camera-actions{flex-direction:column;align-items:stretch}.perspective-dialog .camera-header{flex-direction:row;align-items:flex-start;flex-wrap:nowrap}.perspective-dialog .camera-actions{flex-direction:row;align-items:center;justify-content:flex-end;flex-wrap:wrap}.perspective-dialog .camera-actions .btn{width:auto;flex:0 0 auto}.camera-modal{place-items:start stretch;padding:.75rem}#perspectiveModal{place-items:stretch;padding:0}#perspectiveModal .perspective-dialog{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;padding:.65rem .5rem calc(.65rem + env(safe-area-inset-bottom));border:0;border-radius:0;box-shadow:none}#perspectiveModal .perspective-dialog .camera-header{margin:-.65rem -.5rem 0;padding:calc(.65rem + env(safe-area-inset-top)) .75rem .75rem}#perspectiveModal .perspective-preview{flex:1 1 auto;min-height:0;height:auto;width:calc(100% + 1rem);margin-left:-.5rem;margin-right:-.5rem;border-radius:0}#perspectiveModal .perspective-mode-toggle{margin-top:.45rem;margin-bottom:.55rem}#perspectiveModal .camera-actions{margin-top:.55rem;padding-bottom:env(safe-area-inset-bottom)}.gesture-hint{padding:.75rem .95rem;gap:.65rem}.gesture-hint-text{font-size:.84rem}}@media(max-width:767px){.toolbar-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar-buttons-rotation{grid-template-columns:repeat(3,minmax(0,1fr))}.toolbar-buttons-mobile{grid-template-columns:repeat(6,minmax(0,1fr))}.mobile-app-chrome-top{flex-direction:column}.mobile-image-toolbar .btn{min-height:3rem;padding:.6rem .8rem;font-size:.78rem}.mobile-image-toolbar .mobile-fine-rotate-label{font-size:.55rem}.workspace-empty{min-height:52vh}.inner-tilt-row{grid-template-columns:minmax(0,1fr) auto auto auto}.prescreen-toolbar-inspection{flex-wrap:nowrap;gap:.5rem}.prescreen-toolbar-inspection .form-label{flex:0 0 auto;font-size:.72rem}.prescreen-toolbar-inspection .form-select{min-width:0;max-width:none}.prescreen-toolbar-inspection #prescreenViewSelect{flex:1 1 auto}.prescreen-toolbar-inspection .prescreen-zoom-select{flex:0 0 72px;min-width:72px;max-width:72px}}
