/* Listing photos: large native-capture actions, without native file-input chrome. */
.draft-photo-picker{margin:18px 0 12px;min-width:0}
.draft-photo-picker .draft-photo-title{margin:0 0 10px;font-weight:700;font-size:14px}
.draft-photo-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:10px}
.draft-photo-actions .button{min-height:48px;max-width:100%;padding:12px 16px;gap:9px;font-size:14px;line-height:1.35;white-space:normal;text-align:center;justify-content:center}
.draft-photo-camera{flex:1 1 220px}
.draft-photo-gallery{flex:1 1 190px}
.draft-photo-camera svg{flex:none;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.draft-photo-picker .draft-photo-count{white-space:pre-line;margin:12px 0 5px;font-size:14px;font-weight:700;line-height:1.45}
.draft-photo-picker #photo-picker-help{margin:0;font-size:12px;font-weight:400;line-height:1.5}
.draft-photo-picker input[hidden]{display:none!important}
.draft-photo-actions .button[aria-disabled="true"]{background:#edf0f3;color:#586672;border-color:#dce1e6;cursor:default}
.draft-photo-actions .button:disabled{opacity:1;cursor:wait}
.draft-photo-actions .button:focus-visible,.draft-photo-count:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
@media(max-width:480px){.draft-photo-actions{flex-direction:column;gap:8px}.draft-photo-actions .button{flex:none;width:100%;font-size:14px}}

.draft-photo-actions .draft-photo-camera{color:#102e45}

/* Photo and optional-video sources share the same accessible controls. */
.draft-video-picker{margin:18px 0 12px;min-width:0}
.draft-video-picker .draft-photo-title{margin:0 0 10px;font-weight:700;font-size:14px}
.draft-video-picker input[hidden]{display:none!important}
.draft-video-picker #video-picker-help{margin:10px 0 0;font-size:12px;font-weight:400;line-height:1.5}

/* One compact gallery: every accumulated photo stays visible, with one toolbar. */
#listing-form #photo-preview.compact-photo-preview{display:block;min-width:0;margin:0 0 4px;max-width:420px}
#listing-form .photo-thumbnails{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#listing-form .photo-thumbnail{position:relative;display:block;min-width:44px;min-height:52px;aspect-ratio:1;padding:0;border:2px solid #d5dde4;border-radius:8px;background:#eef2f5;overflow:hidden}
#listing-form .photo-thumbnail[aria-pressed="true"]{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
#listing-form .photo-thumbnail img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
#listing-form .photo-position{position:absolute;left:0;bottom:0;right:0;padding:3px 1px;background:#183b56;color:white;font-size:10px;line-height:1.2;text-align:center;font-weight:700}
#listing-form .photo-invalid{display:block;font-size:10px;padding:4px 0 16px}
#listing-form .photo-toolbar{margin-top:8px;min-width:0}
#listing-form .photo-selected-label{display:block;font-size:11px;font-weight:500;margin-bottom:4px}
#listing-form .photo-toolbar-actions{display:grid;grid-template-columns:minmax(48px,1fr) 44px 44px minmax(72px,1.2fr);gap:6px}
#listing-form .photo-toolbar-actions button{min-width:44px;min-height:44px;padding:6px 4px;border:1px solid #cad3dc;border-radius:6px;background:#fff;color:var(--ink);font-size:12px;font-weight:700}
#listing-form .photo-toolbar-actions button:disabled{color:#687582;background:#f0f3f5;cursor:default}
#listing-form .photo-thumbnail:focus-visible,#listing-form .photo-toolbar-actions button:focus-visible{outline:3px solid var(--coral-dark);outline-offset:2px}

/* Keep the result above the actions, where a returning camera user can see it. */
.draft-video-picker #video-status{margin:0 0 4px;padding:9px 11px;border:1px solid #dce3e8;border-radius:8px;background:#f2f5f7;color:var(--ink);font-size:14px;line-height:1.45;white-space:pre-line;font-weight:600;scroll-margin-block:100px}
.draft-video-picker #video-status[data-state="accepted"]{background:#edf6f1;border-color:#c0d8cb;color:#194c36}
.draft-video-picker #video-status[data-state="pending"]{background:#fff6eb;border-color:#ebd5b5}
.draft-video-picker #video-error{margin:0 0 4px;font-size:13px;line-height:1.5;font-weight:500;scroll-margin-block:100px}
