.calendar-panel {
  margin: 24px 0 18px;
  padding: 28px;
  scroll-margin-top: 96px;
}

.calendar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 28px;
}

.calendar-head h2 {
  margin: 0;
  font: 400 30px/1.35 var(--serif);
}

.calendar-head-copy {
  min-width: 0;
}

.calendar-head-copy > p:last-of-type {
  max-width: 620px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.calendar-context-links {
  display: flex;
  grid-column: 1;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 3px;
}

.calendar-context-links a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #cdbfc0;
  text-underline-offset: 4px;
}

.calendar-context-links a:hover {
  color: var(--wine);
  text-decoration-color: var(--wine);
}

.schedule-primary-action {
  display: flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 224px;
  min-height: 72px;
  padding: 13px 18px;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #78384b, var(--wine));
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 28px rgba(98, 42, 42, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}

.schedule-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(98, 42, 42, .28);
}

.schedule-primary-action:focus-visible {
  outline: 3px solid #d7adb7;
  outline-offset: 3px;
}

.schedule-primary-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  font: 300 26px/1 var(--sans);
}

.schedule-primary-action strong,
.schedule-primary-action small {
  display: block;
}

.upcoming-reception-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #ddd1cd;
  border-radius: 18px;
  background: #f7f3f0;
}

.upcoming-reception-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.upcoming-reception-head h3 {
  margin: 3px 0 0;
  font: 400 19px/1.35 var(--serif);
}

.upcoming-reception-head > strong {
  color: var(--wine);
  font: 400 22px/1 var(--serif);
}

.upcoming-reception-list {
  display: grid;
  gap: 7px;
}

.upcoming-reception-item {
  display: grid;
  grid-template-columns: 62px 112px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 62px;
  padding: 10px 13px;
  align-items: center;
  gap: 14px;
  border: 1px solid #e0d7d2;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.upcoming-reception-item:hover {
  border-color: #b88c97;
  box-shadow: 0 8px 22px rgba(89, 53, 56, .09);
  transform: translateY(-1px);
}

.upcoming-reception-item:focus-visible {
  outline: 3px solid #d7adb7;
  outline-offset: 2px;
}

.upcoming-reception-dday {
  display: inline-grid;
  min-height: 30px;
  padding: 0 9px;
  place-items: center;
  justify-self: start;
  border-radius: 999px;
  background: #eee4e6;
  color: var(--wine);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}

.upcoming-reception-dday.today {
  background: var(--wine);
  color: #fff;
}

.upcoming-reception-date,
.upcoming-reception-copy {
  min-width: 0;
}

.upcoming-reception-date strong,
.upcoming-reception-date small,
.upcoming-reception-copy strong,
.upcoming-reception-copy small {
  display: block;
}

.upcoming-reception-date strong,
.upcoming-reception-copy strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-reception-date small,
.upcoming-reception-copy small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-reception-arrow {
  color: #ae858d;
  font-size: 16px;
}

.upcoming-reception-panel > .empty {
  margin: 4px 0 0;
  padding: 18px 12px;
  border: 1px dashed #d7cbc6;
  border-radius: 12px;
  background: rgba(255, 255, 255, .55);
}

.schedule-primary-action strong {
  font-size: 14px;
  line-height: 1.4;
}

.schedule-primary-action small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 25px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.calendar-toolbar .admin-slot-tabs {
  margin-top: 0;
}

.month-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.month-controls strong {
  min-width: 128px;
  text-align: center;
  font: 400 21px var(--serif);
}

.month-controls button,
.calendar-toolbar > #month-today {
  min-width: 38px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.calendar-wrap {
  min-width: 0;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--line);
  background: #eee8e2;
}

.calendar-weekdays span {
  padding: 10px 6px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
}

.calendar-weekdays span:first-child {
  color: #a84d61;
}

.calendar-weekdays span:last-child {
  color: #526a85;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(96px, 1fr);
}

