#photo-dialog{width:min(1270px,calc(100% - 28px));max-height:94dvh;border-radius:9px;overflow:auto}#photo-dialog [hidden]{display:none!important}.photo-top{position:sticky;top:0;z-index:8;background:white;border-bottom:1px solid var(--line);padding:19px 26px;display:flex;justify-content:space-between;align-items:center}.photo-top h2{font:30px Georgia;margin:6px 0 0}.photo-top>button{font-size:19px;padding:8px 12px}.photo-intro{padding:17px 26px;border-bottom:1px solid var(--line);background:#f8f9f9;display:flex;align-items:center;gap:25px;justify-content:space-between}.photo-intro p{font-size:14px;line-height:1.65;margin:0;max-width:710px}.photo-intro>span{font-size:11px;color:var(--muted);max-width:180px;line-height:1.7}.photo-layout{display:grid;grid-template-columns:minmax(0,1fr) 335px}.photo-left{padding:22px 24px}.photo-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.photo-card{border:1px solid var(--line);border-radius:5px;min-width:0;overflow:hidden}.photo-card.editing{border-color:#b4878f}.photo-card-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px}.photo-card-heading h3{font:19px Georgia;margin:0}.upload-label{font-size:12px;cursor:pointer;color:var(--accent);text-decoration:underline;text-underline-offset:3px;position:relative}.upload-label input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.upload-label:focus-within{outline:2px solid #477c98;outline-offset:4px}.photo-stage{height:360px;background:#f0f2f2;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.photo-stage svg{width:100%;height:100%;display:block;touch-action:none;user-select:none;cursor:crosshair}.photo-placeholder{padding:25px;text-align:center;font-size:15px;line-height:1.7;color:#768286;max-width:280px}.photo-placeholder small{display:block;font-size:11px;margin-top:18px}.photo-actions{padding:10px 11px;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:49px}.photo-actions button{font-size:11px;color:var(--accent);padding:5px 2px}.photo-actions span{font-size:10px;line-height:1.5;color:var(--muted)}.photo-actions button:disabled{color:#a6aeaf;cursor:default}.photo-status{font-size:11px;line-height:1.6;color:#747e82;margin:0;padding:0 12px 12px;min-height:12px}.photo-guidance{margin-top:23px;padding:17px 19px;background:#f7f8f8;border-radius:5px}.photo-guidance h3{font:20px Georgia;margin:0 0 10px}.photo-guidance p{font-size:13px;line-height:1.75;color:#657075;margin:8px 0}.measure-panel{padding:24px;border-left:1px solid var(--line);background:#fcfdfd;min-width:0}.measure-panel label{font-size:11px;text-transform:uppercase;letter-spacing:1.1px;color:var(--muted);display:block;margin-bottom:10px}.measure-panel select{width:100%;background:white;border:1px solid #cdd3d4;border-radius:4px;padding:10px 9px;font:14px Arial;color:var(--ink)}.metric-formula{font-size:13px;line-height:1.7;color:#657278;padding-bottom:15px;border-bottom:1px solid var(--line)}.point-help{font-size:12px;line-height:1.7;color:#657278;margin:15px 0 10px}.point-help strong{color:var(--accent)}.point-list{display:flex;flex-direction:column;gap:5px}.point-button{display:flex;align-items:center;text-align:left;gap:9px;padding:10px 9px;border:1px solid transparent;border-radius:4px;width:100%;font-size:12px;line-height:1.5}.point-button.active{background:var(--soft);border-color:#e0c7cc}.point-button>span:first-child{border-radius:50%;height:20px;width:20px;flex:none;text-align:center;background:#e9eeee;color:#657478;font-size:11px;line-height:20px}.point-button.active>span:first-child{background:var(--accent);color:white}.point-button small{margin-left:auto;color:#879596}.point-tools{padding:12px 0 20px}.point-tools button{font-size:11px;text-decoration:underline;text-underline-offset:3px;color:#7d8588;padding:0}.measurement-result{margin-top:19px;padding:18px 16px;background:white;border:1px solid var(--line);border-radius:5px}.result-value{font:42px Georgia;line-height:1.3;color:var(--accent);margin:8px 0}.measurement-result p{font-size:12px;color:#5c686c;line-height:1.7;margin:7px 0}.reference-band{margin-top:20px}.reference-band>span{font-size:11px;color:var(--muted)}.reference-track{height:3px;background:#e4e8e9;margin:13px 0 11px;position:relative}.reference-target{position:absolute;top:-5px;background:#71888a;width:2px;height:13px}.reference-value{position:absolute;width:9px;height:9px;border:1px solid white;border-radius:50%;background:var(--accent);top:-3px;transform:translateX(-50%)}.reference-band small{font-size:9px;color:#939b9e;line-height:1.5;display:block}.measurement-caveat{font-size:12px;line-height:1.75;color:#7a8386;margin:12px 0}.metric-source{font-size:11px;line-height:1.65;display:block}.review-button{width:100%;font-size:12px;padding:11px;background:var(--accent);color:white;border-radius:4px;margin-top:17px}.photo-limit{font-size:11px;line-height:1.8;color:#91999c;margin:19px 0 0}.photo-guide{fill:none;stroke:#fff;stroke-width:1.5;stroke-dasharray:5 4;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 1px #782f3a);pointer-events:none}.photo-pin{cursor:grab;outline:none}.photo-pin circle{fill:#782f3a;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}.photo-pin text{fill:white;text-anchor:middle;font-family:Arial;pointer-events:none}.photo-pin.active circle,.photo-pin:focus circle{fill:#2e6a7d;stroke-width:3}.photo-summary{margin-top:25px}.photo-summary h3{font:23px Georgia;display:flex;justify-content:space-between;align-items:center;margin:0 0 15px}.photo-summary h3 span{font:11px Arial;color:var(--muted)}.photo-summary>p{font-size:14px;line-height:1.7;color:var(--muted)}.summary-table{border:1px solid var(--line);border-radius:5px;overflow:hidden}.summary-row{width:100%;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 15px;background:white;border-bottom:1px solid var(--line);font-size:13px}.summary-row:last-child{border:0}.summary-row small{display:block;margin-top:4px;font-size:10px;color:#889296}.summary-row strong{font:23px Georgia;color:var(--accent)}.summary-row.active{background:var(--soft)}.summary-row:hover{background:#f6f7f7}
@media(max-width:1050px){.photo-layout{grid-template-columns:1fr 310px}.photo-left{padding:18px 15px}.measure-panel{padding:21px 17px}.photo-card-heading{display:block}.photo-card-heading h3{margin-bottom:6px}.photo-stage{height:300px}.photo-actions{align-items:flex-start;flex-direction:column;gap:5px}}@media(max-width:780px){#photo-dialog{width:calc(100% - 14px);max-height:96dvh}.photo-layout{display:flex;flex-direction:column}.photo-top{padding:15px 18px}.photo-top h2{font-size:25px}.photo-intro{padding:15px 18px;display:block}.photo-intro p{font-size:13px}.photo-intro>span{display:block;max-width:none;margin-top:9px;font-size:11px}.photo-left{padding:15px}.photo-stage{height:270px}.photo-pair{gap:10px}.measure-panel{border-left:0;border-top:1px solid var(--line);padding:22px}.point-button{font-size:14px}.metric-formula{font-size:14px}.measurement-caveat{font-size:13px}.photo-summary{display:none}.photo-guidance{padding:12px 15px;margin-top:15px}.photo-guidance p{font-size:12px}.photo-guidance h3{font-size:18px}.photo-card-heading h3{font-size:18px}.point-list{display:grid;grid-template-columns:1fr 1fr}.point-button{align-items:flex-start}.measure-panel select{font-size:15px}.photo-status{font-size:10px}.photo-top>button{padding:9px}.photo-actions button{font-size:11px}}@media(max-width:450px){.photo-stage{height:240px}.point-list{display:flex}.photo-top h2{font-size:24px}}
.photo-capture-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.camera-button{font-size:12px;color:var(--accent);padding:5px 0;text-decoration:underline;text-underline-offset:3px}.camera-button:focus-visible{outline:2px solid #477c98;outline-offset:4px}.photo-stage{isolation:isolate}.photo-stage .photo-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;pointer-events:none}.photo-stage svg{position:absolute;inset:0;width:100%;height:100%;z-index:2}.camera-dialog{width:min(560px,calc(100% - 24px));padding:0;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);overflow:hidden}.camera-dialog::backdrop{background:rgba(15,24,26,.72)}.camera-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 20px;border-bottom:1px solid var(--line)}.camera-top h2{font:25px Georgia;margin:5px 0 0}.camera-top button{font-size:18px;padding:6px 9px}.camera-body{padding:16px 18px 4px}.camera-body video{display:block;width:100%;max-height:55vh;aspect-ratio:4/3;object-fit:cover;background:#172326;border-radius:5px;transform:scaleX(-1)}.camera-status{font-size:13px;line-height:1.6;color:#5e6d70;margin:12px 0 4px}.camera-note{font-size:11px;line-height:1.6;color:#899395;margin:0}.camera-actions{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:15px 18px 18px}.camera-actions button{font-size:12px;padding:10px 12px;border-radius:4px}.camera-secondary{border:1px solid #cfd7d8;color:#526568;background:#fff}.camera-primary{background:var(--accent);color:#fff}.camera-primary:disabled{opacity:.45;cursor:default}@media(max-width:780px){.photo-capture-actions{justify-content:flex-start;gap:12px}.camera-dialog{width:calc(100% - 14px)}.camera-actions{grid-template-columns:1fr 1fr}.camera-actions span{display:none}.camera-secondary,.camera-primary{width:100%}}
