@font-face {
  font-family: Integral;
  src: url("/assets/integral.otf");
  font-weight: 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --cyan: #0af0f8;
  --muted: #8fa1ad;
  --edge: #27333d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #090d11;
  color: #f1f5f8;
  font:
    14px Arial,
    sans-serif;
}
header {
  height: 82px;
  border-bottom: 1px solid var(--edge);
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 16px;
}
header img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
header strong {
  font-size: 18px;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 40px 34px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 4px 0 30px;
}
.eyebrow {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 2.8px;
  font-weight: bold;
}
h1 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -1.2px;
  margin: 12px 0;
}
h1 span {
  color: var(--cyan);
}
p {
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 7px;
  background: var(--cyan);
  color: #00262b;
  padding: 12px 18px;
  font-weight: bold;
  font: 700 13px Arial;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
.secondary,
.arrow {
  background: #15212a;
  color: #cfdae3;
  border: 1px solid #30414e;
}
.month-panel {
  background: #111820;
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 20px 24px;
}
.month-heading,
.month-title,
.month-tools,
.calendar-tools,
.views {
  display: flex;
  align-items: center;
  gap: 12px;
}
.month-heading {
  justify-content: space-between;
}
.month-title h2 {
  margin: 0 10px;
  font-size: 25px;
  min-width: 195px;
}
.arrow {
  font-size: 25px;
  padding: 4px 15px;
}
#year {
  width: 90px;
  margin: 0;
}
#monthTabs {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  margin-top: 20px;
}
#monthTabs button {
  background: transparent;
  color: #8a9eae;
  font-size: 11px;
  padding: 10px 4px;
  border: 1px solid transparent;
}
#monthTabs button.active {
  background: #0af0f813;
  border-color: #0af0f85c;
  color: var(--cyan);
}
.calendar-tools {
  margin: 24px 0 16px;
  flex-wrap: wrap;
}
.filter {
  background: transparent;
  color: #869eaf;
  padding: 9px 14px;
  border: 1px solid var(--edge);
  font-size: 12px;
}
.filter.active {
  color: var(--cyan);
  background: #0af0f80d;
  border-color: #0af0f858;
}
.views {
  margin-left: auto;
  gap: 4px;
}
#regionTabs {
  display: flex;
  gap: 6px;
}
#count {
  font-size: 12px;
  color: var(--muted);
  margin-left: 10px;
}
#calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-left: 1px solid var(--edge);
  border-top: 1px solid var(--edge);
  border-radius: 10px;
  overflow: hidden;
}
.weekday {
  background: #16212a;
  text-align: center;
  color: #8ea2b1;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: bold;
  padding: 15px 4px;
  border-right: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}