.calendar-day {
  position: relative;
  min-width: 0;
  padding: 9px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.calendar-day.outside {
  background: #faf8f5;
  color: #b7aea8;
}

.calendar-day.selected {
  z-index: 1;
  box-shadow: inset 0 0 0 2px var(--wine);
}

.calendar-day:focus-visible,
.month-controls button:focus-visible,
.calendar-toolbar > #month-today:focus-visible,
.agenda-item:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: -3px;
}

.calendar-day.today .day-number {
  display: grid;
  width: 25px;
  height: 25px;
  margin: -4px 0 3px -4px;
  place-items: center;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
}

.day-number {
  display: block;
  font: 400 14px var(--serif);
}

.calendar-day[data-weekday="saturday"] .day-number {
  color: #526a85;
}

.calendar-day[data-weekday="sunday"] .day-number {
  color: #a84d61;
}

.calendar-day.today .day-number {
  color: #fff;
}

.calendar-day.blocked,
.calendar-day.blocked.outside {
  background: #e6e4e1;
  color: #aaa5a0;
  cursor: not-allowed;
  box-shadow: none;
}

.calendar-day.blocked .day-number {
  color: #aaa5a0;
}

.calendar-day.blocked .weekday-block-label {
  display: block;
  margin-top: 10px;
  color: #aaa5a0;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.calendar-event {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  padding: 5px 6px;
  border-left: 3px solid #703243;
  border-radius: 0 7px 7px 0;
  background: #ead8dc;
  color: #654650;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event[data-type="site-visit"] {
  border-left-color: #9b8064;
  background: #eee7dc;
  color: #625344;
}

.calendar-event[data-type="meeting"],
.calendar-event[data-type="other"] {
  border-left-color: #668190;
  background: #e3ecef;
  color: #40545f;
}

.calendar-event[data-type="available"] {
  border-left-color: #557050;
  background: #e4ecdf;
  color: #3f593b;
}

.calendar-event[data-type="unavailable"] {
  border-left-color: #ad5266;
  background: #f1dfe3;
  color: #7d3747;
}

.calendar-event[data-type="confirmed-reception"] {
  border-left-color: var(--wine);
  background: #ead8dc;
  color: #633645;
  font-weight: 700;
}

.calendar-more {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.day-agenda {
  min-width: 0;
  padding: 20px;
  border-left: 1px solid var(--line);
  background: #f8f4ef;
}

.day-agenda h3 {
  margin: 7px 0 18px;
  font: 400 21px var(--serif);
}

.day-schedule-list {
  display: grid;
  gap: 8px;
}

.agenda-section-label {
  margin: 10px 2px 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.agenda-section-label:first-child {
  margin-top: 0;
}

.agenda-item {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.agenda-item > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--wine);
  font-size: 11px;
  line-height: 1.5;
}

.agenda-item strong {
  display: block;
  margin: 7px 0 5px;
  font-size: 13px;
  line-height: 1.5;
}

.agenda-item small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-item.unavailable {
  opacity: .62;
  background: #f8f1f2;
}

.agenda-item.unavailable > span {
  color: #ad5266;
}

.agenda-item.confirmed-schedule {
  cursor: pointer;
  border-color: #d7b9c1;
  background: #f8edef;
}

.crew-calendar-status {
  min-height: 18px;
  margin: 13px 0 0;
  color: var(--wine);
  text-align: center;
  font-size: 11px;
}

.schedule-dialog {
  width: min(620px, calc(100% - 30px));
  max-height: 92svh;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(27, 17, 17, .36);
}

.schedule-dialog::backdrop {
  background: rgba(32, 26, 25, .66);
  backdrop-filter: blur(4px);
}

#schedule-form {
  padding: 30px;
}

.schedule-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  margin-top: 24px;
}

.schedule-form-grid label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.schedule-form-grid .full {
  grid-column: 1 / -1;
}

.schedule-form-grid label > b {
  color: var(--wine);
}

.schedule-form-grid label > small {
  display: block;
  margin-top: 5px;
  color: #968b84;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.45;
}

