.sgc-block{margin:12px 0 22px;padding:12px 0;border:0;border-radius:0}.sgc-date{font-size:12px;font-weight:600;margin-bottom:9px}.sgc-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%}.sgc-actions button,.sgc-dialog button[type=submit]{border:0;border-radius:4px;background:#e6b400;color:#181818;font-weight:600;padding:10px 14px;cursor:pointer}.sgc-actions button:disabled{opacity:.5;cursor:not-allowed}.sgc-status,.sgc-result{font-size:12px;margin:6px 0}.sgc-photos h4{margin:12px 0 7px;font-size:14px}.sgc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.sgc-grid img{width:100%;height:110px;object-fit:cover;border-radius:3px}.sgc-modal[hidden]{display:none!important}.sgc-modal{position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:999999;display:flex;align-items:center;justify-content:center;padding:15px;overflow:auto}.sgc-dialog{background:#fff;color:#222;border-radius:8px;padding:22px;max-width:530px;width:100%;max-height:92vh;overflow:auto;position:relative}.sgc-dialog h3{margin:0 30px 10px 0}.sgc-dialog label:not(.sgc-choice){display:block;font-weight:600;margin:12px 0}.sgc-dialog textarea,.sgc-dialog input:not([type=file]){box-sizing:border-box;display:block;width:100%;padding:10px;margin-top:5px;border:1px solid #aaa;border-radius:4px;background:#fff;color:#222}.sgc-dialog .sgc-close{position:absolute;right:12px;top:9px;border:0;background:none;color:inherit;font-size:28px;cursor:pointer}.sgc-choices{display:flex;gap:9px}.sgc-choice{flex:1;text-align:center;cursor:pointer;padding:15px 5px;border:1px solid #aaa;border-radius:5px;font-weight:600}.sgc-picked{font-size:12px;margin:8px 0}.sgc-honey{position:absolute!important;left:-9999px!important}.sgc-lock{overflow:hidden}@media(max-width:520px){.sgc-actions button{flex:1;font-size:12px;padding:10px 6px}.sgc-grid img{height:80px}}@media(prefers-color-scheme:dark){body .sgc-block{border:0}body .sgc-dialog{background:#242424;color:#f5f5f5}body .sgc-dialog textarea,body .sgc-dialog input:not([type=file]){background:#333;color:#fff;border-color:#777}}

.sgc-actions button{width:100%;min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box}.sgc-icon{display:inline-block;flex-shrink:0;vertical-align:middle}.sgc-date .sgc-icon{margin-right:4px}.sgc-choice{display:flex;align-items:center;justify-content:center;gap:7px}.sgc-actions button,.sgc-choice{line-height:1.4}

.sgc-status.sgc-success,.sgc-result.sgc-success{color:#16803c;font-weight:600}.sgc-status.sgc-error,.sgc-result.sgc-error{color:#cf3030;font-weight:600}.sgc-status.sgc-success,.sgc-status.sgc-error,.sgc-result.sgc-success,.sgc-result.sgc-error{display:flex;align-items:center;gap:6px}.sgc-status .sgc-icon,.sgc-result .sgc-icon{flex:none}

/* Match the Map / NOTAM / Sun action buttons. */
.sgc-actions button,.sgc-actions button:hover,.sgc-actions button:focus,.sgc-actions button:active{height:46px!important;min-height:46px!important;padding:10px!important;gap:7px!important;border:0!important;border-radius:13px!important;background:#f2c900!important;color:#111!important;box-shadow:0 3px 12px rgba(0,0,0,.22)!important;transform:none!important;filter:none!important;opacity:1!important;transition:none!important;font-size:15px!important;font-weight:700!important;line-height:1!important;}
.sgc-actions button:disabled{cursor:not-allowed!important;opacity:.65!important}
.sgc-actions button .sgc-icon{width:23px;height:23px;stroke-width:1.8}
@media(max-width:520px){.sgc-actions button{font-size:12px!important;padding:7px 4px!important}.sgc-actions button .sgc-icon{width:20px;height:20px}}

/* v0.2.1: four-across community gallery, separate soft-grey background */
.sgc-photos:not(:empty){background:#f5f5f5;padding:15px;margin-top:12px;box-sizing:border-box}
.sgc-photos h4{display:flex;align-items:center;gap:8px;margin:0 0 12px!important;font-size:14px!important;font-weight:700!important;line-height:1.4;color:#666!important}
.sgc-photos h4 .sgc-icon{width:19px;height:19px;stroke-width:1.8;flex:none}
.sgc-photos .sgc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.sgc-photos .sgc-grid a{display:block;aspect-ratio:4/3;min-width:0;overflow:hidden}
.sgc-photos .sgc-grid img{display:block;width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;border-radius:2px}
@media(max-width:800px){.sgc-photos .sgc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-color-scheme:dark){.sgc-photos:not(:empty){background:#292929}.sgc-photos h4{color:#aaa!important}}
body.dark .sgc-photos:not(:empty),body.dark-mode .sgc-photos:not(:empty){background:#292929}
body.dark .sgc-photos h4,body.dark-mode .sgc-photos h4{color:#aaa!important}

/* v0.2.2 - community panel and matching date line */
.sgc-block{background:#e9e9e9;border-radius:3px;padding:15px;margin:12px 0 22px;box-sizing:border-box}
.sgc-heading{display:flex;align-items:center;gap:8px;margin:0 0 12px!important;font-size:14px!important;font-weight:700!important;line-height:1.4;color:#666!important}
.sgc-heading .sgc-icon{width:19px;height:19px;stroke-width:1.8}
.sgc-photos:not(:empty){background:transparent;padding:0;margin-top:15px}
.sgc-photos .sgc-grid a,.sgc-photos .sgc-grid img{border-radius:3px}
.sg-spot-last-updated:has(+ .sgc-heading-confirmed){display:inline!important;margin:0!important}
.sgc-heading-confirmed{display:inline!important;font-size:11px!important;font-weight:400!important;line-height:1.45!important;color:#ccc!important;text-transform:none!important;letter-spacing:normal!important;white-space:normal}
.sgc-heading-confirmed::before{content:"|";display:inline-block;margin:0 12px;color:#999}
.sg-plane2-header-title .sgc-heading-confirmed,.accordion .title .sgc-heading-confirmed{vertical-align:baseline}
@media(prefers-color-scheme:dark){body .sgc-block{background:#292929}body .sgc-photos:not(:empty){background:transparent}body .sgc-heading{color:#aaa!important}}
body.dark .sgc-block,body.dark-mode .sgc-block{background:#292929}
body.dark .sgc-photos:not(:empty),body.dark-mode .sgc-photos:not(:empty){background:transparent}
.sg-plane2-header-title>.sgc-heading-confirmed:first-child,.accordion .title>.sgc-heading-confirmed:first-child{display:block!important}

/* v0.2.3 copyright and rights confirmation */
.sgc-photos .sgc-grid .sgc-photo-item{min-width:0}
.sgc-photo-credit{font-size:11px;color:#777;margin-top:5px;line-height:1.35;overflow-wrap:anywhere}
.sgc-rights{display:flex!important;align-items:flex-start;gap:8px;font-size:12px!important;line-height:1.45}
.sgc-rights input{width:auto!important;flex:none;margin-top:3px!important}
.sgc-turnstile-holder{position:fixed;z-index:2147483647;bottom:20px;right:20px}

/* v0.2.7: four previews; full gallery via modal */
.sgc-photos .sgc-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.sgc-all-pictures{display:block;margin:12px 0 0 auto!important;padding:7px 12px!important;border:1px solid #aaa!important;background:transparent!important;color:inherit!important;border-radius:4px!important;cursor:pointer;font-size:12px!important;font-weight:600!important}
.sgc-complete[hidden],.sgc-lightbox[hidden]{display:none!important}
.sgc-complete{text-align:center;padding:35px 10px 28px}
.sgc-complete-icon svg{width:70px;height:70px;color:#208c48;stroke-width:1.5}
.sgc-complete h3{margin:15px 0 10px!important;text-align:center}
.sgc-complete p{font-size:15px;line-height:1.5;margin:0}
.sgc-gallery-dialog{max-width:1040px;width:100%;}
.sgc-all-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.sgc-gallery-photo{padding:0!important;border:0!important;background:transparent!important;display:block;width:100%;aspect-ratio:4/3;cursor:zoom-in}
.sgc-gallery-photo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:3px}
.sgc-lightbox{position:absolute;inset:0;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:40px 15px 15px;z-index:2}
.sgc-lightbox img{max-width:100%;max-height:calc(92vh - 120px);object-fit:contain}
.sgc-lightbox-close{position:absolute;top:6px;right:10px;background:transparent!important;border:0!important;font-size:30px!important;cursor:pointer}
.sgc-lightbox p{margin:8px 0;color:#777}
@media(max-width:800px){.sgc-all-grid,.sgc-photos .sgc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-color-scheme:dark){.sgc-lightbox{background:#242424}}

/* v0.2.8: persistent photo upload guidance */
.sgc-upload-hint{margin:8px 0 4px;font-size:12px;line-height:1.5;color:#666}

.sgc-confirm.sgc-already-confirmed,.sgc-confirm.sgc-already-confirmed:disabled{background:#cfcfcf!important;color:#666!important;cursor:default!important;opacity:1!important}

/* v0.2.10 – iOS Safari editing, checkbox wrapping, floating actions */
body.sgc-lock .sg-floating-actions{display:none!important;visibility:hidden!important;pointer-events:none!important}
.sgc-dialog textarea[name="note"]{
  display:block!important;box-sizing:border-box!important;width:100%!important;
  font-family:inherit!important;font-size:16px!important;font-weight:400!important;
  line-height:1.5!important;letter-spacing:normal!important;
  padding:12px!important;text-indent:0!important;text-align:left!important;
  -webkit-appearance:none;appearance:none;
}
.sgc-dialog .sgc-rights{
  display:flex!important;align-items:flex-start!important;gap:10px!important;
  font-size:12px!important;line-height:1.5!important;font-weight:600!important;
  min-width:0!important;white-space:normal!important;
}
.sgc-dialog .sgc-rights input[type="checkbox"]{
  display:block!important;position:static!important;width:16px!important;height:16px!important;
  min-width:16px!important;max-width:16px!important;flex:0 0 16px!important;
  padding:0!important;margin:2px 0 0!important;
}
.sgc-dialog .sgc-rights-copy{display:block!important;flex:1 1 0!important;min-width:0!important;
  overflow-wrap:break-word!important;word-break:normal!important;white-space:normal!important}
.sgc-dialog .sgc-rights-copy a{display:inline!important;position:static!important;float:none!important;
  margin:0!important;padding:0!important;white-space:normal!important;vertical-align:baseline!important;
  font:inherit!important;color:#c3a000!important;text-decoration:underline}

/* v0.2.11: fixed yellow header and independently scrollable content */
.sgc-modal{overflow:hidden!important;padding:12px!important;box-sizing:border-box;align-items:center!important}
.sgc-modal .sgc-dialog{display:flex!important;flex-direction:column!important;padding:0!important;overflow:hidden!important;max-height:calc(100dvh - 24px)!important;max-height:calc(100vh - 24px);position:relative!important;min-height:0!important;border-radius:8px!important}
.sgc-modal .sgc-modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;background:#f2c900;color:#111;padding:15px 20px;min-height:58px;box-sizing:border-box;z-index:5}
.sgc-modal .sgc-modal-header h3{margin:0!important;color:#111!important;font-size:24px!important;line-height:1.2!important;font-weight:700!important}
.sgc-modal .sgc-modal-header .sgc-close{position:static!important;display:flex!important;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;padding:0!important;color:#111!important;background:transparent!important;font-size:32px!important;line-height:1!important;z-index:6;cursor:pointer}
.sgc-modal .sgc-modal-body{padding:20px 22px;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:1 1 auto;min-height:0;box-sizing:border-box}
.sgc-modal .sgc-modal-body>p:first-child{margin-top:0}
.sgc-picked{margin:10px 0;font-size:12px}
.sgc-picked-heading{font-weight:600;margin-bottom:7px}
.sgc-picked-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 8px;margin:5px 0;background:#f3f3f3;border-radius:4px;min-width:0}
.sgc-picked-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1;font-size:12px}
.sgc-dialog .sgc-remove-photo{display:flex!important;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;padding:5px!important;border:0!important;border-radius:4px!important;background:transparent!important;color:#c52b2b!important;cursor:pointer}
.sgc-remove-photo:hover{background:rgba(197,43,43,.1)!important}.sgc-remove-photo svg{width:19px;height:19px}
.sgc-gallery-dialog .sgc-lightbox{position:fixed;inset:0;z-index:10}
@media(max-width:520px){.sgc-modal{padding:10px!important}.sgc-modal .sgc-dialog{max-height:calc(100dvh - 20px)!important}.sgc-modal .sgc-modal-header{padding:12px 15px}.sgc-modal .sgc-modal-header h3{font-size:21px!important}.sgc-modal .sgc-modal-body{padding:16px 18px}}
@media(prefers-color-scheme:dark){.sgc-picked-row{background:#383838}}

/* v0.2.12 */
.sg-spot-last-updated + .sgc-heading-confirmed::before{content:"|";display:inline-block;margin:0 12px;color:#999}
.sgc-heading-confirmed::before{content:none!important}
.sg-spot-last-updated + .sgc-heading-confirmed::before{content:"|"!important}
.sgc-turnstile-form{display:flex;justify-content:flex-start;max-width:100%;margin:14px 0 12px;min-height:0}
.sgc-turnstile-inline{max-width:100%}
#sgc-form>button[type=submit]{display:block!important;margin:14px auto 0!important;padding:10px 30px!important;min-width:185px;text-align:center}

/* 0.2.13: Hide photo-rights acknowledgement for text-only submissions */
.sgc-dialog .sgc-rights[hidden]{display:none!important}

/* v0.2.15: confirmation dialog */
.sgc-confirm-modal .sgc-dialog{padding:0!important;max-width:440px;overflow:hidden;display:flex;flex-direction:column}
.sgc-confirm-modal .sgc-modal-body{padding:28px 22px!important}
.sgc-confirm-message{text-align:center}
.sgc-confirm-message .sgc-icon{display:block;width:48px;height:48px;color:#d62e2e;margin:0 auto 20px}
.sgc-confirm-message p{margin:0 0 9px;font-size:15px;line-height:1.5}
.sgc-confirm-buttons{display:flex;justify-content:center;gap:12px;margin-top:25px}
.sgc-confirm-modal .sgc-confirm-buttons button{padding:10px 25px;border-radius:4px;border:0;font-weight:600;cursor:pointer}
.sgc-confirm-modal .sgc-confirm-cancel{background:#eee;color:#222}
.sgc-confirm-modal .sgc-confirm-accept{background:#f2c900;color:#111}

/* Accordion dates: inherit the Plane 2 modified-date typography */
.accordion .question .title .sgc-heading-confirmed.sg-accordion-date,.accordion_wrapper .question .title .sgc-heading-confirmed.sg-accordion-date{display:block;font-size:11px;font-weight:400;line-height:1.45;color:#ccc;margin-top:-6px;text-transform:none;letter-spacing:normal;pointer-events:none}
.sg-spot-last-updated .sgc-heading-confirmed{display:inline;font:inherit;color:inherit;margin:0}

/* v0.2.22: match Plane 2 date layout without attaching a date to the title text. */
.sg-spot-last-updated.sgc-confirmed-only{display:block!important;font-size:11px!important;font-weight:400!important;line-height:1.45!important;color:#ccc!important;margin-top:-4px!important;text-transform:none!important;letter-spacing:normal!important;white-space:normal!important}
.sg-spot-last-updated.sgc-confirmed-only.sg-accordion-date{margin-top:-6px!important;pointer-events:none}
.sg-spot-last-updated .sgc-heading-confirmed{display:inline!important;font:inherit!important;color:inherit!important;margin:0!important;vertical-align:baseline!important}
.sg-spot-last-updated .sgc-heading-confirmed::before{content:none!important;display:none!important}
.sg-spot-last-updated .sgc-confirmed-separator{display:inline!important;font:inherit!important;color:inherit!important;white-space:pre!important}

/* 0.2.26: Last confirmed only */
.sgc-heading-confirmed{color:#7eff7e!important;}

/* v0.2.27: override inherited date color in both standalone and combined date rows. */
.sg-spot-last-updated .sgc-heading-confirmed,
.sg-spot-last-updated.sgc-confirmed-only .sgc-heading-confirmed,
.accordion .question .title .sgc-heading-confirmed,
.accordion_wrapper .question .title .sgc-heading-confirmed,
.sg-plane2-header-title .sgc-heading-confirmed,
.sgc-heading-confirmed { color:#7eff7e!important; }