.day {
  min-height: 165px;
  padding: 12px 10px;
  border-right: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  background: #0d141b;
  position: relative;
}
.day.weekend {
  background: #101923;
}
.day.outside {
  background: #090e13;
}
.day-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 26px;
  margin-bottom: 8px;
}
.day-number {
  color: #c2cfda;
  font-size: 13px;
  font-weight: bold;
}
.day.today .day-number {
  background: var(--cyan);
  color: #00262b;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.day-add {
  opacity: 0;
  background: transparent;
  color: var(--cyan);
  padding: 2px 6px;
  font-size: 18px;
}
.day:hover .day-add,
.day:focus-within .day-add {
  opacity: 1;
}
.event {
  position: relative;
  background: #17242e;
  border: 1px solid #283e4e;
  border-left: 2px solid var(--cyan);
  border-radius: 4px;
  padding: 10px 9px;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.event:last-child {
  margin-bottom: 0;
}
.event.fncs {
  background: #0d2830;
  border-color: #16505b;
  border-left-color: #0af0f8;
}
.event.reload {
  border-left-color: #b191ed;
}
.event.console {
  border-left-color: #7899db;
}
.event-title {
  display: block;
  color: #eaf4fa;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.event-title:hover[href] {
  color: var(--cyan);
  text-decoration: underline;
}
.event-stage {
  display: block;
  color: #a4b9c7;
  font-size: 11px;
  line-height: 1.4;
  margin-top: 4px;
}
.event-region {
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #7595a8;
  margin-top: 7px;
  display: block;
}
.event-edit {
  background: none;
  padding: 3px 4px;
  margin: 6px 0 0;
  font-size: 9px;
  color: #7995a7;
}
.event-edit:hover {
  color: var(--cyan);
}
.day.busy .event {
  padding: 8px 7px;
}
.day.busy .event-title {
  font-size: 12px;
}
.day.busy .event-stage {
  font-size: 10px;
}
.day.packed .event {
  padding: 7px 6px;
}
.day.packed .event-title {
  font-size: 11px;
}
.day.packed .event-stage {
  font-size: 10px;
}
.day.dense .event-title {
  font-size: 10px;
}
.agenda-day {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--edge);
}
.agenda-date {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
}
.agenda-date strong {
  display: block;
  font-size: 30px;
  color: #f1f5f8;
  margin-bottom: 4px;
}
.agenda-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.agenda-events .event {
  margin: 0;
  padding: 15px;
}
.empty {
  border: 1px dashed #344451;
  padding: 28px;
  color: var(--muted);
  border-radius: 10px;
}
#message {
  color: #9fe6e8;
  margin-bottom: 12px;
  font-size: 12px;
}
#message button {
  margin-left: 12px;
  padding: 6px 10px;
}
.calendar-note {
  font-size: 11px;
  margin-top: 18px;
}
footer {
  margin: 36px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--edge);
  font-weight: bold;
  letter-spacing: 1.5px;
  font-size: 11px;
  color: #78919f;
}
footer span {
  float: right;
  font-size: 9px;
}
dialog {
  background: #111820;
  color: #f4f7fa;
  border: 1px solid #3b505e;
  border-radius: 14px;
  padding: 26px;
  width: min(590px, calc(100% - 24px));
  max-height: 92dvh;
  overflow-y: auto;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(5px);
}
.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.editor-heading h2 {
  margin: 8px 0;
  font-size: 23px;
}
.close {
  background: transparent;
  color: #a5bbc9;
  font-size: 25px;
  padding: 5px 10px;
}
label {
  display: block;
  color: #acbeca;
  font-size: 12px;
  margin-bottom: 16px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #334652;
  background: #0b1218;
  color: white;
  border-radius: 6px;
  padding: 11px;
  font: 14px Arial;
}
input:focus,
select:focus,
textarea:focus {
  outline: 1px solid var(--cyan);
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check input {
  width: auto;
  margin: 0;
}
.hint {
  font-size: 11px;
  line-height: 1.6;
  color: #8fa5b4;
}
.editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.remove {
  background: #52262a;
  color: #f7b2b7;
  margin-left: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
.detail {
  max-width: 880px;
}
.detail-box {
  padding: 28px;
  background: #111820;
  border: 1px solid var(--edge);
  border-radius: 12px;
  margin-top: 30px;
}
.detail-box a {
  color: var(--cyan);
}
.detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.detail-meta span {
  background: #1a2b36;
  border: 1px solid #2c4555;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
}
.detail-notes {
  white-space: pre-wrap;
}
.detail-session {
  padding: 16px 0;
  border-top: 1px solid var(--edge);
}
@media (max-width: 1100px) {
  .day {
    padding: 9px 6px;
    min-height: 155px;
  }
  .event {
    padding: 8px 6px;
  }
  .event-title {
    font-size: 12px;
  }
  .day-add {
    opacity: 1;
  }
}
@media (max-width: 750px) {
  main {
    padding: 28px 16px;
  }
  .intro {
    align-items: flex-start;
  }
  .intro button {
    font-size: 11px;
    padding: 11px;
  }
  .month-panel {
    padding: 16px;
  }
  .month-heading {
    flex-wrap: wrap;
  }
  .month-title h2 {
    font-size: 23px;
    min-width: 165px;
    margin: 0 5px;
  }
  #monthTabs {
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    margin-top: 16px;
  }
  .month-tools {
    width: 100%;
    justify-content: space-between;
  }
  .calendar-tools {
    gap: 12px;
  }
  #count {
    margin-left: auto;
  }
  .views {
    width: 100%;
    margin: 0;
  }
  .calendar-note {
    font-size: 10px;
  }
  #calendar {
    overflow: auto;
  }
  .weekday {
    letter-spacing: 0;
    font-size: 9px;
  }
  .day {
    min-height: 115px;
    padding: 5px 3px;
  }
  .day-number {
    font-size: 11px;
  }
  .day-heading {
    gap: 0;
  }
  .day-add {
    padding: 0 2px;
  }
  .event {
    padding: 5px 3px;
    border-left-width: 1px;
    margin-bottom: 5px;
  }
  .event-title,
  .day.busy .event-title,
  .day.packed .event-title,
  .day.dense .event-title {
    font-size: 10px;
  }
  .event-stage,
  .day.busy .event-stage {
    font-size: 10px;
  }
  .event-region {
    font-size: 8px;
    letter-spacing: 0;
  }
  .event-edit {
    font-size: 9px;
  }
  .agenda-day {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }
  .agenda-events {
    grid-template-columns: 1fr;
  }
  .agenda-events .event-title {
    font-size: 14px;
  }
  .agenda-events .event-stage {
    font-size: 12px;
  }
  .agenda-events .event-region {
    font-size: 10px;
  }
  footer span {
    float: none;
    display: block;
    margin-top: 8px;
  }
  .pair {
    gap: 10px;
  }
  dialog {
    padding: 20px;
  }
  .editor-actions {
    flex-wrap: wrap;
  }
}
/* Compact desktop calendar: preserve full text and allow unusually busy rows to grow. */
@media (min-width: 751px) {
  header {
    height: 60px;
    padding: 0 28px;
    gap: 12px;
  }
  header img {
    width: 36px;
    height: 36px;
  }
  header strong {
    font-size: 16px;
  }
  main {
    padding: 18px 28px;
  }
  .intro {
    margin: 0 0 16px;
  }
  .intro h1 {
    font-size: 30px;
    margin: 7px 0;
  }
  .intro p {
    font-size: 12px;
    margin: 4px 0;
  }
  .intro .eyebrow {
    font-size: 9px;
  }
  .intro > button {
    padding: 10px 14px;
    font-size: 12px;
  }
  .month-panel {
    padding: 12px 18px;
  }
  .month-title h2 {
    font-size: 22px;
    min-width: 180px;
  }
  .arrow {
    font-size: 22px;
    padding: 1px 12px;
  }
  .month-tools button {
    padding: 8px 12px;
    font-size: 11px;
  }
  #year {
    padding: 7px;
    width: 80px;
  }
  #monthTabs {
    margin-top: 10px;
  }
  #monthTabs button {
    padding: 7px 4px;
  }
  .calendar-tools {
    margin: 12px 0 10px;
    gap: 8px;
  }
  .filter {
    padding: 7px 12px;
    font-size: 11px;
  }
  .weekday {
    padding: 9px 4px;
    font-size: 9px;
  }
  .day {
    min-height: 84px;
    padding: 6px 7px;
  }
  .day-heading {
    min-height: 19px;
    margin-bottom: 5px;
  }
  .day-number {
    font-size: 11px;
  }
  .day.today .day-number {
    min-width: 21px;
    height: 21px;
  }
  .day-add {
    font-size: 16px;
    padding: 0 5px;
  }
  #calendar .event,
  #calendar .day.busy .event,
  #calendar .day.packed .event {
    padding: 5px 7px;
    margin-bottom: 5px;
  }
  #calendar .event-title,
  #calendar .day.busy .event-title {
    font-size: 11px;
    line-height: 1.25;
  }
  #calendar .day.packed .event-title {
    font-size: 10.5px;
  }
  #calendar .day.dense .event-title {
    font-size: 10px;
  }
  #calendar .event-stage,
  #calendar .day.busy .event-stage,
  #calendar .day.packed .event-stage {
    font-size: 10px;
    line-height: 1.25;
    margin-top: 2px;
  }
  #calendar .event-region {
    font-size: 8px;
    letter-spacing: 0.6px;
    margin-top: 3px;
  }
  #calendar .event-edit {
    position: absolute;
    right: 3px;
    top: 3px;
    margin: 0;
    padding: 3px 6px;
    background: #203745;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
  }
  #calendar .event:hover .event-edit,
  #calendar .event:focus-within .event-edit {
    opacity: 1;
    pointer-events: auto;
  }
  .calendar-note {
    margin: 10px 0;
    font-size: 10px;
  }
  footer {
    margin: 14px 0 0;
    padding-top: 12px;
    font-size: 10px;
  }
}
@media print {
  header .site-nav,
  .intro > button,
  .month-tools,
  #monthTabs,
  .calendar-tools,
  .day-add,
  .event-edit,
  #message,
  .calendar-note,
  footer {
    display: none !important;
  }
  body {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .intro {
    margin-bottom: 10px;
  }
  main {
    padding: 0;
  }
  .month-panel {
    border: 0;
    padding: 5px 0;
  }
  .month-title .arrow {
    display: none;
  }
  .day {
    break-inside: avoid;
  }
  #agenda {
    display: none !important;
  }
  #calendar {
    display: grid !important;
  }
}

#monthTabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 480px;
}
#year {
  width: 90px;
}
.arrow:disabled {
  cursor: default;
  opacity: 0.25;
}
.month-title h2 {
  text-align: center;
}
.month-title .arrow {
  width: 34px;
  flex-shrink: 0;
  padding-left: 0;
  padding-right: 0;
}

.schedule-page {
  --cyan: #00c6ff;
}
.schedule-page #monthTabs button.active {
  background: #00c6ff13;
  border-color: #00c6ff5c;
}
.schedule-page .filter.active {
  color: #00c6ff;
  background: #00c6ff0d;
  border-color: #00c6ff58;
}
.schedule-page .event.fncs {
  background: #00c6ff12;
  border-color: #00c6ff40;
  border-left-color: #00c6ff;
}
.schedule-page .site-nav a.active {
  color: #00c6ff !important;
  border-color: #00c6ff;
}
.schedule-page .fncr-footer a:hover {
  color: #00c6ff;
}
.schedule-page .fncr-footer a:focus-visible {
  outline-color: #00c6ff;
}
.schedule-page .day-number {
  font-size: 14px;
}
.schedule-page .day.today .day-number {
  min-width: 24px;
  height: 24px;
}
@media (max-width: 750px) {
  .schedule-page .day-number {
    font-size: 13px;
  }
}

