/* EPIKA CALENDAR V1 */

#epika-calendar-root {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  background: #f7f9fc;
  color: #20252b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#epika-calendar-root.epika-calendar-open {
  display: flex;
}

.epika-calendar-sidebar {
  width: 250px;
  flex: 0 0 250px;
  background: #ffffff;
  border-right: 1px solid #e6eaf0;
  display: flex;
  flex-direction: column;
}

.epika-calendar-brand {
  height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eef1f5;
}

.epika-calendar-brand img {
  display: block;
  max-width: 135px;
  max-height: 38px;
  object-fit: contain;
}

.epika-calendar-new {
  margin: 20px;
  height: 46px;
  border: 0;
  border-radius: 13px;
  background: #bfe8ff;
  color: #17212b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.epika-calendar-new:hover {
  filter: brightness(.97);
}

.epika-calendar-side-section {
  padding: 8px 20px 20px;
}

.epika-calendar-side-title {
  margin-bottom: 12px;
  color: #737b87;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.epika-calendar-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  font-size: 14px;
}

.epika-calendar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #62b8ee;
}

.epika-calendar-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.epika-calendar-toolbar {
  min-height: 68px;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid #e6eaf0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.epika-calendar-close,
.epika-calendar-nav-button,
.epika-calendar-view-button {
  height: 36px;
  padding: 0 13px;
  border: 1px solid #dde3ea;
  border-radius: 9px;
  background: #fff;
  color: #303740;
  cursor: pointer;
}

.epika-calendar-close {
  margin-right: 4px;
}

.epika-calendar-title {
  margin-right: auto;
  font-size: 20px;
  font-weight: 700;
}

.epika-calendar-view-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: #f2f5f8;
  border-radius: 10px;
}

.epika-calendar-view-button {
  border: 0;
  background: transparent;
}

.epika-calendar-view-button.is-active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(30, 40, 50, .10);
}

.epika-calendar-content {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 22px;
}

.epika-calendar-placeholder {
  min-height: 500px;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.epika-calendar-placeholder-inner {
  max-width: 520px;
  padding: 40px;
  text-align: center;
}

.epika-calendar-placeholder-icon {
  margin-bottom: 16px;
  font-size: 52px;
}

.epika-calendar-placeholder h2 {
  margin: 0 0 8px;
  font-size: 23px;
}

.epika-calendar-placeholder p {
  margin: 0;
  color: #78818d;
  line-height: 1.6;
}

#epika-calendar-launcher {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 8500;
  height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(25, 35, 45, .16);
  color: #28323d;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 760px) {
  .epika-calendar-sidebar {
    display: none;
  }

  .epika-calendar-toolbar {
    min-height: 60px;
    padding: 8px 10px;
    flex-wrap: wrap;
  }

  .epika-calendar-title {
    font-size: 17px;
  }

  .epika-calendar-view-switch {
    width: 100%;
  }

  .epika-calendar-view-button {
    flex: 1;
  }

  .epika-calendar-content {
    padding: 10px;
  }

  #epika-calendar-launcher {
    left: 12px;
    bottom: 12px;
  }
}

/* EPIKA CALENDAR WEEK V1 */

.epika-calendar-content {
  overflow: hidden;
}

.epika-week-shell {
  height: 100%;
  min-height: 0;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.epika-week-title-row {
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  align-items: center;
}

.epika-week-month-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: capitalize;
}

.epika-week-header {
  flex: 0 0 58px;
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(110px, 1fr));
  border-bottom: 1px solid #e7ebf0;
  background: #fff;
}

.epika-week-time-head {
  border-right: 1px solid #edf0f4;
}

.epika-week-day-head {
  border-right: 1px solid #edf0f4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.epika-week-day-head:last-child {
  border-right: 0;
}

.epika-week-day-name {
  color: #7a838e;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.epika-week-day-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.epika-week-day-head.is-today .epika-week-day-number {
  background: #bfe8ff;
  color: #16202a;
}

