.gc-calendar {
  max-width: 820px;
  margin-inline: auto;
  color: #292d38;
  font-family: inherit;
  text-align: left;
}
.gc-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.gc-navigation h3 {
  margin: 0;
  font-size: 22px;
}
.gc-navigation button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #ddd;
  background: #fff;
  color: #4057e1;
  font: inherit;
  cursor: pointer;
}
.gc-navigation button:disabled {
  opacity: 0.3;
  cursor: default;
}
.gc-grid {
  border-top: 1px solid #e1e1e1;
  border-left: 1px solid #e1e1e1;
}
.gc-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.gc-weekday,
.gc-day {
  box-sizing: border-box;
  min-width: 0;
  border-right: 1px solid #e1e1e1;
  border-bottom: 1px solid #e1e1e1;
}
.gc-weekday {
  padding: 10px;
  text-align: center;
  font-size: 12px;
  background: #fafafa;
}
.gc-day {
  min-height: 62px;
}
.gc-day-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 62px;
  padding: 6px 3px;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: center;
}
.gc-number {
  line-height: 1.4;
  font-size: 15px;
}
.gc-today {
  outline: 2px solid #4057e1;
  outline-offset: -2px;
}
.gc-badge {
  display: block;
  padding: 3px 4px;
  border-radius: 3px;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  font-weight: 600;
}
.gc-legend {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.gc-legend li {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-line;
}
.gc-legend .gc-badge {
  font-size: 12px;
}
.gc-empty {
  background: #fafafa;
}
.gc-calendar button:focus-visible {
  outline: 3px solid #4057e1;
  outline-offset: 2px;
}
.gc-admin {
  max-width: 1100px;
}
.gc-panel {
  padding: 24px;
  margin: 24px 0;
  background: white;
  border: 1px solid #ddd;
}
.gc-panel > fieldset label {
  margin-right: 20px;
}
.gc-color-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 24px 0 0;
}
.gc-admin input[type="number"] {
  width: 70px;
}
.gc-event {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px;
  border: 1px solid #ddd;
  margin: 20px 0;
}
.gc-event > label {
  display: grid;
  gap: 5px;
}
.gc-wide {
  width: 100%;
}
.gc-wide textarea {
  width: 100%;
}
.gc-event [hidden] {
  display: none !important;
}
.gc-event legend {
  font-weight: bold;
}
.gc-admin dialog {
  max-width: 420px;
  border: 1px solid #ddd;
  padding: 30px;
}
.gc-admin dialog::backdrop {
  background: #0006;
}
.gc-calendar[data-editing="1"] .gc-day-content {
  cursor: pointer;
}
@media (max-width: 600px) {
  .gc-day,
  .gc-day-content {
    min-height: 54px;
  }
  .gc-day-content {
    padding: 6px 2px;
  }
  .gc-badge {
    font-size: 9px;
    padding: 2px;
  }
  .gc-navigation h3 {
    font-size: 18px;
  }
  .gc-legend li {
    grid-template-columns: 110px 1fr;
  }
  .gc-legend .gc-badge {
    font-size: 11px;
  }
  .gc-panel {
    padding: 15px;
  }
}

