.afw-task-capture{display:grid;gap:9px;margin-top:16px;min-width:0}
.afw-photo-buttons{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.afw .afw-photo-buttons .afw-camera-direct{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:56px;margin:0;padding:10px;border:1px solid var(--line,#42604c);border-radius:11px;background:var(--input-bg,#17251d);color:var(--hotel-text,#f1f6f2);font:500 14px/1.35 system-ui,sans-serif;text-align:left;cursor:pointer;white-space:normal}
.afw-camera-direct .afw-photo-icon{width:22px;height:22px;flex:none}
.afw .afw-task-capture .afw-camera-form{margin:0!important;padding:0!important;border:0!important;border-radius:0;background:transparent!important;min-width:0}
.afw-camera-form form{padding:0!important}
.afw-camera-form input[type=file][hidden],.afw-camera-preview[hidden],.afw-camera-saved[hidden],.afw-task-capture [data-work-photo-gallery][hidden]{display:none!important}
.afw-camera-notice:empty,.afw-camera-form:not(:has(.afw-camera-preview:not([hidden]),.afw-camera-saved:not([hidden]),.afw-camera-notice:not(:empty))){display:none}
.afw-camera-preview{display:grid;gap:7px;margin:0}
.afw-camera-preview-image{position:relative;overflow:hidden;border-radius:12px;background:#08110c;max-width:100%}
.afw-camera-preview-image img{display:block;width:100%;height:240px;max-height:40dvh;object-fit:contain;padding-bottom:52px;box-sizing:content-box}
.afw .afw-camera-preview-image [data-work-camera-save]{position:absolute;left:0;bottom:0;width:100%;min-height:48px;margin:0;padding:10px 12px;border:0;border-radius:0;background:#04cf1f;color:#07160a;font:700 17px/1.4 system-ui,sans-serif;cursor:pointer}
.afw-camera-preview-actions{display:flex;gap:8px}
.afw .afw-camera-preview-actions button{flex:1;min-height:44px;margin:0;padding:8px 12px;background:transparent;color:var(--hotel-text,#f1f6f2);border:1px solid var(--line,#42604c);border-radius:9px;font:500 14px/1.4 system-ui,sans-serif;cursor:pointer}
.afw-camera-notice{margin:4px 0!important;font-size:13px!important;line-height:1.4;color:var(--hotel-text,#f1f6f2)}
.afw-camera-notice.is-error{color:#ffb29e}
.afw-camera-saved{display:flex;gap:10px;align-items:center;font-size:13px;color:var(--hotel-text,#f1f6f2)}
.afw .afw-camera-saved .afw-photo-open{display:block;padding:0!important;margin:0!important;width:58px;height:58px;border:1px solid var(--line,#42604c);border-radius:8px;overflow:hidden;background:#0a140f;cursor:pointer;flex:none}
.afw-camera-saved img{display:block;width:100%;height:100%;object-fit:cover}
.afw-task-capture [data-work-photo-gallery]{justify-self:start;margin:0}
.afw-task-capture button:disabled{opacity:.6;cursor:wait}
.afw-camera-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0}
.afw-camera-actions button{min-height:44px;padding:9px 12px;border:1px solid #42604c;border-radius:9px;background:#203329;color:#f1f6f2;font:inherit;cursor:pointer}
.afw-camera-actions button:first-child{flex:1 0 100%;background:#04cf1f;border-color:#04cf1f;color:#07160a;font-weight:700}
.afw-camera-actions button:disabled{opacity:.5;cursor:wait}
.afw-camera-modal{position:fixed;inset:0;width:min(94vw,680px);max-height:94vh;max-height:94dvh;box-sizing:border-box;margin:auto;padding:16px;border:1px solid #42604c;border-radius:16px;background:#102019;color:#f1f6f2;overflow:auto;z-index:2147483000;font:16px/1.4 system-ui,sans-serif}
.afw-camera-modal::backdrop{background:rgba(0,0,0,.85)}
.afw-camera-modal h2{font-size:20px;margin:0 0 10px}
.afw-camera-modal video{display:block;width:100%;max-height:58vh;max-height:58dvh;background:#000;border-radius:10px;object-fit:contain}
.afw-camera-modal video[hidden]{display:none}
.afw-camera-modal p{margin:10px 0}
.afw-camera-modal .afw-camera-cancel{background:transparent;color:#fff;border-color:#526459}
@media(max-width:370px){.afw .afw-photo-buttons .afw-camera-direct{font-size:13px;padding:9px 7px;gap:6px}.afw-camera-modal{padding:12px}.afw-camera-actions button:not(:first-child){flex:1 1 auto}}

.afw-task-capture [hidden]{display:none!important}
.afw-camera-count{margin:0;font-size:13px;line-height:1.45;color:var(--hotel-text,#f1f6f2)}
.afw-camera-target{display:grid;gap:5px;margin:8px 0;font-size:15px;min-width:0}
.afw-camera-target select{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:48px;padding:8px;background:var(--input-bg,#17251d);color:var(--hotel-text,#f1f6f2);border:1px solid var(--line,#42604c);border-radius:8px;font:inherit}
.afw-camera-target small{font-size:13px;line-height:1.45}
.afw-camera-preview-actions{flex-wrap:wrap}
.afw-camera-preview-actions button{white-space:normal;overflow-wrap:anywhere}
.afw-camera-form [data-work-camera-save]:disabled{opacity:.6}

.afw .afw-camera-recheck{min-height:44px;white-space:normal;padding:9px 12px;border:1px solid var(--line,#42604c);border-radius:8px;background:transparent;color:inherit;font:inherit}
/* Keep the saved picture and its removal control usable on small phones. */
.afw-camera-saved{flex-wrap:wrap}
.afw-camera-saved>span{flex:1;min-width:100px}
.afw .afw-camera-saved [data-work-photo-delete]{width:auto;min-width:100px;min-height:44px;margin:0;padding:10px 12px;font-size:14px;flex:none}
.afw [data-work-photo-delete][hidden]{display:none!important}
.afw-modal [data-work-photo-row]>.afw-photo-delete{min-height:44px}