.epika-week-scroll {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.epika-week-body {
  min-width: 840px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  position: relative;
}

.epika-week-time-column {
  position: relative;
  border-right: 1px solid #e7ebf0;
  background: #fff;
}

.epika-week-time-label {
  position: absolute;
  right: 10px;
  transform: translateY(-8px);
  color: #89919b;
  font-size: 11px;
  white-space: nowrap;
}

.epika-week-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
}

.epika-week-hour-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid #edf0f4;
  pointer-events: none;
}

.epika-week-day-column {
  min-width: 0;
  position: relative;
  border-right: 1px solid #edf0f4;
}

.epika-week-day-column:last-of-type {
  border-right: 0;
}

.epika-week-day-column.is-today {
  background: rgba(191, 232, 255, .10);
}

.epika-week-event {
  position: absolute;
  left: 5px;
  right: 5px;
  z-index: 5;
  overflow: hidden;
  padding: 6px 8px;
  border: 0;
  border-left: 3px solid #2798d8;
  border-radius: 8px;
  background: #dff3ff;
  color: #173248;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 35, 50, .06);
}

.epika-week-event:hover {
  filter: brightness(.98);
}

.epika-week-event strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.epika-week-event span,
.epika-week-event small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.epika-week-now-line {
  position: absolute;
  z-index: 8;
  height: 1px;
  background: #e64b4b;
  pointer-events: none;
}

.epika-week-now-line span {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e64b4b;
}

@media (max-width: 760px) {
  .epika-week-shell {
    border-radius: 12px;
  }

  .epika-week-header {
    grid-template-columns: 52px repeat(7, minmax(90px, 1fr));
  }

  .epika-week-body {
    grid-template-columns: 52px minmax(0, 1fr);
    min-width: 720px;
  }

  .epika-week-title-row {
    padding: 0 12px;
  }
}

/* EPIKA CALENDAR EVENT MODAL V1 */

.epika-event-modal {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.epika-event-modal.is-open {
  display: flex;
}

.epika-event-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 43, .32);
  backdrop-filter: blur(2px);
}

.epika-event-modal-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 18px;
  box-shadow:
    0 22px 60px rgba(25, 35, 45, .20),
    0 3px 12px rgba(25, 35, 45, .08);
}

.epika-event-modal-header {
  min-height: 76px;
  padding: 18px 22px;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.epika-event-modal-kicker {
  margin-bottom: 3px;
  color: #7b8490;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.epika-event-modal-header h2 {
  margin: 0;
  color: #20262d;
  font-size: 20px;
  font-weight: 750;
}

.epika-event-modal-x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f3f6f8;
  color: #59636e;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.epika-event-modal-x:hover {
  background: #eaf0f4;
}

.epika-event-modal-body {
  padding: 22px;
}

.epika-event-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.epika-event-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.epika-event-field > span {
  color: #626c77;
  font-size: 12px;
  font-weight: 700;
}

.epika-event-field input,
.epika-event-field textarea,
.epika-event-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dce3e9;
  border-radius: 10px;
  background: #fff;
  color: #232a31;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition:
    border-color .15s ease,
    box-shadow .15s ease;
}

.epika-event-field input,
.epika-event-field select {
  height: 42px;
  padding: 0 12px;
}

.epika-event-field textarea {
  min-height: 96px;
  padding: 11px 12px;
  resize: vertical;
}

.epika-event-field input:focus,
.epika-event-field textarea:focus,
.epika-event-field select:focus {
  border-color: #74bfe8;
  box-shadow: 0 0 0 3px rgba(116, 191, 232, .16);
}

.epika-event-modal-error {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff0f0;
  color: #b83a3a;
  font-size: 12px;
}

