.photo-sheet-modal{max-width:1120px}.sheet-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(290px,.8fr);gap:24px}.sheet-preview-column,.sheet-options-column{min-width:0;display:flex;flex-direction:column;gap:16px}.sheet-capture-actions,.sheet-move-controls{display:flex;gap:8px;flex-wrap:wrap}.sheet-capture-actions>.btn{flex:1;min-width:115px}.sheet-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:240px;background:#000000;border:1px solid var(--line);border-radius:16px;overflow:hidden;padding:10px}.sheet-stage canvas{display:block;max-width:100%;max-height:52dvh;width:auto;height:auto;touch-action:none;border-radius:4px}.sheet-empty{color:#ffffff;text-align:center;padding:38px 24px;max-width:370px}.sheet-empty strong{font-size:24px;line-height:1.2}.sheet-empty p{font-size:15px;color:#bfbfbf;margin-top:12px}.sheet-status{font-size:13px;color:var(--muted);margin:0}.sheet-thumbnails{display:flex;gap:8px;overflow-x:auto;padding:3px}.sheet-thumb{position:relative;flex:0 0 76px;height:70px;border:2px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface);padding:0;color:var(--text)}.sheet-thumb img{width:100%;height:100%;object-fit:cover}.sheet-thumb span{position:absolute;bottom:3px;left:4px;background:#000000;color:white;min-width:22px;border-radius:6px;padding:2px;font-size:12px}.sheet-thumb.is-selected{border-color:var(--lime)}.sheet-selected-controls{display:grid;gap:12px;padding:16px;background:var(--surface-2);border:1px solid var(--line);border-radius:14px}.sheet-selected-controls h3{font-size:17px;margin:0}.sheet-selected-controls input[type=range],.sheet-style input[type=range]{width:100%;min-height:40px;padding:0}.sheet-style input[type=color]{width:100%;height:46px;min-width:0;padding:5px}.sheet-project-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.sheet-project-photo{padding:0;overflow:hidden;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:12px;text-align:left}.sheet-project-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.sheet-project-photo span{display:block;padding:10px;font-size:14px}.sheet-project-photo.is-selected{border-color:var(--lime);opacity:.6}.photo-sheet-modal input,.photo-sheet-modal select{min-width:0}.photo-sheet-modal [hidden]{display:none!important}
@media(max-width:760px){.sheet-layout{display:flex;flex-direction:column;gap:20px}.sheet-capture-actions>.btn{min-width:0;padding:10px 8px;font-size:14px;flex-direction:column;gap:4px}.sheet-capture-actions>.btn>span{width:100%;text-align:center;overflow-wrap:normal}.sheet-capture-actions>.btn,.photo-sheet-modal .modal-footer .btn{white-space:normal}.sheet-capture-actions>.btn>span,.photo-sheet-modal .modal-footer .btn>span{min-width:0;overflow-wrap:anywhere}.sheet-stage{min-height:180px;padding:8px}.sheet-stage canvas{max-height:42dvh}.sheet-selected-controls{padding:12px}.sheet-move-controls .btn{flex:1 1 40%;justify-content:center}.photo-sheet-modal .modal-footer .btn{flex:1;min-width:0}.sheet-options-column .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-options-column .field label{font-size:14px}.sheet-capture-actions>.btn>span{overflow-wrap:normal}}
.digisite-photo-picker-modal{max-width:1060px}.digisite-photo-picker{display:grid;gap:16px;min-width:0}.digisite-photo-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}.digisite-photo-filters>input{grid-column:1/-1}.digisite-photo-filters input,.digisite-photo-filters select{width:100%;min-width:0;min-height:48px}.digisite-photo-filters .field{margin:0;min-width:0}.digisite-photo-notice{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:14px;line-height:1.5;color:var(--muted)}.digisite-photo-count{margin:0;font-size:14px;color:var(--muted)}.digisite-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}.digisite-photo-tile{position:relative;display:flex;flex-direction:column;min-width:0;padding:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;text-align:left;color:var(--text);background:var(--surface);cursor:pointer}.digisite-photo-tile:focus-visible{outline:3px solid var(--lime);outline-offset:3px}.digisite-photo-image{position:relative;display:block;aspect-ratio:4/3;width:100%;background:var(--surface-2);overflow:hidden}.digisite-photo-image img{display:block;width:100%;height:100%;object-fit:cover}.digisite-photo-order{position:absolute;top:8px;right:8px;display:grid;place-items:center;min-height:30px;min-width:30px;padding:5px 9px;border-radius:8px;background:#000;color:#fff;font-size:12px;font-weight:700}.digisite-photo-tile.is-selected{border-color:var(--lime);box-shadow:0 0 0 2px var(--lime)}.digisite-photo-tile.is-selected .digisite-photo-order{background:var(--lime);color:#000}.digisite-photo-tile:disabled:not(.is-selected){opacity:.55;cursor:default}.digisite-photo-description{display:grid;gap:6px;padding:12px;width:100%;min-width:0;box-sizing:border-box}.digisite-photo-description strong{font-size:15px;line-height:1.3;overflow-wrap:anywhere}.digisite-photo-description small{font-size:12px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}.digisite-photo-pages{display:flex;gap:10px;flex-wrap:wrap}.digisite-photo-empty{grid-column:1/-1;display:grid;justify-items:center;text-align:center;gap:10px;padding:30px 15px;color:var(--muted)}.digisite-photo-empty strong{color:var(--text)}.digisite-photo-empty p{margin:0}.digisite-photo-picker-modal .modal-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.digisite-photo-selection-count{margin-right:auto;color:var(--muted);font-size:14px}.digisite-photo-picker-modal .modal-footer>.btn{min-height:48px}.digisite-photo-picker .form-error:empty{display:none}
@media(max-width:560px){.digisite-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.digisite-photo-filters{gap:10px}.digisite-photo-description{padding:10px}.digisite-photo-picker-modal .modal-footer .digisite-photo-selection-count{flex-basis:100%;margin:0}.digisite-photo-picker-modal .modal-footer>.btn{flex:1;min-width:0;white-space:normal}.digisite-photo-picker-modal .modal-footer>.btn>span{min-width:0;overflow-wrap:anywhere}}