.schedule-form-grid input,
.schedule-form-grid select,
.schedule-form-grid textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
}

.schedule-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.schedule-form-actions .save-button {
  width: min(230px, 100%);
  margin: 0 0 0 auto;
  border-radius: 999px;
}

.schedule-gift-stats-access {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #d9d0ca;
  border-radius: 18px;
  background: #f7f3f0;
}

.schedule-gift-stats-head {
  padding: 0 2px 16px;
  border-bottom: 1px solid #ded5d0;
}

.schedule-gift-stats-head h3,
.schedule-gift-stats-head p {
  margin: 0;
}

.schedule-gift-stats-head h3 {
  margin-top: 3px;
  font: 700 19px/1.4 var(--serif);
}

.schedule-gift-stats-head > div > p:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.schedule-gift-access-list {
  display: grid;
  margin-top: 12px;
  gap: 9px;
}

.schedule-gift-access-card {
  overflow: hidden;
  border: 1px solid #ddd4ce;
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.schedule-gift-access-card[data-enabled="true"] {
  border-color: #b78995;
  box-shadow: 0 6px 18px rgba(80, 45, 54, .07);
}

.schedule-gift-access-card.combined {
  border-style: dashed;
}

.schedule-gift-access-card > header {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-height: 62px;
  padding: 11px 13px;
  align-items: center;
  gap: 10px;
}

.schedule-gift-access-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #eee6e2;
  color: var(--wine);
  font-size: 9px;
  font-weight: 900;
}

.schedule-gift-access-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 4px 0;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.schedule-gift-access-summary strong,
.schedule-gift-access-summary small {
  display: block;
  grid-column: 1;
}

.schedule-gift-access-summary strong {
  font-size: 13px;
}

.schedule-gift-access-summary small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-gift-access-summary em {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-left: 8px;
  color: var(--wine);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.schedule-gift-access-summary:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.schedule-gift-access-body {
  padding: 0 13px 13px 53px;
}

.schedule-gift-stats-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.schedule-gift-stats-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.schedule-gift-stats-toggle span {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d6ccc6;
  transition: background .18s ease;
}

.schedule-gift-stats-toggle span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(49, 31, 31, .18);
  content: "";
  transition: transform .18s ease;
}

.schedule-gift-stats-toggle input:checked + span {
  background: var(--wine);
}

.schedule-gift-stats-toggle input:checked + span::after {
  transform: translateX(18px);
}

.schedule-gift-stats-toggle input:focus-visible + span {
  outline: 3px solid rgba(113, 55, 70, .2);
  outline-offset: 2px;
}

.schedule-gift-stats-toggle b {
  font-size: 10px;
  white-space: nowrap;
}

.schedule-gift-stats-controls,
.schedule-gift-stats-link {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 7px;
}

.schedule-gift-stats-controls label,
.schedule-gift-stats-link label {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.schedule-gift-stats-controls input,
.schedule-gift-stats-link input {
  display: block;
  min-width: 0;
  width: 100%;
  margin-top: 6px;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  box-sizing: border-box;
}

.schedule-gift-stats-controls input:focus,
.schedule-gift-stats-link input:focus {
  border-color: var(--wine);
}

.schedule-gift-stats-controls button,
.schedule-gift-stats-link button,
.schedule-gift-stats-link a {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--wine);
  border-radius: 10px;
  background: var(--wine);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.schedule-gift-stats-link {
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-top: 8px;
}

.schedule-gift-stats-link a {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--wine);
}

.schedule-gift-stats-access .crew-inline-status {
  min-height: 16px;
  margin: 7px 0 0;
  color: var(--wine);
  font-size: 11px;
}

.schedule-gift-stats-access[data-new="true"] {
  opacity: .65;
}

.delete-schedule {
  border: 0;
  background: transparent;
  color: #a13f52;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#schedule-form-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--wine);
  text-align: right;
  font-size: 11px;
  line-height: 1.5;
}

.schedule-storage-note {
  margin: 4px 0 0;
  color: var(--muted);
  text-align: right;
  font-size: 10px;
}

