/* Calendar presentation only; event storage and actions remain in bytehost_suite. */
body.bh-calendar-active.bh-pilot-page #layout-content {
  grid-column: 1 / -1;
  overflow: hidden;
}

body.bh-calendar-active.bh-suite-active #layout-content > .header {
  display: none;
}

body.bh-calendar-active .bh-calendar-app {
  --cal-ink: #101c32;
  --cal-muted: #64748b;
  --cal-border: #d5e1ea;
  --cal-accent: #0f766e;
  --cal-surface: #fff;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
  background: #e8f4f3;
  color: var(--cal-ink);
  font-family: Inter, Arial, sans-serif;
}

body.bh-calendar-active .bh-calendar-app *,
body.bh-calendar-active .bh-calendar-app *::before,
body.bh-calendar-active .bh-calendar-app *::after { box-sizing: border-box; }

body.bh-calendar-active .bh-calendar-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  min-height: 0;
}

body.bh-calendar-active .bh-calendar-upcoming,
body.bh-calendar-active .bh-calendar-main {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--cal-border);
  border-radius: 10px;
  background: var(--cal-surface);
  box-shadow: 0 4px 18px #101c320d;
}

body.bh-calendar-active .bh-calendar-upcoming {
  padding: 20px 18px;
  overflow-y: auto;
}

body.bh-calendar-active .bh-calendar-upcoming h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font: 700 18px/1.25 Manrope, Inter, sans-serif;
}

body.bh-calendar-active .bh-upcoming-icon::before,
body.bh-calendar-active .bh-upcoming-empty-icon::before,
body.bh-calendar-active .bh-upcoming-toggle span::before {
  content: '\f073';
  font-family: Icons;
  color: var(--cal-accent);
  font-weight: 900;
}

body.bh-calendar-active .bh-upcoming-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 245px;
  text-align: center;
}

body.bh-calendar-active .bh-upcoming-empty-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #e8f4f3;
  font-size: 37px;
}

body.bh-calendar-active .bh-upcoming-empty strong {
  font-size: 13px;
}

body.bh-calendar-active .bh-upcoming-empty p {
  max-width: 175px;
  margin: 6px 0 0;
  color: var(--cal-muted);
  font-size: 12px;
  line-height: 1.45;
}

body.bh-calendar-active .bh-upcoming-list {
  display: grid;
  gap: 6px;
}

body.bh-calendar-active .bh-upcoming-list h3 {
  margin: 8px 0 2px;
  color: var(--cal-muted);
  font-size: 11px;
  font-weight: 700;
}

