/* Compact, readable form layouts for wide screens. */
.teamCalendarPage,
.adminLayout,
.adminWikiWrap,
.adminFeatures,
.adminMeetingConfirmation {
  width: min(1480px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.teamCalendarPage { margin-bottom: 64px; }
.adminLayout {
  grid-template-columns: minmax(0, 920px) minmax(300px, 1fr);
  align-items: start;
}

.adminFormModern {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px;
  border-color: #303830;
  border-radius: 14px;
  background: linear-gradient(145deg, #0d110e, #0a0d0b);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.adminFormModern > input[type="hidden"] { display: none; }
.adminFormModern .adminFormSection {
  padding: 22px;
  border: 1px solid #293129;
  border-radius: 10px;
  background: #0f1410;
}

.adminFormSectionTitle {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 19px;
}

.adminFormSectionTitle > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #746534;
  border-radius: 9px;
  background: #242113;
  color: #dfc66f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.adminFormSectionTitle h3 {
  margin: 0 0 3px;
  color: #edf0eb;
  font: 600 22px/1 'Cormorant Garamond', serif;
}

.adminFormSectionTitle p {
  margin: 0;
  color: #7f8981;
  font-size: 11px;
  line-height: 1.45;
}

.adminFormGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.adminFormModern label,
.calendarLeavePanel label {
  min-width: 0;
}

.adminFormModern input:not([type="checkbox"]),
.adminFormModern select,
.calendarLeavePanel input,
.teamCalendarPanels input,
.teamCalendarPanels select {
  min-height: 48px;
  border: 1px solid #364037;
  border-radius: 7px;
  background-color: #121813;
  color: #eef1ed;
  color-scheme: dark;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.adminFormModern input:hover,
.adminFormModern select:hover,
.calendarLeavePanel input:hover { border-color: #586359; }

.adminFormModern input:focus,
.adminFormModern select:focus,
.calendarLeavePanel input:focus {
  outline: 0;
  border-color: #bca657;
  background: #151b16;
  box-shadow: 0 0 0 3px rgba(214, 189, 103, .12);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  width: 19px;
  height: 19px;
  padding: 5px;
  border-radius: 6px;
  background-color: rgba(214, 189, 103, .1);
  filter: invert(83%) sepia(32%) saturate(653%) hue-rotate(4deg) brightness(101%);
  opacity: .95;
  cursor: pointer;
}

.adminFormModern fieldset {
  min-width: 0;
  margin: 18px 0 0;
  padding: 17px;
  border: 1px solid #303930;
  border-radius: 9px;
  background: #0c110d;
}

.adminFormModern fieldset legend {
  padding: 0 7px;
  color: #aeb7af;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.adminFormModern .weekdayPicker {
  display: grid;
  grid-template-columns: repeat(7, minmax(58px, 1fr));
  gap: 8px;
}

.weekdayPicker legend { grid-column: 1 / -1; }
.weekdayPicker label { display: block; margin: 0; cursor: pointer; }
.weekdayPicker input { position: absolute; opacity: 0; pointer-events: none; }
.weekdayPicker span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid #343d35;
  border-radius: 7px;
  background: #131914;
  color: #8f9991;
  font-size: 12px;
  font-weight: 700;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}

.weekdayPicker label:hover span { border-color: #6f6846; color: #e2e6df; transform: translateY(-1px); }
.weekdayPicker input:checked + span {
  border-color: #9e8a45;
  background: #302b18;
  color: #f1dd96;
  box-shadow: inset 0 0 0 1px rgba(214, 189, 103, .12);
}
.weekdayPicker input:focus-visible + span { outline: 2px solid #d6bd67; outline-offset: 2px; }

.adminFormModern .meetingAudience { display: grid; gap: 12px; margin-top: 0; }
.adminFormModern .meetingAudience .audienceAll { margin: 0; border-radius: 7px; }
.adminFormModern .audienceRoleOptions span { border-radius: 7px; }
.adminFormModern .pollDeadline { width: min(100%, 420px); margin: 17px 0 0; }
.adminFormModern > .formActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 5px 2px 1px;
}
.adminFormModern > .formActions button { min-width: 160px; min-height: 48px; border-radius: 7px; }

.calendarLeavePanel {
  overflow: hidden;
  padding: 25px 26px;
  border-color: #303830;
  border-radius: 12px;
  background: linear-gradient(135deg, #0e130f, #0b0f0c);
}

.calendarLeaveCompactHeader h2 { font-size: 27px; }
.calendarLeaveActions button {
  min-width: 184px;
  min-height: 44px;
  border-radius: 7px;
}

.calendarLeavePanel #calendarLeave {
  width: min(100%, 740px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
}

.calendarLeavePanel #calendarLeave button {
  grid-column: 1 / -1;
  width: max-content;
  min-width: 190px;
  min-height: 46px;
  border-radius: 7px;
}

@media (max-width: 1100px) {
  .adminLayout { grid-template-columns: 1fr; }
  .meetingList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .teamCalendarPage,
  .adminLayout,
  .adminWikiWrap,
  .adminFeatures,
  .adminMeetingConfirmation { width: calc(100% - 24px); }
  .adminFormModern { padding: 10px; }
  .adminFormModern .adminFormSection { padding: 17px; }
  .adminFormGrid { grid-template-columns: 1fr; }
  .adminFormModern .weekdayPicker { grid-template-columns: repeat(4, 1fr); }
  .adminFormModern > .formActions { flex-direction: column; }
  .adminFormModern > .formActions button { width: 100%; }
  .meetingList { grid-template-columns: 1fr; }
  .calendarLeavePanel #calendarLeave { grid-template-columns: 1fr; }
  .calendarLeavePanel #calendarLeave button { grid-column: 1; width: 100%; }
}
