.qn-photos{max-width:860px;margin:auto}.qn-photos h2{font-size:28px;letter-spacing:-.7px;margin:8px 0}.qn-photos .hint{line-height:1.5}.qn-photo-actions{display:flex;gap:10px;margin:20px 0;flex-wrap:wrap}.qn-photo-actions .btn-primary{flex:1}.qn-photo-tabs{display:flex;gap:8px;overflow:auto;padding:3px 0 8px;margin:12px 0 20px}.qn-photo-tabs button{white-space:nowrap;border:1px solid #e4ded6;border-radius:12px;background:#fff;color:#647182;padding:11px 15px;font:inherit;font-size:13px;font-weight:700}.qn-photo-tabs button[aria-pressed=true]{background:#fff0dc;color:#a85c11;border-color:#dca15f}.qn-photo-stage{margin:25px 0}.qn-photo-stage h3{display:flex;align-items:center;gap:8px;font-size:18px}.qn-photo-stage h3:before{content:'';width:8px;height:8px;border-radius:50%;background:#ad773e}.qn-photo-stage[data-stage=progress] h3:before{background:#d17b1b}.qn-photo-stage[data-stage=after] h3:before{background:#438565}.qn-photo-grid-new{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.qn-photo-tile{padding:0;border:1px solid #e7e0d6;border-radius:15px;overflow:hidden;background:white;text-align:left;cursor:pointer;color:#202834;font:inherit;min-width:0}.qn-photo-tile canvas,.qn-photo-tile img{display:block;width:100%;height:160px;object-fit:cover;background:#f0ebe2}.qn-photo-tile .qn-photo-placeholder{height:160px;display:grid;place-items:center;color:#a89272;background:#f3eee6}.qn-photo-tile-copy{display:block;padding:12px}.qn-photo-tile-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.4;overflow-wrap:anywhere}.qn-photo-tile-copy small{display:block;color:#7d8793;font-size:11px;margin-top:6px}.qn-photo-job{display:block;width:100%;padding:18px;border:1px solid #e7e0d6;border-radius:15px;background:white;text-align:left;margin:12px 0;color:inherit;font:inherit;cursor:pointer}.qn-photo-job strong{display:block;font-size:16px;margin-bottom:7px}.qn-photo-job small{color:#75808d;line-height:1.6}.qn-photo-form label,.qn-photo-editor label{display:block;margin:14px 0 6px;font-weight:650}.qn-photo-form textarea,.qn-photo-form select,.qn-photo-editor textarea,.qn-photo-editor select,.qn-photo-editor input[type=text]{width:100%;font:inherit;padding:12px;border:1px solid #ded8cf;border-radius:11px;margin-top:6px}.qn-photo-form .btn-row{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.qn-photo-form [hidden]{display:none!important}.qn-photo-tools{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.qn-photo-tools button{min-height:44px;padding:10px 12px;border:1px solid #ded8cf;border-radius:10px;background:white;color:#445163;font:inherit;font-size:13px;font-weight:700}.qn-photo-tools button[aria-pressed=true]{background:#fff0dc;border-color:#dca15f;color:#a85c11}.qn-photo-tools [data-color]{min-width:40px;padding:6px}.qn-photo-tools [data-color] i{width:19px;height:19px;display:block;border-radius:50%;border:1px solid #666;margin:auto}.qn-photo-editor canvas{display:block;width:100%;height:auto;max-height:none;border-radius:12px;touch-action:none;background:#f1ede7}.qn-photo-editor .qn-photo-edit-actions{display:flex;gap:9px;position:sticky;bottom:-1px;background:#fffaf4;padding:12px 0;z-index:2;border-top:1px solid #e6ded2;margin-top:16px}.qn-photo-edit-actions .btn-primary{flex:1}.qn-photo-editor [data-photo-text][hidden]{display:none!important}.qn-photo-error{font-size:13px;color:#9c471b;line-height:1.5;min-height:20px}.qn-photo-note{font-size:12px;color:#76818e;line-height:1.6}.qn-photo-check{display:flex!important;gap:9px;align-items:center;font-size:14px}.qn-photo-check input{width:18px;height:18px}.qn-photo-summary{margin:20px 0}.qn-photo-summary textarea{width:100%;min-height:85px;border:1px solid #e2d9cb;border-radius:12px;font:inherit;padding:12px}.qn-photo-empty{border:1px dashed #ddcbb1;border-radius:15px;padding:25px;text-align:center;color:#7a746b;background:#fffaf3}.modal:has(.qn-photo-editor){max-width:900px!important}.qn-photo-marked{color:#b46816!important;font-weight:700}.qn-photo-group-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.qn-photo-group-actions button{font-size:12px!important;padding:8px 12px!important}.qn-photos [role=status]{min-height:18px;font-size:13px;color:#7b6850}.qn-photo-menu a{display:block}.qn-photo-form .qn-photo-file-summary{padding:12px;background:#fff6e9;border-radius:10px;font-size:13px}@media(max-width:600px){.qn-photo-grid-new{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.qn-photo-tile canvas,.qn-photo-tile img,.qn-photo-tile .qn-photo-placeholder{height:140px}.qn-photo-tile-copy{padding:10px}.qn-photo-actions .btn{width:100%}.qn-photo-tools button{flex:1 0 auto}.qn-photo-editor .qn-photo-tools button[data-color]{flex:0 0 40px}.qn-photo-tabs button{padding:11px 12px;font-size:12px}.qn-photo-editor textarea{min-height:90px}}
/* Keep photo actions compact and independent of global modal button sizing. */
.qn-photo-editor .qn-photo-edit-actions{justify-content:flex-end;align-items:center;flex-wrap:nowrap;padding:8px 0;gap:8px}
.qn-photo-editor .qn-photo-edit-actions>.btn{box-sizing:border-box;flex:0 0 auto!important;width:auto!important;min-width:88px!important;min-height:44px!important;height:44px!important;margin:0!important;padding:10px 16px!important;font-size:14px!important;line-height:20px!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;border-radius:10px}
.qn-photo-upload-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:8px 0;margin-top:12px}
.qn-photo-form .qn-photo-upload-actions>.btn{box-sizing:border-box;flex:0 0 auto!important;width:auto!important;min-width:88px!important;min-height:44px!important;height:44px!important;margin:0!important;padding:10px 16px!important;font-size:14px!important;line-height:20px!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
.qn-photo-selected{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}.qn-photo-selected:empty{display:none}.qn-photo-selected-item{position:relative;min-width:0;border:1px solid #e7e0d6;border-radius:10px;overflow:hidden;background:#fff}.qn-photo-selected-item img{display:block;width:100%;height:86px;object-fit:cover}.qn-photo-selected-item span{display:block;padding:6px;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qn-photo-selected-item button{position:absolute;top:3px;right:3px;min-width:32px;min-height:32px;border:1px solid #ddd;border-radius:50%;background:#fff;color:#202834;font-size:20px;line-height:1;padding:0}

/* Viewing never attaches drawing handlers or blocks touch scrolling. */
.modal:has(.qn-photo-viewer){max-width:900px!important}
.qn-photo-viewer [data-view-photo]{display:block;width:100%;height:auto;border-radius:12px;touch-action:pan-x pan-y pinch-zoom;user-select:none;-webkit-user-drag:none}
.qn-photo-view-actions{display:flex;justify-content:flex-end;gap:8px;position:sticky;top:-1px;background:#fff;padding:10px 0;z-index:3}
.qn-photo-view-actions>.btn{flex:0 0 auto!important;width:auto!important;min-width:88px!important;min-height:44px!important;padding:10px 16px!important;white-space:nowrap!important}
.qn-photo-view-caption{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.qn-photo-sort-controls{display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,2fr);align-items:end;gap:14px;background:#fffaf2;border:1px solid #eadcca;border-radius:16px;padding:16px;margin:12px 0}
.qn-photo-sort-controls label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:650;color:#67533f;min-width:0}
.qn-photo-sort-controls select,.qn-photo-sort-controls input{box-sizing:border-box;width:100%;min-width:0;min-height:46px;border:1px solid #daccb9;border-radius:10px;background:white;color:#342a20;font:inherit;font-size:16px;padding:10px}
.qn-photo-date-range{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;border:0;padding:0;margin:0;min-width:0}
.qn-photo-date-range legend{font-size:12px;color:#78664f;padding:0 0 7px}
.qn-photo-sort-controls>[data-clear-photo-dates]{width:auto;justify-self:start;grid-column:1/-1;min-height:44px;background:#fff;color:#8f531d;border-color:#e2cfb5;font-size:13px}
.qn-photo-tile .qn-photo-stage-label{display:inline-block;align-self:flex-start;font-size:11px;font-weight:700;background:#fff0db;color:#8c591f;border-radius:6px;padding:3px 7px;margin-bottom:6px}
.qn-photo-tile .qn-photo-stage-label[data-stage=before]{background:#edf1f8;color:#556783}
.qn-photo-tile .qn-photo-stage-label[data-stage=after]{background:#ebf5ed;color:#43724f}
@media(max-width:600px){.qn-photo-sort-controls{grid-template-columns:minmax(0,1fr);padding:14px;gap:12px}.qn-photo-date-range{gap:10px}.qn-photo-stage .qn-photo-group-actions h3{font-size:17px}}

.qn-photo-selected{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.qn-photo-selected-item img{height:160px}.qn-photo-selected-description{display:block!important;padding:10px!important;font-size:14px;font-weight:650}.qn-photo-selected-description textarea{display:block;width:100%;box-sizing:border-box;min-height:90px;margin-top:7px;font:inherit;font-size:16px;font-weight:400;resize:vertical}.qn-photo-selected-description textarea:disabled{background:#f4f5f4;color:#52605a}@media(max-width:480px){.qn-photo-selected{grid-template-columns:1fr}.qn-photo-selected-item img{height:190px}}