/* Admin: four clear groups, without changing saved field names. */
.gc-panel {
  max-width: 950px;
  box-sizing: border-box;
}
.gc-basics h2 {
  margin: 0 0 30px;
}
.gc-setting-group {
  margin: 0 0 28px;
  padding: 0 0 28px;
  border-bottom: 1px solid #e5e7eb;
}
.gc-setting-group legend {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 14px;
}
.gc-help {
  color: #646970;
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.gc-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.gc-mode-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #ccd0d4;
  border-radius: 6px;
  padding: 20px;
  cursor: pointer;
}
.gc-mode-option:has(input:checked) {
  border-color: #4057e1;
  background: #f0f2ff;
  box-shadow: 0 0 0 1px #4057e1;
}
.gc-mode-option input {
  margin: 4px 0 0;
}
.gc-mode-option strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}
.gc-mode-option small {
  display: block;
  color: #646970;
  line-height: 1.6;
}
.gc-week-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gc-week-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 52px;
  padding: 12px 14px;
  border: 1px solid #ccd0d4;
  border-radius: 5px;
  margin: 0;
  cursor: pointer;
}
.gc-week-options label:has(input:checked) {
  border-color: #4057e1;
  background: #f0f2ff;
}
.gc-week-options input {
  margin: 0;
}
.gc-colors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gc-color-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.gc-color-field input[type="color"] {
  width: 100%;
  max-width: 150px;
  height: 38px;
  padding: 3px;
}
.gc-range {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 12px 24px;
}
.gc-range .gc-help {
  grid-column: 2;
  margin: 0;
}
.gc-range input[type="number"] {
  width: 70px;
  margin-right: 8px;
}
.gc-past-toggle {
  display: block;
  margin-top: 22px;
}
.gc-past-range {
  margin-top: 18px;
}
.gc-basics [hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .gc-mode-options {
    grid-template-columns: 1fr;
  }
  .gc-colors {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gc-color-field {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 320px;
  }
  .gc-color-field input[type="color"] {
    width: 80px;
  }
  .gc-range {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .gc-range .gc-help {
    grid-column: 1;
  }
}

/* All settings panels share the same width and spacing. */
.gc-panel > h2 {
  margin: 0 0 20px;
}
.gc-day-note {
  padding: 14px 16px;
  margin: 0 0 28px;
  border-left: 3px solid #4057e1;
  background: #f5f6ff;
  font-size: 13px;
  line-height: 1.8;
}
.gc-event {
  display: block;
  padding: 24px;
  border-radius: 6px;
  background: #fcfcfc;
}
.gc-event legend {
  font-size: 15px;
  padding: 0 8px;
}
.gc-event-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}
.gc-event-fields h3 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
}
.gc-event-fields > label {
  display: grid;
  gap: 10px;
  font-size: 13px;
}
.gc-event-fields > label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
}
.gc-event-fields .gc-wide {
  grid-column: 1 / -1;
}
.gc-event-fields input[type="text"],
.gc-event-fields input[type="date"],
.gc-event-fields textarea,
.gc-event-fields select {
  width: 100%;
  max-width: none;
}
.gc-event-fields input[type="color"] {
  width: 100px;
  height: 38px;
}
.gc-event-fields > fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 12px 0 0;
}
.gc-event-rule > span {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gc-event-rule > span label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gc-event-rule > span select {
  width: auto;
  min-width: 60px;
}
.gc-event-rule > fieldset {
  grid-column: 1 / -1;
}
.gc-event-panel > button {
  margin-top: 4px;
}
.gc-admin [hidden] {
  display: none !important;
}
.gc-admin #gc-day-dialog {
  width: 480px;
  max-width: calc(100vw - 48px);
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid #ddd;
  border-top: 3px solid #4057e1;
  border-radius: 10px;
}
.gc-dialog-kicker {
  color: #646970;
  font-size: 12px;
  margin: 0 0 8px;
}
#gc-selected-day {
  margin: 0 0 24px;
  font-size: 22px;
}
.gc-day-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.gc-day-choices label {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 16px 12px;
  border: 1px solid #ccd0d4;
  border-radius: 6px;
  cursor: pointer;
}
.gc-day-choices label:has(input:checked) {
  background: #f0f2ff;
  border-color: #4057e1;
}
.gc-day-choices label:first-child {
  grid-column: 1 / -1;
}
.gc-day-choices input {
  margin: 3px 0 0;
}
.gc-day-choices strong {
  display: block;
  font-size: 13px;
}
.gc-day-choices small {
  display: block;
  margin-top: 6px;
  color: #646970;
  font-size: 11px;
}
.gc-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}
@media (max-width: 650px) {
  .gc-event {
    padding: 16px;
  }
  .gc-event-fields {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gc-event-fields .gc-wide,
  .gc-event-fields h3 {
    grid-column: 1;
  }
  .gc-day-choices {
    grid-template-columns: 1fr;
  }
  .gc-admin #gc-day-dialog {
    padding: 22px;
  }
}

/* Compact mobile legend labels; descriptions stay aligned. */
@media(max-width:600px) {
 .gc-legend li { grid-template-columns:86px minmax(0,1fr); gap:12px; }
 .gc-legend .gc-badge { justify-self:start; width:fit-content; max-width:100%; box-sizing:border-box; padding:3px 8px; }
}

.gc-legend .gc-badge { justify-self:start; width:fit-content; max-width:100%; box-sizing:border-box; padding:3px 8px; }