.round-navigation {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.round-navigation a {
  display: block;
  padding: 12px 16px;
  border: 1px solid #324a5b;
  border-radius: 7px;
  background: #111d27;
  color: #c0d1de;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
}
.round-navigation a[aria-current="page"] {
  border-color: #00c6ff;
  color: #00c6ff;
  background: #00c6ff12;
}
.round-navigation time {
  display: block;
  font-size: 10px;
  color: #87a3b5;
  font-weight: normal;
  margin-top: 6px;
}
.round-navigation a:hover {
  border-color: #00c6ff;
}

.event-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
}
.event-top .event-title {
  flex: 1;
  min-width: 0;
}
.event-times {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
  flex-shrink: 0;
  padding-top: 1px;
}
.event-times time {
  color: #a5d9eb;
  font-size: 9px;
  white-space: nowrap;
}
.time-tba {
  font-size: 8px;
  white-space: nowrap;
  color: #678090;
}
.tournament-import {
  background: #0a141c;
  border: 1px solid #2b4151;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
}
.tournament-import h3 {
  font-size: 13px;
  margin: 0 0 12px;
}
.tournament-import label {
  margin-bottom: 12px;
}
.tournament-start {
  display: block;
  padding-top: 3px;
  margin-bottom: 0;
  color: #a2b9ca;
  white-space: nowrap;
}

