.photo-selection-dialog{box-sizing:border-box;width:min(900px,calc(100vw - 24px));max-height:90dvh;padding:0;border:1px solid #d9dfdc;border-radius:20px;background:#fafaf9;color:#172e28;font-family:inherit;overflow:auto;overscroll-behavior:contain}.photo-selection-dialog::backdrop{background:#071b18b8;backdrop-filter:blur(5px)}.photo-selection-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;background:#fff;position:sticky;top:0;z-index:2}.photo-selection-header h2{font-family:inherit;font-weight:700;font-size:clamp(19px,3vw,27px);line-height:1.5;margin:0}.photo-selection-dialog button{font:inherit;cursor:pointer;min-height:44px}.photo-selection-close,.photo-selection-tools button{padding:10px 15px;border:1px solid #bac5bf;border-radius:9px;background:#fff;color:#17372d}.photo-selection-help{padding:0 22px;line-height:1.8;font-size:14px}.photo-selection-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:0 22px 18px}.photo-selection-count{margin-inline-start:auto;font-size:14px}.photo-selection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 22px 22px}.photo-selection-item{display:grid;grid-template-rows:1fr auto;position:relative;min-width:0;border:2px solid #d6deda;border-radius:12px;background:#fff;overflow:hidden;cursor:pointer}.photo-selection-item:has(input:checked){border-color:#236549;background:#edf6f0}.photo-selection-item input{position:absolute;top:10px;inset-inline-start:10px;width:23px;height:23px;accent-color:#236549;z-index:1;cursor:pointer}.photo-selection-item img{width:100%;height:160px;object-fit:contain;padding:10px;box-sizing:border-box}.photo-selection-item span{padding:10px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.photo-selection-actions{position:sticky;bottom:0;display:flex;flex-wrap:wrap;gap:10px;padding:16px 22px;background:#fff;border-top:1px solid #d7dfda;z-index:2}.photo-selection-actions .button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;flex:1 1 200px;box-sizing:border-box;padding:12px 16px;border:1px solid #315d49;border-radius:10px;color:white;background:#173f2e;text-decoration:none;font-family:inherit;font-weight:600;font-size:14px;line-height:1.4;text-align:center}.photo-selection-actions .photo-selection-share{background:#fff;color:#173f2e}.photo-selection-status{flex:1 0 100%;font-size:13px;line-height:1.6;margin:0}.photo-selection-dialog [aria-disabled=true],.photo-selection-dialog button:disabled{opacity:.55;cursor:default}.photo-selection-dialog :focus-visible{outline:3px solid #ba863d;outline-offset:3px}.photo-selection-item:focus-within{outline:3px solid #ba863d;outline-offset:2px}.catalogue-photo-selection,.photo-selection-launcher{min-height:44px;padding:10px 13px;border:1px solid #9eafa5;border-radius:9px;background:#fff;color:#173f2e;font:inherit;font-size:13px;cursor:pointer}.photo-save-controls .photo-selection-launcher{flex:1 1 180px}.photo-thumbnail-unavailable{min-height:160px}.photo-selection-status:empty{display:none}@media(max-width:600px){.photo-selection-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 12px 16px;gap:10px}.photo-selection-header{padding:14px 12px;gap:8px}.photo-selection-help{padding-inline:12px}.photo-selection-tools{padding:0 12px 14px}.photo-selection-count{flex-basis:100%}.photo-selection-item img{height:145px}.photo-selection-actions{padding:12px 12px calc(12px + env(safe-area-inset-bottom))}.photo-selection-actions .button{flex-basis:100%}.photo-selection-dialog{max-height:94dvh;border-radius:14px}.photo-selection-header h2{font-size:18px}}