.gc-admin .gc-quick-edit { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; margin:24px 0 8px; padding:0 0 22px; border:0; border-bottom:1px solid #e5e7eb; background:transparent; border-radius:0; }
.gc-admin .gc-edit-title { flex-basis:100%; margin:0; font-size:13px; line-height:1.5; font-weight:600; color:#555d68; }
.gc-edit-buttons { display:inline-flex; flex-wrap:nowrap; gap:4px; padding:5px; background:#f1f2f5; border:1px solid #e5e7eb; border-radius:12px; }
.gc-admin .gc-edit-choice { min-height:44px; padding:9px 24px; border:1px solid transparent; border-radius:8px; background:transparent; color:#555d68; cursor:pointer; font-family:inherit; font-size:14px; line-height:1.5; font-weight:600; transition:background-color .12s,color .12s; }
.gc-admin .gc-edit-choice:hover { background:#e7e9ee; color:#24272b; }
.gc-admin .gc-edit-choice[aria-pressed="true"] { background:#fff; border-color:#e3e5ea; color:#4057e1; box-shadow:0 1px 3px #24272b12; }
.gc-admin .gc-edit-choice:focus-visible { outline:3px solid #4057e1; outline-offset:2px; }
.gc-admin .gc-edit-hint { margin:0; font-size:13px; line-height:1.6; color:#727985; }
.gc-admin #gc-edit-feedback { flex-basis:100%; min-height:20px; font-size:12px; line-height:20px; color:#727985; }
@media(max-width:600px) { .gc-admin .gc-quick-edit { gap:10px; } .gc-edit-buttons { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); width:100%; box-sizing:border-box; } .gc-admin .gc-edit-choice { padding:9px 4px; font-size:13px; white-space:nowrap; } .gc-admin .gc-edit-hint { flex-basis:100%; } }

.gc-admin .gc-event-schedule { border-top:1px solid #e5e7eb; margin-top:18px; padding-top:18px; }
.gc-admin .gc-schedule-label { margin:0 0 10px; font-size:13px; font-weight:600; color:#555d68; }
.gc-schedule-buttons { display:inline-flex; gap:4px; padding:4px; border:1px solid #e5e7eb; border-radius:10px; background:#f1f2f5; margin-bottom:16px; }
.gc-admin .gc-schedule-buttons button { min-height:44px; padding:9px 24px; border:1px solid transparent; border-radius:7px; background:transparent; color:#555d68; font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.gc-admin .gc-schedule-buttons button[aria-pressed="true"] { background:#fff; border-color:#e3e5ea; color:#4057e1; box-shadow:0 1px 3px #24272b12; }
.gc-admin .gc-schedule-buttons button:focus-visible { outline:3px solid #4057e1; outline-offset:2px; }
.gc-admin .gc-event-rule, .gc-admin .gc-event-period { border:0; padding-top:0; margin-top:0; }
.gc-event-advanced { margin:14px 0 20px; }
.gc-event-advanced summary { cursor:pointer; color:#636b77; font-size:13px; padding:8px 0; }
.gc-event-advanced[open] > div { margin-top:12px; }
.gc-admin .gc-event-fields [hidden], .gc-admin [data-schedule][hidden] { display:none !important; }

.gc-event-actions { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; align-items:center; }
.gc-event-order { display:flex; gap:8px; }

/* Keep one separator between event copy and schedule controls. */
.gc-admin .gc-event-schedule { border-top:0; margin-top:0; padding-top:18px; }
.gc-admin .gc-edit-choice { padding-left:18px; padding-right:18px; }
@media(max-width:600px) { .gc-edit-buttons { grid-template-columns:repeat(2,minmax(0,1fr)); } }


/* Unified GRAVITI admin controls, including theme/WordPress focus overrides. */
.gc-admin { --gc-blue:#4057e1; --gc-focus:#4057e1; }
.gc-admin .gc-edit-buttons, .gc-admin .gc-schedule-buttons { background:#f1f3fa; border:1px solid #e0e4f1; gap:5px; padding:5px; border-radius:11px; }
.gc-admin .gc-edit-choice, .gc-admin .gc-schedule-buttons button { border:1px solid transparent; border-radius:7px; background:transparent; box-shadow:none; color:#555d70; font-weight:600; }
.gc-admin .gc-edit-choice[aria-pressed="true"], .gc-admin .gc-schedule-buttons button[aria-pressed="true"] { color:#4057e1; background:#fff; border:1px solid #c5cdf4; box-shadow:0 2px 5px #26357912; }
.gc-admin .gc-edit-choice:hover, .gc-admin .gc-schedule-buttons button:hover { background:#e9edff; color:#3045c4; }
.gc-admin .button { color:#4057e1; border-color:#c5cdf4; background:#fff; border-radius:6px; }
.gc-admin .button:hover { color:#3045c4; border-color:#4057e1; background:#f0f2ff; }
.gc-admin .button-primary { color:#fff; background:#4057e1; border-color:#4057e1; }
.gc-admin .button-primary:hover { color:#fff; background:#3045c4; }
.gc-admin input:focus, .gc-admin select:focus, .gc-admin textarea:focus { border-color:#4057e1 !important; outline-color:#4057e1 !important; box-shadow:0 0 0 1px #4057e1 !important; }
.gc-admin button:focus-visible, .gc-admin .button:focus-visible, .gc-admin summary:focus-visible { outline:3px solid #4057e1 !important; outline-offset:3px; box-shadow:none; }
.gc-admin input[type="checkbox"], .gc-admin input[type="radio"] { accent-color:#4057e1; }
.gc-admin input[type="radio"]:checked::before { background:#4057e1; }
.gc-admin .gc-calendar .gc-today .gc-day-content { outline-color:#4057e1; }
.gc-admin .gc-calendar button { color:#4057e1; }

/* Calendar typography and navigation use a neutral charcoal palette. */
.gc-calendar .gc-navigation button, .gc-admin .gc-calendar button,
.gc-calendar .gc-number, .gc-calendar .gc-month, .gc-calendar .gc-weekday { color:#292d38; }
.gc-calendar .gc-today .gc-day-content, .gc-admin .gc-calendar .gc-today .gc-day-content { outline-color:#292d38; }
.gc-calendar button:focus-visible, .gc-admin .gc-calendar button:focus-visible { outline-color:#292d38 !important; }

.gc-calendar .gc-today { outline-color:var(--gc-today-color, #292d38); }

.gc-monthly-settings { margin:20px 0; border:1px solid #e0e4f1; border-radius:8px; padding:16px; }
.gc-monthly-settings summary { cursor:pointer; font-weight:600; }
.gc-monthly-bulk { display:flex; flex-wrap:wrap; align-items:center; gap:12px; background:#f5f6ff; padding:16px; border-radius:6px; margin:16px 0; }
.gc-monthly-bulk .gc-help { flex-basis:100%; margin:0; }
.gc-monthly-row { display:grid; grid-template-columns:48px 1fr; gap:12px; align-items:center; padding:7px 0; }
.gc-monthly-weekdays { display:flex; gap:6px; flex-wrap:wrap; }
.gc-monthly-weekdays label { position:relative; margin:0; cursor:pointer; }
.gc-monthly-weekdays input { position:absolute; opacity:0; width:1px; height:1px; }
.gc-monthly-weekdays span, .gc-monthly-weekdays button { display:inline-flex; align-items:center; justify-content:center; min-width:40px; min-height:44px; padding:0 8px; box-sizing:border-box; border:1px solid #d6dce8; border-radius:6px; background:#fff; color:#555d70; font:inherit; }
.gc-monthly-weekdays input:checked + span, .gc-monthly-weekdays button[aria-pressed="true"] { background:#f0f2ff; border-color:#4057e1; color:#4057e1; font-weight:600; }
.gc-monthly-weekdays input:focus-visible + span { outline:3px solid #4057e1; outline-offset:2px; }
.gc-monthly-list[hidden] { display:none !important; }
@media(max-width:600px) { .gc-monthly-settings { padding:12px; } .gc-monthly-row { grid-template-columns:32px 1fr; gap:6px; } .gc-monthly-row .gc-monthly-weekdays { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; } .gc-monthly-row .gc-monthly-weekdays span { min-width:0; width:100%; padding:0; font-size:12px; } }

.gc-calendar .gc-chevron { display:block; width:10px; height:10px; box-sizing:border-box; border-top:1px solid currentColor; border-right:1px solid currentColor; transform:rotate(45deg); }
.gc-calendar [data-step="1"] .gc-chevron { margin-right:5px; }
.gc-calendar [data-step="-1"] .gc-chevron { transform:rotate(-135deg); margin-left:5px; }

.gc-calendar .gc-chevron { color:#bbbbbb; }
