.photo-import-options { margin: 12px 0 20px; padding: 14px; border: 1px solid var(--border, #dddcd7); border-radius: 12px; background: var(--bg, #f8f7f4); }
.photo-import-options[hidden], .photo-import-crop[hidden] { display: none; }
.photo-import-options p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
.photo-import-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-import-choices button { padding: 3px; border: 1px solid #c3c5d0; border-radius: 8px; background: white; cursor: pointer; }
.photo-import-choices button:focus-visible { outline: 3px solid #585aca; outline-offset: 3px; }
.photo-import-choices img { display: block; width: 64px; height: 76px; object-fit: contain; }
.photo-import-crop { margin: 0; color: #373e94; }
.photo-import-crop:hover { background: var(--accent-soft, #eeeff9); }
.photo-import-crop:focus-visible { outline: 3px solid #585aca; outline-offset: 3px; border-radius: 3px; }
.photo-crop-dialog { width: min(650px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 20px; border: 1px solid #d7d5cf; border-radius: 18px; color: #17243c; background: #fffdf9; box-sizing: border-box; overflow: auto; }
.photo-crop-dialog::backdrop { background: #11182799; }
.photo-crop-dialog h2 { margin: 0 0 10px; font: inherit; font-size: 20px; font-weight: 700; }
.photo-crop-dialog p { font-size: 14px; line-height: 1.5; }
.photo-crop-stage { position: relative; width: fit-content; max-width: 100%; margin: 12px auto; cursor: crosshair; touch-action: none; user-select: none; }
.photo-crop-stage img { display: block; max-width: 100%; max-height: 60dvh; width: auto; pointer-events: none; }
.photo-crop-selection { position: absolute; border: 2px solid #484bb3; background: #797ad42e; box-sizing: border-box; pointer-events: none; }
.photo-crop-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.photo-crop-footer button { padding: 12px 16px; font: inherit; font-weight: 600; border: 1px solid #c9c7bf; border-radius: 8px; background: white; cursor: pointer; }
.photo-crop-footer button:last-child { color: white; border-color: #484bb3; background: #484bb3; }
.photo-crop-footer button:disabled { opacity: .45; cursor: default; }
.photo-crop-coordinates { margin-top: 16px; font-size: 13px; }
.photo-crop-coordinates summary { cursor: pointer; margin-bottom: 10px; }
.photo-crop-coordinates label { display: inline-flex; align-items: center; gap: 6px; margin: 6px; }
.photo-crop-coordinates input { width: 65px; font: inherit; padding: 6px; border: 1px solid #c9c7bf; border-radius: 6px; }

.photo-shape-options { margin: 14px 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo-shape-options legend { margin-bottom: 10px; font-weight: 600; font-size: 14px; }
.photo-shape-options label { padding: 12px 6px; border: 1px solid #d7d5cf; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; text-align: center; }
.photo-shape-options label:has(:checked) { border-color: #484bb3; background: #eeeff9; box-shadow: 0 0 0 1px #484bb3; color: #373e94; }
.photo-shape-options label:has(:focus-visible) { outline: 3px solid #797ad4; outline-offset: 3px; }
.photo-shape-options input { width: 16px; height: 16px; margin: 0; accent-color: #484bb3; }
.photo-shape-sample { width: 32px; height: 32px; background: linear-gradient(145deg, #d6d6f0, #8e90c6); border: 1px solid #8183b5; }
.photo-shape-sample[data-shape="cercle"] { border-radius: 50%; }
.photo-shape-sample[data-shape="carre_arrondi"] { border-radius: 8px; }
.photo-crop-stage img { max-height: 40dvh; }
