.meter-photo-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 10px;margin:0 0 10px;border:1px solid var(--line);border-radius:8px;background:var(--soft-blue);color:var(--primary);font-size:11px;font-weight:750;line-height:1.5;text-align:left;width:100%}
.meter-photo-button .icon{width:17px;height:17px;flex-shrink:0}.meter-photo-button:disabled{cursor:default;opacity:.55}
.meter-photo-modal{--muted:#53627a;width:min(680px,calc(100vw - 24px));padding:30px;max-height:calc(100dvh - 24px)}
body[data-theme=dark] .meter-photo-modal{--muted:#bac9df}
.meter-photo-modal h2{padding-right:35px;font-size:27px;margin:9px 0}
.meter-photo-modal p{font-size:16px;line-height:1.7;color:var(--muted)}
.meter-photo-modal .modal-close{font-size:28px;min-width:44px;min-height:44px}
.photo-eyebrow{font-size:12px;letter-spacing:1.5px;color:var(--primary);font-weight:800}
.photo-hint{margin:16px 0 20px}.photo-pickers,.photo-crop-actions,.photo-bottom,#photo-choices{display:flex;flex-wrap:wrap;gap:10px}
.meter-photo-modal .button{min-height:48px;font-size:16px;padding:12px 16px;flex:1;white-space:normal}
.photo-pickers{margin-bottom:18px}.photo-bottom{margin-top:20px}
#photo-preview{margin:18px 0}#photo-canvas{display:block;width:auto;height:auto;max-width:100%;max-height:360px;margin-inline:auto;border-radius:12px;background:#101a2b;touch-action:none;cursor:crosshair;border:2px solid var(--line)}
.meter-photo-modal #photo-crop-help{font-size:14px;margin:12px 0}.photo-crop-actions .button{font-size:14px;min-width:145px}
#photo-progress{display:block;width:100%;height:12px;accent-color:var(--primary);margin:18px 0}
.meter-photo-modal #photo-status{padding:14px 16px;background:var(--soft-blue);border:1px solid var(--line);border-radius:10px;color:var(--text);margin:18px 0 12px}
#photo-result{display:block;font-size:32px;font-weight:800;color:var(--text);overflow-wrap:anywhere;padding:10px 0}
.meter-photo-modal .photo-privacy{margin-top:18px;font-size:13px}
.photo-red-option{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--soft-blue);color:var(--text);font-size:16px;line-height:1.6;cursor:pointer}
.photo-red-option input{width:22px!important;height:22px!important;min-height:22px!important;flex:0 0 22px;margin:3px 0 0;accent-color:var(--primary)}
.meter-photo-modal :is(#photo-detection,#photo-processing){font-size:14px;line-height:1.6}
#photo-regions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
#photo-regions:empty{display:none}#photo-regions .button{flex:1;min-width:100px}
#photo-regions [aria-pressed=true]{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}
html[data-view-mode=comfortable] .photo-red-option{font-size:18px;padding:16px}
html[data-view-mode=comfortable] .photo-red-option input{width:26px!important;height:26px!important;min-height:26px!important;flex-basis:26px}
html[data-view-mode=comfortable] .meter-photo-button{font-size:18px;min-height:54px;margin-bottom:10px;padding:12px;gap:10px}
html[data-view-mode=comfortable] .meter-photo-button .icon{height:22px;width:22px}
html[data-view-mode=comfortable] .meter-photo-modal :is(p,.button){font-size:18px;line-height:1.7}
html[data-view-mode=comfortable] .meter-photo-modal .button{min-height:56px}
html[data-view-mode=comfortable] .meter-photo-modal :is(.photo-privacy,#photo-crop-help){font-size:16px}
html[data-view-mode=comfortable] #photo-result{font-size:38px}
@media(max-width:460px){.meter-photo-modal{padding:26px 18px}.photo-pickers,.photo-bottom{flex-direction:column}.photo-crop-actions .button{min-width:100px;flex-basis:40%}.meter-photo-modal h2{font-size:25px}#photo-canvas{max-height:280px}}
@media print{.meter-photo-modal,.meter-photo-button{display:none!important}}
