.gc-dialog {
  --gc-ink: #302e27;
  --gc-muted: #625e52;
  --gc-line: #d9d2c4;
  --gc-paper: #fbf8f0;
  --gc-accent: #814a35;
  width: min(640px, calc(100% - 32px));
  max-width: none;
  max-height: min(86dvh, 830px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--gc-ink);
  background: var(--gc-paper);
  border: 1px solid var(--gc-line);
  border-radius: 14px;
  box-shadow: 0 24px 95px #211b1840;
  font: 400 14px/1.45 var(--ag-sans, "DM Sans", sans-serif);
}
.gc-dialog * { box-sizing: border-box; }
.gc-dialog [hidden] { display: none !important; }
.gc-dialog::backdrop { background: rgb(32 30 23 / 58%); }
html:has(.gc-dialog[open]) { overflow: hidden; }
.gc-form { display: flex; flex-direction: column; max-height: min(86dvh, 828px); margin: 0; }
.gc-header, .gc-footer { flex: none; }
.gc-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 24px 28px 18px; border-bottom: 1px solid var(--gc-line); }
.gc-gallery-name { margin: 0 0 6px; color: var(--gc-muted); font-size: 11px; font-weight: 650; letter-spacing: .095em; text-transform: uppercase; }
.gc-header h2 { margin: 0; font: 400 clamp(32px, 5vw, 42px)/1 var(--ag-serif, "Instrument Serif", Georgia, serif); letter-spacing: -.025em; }
.gc-header h2:focus { outline: none; }
.gc-dialog button, .gc-dialog textarea { color: inherit; font: inherit; }
.gc-dialog button { cursor: pointer; }
.gc-dialog :is(button, textarea, input):focus-visible { outline: 2px solid var(--gc-accent); outline-offset: 3px; }
.gc-close { display: grid; flex: none; place-items: center; width: 42px; height: 42px; background: transparent; border: 1px solid var(--gc-line); border-radius: 50%; }
.gc-close:hover, .gc-cancel:hover { background: #ebe6da; }
.gc-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 18px 23px 24px 28px; }
.gc-intro { margin: 0 0 17px; color: var(--gc-muted); }
.gc-section { margin: 0; border-top: 1px solid var(--gc-line); }
.gc-section:last-child { border-bottom: 1px solid var(--gc-line); }
.gc-activity-heading { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 3px 0; }
.gc-activity-heading h3 { flex: 1; min-width: 0; margin: 0; }
.gc-dialog .gc-disclosure { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 49px; padding: 4px 0; text-align: left; font: 550 15px/1.3 var(--ag-sans, "DM Sans", sans-serif); background: none; border: 0; }
.gc-disclosure > svg { color: var(--gc-muted); flex: none; }
.gc-disclosure[aria-expanded=true] > svg { transform: rotate(180deg); }
.gc-glyph { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border: 1px solid var(--gc-line); border-radius: 8px; color: var(--gc-accent); }
.gc-switch { position: relative; flex: none; display: flex; align-items: center; gap: 6px; min-height: 44px; color: var(--gc-muted); font-size: 12px; cursor: pointer; }
.gc-switch-label { min-width: 20px; }
.gc-switch input, .gc-photo input, .gc-radio-row input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.gc-switch-track { position: relative; display: block; width: 34px; height: 20px; border-radius: 20px; border: 1px solid #938c7d; background: #d5d0c3; }
.gc-switch-track::after { position: absolute; top: 2px; left: 2px; content: ""; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #332b2545; }
.gc-switch input:checked + .gc-switch-track { background: var(--gc-ink); border-color: var(--gc-ink); }
.gc-switch input:checked + .gc-switch-track::after { transform: translateX(14px); }
.gc-switch input:focus-visible + span, .gc-radio-row input:focus-visible + span, .gc-photo input:focus-visible + span { outline: 2px solid var(--gc-accent); outline-offset: 3px; }
.gc-panel { padding: 7px 2px 24px; }
.gc-field, .gc-panel legend { color: var(--gc-ink); font: 650 13px/1.45 var(--ag-sans, "DM Sans", sans-serif); }
.gc-field { display: grid; gap: 7px; }
.gc-dialog textarea { width: 100%; min-height: 57px; margin: 0; padding: 10px 12px; resize: vertical; color: var(--gc-ink); background: #fffdf8; border: 1px solid #aea595; border-radius: 6px; font-size: 15px; line-height: 1.4; font-weight: 400; }
.gc-dialog fieldset { min-width: 0; margin: 16px 0 0; padding: 0; border: 0; }
.gc-dialog legend { margin: 0; padding: 0; }
.gc-hint { margin: 2px 0 8px; color: var(--gc-muted); font-size: 12px; }
.gc-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 7px; }
.gc-photo { position: relative; min-width: 0; cursor: pointer; }
.gc-photo-frame { display: block; position: relative; overflow: hidden; aspect-ratio: 1.4; border-radius: 4px; background: #e8e3d6; }
.gc-photo img { width: 100%; height: 100%; object-fit: cover; }
.gc-photo input:checked + .gc-photo-frame::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--gc-accent); border-radius: inherit; }
.gc-photo-tick { position: absolute; bottom: 4px; right: 4px; z-index: 1; display: grid; place-items: center; width: 17px; height: 17px; color: transparent; background: #fbf8f0ee; border: 1px solid #817b6e; border-radius: 50%; }
.gc-photo input:checked + .gc-photo-frame .gc-photo-tick { color: #fff; background: var(--gc-accent); border-color: #fff; }
.gc-photo-label { display: block; margin-top: 3px; color: var(--gc-muted); font-size: 11px; line-height: 1.25; overflow-wrap: anywhere; }
.gc-radio-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.gc-radio-row label { position: relative; cursor: pointer; }
.gc-radio-row span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 7px 12px; font-size: 13px; border-radius: 18px; border: 1px solid #aea595; }
.gc-radio-row span::before { content: ""; width: 10px; height: 10px; border: 1px solid #938978; border-radius: 50%; }
.gc-radio-row input:checked + span { color: var(--gc-ink); background: #e6e0d3; border-color: #8f8878; }
.gc-radio-row input:checked + span::before { background: var(--gc-ink); border-color: var(--gc-ink); box-shadow: inset 0 0 0 2px #e6e0d3; }
.gc-error { margin: 12px 0 0; color: #963c2b; font-weight: 600; }
.gc-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 28px; border-top: 1px solid var(--gc-line); background: #f1ede2; }
.gc-footer p { margin: 0; font-size: 12px; color: var(--gc-muted); }
.gc-footer > div { display: flex; flex: none; align-items: center; gap: 8px; }
.gc-footer button { min-height: 42px; padding: 8px 15px; border-radius: 5px; font-size: 13px; font-weight: 600; }
.gc-cancel { background: none; border: 1px solid #b7ad9c; }
.gc-dialog .gc-save { color: #fffdf5; background: var(--gc-ink); border: 1px solid var(--gc-ink); }
.gc-dialog .gc-save:hover { background: #504c40; }
.gc-dialog .gc-save:disabled { opacity: .6; cursor: default; }
.gc-footer .gc-save-status.gc-error { color: #963c2b; }
@media (max-width: 540px) {
  .gc-dialog { width: calc(100% - 20px); max-height: 93dvh; }
  .gc-form { max-height: calc(93dvh - 2px); }
  .gc-header { padding: 17px 16px 14px; }
  .gc-scroll { padding: 14px 15px 20px; scrollbar-gutter: auto; }
  .gc-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 11px 16px; }
  .gc-footer > div { width: 100%; justify-content: flex-end; }
  .gc-photo-grid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
}
@media (max-width: 380px) { .gc-switch-label { display: none; } }