body.bh-calendar-active .bh-upcoming-list a {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--cal-border);
  border-left: 3px solid var(--event-color, var(--cal-accent));
  border-radius: 5px;
  background: color-mix(in srgb, var(--event-color, #0f766e) 7%, #fff);
  color: var(--cal-ink);
  text-decoration: none;
}

body.bh-calendar-active .bh-upcoming-list a:hover { border-color: var(--cal-accent); }
body.bh-calendar-active .bh-upcoming-list strong { font-size: 12px; line-height: 1.3; }
body.bh-calendar-active .bh-upcoming-list time,
body.bh-calendar-active .bh-upcoming-list small { color: var(--cal-muted); font-size: 11px; }

body.bh-calendar-active .bh-calendar-main {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
}

body.bh-calendar-active .bh-calendar-toolbar {
  display: flex;
  flex: 0 0 auto;
  min-height: 44px;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 0 0 13px;
  border: 0;
}

body.bh-calendar-active .bh-calendar-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

body.bh-calendar-active .bh-calendar-heading h1 {
  margin: 0;
  font: 700 24px/1.2 Manrope, Inter, sans-serif;
  white-space: nowrap;
}

body.bh-calendar-active .bh-calendar-heading > span {
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid var(--cal-border);
  color: #475569;
  font-size: 14px;
  white-space: nowrap;
}

body.bh-calendar-active .bh-upcoming-toggle { display: none; }

body.bh-calendar-active .bh-calendar-views {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  margin: 0 auto;
  padding: 3px;
  border-radius: 6px;
  background: #e8f4f3;
}

body.bh-calendar-active .bh-calendar-views a {
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 4px;
  color: #0f766e;
  font-size: 12px;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}

body.bh-calendar-active .bh-calendar-views a:hover { background: #d3ede9; }
body.bh-calendar-active .bh-calendar-views a.active,
body.bh-calendar-active .bh-calendar-views a.active:hover { background: #0f766e; color: #fff; }

body.bh-calendar-active .bh-calendar-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

body.bh-calendar-active .bh-calendar-controls a,
body.bh-calendar-active .bh-calendar-controls button {
  display: inline-flex;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cal-border);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 4px #101c320a;
  color: #0f766e;
  font-size: 15px;
  text-decoration: none;
}

body.bh-calendar-active .bh-calendar-controls .bh-today {
  padding: 0 11px;
  font-size: 12px;
  font-weight: 600;
}

body.bh-calendar-active .bh-calendar-controls .bh-new-event {
  gap: 8px;
  padding: 0 13px;
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

body.bh-calendar-active .bh-calendar-controls .bh-new-event:hover { background: #115e59; }
body.bh-calendar-active .bh-calendar-controls .bh-new-event span { font-size: 19px; }

body.bh-calendar-active .bh-time-scroll,
body.bh-calendar-active .bh-month-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--cal-border);
  border-radius: 7px;
  scrollbar-color: #c0d3dc transparent;
}

body.bh-calendar-active .bh-time-surface {
  min-width: max(100%, calc(var(--bh-days) * 112px + 54px));
  grid-template-columns: 54px repeat(var(--bh-days), minmax(112px, 1fr));
  grid-template-rows: 60px 1152px;
}

body.bh-calendar-active .bh-time-corner,
body.bh-calendar-active .bh-time-day-head {
  position: sticky;
  top: 0;
  z-index: 5;
  border-color: var(--cal-border);
  background: #fff;
}

body.bh-calendar-active .bh-time-day-head {
  gap: 1px;
  color: var(--cal-ink);
}

body.bh-calendar-active .bh-time-day-head:hover { background: #f0faf8; }
body.bh-calendar-active .bh-time-day-head span { color: #0f766e; font-size: 12px; font-weight: 500; }
body.bh-calendar-active .bh-time-day-head strong { font: 700 20px/1.1 Manrope, Inter, sans-serif; }
body.bh-calendar-active .bh-time-day-head.today { background: #e8f4f3; }
body.bh-calendar-active .bh-time-day-head.today strong { color: #0f766e; }

body.bh-calendar-active .bh-time-ruler,
body.bh-calendar-active .bh-time-day { border-color: var(--cal-border); }
body.bh-calendar-active .bh-time-ruler span { right: 8px; color: var(--cal-muted); font-size: 11px; }
body.bh-calendar-active .bh-time-day {
  background: repeating-linear-gradient(to bottom, #fff 0, #fff 47px, #e2eaf1 47px, #e2eaf1 48px);
}
body.bh-calendar-active .bh-time-day:hover {
  background: repeating-linear-gradient(to bottom, #fbfefd 0, #fbfefd 47px, #e2eaf1 47px, #e2eaf1 48px);
}

body.bh-calendar-active .bh-time-event {
  right: auto;
  min-width: 0;
  padding: 5px 6px;
  border-left-width: 4px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px #fff;
  color: var(--cal-ink);
  font-size: 11px;
  line-height: 1.2;
}

body.bh-calendar-active .bh-time-event strong,
body.bh-calendar-active .bh-time-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.bh-calendar-active .bh-time-event strong { font-size: 12px; font-weight: 600; }
body.bh-calendar-active .bh-time-event span { font-size: 10px; }
body.bh-calendar-active .bh-time-event:hover { filter: saturate(1.4); }
body.bh-calendar-active .bh-now-line { background: #d82b70; }

body.bh-calendar-active .bh-month-grid {
  min-height: 100%;
  min-width: max(100%, 665px);
  grid-template-columns: repeat(7, minmax(95px, 1fr));
  grid-template-rows: 38px repeat(var(--bh-week-rows), minmax(105px, 1fr));
}
body.bh-calendar-active .bh-month-weekday {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 8px;
  border-color: var(--cal-border);
  background: #e8f4f3;
  color: #0f766e;
  font-size: 12px;
  font-weight: 600;
}
body.bh-calendar-active .bh-month-day {
  min-height: 105px;
  border-color: var(--cal-border);
}
body.bh-calendar-active .bh-month-day.outside { background: #f6f9fb; }
body.bh-calendar-active .bh-month-day.outside .bh-month-number { color: #91a1af; }
body.bh-calendar-active .bh-month-day.today { background: #f0faf8; }
body.bh-calendar-active .bh-month-day.today .bh-month-number {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
}
body.bh-calendar-active .bh-month-number { color: var(--cal-ink); font-size: 13px; }
body.bh-calendar-active .bh-month-event {
  padding: 4px 5px;
  border-left-width: 3px;
  border-radius: 3px;
  color: var(--cal-ink);
  font-size: 11px;
}
body.bh-calendar-active .bh-month-more { color: #0f766e; font-size: 11px; text-decoration: none; }

body.bh-calendar-active .bh-event-dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: min(76dvh, 600px);
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-color: #a6b0c3 #f1f5f9;
  scrollbar-width: auto;
  border: 1px solid var(--cal-border);
  border-radius: 8px;
  background: #fff;
  color: #101c32;
  box-shadow: 0 18px 48px #101c3229;
}
body.bh-calendar-active .bh-event-dialog::-webkit-scrollbar { width: 12px; }
body.bh-calendar-active .bh-event-dialog::-webkit-scrollbar-track { background: #f1f5f9; }
body.bh-calendar-active .bh-event-dialog::-webkit-scrollbar-thumb {
  border: 2px solid #f1f5f9;
  border-radius: 8px;
  background: #a6b0c3;
}
body.bh-calendar-active .bh-event-form { padding: 20px 24px 22px; }
body.bh-calendar-active .bh-event-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
body.bh-calendar-active .bh-event-header-icon {
  flex: 0 0 26px;
  color: #0f766e;
  font-family: Icons;
  font-size: 24px;
}
body.bh-calendar-active .bh-event-header-icon::before { content: "\f271"; }
body.bh-calendar-active .bh-event-header h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: Manrope, Inter, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}
body.bh-calendar-active .bh-event-header button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #526175;
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}
body.bh-calendar-active .bh-event-error {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #e9b6b1;
  border-radius: 5px;
  background: #fff1f0;
  color: #8a2823;
  font-size: 12px;
}
body.bh-calendar-active .bh-event-title-row { margin-bottom: 8px; }
body.bh-calendar-active .bh-event-title-row input {
  width: 100%;
  height: 42px;
  padding: 7px 11px;
  border: 1px solid #9fb2c3;
  border-radius: 5px;
  background: #fff;
  color: #101c32;
  font-family: Manrope, Inter, sans-serif;
  font-size: 18px;
  font-weight: 650;
}
body.bh-calendar-active .bh-event-title-row input::placeholder { color: #718096; }
body.bh-calendar-active .bh-event-title-row input:focus,
body.bh-calendar-active .bh-event-field :is(input, select, textarea):focus {
  border-color: #0f766e;
  outline: 2px solid #0f766e40;
  outline-offset: 1px;
}
body.bh-calendar-active .bh-event-dialog .bh-series-link { margin: 0 0 9px; }
body.bh-calendar-active .bh-event-field {
  position: relative;
  display: block;
  min-height: 0;
  margin: 0 0 8px;
  padding: 0;
}
body.bh-calendar-active .bh-event-field-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  color: #0f766e;
  font-size: 17px;
  line-height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}
body.bh-calendar-active .bh-event-field label { color: #101c32; font-size: 13px; }
body.bh-calendar-active .bh-event-field :is(input, select, textarea) {
  width: 100%;
  min-height: 39px;
  border: 1px solid #aabacb;
  border-radius: 5px;
  background: #fff;
  color: #101c32;
  font-family: Inter, sans-serif;
  font-size: 13px;
}
body.bh-calendar-active .bh-event-field :is(input, select, textarea)::placeholder { color: #718096; }
body.bh-calendar-active .bh-event-select select,
body.bh-calendar-active .bh-event-input :is(input, textarea),
body.bh-calendar-active .bh-event-guests input { padding-left: 42px; }
body.bh-calendar-active .bh-event-select label { position: relative; display: block; }
body.bh-calendar-active .bh-event-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: none;
  cursor: pointer;
}
body.bh-calendar-active .bh-event-select label::after {
  position: absolute;
  top: calc(50% - 6px);
  right: 16px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #526175;
  border-bottom: 2px solid #526175;
  content: "";
  transform: rotate(45deg);
  pointer-events: none;
}
body.bh-calendar-active .bh-event-select:has(.bh-event-menu-wrap) > .bh-event-field-icon {
  top: 19px;
  transform: translateY(-50%);
}
body.bh-calendar-active .bh-event-menu-wrap { position: relative; width: 100%; }
body.bh-calendar-active .bh-event-menu-wrap .bh-native-enhanced {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}
body.bh-calendar-active .bh-event-menu-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 39px;
  padding: 7px 39px 7px 42px;
  border: 1px solid #aabacb;
  border-radius: 5px;
  background: #fff;
  color: #101c32;
  font-family: Inter, sans-serif;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
body.bh-calendar-active .bh-event-menu-trigger::after {
  position: absolute;
  right: 16px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #526175;
  border-bottom: 2px solid #526175;
  content: '';
  transform: translateY(-3px) rotate(45deg);
}
body.bh-calendar-active .bh-event-menu-trigger:focus-visible,
body.bh-calendar-active .bh-event-menu-option:focus-visible,
body.bh-calendar-active .bh-event-menu-search:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 1px;
}
body.bh-calendar-active .bh-event-menu-panel {
  margin-top: 4px;
  padding: 4px;
  border: 1px solid #aabacb;
  border-radius: 5px;
  background: #fff;
}
body.bh-calendar-active .bh-event-menu-panel[hidden] { display: none; }
body.bh-calendar-active .bh-event-menu-search {
  width: 100%;
  min-height: 36px;
  margin-bottom: 4px;
  padding: 6px 10px;
  border: 1px solid #aabacb;
  border-radius: 4px;
  background: #fff;
  color: #101c32;
  font-size: 13px;
}
body.bh-calendar-active .bh-event-menu-list { max-height: 196px; overflow-y: auto; }
body.bh-calendar-active .bh-event-menu-option {
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #101c32;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
body.bh-calendar-active .bh-event-menu-option:hover,
body.bh-calendar-active .bh-event-menu-option[aria-selected='true'] { background: #dff5f0; }
body.bh-calendar-active .bh-event-dates {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
body.bh-calendar-active .bh-event-dates label {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 6px;
  font-weight: 600;
}
body.bh-calendar-active .bh-event-dates input { padding: 5px 8px; }
body.bh-calendar-active .bh-event-until label { gap: 10px; }
body.bh-calendar-active .bh-event-until[hidden] { display: none; }
body.bh-calendar-active .bh-event-until input { width: min(220px, 100%); }
body.bh-calendar-active .bh-event-guests .bh-event-field-icon { top: 39px; transform: none; }
body.bh-calendar-active .bh-event-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}
body.bh-calendar-active .bh-event-guests small {
  padding: 4px 0 0;
  color: #64748b;
  font-size: 11px;
}
body.bh-calendar-active .bh-event-invites label {
  min-height: 25px;
  font-size: 13px;
}
body.bh-calendar-active .bh-event-invites input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
}
body.bh-calendar-active .bh-event-notes-field .bh-event-field-icon { top: 13px; transform: none; }
body.bh-calendar-active .bh-event-notes-field textarea {
  min-height: 64px;
  max-height: 160px;
  resize: vertical;
}
body.bh-calendar-active .bh-event-colors {
  display: block;
  margin: 11px 0 0;
}
body.bh-calendar-active .bh-event-colors legend {
  margin-bottom: 9px;
  color: #101c32;
  font-family: Manrope, Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
}
body.bh-calendar-active .bh-event-color-list { gap: 12px; padding: 3px 4px; }
body.bh-calendar-active .bh-color-choice span { width: 25px; height: 25px; }
body.bh-calendar-active .bh-event-actions { margin-top: 18px; }
body.bh-calendar-active .bh-event-actions button {
  min-width: 92px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
}
body.bh-calendar-active .bh-event-actions .bh-event-cancel {
  border: 1px solid #0f766e;
  background: #fff;
  color: #0f766e;
}
body.bh-calendar-active .bh-event-actions button.mainaction { background: #0f766e; color: #fff; }

@media (max-width: 1199px) {
  body.bh-calendar-active .bh-calendar-app { height: 100%; }
  body.bh-calendar-active .bh-calendar-shell { grid-template-columns: 230px minmax(0, 1fr); }
  body.bh-calendar-active .bh-calendar-toolbar { gap: 8px; }
}

@media (max-width: 900px) {
  body.bh-calendar-active .bh-calendar-app { position: relative; padding: 10px; }
  body.bh-calendar-active .bh-calendar-shell { display: block; }
  body.bh-calendar-active .bh-calendar-main { height: 100%; padding: 12px; }
  body.bh-calendar-active .bh-calendar-upcoming {
    display: block;
    position: absolute;
    z-index: 20;
    top: 10px;
    left: 10px;
    width: min(280px, calc(100vw - 20px));
    height: min(500px, calc(100% - 20px));
    box-shadow: 0 16px 40px #101c3233;
  }
  body.bh-calendar-active .bh-calendar-app:not(.upcoming-open) .bh-calendar-upcoming { display: none; }
  body.bh-calendar-active .bh-upcoming-toggle {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid var(--cal-border);
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
  }
}

@media (max-width: 600px) {
  body.bh-calendar-active .bh-calendar-toolbar { align-items: stretch; }
  body.bh-calendar-active .bh-calendar-heading { width: 100%; gap: 9px; }
  body.bh-calendar-active .bh-calendar-heading h1 { font-size: 21px; }
  body.bh-calendar-active .bh-calendar-heading > span { padding-left: 9px; font-size: 12px; }
  body.bh-calendar-active .bh-calendar-views { margin: 0; }
  body.bh-calendar-active .bh-calendar-views a { padding-inline: 8px; font-size: 11px; }
  body.bh-calendar-active .bh-calendar-controls { margin-left: auto; }
  body.bh-calendar-active .bh-calendar-controls .bh-new-event { padding-inline: 9px; }
  body.bh-calendar-active .bh-calendar-controls .bh-new-event span { font-size: 18px; }
  body.bh-calendar-active .bh-time-surface.bh-one-day { min-width: 100%; grid-template-columns: 48px minmax(0, 1fr); }
}

@media (max-width: 430px) {
  body.bh-calendar-active .bh-calendar-main { padding: 9px; }
  body.bh-calendar-active .bh-calendar-views { order: 2; width: 100%; justify-content: space-between; }
  body.bh-calendar-active .bh-calendar-views a { flex: 1; text-align: center; }
  body.bh-calendar-active .bh-calendar-controls { order: 1; margin-left: 0; }
  body.bh-calendar-active .bh-calendar-controls .bh-today { padding-inline: 8px; }
}

@media (max-width: 560px) {
  body.bh-calendar-active .bh-event-form { padding: 16px; }
  body.bh-calendar-active .bh-event-header h2 { font-size: 19px; }
  body.bh-calendar-active .bh-event-title-row input { height: 40px; font-size: 16px; }
  body.bh-calendar-active .bh-event-dates { grid-template-columns: 1fr; gap: 8px; }
  body.bh-calendar-active .bh-event-color-list { gap: 10px; }
  body.bh-calendar-active .bh-event-actions button { min-width: 82px; }
}

html.dark-mode body.bh-calendar-active .bh-calendar-app {
  --cal-ink: #f8fafc;
  --cal-muted: #a8bacb;
  --cal-border: #34485d;
  --cal-accent: #2dd4bf;
  --cal-surface: #17283d;
  background: #101c32;
}
html.dark-mode body.bh-calendar-active .bh-calendar-upcoming,
html.dark-mode body.bh-calendar-active .bh-calendar-main,
html.dark-mode body.bh-calendar-active .bh-time-corner,
html.dark-mode body.bh-calendar-active .bh-time-day-head { background: var(--cal-surface); color: var(--cal-ink); }
html.dark-mode body.bh-calendar-active .bh-upcoming-empty-icon,
html.dark-mode body.bh-calendar-active .bh-calendar-views { background: #203950; }
html.dark-mode body.bh-calendar-active .bh-calendar-heading > span { color: #c1cdd9; }
html.dark-mode body.bh-calendar-active .bh-calendar-views a,
html.dark-mode body.bh-calendar-active .bh-time-day-head span,
html.dark-mode body.bh-calendar-active .bh-time-day-head.today strong { color: #c1f5eb; }
html.dark-mode body.bh-calendar-active .bh-calendar-views a.active { color: #fff; }
html.dark-mode body.bh-calendar-active .bh-calendar-controls a,
html.dark-mode body.bh-calendar-active .bh-upcoming-toggle { background: #203950; color: #f8fafc; }
html.dark-mode body.bh-calendar-active .bh-time-day,
html.dark-mode body.bh-calendar-active .bh-time-day:hover {
  background: repeating-linear-gradient(to bottom, #17283d 0, #17283d 47px, #34485d 47px, #34485d 48px);
}
html.dark-mode body.bh-calendar-active .bh-time-event,
html.dark-mode body.bh-calendar-active .bh-month-event { color: #f8fafc; box-shadow: inset 0 0 0 2px #17283d; }
html.dark-mode body.bh-calendar-active .bh-month-weekday,
html.dark-mode body.bh-calendar-active .bh-month-day.outside { background: #203950; }
html.dark-mode body.bh-calendar-active .bh-month-day.today { background: #134e4a; }
html.dark-mode body.bh-calendar-active .bh-upcoming-list a {
  background: color-mix(in srgb, var(--event-color, #0f766e) 18%, #17283d);
  color: #f8fafc;
}
html.dark-mode body.bh-calendar-active .bh-event-dialog { background: #17283d; color: #f8fafc; }
html.dark-mode body.bh-calendar-active .bh-event-dialog { scrollbar-color: #64748b #203950; }
html.dark-mode body.bh-calendar-active .bh-event-dialog::-webkit-scrollbar-track { background: #203950; }
html.dark-mode body.bh-calendar-active .bh-event-dialog::-webkit-scrollbar-thumb {
  border-color: #203950;
  background: #64748b;
}
html.dark-mode body.bh-calendar-active .bh-event-header h2,
html.dark-mode body.bh-calendar-active .bh-event-field label,
html.dark-mode body.bh-calendar-active .bh-event-colors legend { color: #f8fafc; }
html.dark-mode body.bh-calendar-active .bh-event-field :is(input, select, textarea),
html.dark-mode body.bh-calendar-active .bh-event-title-row input {
  border-color: #526175;
  background: #203950;
  color: #f8fafc;
}
html.dark-mode body.bh-calendar-active .bh-event-actions .bh-event-cancel { background: transparent; color: #c1f5eb; }
html.dark-mode body.bh-calendar-active .bh-event-select label::after { border-color: #c1cdd9; }
html.dark-mode body.bh-calendar-active .bh-event-menu-trigger,
html.dark-mode body.bh-calendar-active .bh-event-menu-panel,
html.dark-mode body.bh-calendar-active .bh-event-menu-search {
  border-color: #526175;
  background: #203950;
  color: #f8fafc;
}
html.dark-mode body.bh-calendar-active .bh-event-menu-trigger::after { border-color: #c1cdd9; }
html.dark-mode body.bh-calendar-active .bh-event-menu-option { color: #f8fafc; }
html.dark-mode body.bh-calendar-active .bh-event-menu-option:hover,
html.dark-mode body.bh-calendar-active .bh-event-menu-option[aria-selected='true'] { background: #27566a; }

@media (prefers-reduced-motion: reduce) {
  body.bh-calendar-active .bh-time-event { transition: none; }
}