.epika-event-modal-footer {
  padding: 15px 22px;
  border-top: 1px solid #edf0f4;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.epika-event-button {
  min-width: 92px;
  height: 40px;
  padding: 0 17px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.epika-event-button-secondary {
  border: 1px solid #dde3e9;
  background: #fff;
  color: #414a54;
}

.epika-event-button-primary {
  border: 1px solid #9ed8f5;
  background: #bfe8ff;
  color: #17212b;
}

.epika-event-button-primary:hover {
  filter: brightness(.97);
}

.epika-event-button:disabled {
  opacity: .55;
  cursor: wait;
}

@media (max-width: 760px) {
  .epika-event-modal {
    align-items: flex-end;
    padding: 0;
  }

  .epika-event-modal-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
  }

  .epika-event-two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .epika-event-modal-header,
  .epika-event-modal-body,
  .epika-event-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* EPIKA CALENDAR EVENT EDIT V1 */

.epika-event-modal-footer-spacer {
  flex: 1;
}

.epika-event-button-danger {
  border: 1px solid #efc4c4;
  background: #fff;
  color: #c33f3f;
}

.epika-event-button-danger:hover {
  background: #fff3f3;
  border-color: #e7aaaa;
}

.epika-week-event {
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    filter .12s ease;
}

.epika-week-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 70, 100, .12);
}

.epika-week-event:active {
  transform: translateY(0);
}

@media (max-width: 760px) {
  .epika-event-modal-footer {
    flex-wrap: wrap;
  }

  .epika-event-modal-footer-spacer {
    display: none;
  }

  .epika-event-button {
    flex: 1;
  }

  .epika-event-button-danger {
    flex-basis: 100%;
  }
}

/* EPIKA CALENDAR WEEK UX V1 */

.epika-week-day-column {
  cursor: crosshair;
}

.epika-week-day-column:hover {
  background-image:
    linear-gradient(
      to bottom,
      rgba(55, 150, 210, .035),
      rgba(55, 150, 210, .035)
    );
}

.epika-week-day-column.is-today:hover {
  background:
    rgba(191, 232, 255, .14);
}

.epika-week-event {
  cursor: pointer;
}

/* EPIKA CALENDAR DAY V1 */

.epika-day-shell {
  height: 100%;
  min-height: 0;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.epika-day-title-row {
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  align-items: center;
}

.epika-day-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: capitalize;
}

.epika-day-header {
  flex: 0 0 58px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  border-bottom: 1px solid #e7ebf0;
  background: #fff;
}

.epika-day-time-head {
  border-right: 1px solid #edf0f4;
}

.epika-day-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.epika-day-head.is-today .epika-week-day-number {
  background: #bfe8ff;
  color: #16202a;
}

.epika-day-scroll {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.epika-day-body {
  min-width: 420px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  position: relative;
}

.epika-day-grid {
  position: relative;
  min-width: 0;
}

.epika-day-column {
  position: absolute;
  inset: 0;
  cursor: crosshair;
  z-index: 2;
}

.epika-day-column.is-today {
  background: rgba(191, 232, 255, .07);
}

.epika-day-column:hover {
  background: rgba(55, 150, 210, .025);
}

.epika-day-column.is-today:hover {
  background: rgba(191, 232, 255, .11);
}

.epika-day-event {
  left: 12px !important;
  right: 18px !important;
  width: auto !important;
  z-index: 5;
  cursor: pointer;
}

.epika-day-now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #e65353;
  z-index: 7;
  pointer-events: none;
}

.epika-day-now-line span {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e65353;
}

@media (max-width: 760px) {
  .epika-day-title-row {
    padding: 0 12px;
  }

  .epika-day-body {
    min-width: 0;
  }

  .epika-day-event {
    left: 7px !important;
    right: 8px !important;
  }
}

/* EPIKA CALENDAR MONTH V1 */

.epika-month-shell {
  height: 100%;
  min-height: 0;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.epika-month-title-row {
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  align-items: center;
}

.epika-month-title {
  font-size: 14px;
  font-weight: 700;
}

.epika-month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: 42px;
  border-bottom: 1px solid #e7ebf0;
  background: #fbfcfd;
}

.epika-month-weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #edf0f4;
  color: #7b8490;
  font-size: 12px;
  font-weight: 700;
}

.epika-month-weekday:last-child {
  border-right: 0;
}

.epika-month-grid {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(105px, 1fr));
  overflow: auto;
}