.schedule-member-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.schedule-member-field legend {
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.schedule-member-field legend span {
  float: right;
  padding: 4px 8px;
  border-radius: 999px;
  background: #efe7e2;
  color: #8c7771;
  font-size: 10px;
}

.schedule-member-field legend span[data-valid="true"] {
  background: #dce7d8;
  color: #34552d;
}

.schedule-member-field > p {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.schedule-member-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.schedule-member-option {
  min-width: 0;
  cursor: pointer;
}

.schedule-member-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.schedule-member-option-visual {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  min-width: 0;
  min-height: 62px;
  padding: 10px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.schedule-member-option-copy {
  min-width: 0;
}

.schedule-member-option-copy b,
.schedule-member-option-copy small {
  display: block;
}

.schedule-member-option-copy b {
  overflow: hidden;
  max-width: 100%;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-member-option-copy small {
  margin-top: 3px;
  color: #4f744e;
  font-size: 9px;
  font-weight: 800;
}

.schedule-member-option input:checked + .schedule-member-option-visual {
  border-color: #925466;
  background: #f8ecef;
  box-shadow: inset 0 0 0 1px #925466, 0 5px 14px rgba(86, 46, 58, .08);
}

.schedule-member-option input:checked + .schedule-member-option-visual::after {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  content: "✓";
  font-size: 8px;
  font-weight: 900;
}

.schedule-member-option input:focus-visible + .schedule-member-option-visual {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}

.schedule-member-option.unavailable .schedule-member-option-visual {
  opacity: .48;
  background: #f4efed;
}

.schedule-member-option.unavailable .schedule-member-option-copy small {
  color: #ad5266;
}

.reception-team-panel {
  margin-bottom: 18px;
  padding: 28px;
  scroll-margin-top: 96px;
}

.reception-team-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.reception-team-head h2 {
  margin: 0;
  font: 400 30px/1.35 var(--serif);
}

.reception-team-head > div > p:last-child {
  max-width: 660px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.new-member-button {
  min-height: 42px;
  padding: 11px 17px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  background: #fff;
  color: var(--wine);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.reception-team-summary {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 24px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.reception-team-summary strong {
  color: var(--wine);
  font: 400 26px var(--serif);
}

.reception-team-summary span {
  color: var(--muted);
  font-size: 11px;
}

.reception-member-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.reception-member-card {
  display: flex;
  min-width: 0;
  min-height: 82px;
  padding: 11px 13px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.reception-member-identity {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.reception-member-identity > div {
  flex: 1;
  min-width: 0;
}

.reception-member-identity strong,
.reception-member-identity small {
  display: block;
}

.reception-member-identity strong {
  overflow: hidden;
  padding-right: 4px;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reception-member-identity small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.reception-member-settings {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
  gap: 6px;
}

.member-setting-item {
  position: relative;
  z-index: 1;
  display: inline-grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  align-items: center;
  place-items: center;
  border: 1px solid #ddd5d0;
  border-radius: 50%;
  background: #ece8e5;
  cursor: help;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.member-setting-item.connected {
  border-color: #83ae8c;
  background: #d3ead8;
  box-shadow: inset 0 0 0 1px rgba(48, 101, 59, .1), 0 2px 6px rgba(48, 101, 59, .08);
}

.member-setting-item.pending {
  border-color: #ded7d2;
  background: #ece8e5;
}

.member-setting-item:hover,
.member-setting-item:focus-visible {
  z-index: 3;
  border-color: var(--wine);
  box-shadow: 0 4px 12px rgba(71, 43, 46, .16);
  outline: none;
  transform: translateY(-1px);
}

.member-setting-item img {
  display: block;
  width: 15px;
  height: 15px;
  max-width: none;
  flex: 0 0 15px;
  object-fit: contain;
  transition: filter .16s ease, opacity .16s ease, transform .16s ease;
}

.member-setting-item.connected img {
  opacity: 1;
  filter: none;
}

.member-setting-item.pending img {
  opacity: .32;
  filter: grayscale(1) saturate(0) blur(.3px);
  transform: scale(.92);
}

.member-setting-item.pending:hover img,
.member-setting-item.pending:focus-visible img {
  opacity: .62;
  filter: grayscale(.72) saturate(.35) blur(0);
  transform: scale(1);
}

.member-setting-item::before,
.member-setting-item::after {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .14s ease, transform .14s ease;
}

.member-setting-item::before {
  bottom: calc(100% + 5px);
  left: 8px;
  width: 8px;
  height: 8px;
  background: #312729;
  content: "";
  rotate: 45deg;
}

.member-setting-item::after {
  bottom: calc(100% + 9px);
  left: -4px;
  width: max-content;
  max-width: 240px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #312729;
  color: #fff;
  content: attr(data-tooltip);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.member-setting-item:hover::before,
.member-setting-item:hover::after,
.member-setting-item:focus-visible::before,
.member-setting-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.reception-member-identity .reception-member-note {
  position: relative;
  display: -webkit-box;
  overflow: hidden;
  max-width: 100%;
  margin: 6px 0 0;
  padding-left: 10px;
  color: #623b47;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.reception-member-identity .reception-member-note::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: var(--wine);
  content: "";
}

.reception-member-avatar {
  display: inline-grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: #eee4df;
  background-repeat: no-repeat;
  background-position: var(--member-x) var(--member-y);
  background-size: 900% auto;
  color: var(--wine);
  box-shadow: 0 2px 7px rgba(49, 31, 31, .12);
  font-size: 12px;
  font-weight: 700;
}

.reception-member-avatar.large {
  flex-basis: 46px;
  width: 46px;
  height: 46px;
}

.reception-member-avatar.initial {
  background-image: linear-gradient(145deg, #f2e1e4, #eaded5);
}

.reception-member-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reception-member-actions button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.reception-member-actions button.danger {
  color: #a13f52;
}

.member-dialog {
  width: min(430px, calc(100% - 30px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(27, 17, 17, .36);
}

.member-dialog::backdrop {
  background: rgba(32, 26, 25, .66);
  backdrop-filter: blur(4px);
}

#member-form {
  padding: 30px;
}

#member-form > label {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

#member-form > label b {
  color: var(--wine);
}

.member-avatar-field {
  min-width: 0;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.member-avatar-field legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.member-avatar-field legend b {
  color: var(--wine);
}

.member-avatar-upload {
  display: flex;
  min-width: 0;
  padding: 12px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}

.member-avatar-upload > span:nth-child(2) {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.member-avatar-upload strong {
  color: var(--ink);
  font-size: 13px;
}

.member-avatar-upload small {
  color: var(--muted);
  font-size: 10px;
}

.member-avatar-upload em {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--wine);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.member-avatar-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.member-avatar-divider {
  display: flex;
  margin: 14px 0 10px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
}

.member-avatar-divider::before,
.member-avatar-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.member-avatar-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 3px;
}

.member-avatar-option {
  display: grid;
  padding: 8px 3px 7px;
  place-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
}

.member-avatar-option:has(input:checked) {
  border-color: var(--wine);
  box-shadow: 0 0 0 1px var(--wine);
}

.environment-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 8px 16px;
  background: #f4c542;
  color: #281f05;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.member-avatar-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.member-avatar-option span:last-child {
  font-size: 10px;
  font-weight: 700;
}

#member-name,
#member-public-name,
#member-pin,
#member-pin-confirm,
#member-note {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: none;
  background: transparent;
  font-size: 16px;
}

#member-note {
  line-height: 1.55;
  resize: vertical;
}

#member-form label small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
}

#member-form .save-button {
  border-radius: 999px;
}

#member-form-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--wine);
  text-align: center;
  font-size: 11px;
}

@media (max-width: 1050px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .day-agenda {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .day-schedule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 850px) {
  .calendar-panel {
    padding: 20px 16px;
  }

  .calendar-days {
    grid-auto-rows: minmax(82px, 1fr);
  }

  .calendar-day {
    padding: 7px;
  }

  .calendar-event {
    height: 7px;
    padding: 0;
    border-left: 0;
    border-radius: 5px;
    font-size: 0;
  }

  .reception-member-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 560px) {
  #schedule-form {
    padding: 22px 15px;
  }

  .calendar-head {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  .reception-team-head {
    display: block;
  }

  .schedule-primary-action {
    width: 100%;
    min-height: 66px;
    margin-top: 8px;
  }

  .calendar-context-links {
    order: 3;
    margin-top: 5px;
  }

  .upcoming-reception-panel {
    padding: 14px;
  }

  .upcoming-reception-item {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .upcoming-reception-date {
    grid-column: 2;
  }

  .upcoming-reception-copy {
    grid-column: 2;
  }

  .upcoming-reception-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .schedule-form-actions {
    flex-wrap: wrap;
  }

  .schedule-gift-stats-head {
    padding-bottom: 14px;
  }

  .schedule-gift-access-body {
    padding: 0 11px 12px;
  }

  .schedule-gift-access-card > header {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    padding-inline: 11px;
  }

  .schedule-gift-stats-controls,
  .schedule-gift-stats-link {
    grid-template-columns: 1fr;
  }

  .schedule-gift-stats-controls button,
  .schedule-gift-stats-link button,
  .schedule-gift-stats-link a {
    width: 100%;
    justify-content: center;
  }

  .new-member-button {
    width: 100%;
    margin-top: 18px;
  }

  .calendar-days {
    grid-auto-rows: minmax(62px, 1fr);
  }

  .calendar-day {
    padding: 5px;
  }

  .calendar-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .calendar-toolbar .admin-slot-tabs {
    order: 3;
    width: 100%;
  }

  .month-controls {
    gap: 6px;
  }

  .month-controls strong {
    min-width: 96px;
    font-size: 17px;
  }

  .day-schedule-list,
  .schedule-form-grid {
    grid-template-columns: 1fr;
  }

  .schedule-form-grid .full {
    grid-column: auto;
  }

  .schedule-member-options {
    grid-template-columns: 1fr;
  }

  .reception-member-list {
    grid-template-columns: 1fr;
  }

  .schedule-form-grid input,
  .schedule-form-grid select,
  .schedule-form-grid textarea {
    font-size: 16px;
  }
}

.sheet-sync-panel { margin: 18px 0 22px; padding: 20px; border: 1px solid #dfd4cc; border-radius: 18px; background: #fffaf7; }
.sheet-sync-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.sheet-sync-head h3 { margin: 3px 0 5px; }
.sheet-sync-head p { margin: 0; color: #6d625c; }
.sheet-sync-connect { flex: 0 0 auto; padding: 10px 13px; border: 1px solid #8b2635; border-radius: 999px; color: #8b2635; font-weight: 800; text-decoration: none; }
.sheet-sync-actions { display: flex; gap: 8px; margin-top: 16px; }
.sheet-sync-actions button { min-height: 42px; padding: 0 15px; border: 1px solid #8b2635; border-radius: 11px; background: #fff; color: #8b2635; font-weight: 800; }
.sheet-sync-actions button:last-child { background: #8b2635; color: #fff; }
.sheet-sync-actions button:disabled { cursor: not-allowed; opacity: .45; }
.sheet-sync-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.sheet-sync-summary span { padding: 11px; border-radius: 12px; background: #fff; color: #6d625c; text-align: center; }
.sheet-sync-summary b { display: block; color: #36151b; font-size: 20px; }
.sheet-sync-errors { margin: 12px 0 0; padding: 12px 12px 12px 32px; border-radius: 12px; background: #fff1ef; color: #8b2635; }
@media (max-width: 600px) {
  .sheet-sync-head { display: block; }
  .sheet-sync-connect { display: inline-block; margin-top: 12px; }
  .sheet-sync-actions { display: grid; }
  .sheet-sync-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