.schedule-time-region {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #9bb2c2;
  font-size: 11px;
}
.schedule-time-region select {
  width: 140px;
  margin: 0;
  padding: 7px 10px;
  font-size: 11px;
}
.schedule-timezone {
  font-size: 10px;
  color: #7893a5;
}
@media (max-width: 750px) {
  .schedule-timezone {
    width: 100%;
  }
  .schedule-time-region select {
    width: 145px;
  }
}
@media print {
  .schedule-time-region,
  .schedule-timezone {
    display: none !important;
  }
}

.schedule-page .event.color-blue {
  background: #00c6ff12;
  border-color: #00c6ff40;
  border-left-color: #00c6ff;
}
.schedule-page .event.color-purple {
  background: #a878f212;
  border-color: #a878f240;
  border-left-color: #a878f2;
}
.schedule-page .event.color-red,
.schedule-page .event.color-green {
  background: #39ff1412;
  border-color: #39ff1440;
  border-left-color: #39ff14;
}
.schedule-page .event.color-gold {
  background: #d9ad3a14;
  border-color: #d9ad3a55;
  border-left-color: #edcc76;
}
.event-lan-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 7px;
  padding: 4px 7px;
  border: 1px solid #edcc7670;
  border-radius: 4px;
  background: #edcc7614;
  color: #f4d985;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
}
.event-lan .event-region {
  color: #d9bd6b;
}
.schedule-page .weekday {
  font-size: 14px;
}
@media (max-width: 750px) {
  .schedule-page .weekday {
    font-size: 13px;
    letter-spacing: 0;
  }
}
.schedule-page .weekday {
  color: #00c6ff;
}

/* Schedule: centered agenda dates and a seven-column calendar that fits phones. */
.agenda-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  align-self: stretch;
  gap: 4px;
  line-height: 1.2;
}
.agenda-date strong {
  margin: 0;
  line-height: 1;
}
#calendar,
#agenda {
  min-width: 0;
}
@media (max-width: 750px) {
  body:has(#calendar) main {
    padding: 20px 10px;
  }
  body:has(#calendar) .intro {
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  body:has(#calendar) .intro h1 {
    font-size: clamp(23px, 6vw, 30px);
    letter-spacing: -0.6px;
  }
  body:has(#calendar) .month-panel {
    padding: 12px 8px;
  }
  body:has(#calendar) .month-heading {
    gap: 12px;
  }
  body:has(#calendar) .month-title {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }
  body:has(#calendar) .month-title h2 {
    min-width: 0;
    flex: 1;
    font-size: 22px;
    margin: 0;
    text-align: center;
  }
  body:has(#calendar) .month-tools {
    gap: 8px;
  }
  body:has(#calendar) .calendar-tools {
    gap: 10px;
    margin: 14px 0 10px;
  }
  body:has(#calendar) .views {
    width: auto;
    margin-left: auto;
  }
  body:has(#calendar) .filter {
    padding: 9px 10px;
  }
  #calendar {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
  }
  .schedule-page #calendar .weekday {
    font-size: 10px;
    padding: 10px 0;
  }
  #calendar .day {
    min-width: 0;
    min-height: 100px;
    padding: 5px 2px;
  }
  #calendar .day-heading {
    margin-bottom: 5px;
    min-height: 24px;
  }
  #calendar .day-number {
    font-size: 12px;
  }
  #calendar .day-add {
    font-size: 15px;
    padding: 2px;
    min-width: 16px;
  }
  #calendar .event,
  #calendar .day.busy .event,
  #calendar .day.packed .event {
    padding: 5px 3px;
    margin-bottom: 4px;
    border-radius: 3px;
    min-width: 0;
  }
  #calendar .event-top {
    display: block;
  }
  #calendar .event-title,
  #calendar .day.busy .event-title,
  #calendar .day.packed .event-title,
  #calendar .day.dense .event-title {
    font-size: 9px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  #calendar .event-times {
    align-items: flex-start;
    text-align: left;
    gap: 2px;
    margin-top: 4px;
  }
  #calendar .event-times time {
    font-size: 8px;
    white-space: normal;
    line-height: 1.2;
  }
  #calendar .time-tba {
    font-size: 7px;
    white-space: normal;
  }
  #calendar .event-stage,
  #calendar .day.busy .event-stage,
  #calendar .day.packed .event-stage {
    font-size: 8px;
    line-height: 1.2;
    margin-top: 3px;
  }
  #calendar .event-region {
    font-size: 7px;
    letter-spacing: 0;
    line-height: 1.2;
    margin-top: 4px;
  }
  #calendar .event-edit {
    font-size: 8px;
    padding: 3px 0;
    margin-top: 3px;
  }
  .agenda-day {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 16px 0;
  }
  .agenda-events {
    min-width: 0;
  }
  .agenda-events .event {
    padding: 12px;
  }
  .agenda-date {
    font-size: 10px;
  }
  .agenda-date strong {
    font-size: 28px;
  }
}