.epika-month-day {
  min-width: 0;
  min-height: 105px;
  padding: 8px;
  border-right: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

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

.epika-month-day:hover {
  background: #f9fcfe;
}

.epika-month-day.is-outside {
  background: #fafbfc;
}

.epika-month-day.is-outside .epika-month-day-number {
  color: #b0b6bd;
}

.epika-month-day.is-today {
  background: rgba(191, 232, 255, .11);
}

.epika-month-day-head {
  min-height: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.epika-month-day-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4e5761;
  font-size: 13px;
  font-weight: 700;
}

.epika-month-day.is-today .epika-month-day-number {
  background: #bfe8ff;
  color: #16202a;
}

.epika-month-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.epika-month-event {
  width: 100%;
  height: 25px;
  padding: 0 7px;
  border: 0;
  border-left: 3px solid #65b8eb;
  border-radius: 6px;
  background: #eaf7ff;
  color: #26323d;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

.epika-month-event:hover {
  filter: brightness(.98);
}

.epika-month-event-time {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  color: #547084;
}

.epika-month-event-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
}

.epika-month-more {
  padding: 2px 7px;
  color: #66717c;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .epika-month-grid {
    grid-template-rows: repeat(6, minmax(90px, 1fr));
    min-width: 760px;
  }

  .epika-month-weekdays {
    min-width: 760px;
  }

  .epika-month-shell {
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .epika-month-title-row {
    padding: 0 12px;
  }

  .epika-month-grid {
    min-width: 720px;
  }

  .epika-month-weekdays {
    min-width: 720px;
  }
}

/* EPIKA CALENDAR AGENDA V1 */

.epika-agenda-shell {
  height: 100%;
  min-height: 0;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.epika-agenda-title-row {
  min-height: 70px;
  padding: 12px 20px;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.epika-agenda-title {
  margin-bottom: 3px;
  font-size: 17px;
  font-weight: 800;
}

.epika-agenda-range {
  color: #7b8490;
  font-size: 12px;
}

.epika-agenda-count {
  padding: 7px 11px;
  border-radius: 9px;
  background: #f2f6f9;
  color: #69737e;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.epika-agenda-scroll {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 8px 20px 30px;
}

.epika-agenda-group {
  max-width: 1050px;
  margin: 0 auto;
  padding: 20px 0 4px;
}

.epika-agenda-day-heading {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #444d57;
  font-size: 13px;
  font-weight: 800;
}

.epika-agenda-day-heading small {
  padding: 3px 7px;
  border-radius: 999px;
  background: #dff3ff;
  color: #3e718e;
  font-size: 10px;
  font-weight: 800;
}

.epika-agenda-day-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b8c0c8;
}

.epika-agenda-day-heading.is-today .epika-agenda-day-dot {
  background: #62b8ee;
}

.epika-agenda-events {
  margin-left: 4px;
  padding-left: 19px;
  border-left: 1px solid #e5eaf0;
}

.epika-agenda-event {
  width: 100%;
  min-height: 70px;
  margin: 0 0 8px;
  padding: 10px 14px;
  border: 1px solid #e5eaf0;
  border-radius: 11px;
  background: #fff;
  color: #26313b;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition:
    border-color .12s ease,
    box-shadow .12s ease,
    transform .12s ease;
}

.epika-agenda-event:hover {
  border-color: #cfe6f3;
  box-shadow: 0 4px 14px rgba(30, 60, 80, .07);
  transform: translateY(-1px);
}

.epika-agenda-time {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.epika-agenda-time strong {
  color: #24303a;
  font-size: 14px;
}

.epika-agenda-time span {
  color: #8a939d;
  font-size: 11px;
}

.epika-agenda-event-main {
  min-width: 0;
}

.epika-agenda-event-title {
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}

.epika-agenda-event-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #79838e;
  font-size: 11px;
}

.epika-agenda-event-meta > span:not(.epika-agenda-status)::before {
  content: "⌖";
  margin-right: 4px;
  color: #8ba4b4;
}

.epika-agenda-status {
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf7fc;
  color: #53798e;
  font-size: 10px;
  font-weight: 700;
}

.epika-agenda-event-arrow {
  color: #a1aab3;
  font-size: 22px;
  text-align: right;
}

.epika-agenda-empty {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #737e89;
  text-align: center;
}

.epika-agenda-empty-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #edf8fe;
  color: #58aeda;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
}

.epika-agenda-empty h3 {
  margin: 0 0 7px;
  color: #303942;
  font-size: 18px;
}

.epika-agenda-empty p {
  margin: 0 0 18px;
  font-size: 13px;
}

.epika-agenda-empty-add {
  height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  background: #bfe8ff;
  color: #1d2933;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 760px) {
  .epika-agenda-scroll {
    padding: 4px 10px 20px;
  }

  .epika-agenda-title-row {
    min-height: 62px;
    padding: 10px 13px;
  }

  .epika-agenda-event {
    min-height: 68px;
    padding: 9px 10px;
    grid-template-columns: 58px minmax(0, 1fr) 16px;
    gap: 9px;
  }

  .epika-agenda-time strong {
    font-size: 12px;
  }

  .epika-agenda-event-title {
    font-size: 13px;
  }

  .epika-agenda-events {
    padding-left: 12px;
  }
}

/* EPIKA CALENDAR MINI V1 */

.epika-calendar-mini-host {
  margin: 0 0 16px;
}

.epika-mini-calendar {
  padding: 12px;
  border: 1px solid #e4e9ef;
  border-radius: 14px;
  background: #fff;
}

.epika-mini-header {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.epika-mini-nav,
.epika-mini-title,
.epika-mini-day {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.epika-mini-nav {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #69737d;
  font-size: 20px;
  line-height: 1;
}

.epika-mini-nav:hover {
  background: #f1f5f8;
}

.epika-mini-title {
  min-width: 0;
  height: 30px;
  padding: 0 4px;
  border-radius: 8px;
  color: #303b45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.epika-mini-title:hover {
  background: #f5f8fa;
}

.epika-mini-weekdays,
.epika-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.epika-mini-weekdays {
  margin-bottom: 3px;
}

.epika-mini-weekday {
  height: 25px;
  color: #98a0a9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

.epika-mini-day {
  position: relative;
  aspect-ratio: 1 / 1;
  min-width: 0;
  border-radius: 50%;
  color: #525d67;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.epika-mini-day:hover {
  background: #eef5f8;
}

.epika-mini-day.is-outside {
  color: #c1c6cb;
}

.epika-mini-day.is-today {
  color: #1e88b7;
  font-weight: 900;
}

.epika-mini-day.is-today::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.epika-mini-day.is-selected {
  background: #bfe8ff;
  color: #21333e;
  font-weight: 900;
}

.epika-mini-day.is-selected:hover {
  background: #aee0fb;
}

.epika-mini-day.is-selected.is-today::after {
  background: #21333e;
}

@media (max-width: 920px) {
  .epika-calendar-mini-host {
    margin-bottom: 10px;
  }

  .epika-mini-calendar {
    padding: 9px;
  }
}



/* EPIKA CALENDAR ALL-DAY MODAL V1 */

.epika-event-all-day {
  width: fit-content;
  min-height: 34px;
  margin: -2px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}

.epika-event-all-day > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.epika-event-all-day-control {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 38px;
  border-radius: 999px;
  background: #dce3e9;
  transition:
    background .16s ease,
    box-shadow .16s ease;
}

.epika-event-all-day-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(25, 35, 45, .22);
  transition: transform .16s ease;
}

.epika-event-all-day > input:checked
  + .epika-event-all-day-control {
  background: #73c3ee;
}

.epika-event-all-day > input:checked
  + .epika-event-all-day-control
  .epika-event-all-day-knob {
  transform: translateX(16px);
}

.epika-event-all-day > input:focus-visible
  + .epika-event-all-day-control {
  box-shadow: 0 0 0 3px rgba(116, 191, 232, .22);
}

.epika-event-all-day-label {
  color: #4e5964;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .epika-event-all-day {
    margin-bottom: 12px;
  }
}


/* EPIKA CALENDAR ALL-DAY STRIP V1 */

.epika-week-all-day-row {
  flex: 0 0 auto;
  min-height: 42px;
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid #e7ebf0;
  background: #fbfcfd;
}

.epika-week-all-day-label,
.epika-day-all-day-label {
  padding: 9px 7px;
  border-right: 1px solid #edf0f4;
  color: #8a939d;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.epika-week-all-day-cell {
  min-width: 0;
  min-height: 42px;
  padding: 5px;
  border-right: 1px solid #edf0f4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.epika-week-all-day-cell:last-child {
  border-right: 0;
}

.epika-all-day-event {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid #c9e9fa;
  border-left: 3px solid #65b8eb;
  border-radius: 7px;
  background: #eaf7ff;
  color: #26323d;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

.epika-all-day-event:hover {
  filter: brightness(.98);
}

.epika-all-day-event-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #65b8eb;
}

.epika-all-day-event strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 750;
}

.epika-day-all-day-row {
  flex: 0 0 auto;
  min-height: 42px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  border-bottom: 1px solid #e7ebf0;
  background: #fbfcfd;
}

.epika-day-all-day-events {
  min-width: 0;
  min-height: 42px;
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.epika-day-all-day-event {
  max-width: 520px;
}

.epika-all-day-empty {
  min-height: 28px;
  color: #c0c6cc;
  display: flex;
  align-items: center;
  font-size: 12px;
}

@media (max-width: 760px) {
  .epika-week-all-day-row {
    grid-template-columns: 52px repeat(7, minmax(90px, 1fr));
    min-width: 720px;
  }

  .epika-week-all-day-label,
  .epika-day-all-day-label {
    font-size: 9px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .epika-day-all-day-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }
}


/* EPIKA CALENDAR MONTH + AGENDA ALL-DAY V1 */

.epika-month-event.is-all-day {
  border-left-color: #65b8eb;
  background: #eaf7ff;
}

.epika-month-all-day-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #65b8eb;
}

.epika-agenda-event.is-all-day {
  border-color: #d7ebf6;
  background: #fbfdff;
}

.epika-agenda-time.is-all-day strong {
  color: #4c8dad;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .epika-agenda-time.is-all-day strong {
    font-size: 11px;
  }
}


