/* R29 · GeoCauce photo workspace and georeferenced batch import */
.gc-work-modal,.gc-gallery-modal{position:fixed;inset:0;z-index:2147483637;display:grid;place-items:center;padding:16px;box-sizing:border-box;font-family:inherit;color:#21332a}
.gc-work-modal.hidden,.gc-gallery-modal.hidden{display:none!important}
.gc-work-backdrop,.gc-gallery-shade{position:absolute;inset:0;background:rgba(17,28,23,.62)}
.gc-work-card,.gc-gallery-card{position:relative;z-index:1;box-sizing:border-box;width:min(1480px,100%);height:min(94dvh,980px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #d6d4cc;border-radius:20px;background:#f8f7f2;box-shadow:0 24px 85px #0a160d66}
.gc-work-head,.gc-gallery-card>header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px 13px;gap:16px}
.gc-work-head>div,.gc-preview-head>div{display:flex;flex-direction:column;gap:4px}
.gc-work-head strong{font-size:24px;font-weight:750}
.gc-work-head small,.gc-preview-head small,.gc-gallery-card>header small{font-size:13px;color:#69716d}
.gc-work-head button,.gc-gallery-card button{cursor:pointer}
#gcImportClose,#gcGalleryClose{min-width:40px;min-height:40px;border:0;border-radius:12px;background:#efeee8;color:#35453c;font-size:21px}
.gc-work-tabs{display:flex;margin:0 22px 14px;background:#eceae2;border:1px solid #dedcd3;border-radius:14px;padding:4px;gap:3px}
.gc-work-tabs button{flex:1;border:0;border-radius:10px;padding:12px;color:#283d32;background:transparent;font-size:15px;font-weight:700;min-height:44px;cursor:pointer}
.gc-work-tabs button.active{background:#365e44;color:white}
.gc-work-grid{display:grid;grid-template-columns:minmax(270px,.92fr) minmax(360px,1.08fr);gap:12px;padding:0 16px 16px;min-height:0;flex:1}
.gc-work-left,.gc-work-right{background:#fbfaf7;border:1px solid #dfded6;border-radius:15px;min-height:0;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:14px}
.gc-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;flex:0 0 auto;min-height:175px;border:2px dashed #c7c6b8;border-radius:14px;background:#f7f6f0;cursor:pointer;text-align:center;padding:20px}
.gc-drop.gc-over{border-color:#365e44;background:#edf1e9}
.gc-drop>span:first-child{font-size:36px}.gc-drop>b{font-size:18px}.gc-drop small{font-size:13px;color:#70766f}
.gc-drop .gc-pick,.gc-primary{display:inline-flex;align-items:center;justify-content:center;background:#365d43;color:#fff;padding:13px 23px;border:1px solid #2e543a;border-radius:11px;font-weight:700;font-size:14px;min-height:43px}
.gc-settings{background:#f0eee7;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:11px}
.gc-settings h3{font-size:16px;margin:0 0 4px}
.gc-settings label{display:flex;flex-direction:column;gap:5px;font-size:13px}
.gc-settings input:not([type=checkbox]),.gc-settings select{border:1px solid #cdcec6;padding:11px 12px;min-height:41px;border-radius:9px;background:#fff;color:#22382b;font:inherit;width:100%;box-sizing:border-box}
.gc-settings .gc-check{display:flex;flex-direction:row;align-items:center;gap:8px;min-height:25px}
.gc-check input{accent-color:#355d44;width:18px;height:18px;margin:0}
.gc-settings .hidden,.gc-import-progress.hidden{display:none!important}
.gc-work-actions{margin-top:auto;display:flex;flex-direction:column;gap:9px}
.gc-primary{border:0;cursor:pointer;width:100%}
.gc-primary:disabled,.gc-work-actions button:disabled{opacity:.5;cursor:not-allowed}
.gc-work-actions p{font-size:13px;color:#526254;line-height:1.45;min-height:18px;margin:0}
.gc-import-progress>div{display:flex;justify-content:space-between;font-size:12px;margin:7px 0}
.gc-import-progress progress{width:100%;height:10px;accent-color:#345f45}
.gc-work-right{padding:13px;overflow:hidden}
.gc-preview-head,.gc-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.gc-preview-head>b,.gc-preview-head>div>b{font-size:17px}
#gcCountLabel{border-radius:999px;background:#dfe8d9;padding:8px 12px;font-size:12px;white-space:nowrap}
.gc-map-box{position:relative;flex:1 1 45%;min-height:220px;overflow:hidden;border-radius:13px;background:#e8e7d9}
#gcPreviewMap{width:100%;height:100%;display:block;touch-action:none;cursor:grab}
.gc-map-controls{position:absolute;left:10px;top:10px;display:flex;flex-direction:column;gap:4px}
.gc-map-controls button{width:40px;height:40px;border:1px solid #d8d6c9;background:#fafaf7;border-radius:8px;font-size:23px;cursor:pointer;color:#263d30}
#gcMapHint{position:absolute;bottom:0;left:0;right:0;margin:0;padding:8px 12px;font-size:12px;background:#f4f4efcc;color:#465348;pointer-events:none}
.gc-list-head{font-size:14px}.gc-list-head span{font-size:12px;color:#667269;text-align:right}
.gc-import-rows{flex:1 1 42%;overflow:auto;min-height:120px;background:#fff;border:1px solid #e4e4de;border-radius:11px}
.gc-import-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid #edede8;cursor:pointer;min-height:64px}
.gc-import-row.selected{background:#e8f0e8}.gc-import-row.excluded{opacity:.55}
.gc-import-thumb{width:64px;height:52px;flex:0 0 64px;display:flex;align-items:center;justify-content:center;border-radius:7px;background:#e8e8e2;overflow:hidden}
.gc-import-thumb img{width:100%;height:100%;object-fit:cover}
.gc-import-summary{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.gc-import-summary b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc-import-summary small{font-size:11px;color:#657069;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc-import-state{padding:5px 8px;border-radius:99px;font-size:11px;white-space:nowrap;background:#edece7;color:#6e6e66}
.gc-import-state.valid{background:#dfebdf;color:#31543a}.gc-import-state.duplicate,.gc-import-state.no-coordinates{background:#fbebca;color:#7b581d}.gc-import-state.error{background:#f6dcd7;color:#9a392e}
.gc-import-row button{flex:0 0 auto;width:33px;height:36px;border:0;border-radius:8px;background:transparent;color:#405044;font-size:20px;cursor:pointer}
.gc-import-row button:hover{background:#edf1eb}.gc-row-note{font-size:12px;padding:10px;color:#68736c}
.gc-gallery-card{width:min(1450px,100%);height:min(95dvh,1020px)}
.gc-gallery-card>header{border-bottom:1px solid #e1ded5}
.gc-gallery-card>header h2{margin:0;font-size:24px}
.gc-gallery-card>header>div{display:flex;align-items:center;gap:12px}
.gc-gallery-card>header>div:first-child{align-items:flex-start;flex-direction:column;gap:4px}
#gcGalleryImport{background:#365d43;color:white;border:0;border-radius:10px;padding:10px 14px;min-height:40px}
.gc-gallery-body{display:grid;grid-template-columns:minmax(260px,.77fr) minmax(300px,1.23fr);gap:12px;padding:15px;min-height:0;flex:1}
.gc-gallery-body>aside,#gcGalleryDetails{background:#fbfaf7;border:1px solid #dddcd6;border-radius:12px;overflow:auto;min-height:0;padding:13px}
.gc-gallery-body>aside{display:flex;flex-direction:column;gap:12px}
.gc-gallery-filters{display:flex;gap:7px}.gc-gallery-filters input{flex:1;min-width:0}.gc-gallery-filters input,.gc-gallery-filters select{padding:9px;border:1px solid #cdd0c8;border-radius:8px}
.gc-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:8px;overflow:auto;flex:1;align-content:start}
.gc-gallery-tile{border:2px solid transparent;border-radius:9px;overflow:hidden;background:#eff0eb;padding:0;display:flex;flex-direction:column}
.gc-gallery-tile.active{border-color:#365d43}.gc-gallery-tile img{width:100%;aspect-ratio:1.25;object-fit:cover}.gc-gallery-tile span{padding:5px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;box-sizing:border-box}
.gc-gallery-body footer{display:flex;justify-content:center;align-items:center;gap:15px}.gc-gallery-body footer button{padding:6px 12px;border-radius:8px;border:1px solid #d5d8d0;background:#fff}
#gcGalleryDetails{display:flex;flex-direction:column;gap:12px}
.gc-detail-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.gc-detail-head h3{font-size:17px;margin:0}
#gcDetailFullscreen{border:1px solid #d4d8d0;background:#fff;padding:8px;border-radius:8px;white-space:nowrap}
.gc-gallery-big{max-width:100%;width:100%;max-height:38vh;object-fit:contain;background:#202922;border-radius:11px;cursor:zoom-in}
.gc-gallery-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gc-gallery-form label{font-size:12px;display:flex;flex-direction:column;gap:5px}
.gc-gallery-form label:nth-child(4),.gc-detail-coords,.gc-gallery-form>button,.gc-gallery-form>p{grid-column:1/-1}
.gc-gallery-form input,.gc-gallery-form select,.gc-gallery-form textarea{padding:10px;border:1px solid #d0d2cb;border-radius:8px;font:inherit;box-sizing:border-box;width:100%;background:#fff}
.gc-detail-coords{display:flex;gap:10px}.gc-detail-coords label{flex:1;min-width:0}
@media(max-width:850px){
 .gc-work-modal,.gc-gallery-modal{padding:0}
 .gc-work-card,.gc-gallery-card{width:100vw;height:100dvh;border-radius:0;border:0}
 .gc-work-head,.gc-gallery-card>header{padding:11px 13px}
 .gc-work-head strong{font-size:20px}
 .gc-work-tabs{margin:0 10px 10px}
 .gc-work-grid{grid-template-columns:1fr;overflow:auto;padding:0 10px 10px;gap:10px}
 .gc-work-left,.gc-work-right{overflow:visible}
 .gc-map-box{min-height:270px;flex:0 0 270px}
 .gc-import-rows{min-height:250px;max-height:42vh}
 .gc-work-left .gc-drop{min-height:130px}
 .gc-gallery-body{grid-template-columns:1fr;overflow:auto}
 .gc-gallery-body>aside{max-height:38vh}
 .gc-gallery-big{max-height:32vh}
}
@media(max-width:480px){.gc-work-right,.gc-work-left{padding:10px}.gc-import-thumb{width:52px;flex-basis:52px}.gc-import-state{font-size:10px;padding:4px 6px}.gc-import-row{gap:5px;padding:7px 5px}.gc-import-row button{width:26px}.gc-work-head small{font-size:11px}}

/* R29 · document metadata and visual comparisons */
.gc-field-positions{width:100%;min-height:39px;border:1px solid #b5c7b2;border-radius:9px;color:#34533c;background:#e4ebde;font-size:12px;font-weight:700;cursor:pointer;padding:9px 10px}
.gc-field-positions.hidden{display:none!important}
.gc-detail-section{display:block;font-size:14px;color:#2d533a;font-weight:750;margin:6px 0}
.gc-detail-map-section{display:flex;flex-direction:column;gap:8px;background:#f0f1eb;padding:11px;border-radius:12px}
#gcDetailPhotoMap{height:220px;width:100%;display:block;border:1px solid #d1d6cc;border-radius:10px;background:#e4e9df}
.gc-detail-orientation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;align-items:center}
.gc-detail-orientation label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#465749}
.gc-detail-orientation label input[type=number]{padding:9px 7px;border:1px solid #cdd1c6;border-radius:8px;width:100%;box-sizing:border-box}
.gc-detail-orientation .gc-detail-show{flex-direction:row;align-items:center;grid-column:1/-1;margin-top:2px}
.gc-gallery-form .gc-detail-full{grid-column:1/-1}
.gc-gallery-form button:not(.gc-primary){border:1px solid #c5d0c4;background:#ecf0e8;padding:10px;border-radius:9px;color:#31563c;cursor:pointer}
.gc-gallery-form>button{grid-column:1/-1;min-height:41px}
.gc-gallery-form>p{font-size:12px;color:#315b42;min-height:16px;margin:0}
.gc-photo-timeline{display:flex;flex-wrap:nowrap;gap:9px;overflow-x:auto;padding:3px 0 9px;scrollbar-gutter:stable}
.gc-time-thumb{flex:0 0 92px;min-width:92px;border:1px solid #cfd6cf;border-radius:8px;overflow:hidden;padding:0;background:#eff0eb;color:#32483a;cursor:pointer}
.gc-time-thumb img{width:92px;height:70px;object-fit:cover;display:block}
.gc-time-thumb small{display:block;font-size:10px;padding:3px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.gc-compare-modal{position:fixed;inset:0;z-index:2147483644;background:rgba(4,11,9,.94);display:grid;place-items:center;padding:16px;box-sizing:border-box}
.gc-compare-card{box-sizing:border-box;width:min(1300px,100%);height:min(92dvh,920px);background:#f6f5f0;border-radius:17px;display:flex;flex-direction:column;overflow:hidden;gap:12px;padding:15px}
.gc-compare-card header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.gc-compare-card header>div{display:flex;flex-direction:column;gap:3px;color:#1e3529}
.gc-compare-card header b{font-size:19px}
.gc-compare-card header small{font-size:12px;color:#616d62}
#gcCompareClose{border:0;border-radius:10px;background:#e2e5df;min-height:40px;min-width:42px;font-size:20px;cursor:pointer}
.gc-compare-tools{display:flex;gap:12px;flex-wrap:wrap;align-items:end}
.gc-compare-tools label{display:flex;flex-direction:column;gap:4px;font-size:12px}
.gc-compare-tools input,.gc-compare-tools select{min-height:34px;border-radius:7px;border:1px solid #bcc9bc;padding:5px;background:#fff}
.gc-compare-images{position:relative;min-height:0;flex:1;background:#1c2620;overflow:hidden;border-radius:11px;display:flex;align-items:center;justify-content:center}
#gcCompareOriginal{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#gcCompareSecond{position:absolute;inset:0;overflow:hidden}
#gcCompareReference{width:100%;height:100%;object-fit:contain;transform-origin:center center}
#gcCompareLine{position:absolute;top:0;bottom:0;border-left:3px solid #fff;filter:drop-shadow(0 0 4px #0008);pointer-events:none}
.gc-compare-images:has(+ .gc-compare-note) {touch-action:pan-x}
.gc-compare-modal[data-mode=opacity] #gcCompareLine,.gc-compare-modal[data-mode=parallel] #gcCompareLine{display:none}
.gc-compare-modal[data-mode=parallel] #gcCompareOriginal{left:0;right:auto;width:50%}
.gc-compare-modal[data-mode=parallel] #gcCompareSecond{left:50%;right:0;width:50%}
.gc-compare-modal[data-mode=parallel] #gcCompareReference{object-fit:contain}
.gc-compare-note{font-size:12px;color:#526355;text-align:center}
@media(max-width:650px){
 .gc-compare-modal{padding:0}
 .gc-compare-card{width:100%;height:100dvh;border-radius:0;padding:10px}
 .gc-compare-tools{gap:7px}
 .gc-compare-tools label{flex:1 1 42%}
 .gc-detail-orientation{grid-template-columns:repeat(3,minmax(0,1fr))}
 .gc-gallery-form{grid-template-columns:1fr 1fr}
}

.gc-row-pagination{display:flex;align-items:center;justify-content:center;gap:10px;padding:11px;border-top:1px solid #e3e6dd;background:#f2f4ee;position:sticky;bottom:0}
.gc-row-pagination span{font-size:12px;color:#526558}
.gc-row-pagination button{border:1px solid #bcccbc;border-radius:9px;background:#fff;padding:7px 12px;min-height:38px;color:#304d38;cursor:pointer}
.gc-row-pagination button:disabled{opacity:.4;cursor:default}

.gc-retry-failed{padding:9px 13px;min-height:40px;border:1px solid #d4a75e;border-radius:9px;background:#fbefd9;color:#72511a;font-weight:650;cursor:pointer}
.gc-retry-failed.hidden{display:none!important}
.gc-retry-failed:disabled{opacity:.55;cursor:not-allowed}

.gc-detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
#gcDetailMove{border:1px solid #abc3aa;background:#e5efe2;color:#325c3c;padding:9px 12px;border-radius:9px;min-height:44px;font-weight:700;cursor:pointer}
#gcDetailMove:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:600px){.gc-detail-head{flex-direction:column;align-items:stretch}.gc-detail-actions>button{flex:1}.gc-detail-actions{width:100%}}

/* Manual point editor within Importar elementos (r35) */
.gc-manual-entry{margin:12px 0;padding:14px;background:#f0efe8;border:1px solid #dfded2;border-radius:14px}
.gc-manual-head{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.gc-manual-head small{color:#67756d}
.gc-manual-form{display:grid;gap:12px;margin-top:14px}
.gc-manual-form.hidden{display:none}
.gc-manual-form>strong{color:#203a2d;font-size:17px}
.gc-manual-form label{display:grid;gap:5px;font-weight:600;color:#334539;font-size:13px}
.gc-manual-form input{width:100%;min-width:0;box-sizing:border-box;border:1px solid #cdd3c8;border-radius:9px;background:#fff;padding:12px;font:inherit;color:#23372b}
.gc-manual-form input:focus{outline:2px solid #42735a;outline-offset:1px}
.gc-manual-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.gc-manual-buttons{display:flex;gap:8px;flex-wrap:wrap}
.gc-manual-buttons button{border:1px solid #bfcabd;border-radius:9px;padding:11px 14px;cursor:pointer;font:inherit}
.gc-manual-buttons .gc-primary{background:#315c43;color:#fff;border-color:#315c43;width:auto}
.gc-manual-error{color:#a82e35!important}
@media(max-width:620px){.gc-manual-fields{grid-template-columns:1fr}}