#agenda .event-times time {
  font-size: 12px;
  line-height: 1.35;
}

.schedule-header-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 20px 16px;
  margin-bottom: 16px;
}
.schedule-header-panel .schedule-time-region {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.schedule-header-panel #monthTitle {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 25px;
  text-align: center;
  white-space: nowrap;
}
.schedule-header-panel .month-tools {
  grid-column: 3;
  grid-row: 1;
  justify-content: flex-end;
  gap: 8px;
}
.schedule-header-panel .month-tools select {
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
  width: auto;
  min-width: 90px;
}
.schedule-header-panel .views {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  margin: 0;
  width: auto;
}
@media (max-width: 750px) {
  body:has(#calendar) .schedule-header-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 16px 8px;
    padding: 14px 10px;
  }
  .schedule-header-panel .schedule-time-region {
    grid-column: 1;
    grid-row: 1;
    font-size: 10px;
  }
  .schedule-header-panel .schedule-time-region select {
    width: 125px;
    max-width: 100%;
    font-size: 11px;
  }
  .schedule-header-panel #monthTitle {
    grid-column: 1/-1;
    grid-row: 2;
    font-size: 22px;
  }
  body:has(#calendar) .schedule-header-panel .month-tools {
    grid-column: 2;
    grid-row: 1;
    flex-wrap: wrap;
    width: auto;
    gap: 5px;
    justify-content: flex-end;
  }
  .schedule-header-panel .month-tools select {
    min-width: 0;
    max-width: 100%;
    padding: 7px;
    font-size: 11px;
  }
  body:has(#calendar) .schedule-header-panel .views {
    grid-column: 2;
    grid-row: 3;
    width: auto;
    margin: 0;
    gap: 4px;
  }
}

.schedule-header-panel {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  padding: 14px 18px;
  gap: 10px 14px;
}
.schedule-header-panel #monthTitle {
  grid-row: 1 / 3;
  align-self: center;
  justify-self: center;
  text-transform: uppercase;
  line-height: 1.2;
}
.schedule-header-panel .schedule-time-region {
  gap: 4px;
}
.schedule-header-panel .views .filter {
  padding: 7px 12px;
}
@media (max-width: 750px) {
  body:has(#calendar) .schedule-header-panel {
    padding: 10px;
    gap: 10px 8px;
  }
  .schedule-header-panel #monthTitle {
    grid-row: 2;
    font-size: 21px;
  }
}