/* EPIKA_CALENDAR_SIDEBAR_LAUNCHER_V1_BEGIN */

/*
 * Calendar launcher is now a real SnappyMail sidebar item.
 * It must never behave like the old floating launcher.
 */

#V-MailFolderList .b-folders
  > #epika-calendar-launcher {
  position: relative;
  inset: auto;
  z-index: auto;

  width: calc(100% - 16px);
  height: 38px;

  margin: 8px 8px 6px;
  padding: 0 12px;

  border: 0;
  border-radius: 7px;

  background: transparent;
  box-shadow: none;

  color: #303944;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;

  font: inherit;
  font-size: 13px;
  font-weight: 600;

  text-align: left;

  cursor: pointer;

  transition:
    background-color .14s ease,
    color .14s ease;
}

#V-MailFolderList .b-folders
  > #epika-calendar-launcher:hover {
  background: rgba(80, 150, 210, .10);
  color: #1d5f91;
}

#V-MailFolderList .b-folders
  > #epika-calendar-launcher:active {
  background: rgba(80, 150, 210, .16);
}

#V-MailFolderList .b-folders
  > #epika-calendar-launcher:focus-visible {
  outline: 2px solid rgba(73, 157, 213, .5);
  outline-offset: -2px;
}

.epika-calendar-launcher-icon {
  width: 20px;
  height: 20px;

  flex: 0 0 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #52606d;
}

.epika-calendar-launcher-icon svg {
  display: block;
}

.epika-calendar-launcher-label {
  min-width: 0;
  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/*
 * Extra safety:
 * even if markup were ever mounted outside the mailbox sidebar,
 * do not show the launcher.
 */
body:not(:has(#V-MailFolderList))
  #epika-calendar-launcher {
  display: none !important;
}

@media (max-width: 760px) {
  #V-MailFolderList .b-folders
    > #epika-calendar-launcher {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;

    width: calc(100% - 16px);
    height: 40px;

    margin: 8px;
  }
}

/* EPIKA_CALENDAR_SIDEBAR_LAUNCHER_V1_END */