/* One control row above a month heading joined to the calendar. */
body:has(#calendar) .schedule-header-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.schedule-header-panel .schedule-time-region {
  display: block;
  font-size: 0;
  align-self: auto;
}
.schedule-header-panel .schedule-time-region select {
  font-size: 12px;
  width: 140px;
  padding: 8px 10px;
}
body:has(#calendar) .schedule-header-panel .month-tools {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: auto;
}
body:has(#calendar) .schedule-header-panel .views {
  width: auto;
  margin-left: auto;
  gap: 4px;
}
.calendar-month-heading {
  margin: 0;
  padding: 16px 10px;
  border: 1px solid var(--edge);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #111820;
  text-align: center;
  text-transform: uppercase;
  font-size: 24px;
  line-height: 1.2;
}
#calendar {
  border-radius: 0 0 10px 10px;
}
#agenda {
  border: 1px solid var(--edge);
  border-radius: 0 0 10px 10px;
  padding: 0 14px;
}
#agenda .agenda-day:last-child {
  border-bottom: 0;
}
#message:empty {
  margin: 0;
}
@media (max-width: 750px) {
  body:has(#calendar) .schedule-header-panel {
    gap: 8px;
    padding: 10px;
  }
  .schedule-header-panel .schedule-time-region select {
    width: 120px;
    font-size: 11px;
    padding: 8px;
  }
  .schedule-header-panel .month-tools select {
    padding: 8px;
    font-size: 11px;
  }
  body:has(#calendar) .schedule-header-panel .views {
    margin-left: auto;
  }
  .calendar-month-heading {
    font-size: 21px;
    padding: 13px 8px;
  }
  #agenda {
    padding: 0 8px;
  }
}

.calendar-month-heading {
  font-size: 28px;
}
.schedule-header-panel .schedule-time-region select {
  width: 112px;
}
.schedule-header-panel .month-tools #year {
  width: 72px;
  min-width: 0;
}
.schedule-header-panel .month-tools #month {
  width: 108px;
  min-width: 0;
}
@media (max-width: 750px) {
  .calendar-month-heading {
    font-size: 24px;
  }
  body:has(#calendar) .schedule-header-panel {
    gap: 6px;
    padding: 10px 6px;
    flex-wrap: nowrap;
  }
  .schedule-header-panel .schedule-time-region {
    flex: 0 0 auto;
    min-width: 0;
  }
  .schedule-header-panel .schedule-time-region select {
    width: 88px;
    font-size: 10px;
    padding: 7px 3px;
  }
  body:has(#calendar) .schedule-header-panel .month-tools {
    gap: 4px;
    flex: 0 0 auto;
  }
  .schedule-header-panel .month-tools #month {
    width: 80px;
    font-size: 10px;
    padding: 7px 3px;
  }
  .schedule-header-panel .month-tools #year {
    width: 58px;
    font-size: 10px;
    padding: 7px 3px;
  }
  body:has(#calendar) .schedule-header-panel .views {
    gap: 3px;
    flex: 0 0 auto;
  }
  body:has(#calendar) .schedule-header-panel .views .filter {
    font-size: 10px;
    padding: 7px 6px;
  }
}
@media (max-width: 360px) {
  .schedule-header-panel .schedule-time-region select {
    width: 76px;
    font-size: 9px;
  }
  .schedule-header-panel .month-tools #month {
    width: 70px;
    font-size: 9px;
  }
  .schedule-header-panel .month-tools #year {
    width: 51px;
    font-size: 9px;
  }
  body:has(#calendar) .schedule-header-panel {
    gap: 3px;
    padding: 8px 3px;
  }
  body:has(#calendar) .schedule-header-panel .views .filter {
    font-size: 9px;
    padding: 7px 4px;
  }
}

/* Full-width list dividers meet the surrounding schedule border. */
#agenda {
  padding: 0;
  overflow: hidden;
}
#agenda .agenda-day {
  padding-left: 14px;
  padding-right: 14px;
}
#agenda > .empty {
  margin: 14px;
}
.schedule-owner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.schedule-owner-actions:has(> button:not([hidden])) {
  flex-shrink: 0;
}
#visitorPreview[aria-pressed="true"] {
  border-color: #00c6ff;
  color: #00c6ff;
  background: #00c6ff12;
}
.schedule-visitor-preview .event-edit,
.schedule-visitor-preview .day-add {
  display: none !important;
}
@media (max-width: 750px) {
  #agenda .agenda-day {
    padding-left: 8px;
    padding-right: 8px;
  }
  .schedule-owner-actions button {
    font-size: 10px;
    padding: 9px 10px;
  }
}
@media print {
  .schedule-owner-actions {
    display: none !important;
  }
}
