html[data-app-surface-bundle="calendar-surface"] body:not(.discover-mode):not(.feed-mode) .calendar-theme-banner,
body.calendar-mode-list:not(.discover-mode):not(.feed-mode) .calendar-theme-banner,
body.calendar-mode-grid:not(.discover-mode):not(.feed-mode) .calendar-theme-banner{
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  width: 100%;
  z-index: 12;
}

.calendar-theme-banner{
  grid-row: 1;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 79;
  box-sizing: border-box;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--sheader);
  color: var(--text-main);
  font-size: var(--text-md);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.38);
  contain: layout paint;
}

.calendar-theme-banner.ui-shell-hidden,
.calendar-theme-banner[hidden]{
  display: none !important;
}

.calendar-theme-banner.is-skeleton{
  pointer-events: none;
}

.calendar-theme-banner .banner-skeleton{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-theme-banner:not(.is-skeleton) .banner-skeleton{
  display: none !important;
}

.calendar-theme-banner.is-skeleton .banner-top,
.calendar-theme-banner.is-skeleton .banner-actions{
  display: none !important;
}

.calendar-theme-banner .banner-skeleton-top{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.calendar-theme-banner .banner-skeleton-avatar{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.calendar-theme-banner .banner-skeleton-title{
  width: min(180px, 68%);
  height: 13px;
  border-radius: 999px;
}

.calendar-theme-banner .banner-skeleton-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-theme-banner .banner-skeleton-chip{
  width: 72px;
  height: 24px;
  border-radius: 999px;
}

.calendar-theme-banner .banner-skeleton-avatar,
.calendar-theme-banner .banner-skeleton-title,
.calendar-theme-banner .banner-skeleton-chip{
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.34) 45%,
    rgba(255, 255, 255, 0.16) 100%
  );
  background-size: 240% 100%;
  animation: banner-skeleton-shimmer 1.2s linear infinite;
}

@keyframes banner-skeleton-shimmer{
  0% { background-position: 100% 0; }
  100% { background-position: -120% 0; }
}

.calendar-theme-banner .banner-top{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.calendar-theme-banner .banner-text{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calendar-theme-banner .banner-title-row{
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.calendar-theme-banner .banner-title{
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-theme-banner .banner-meta{
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.78;
}

.calendar-theme-banner .banner-desc{
  display: block;
  min-width: 0;
}

.calendar-theme-banner .banner-desc-text{
  display: block;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.82;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.calendar-theme-banner .banner-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.calendar-theme-banner .banner-actions.is-empty{
  display: none;
}

.calendar-theme-banner .banner-actions .banner-action-btn{
  min-height: 30px;
  padding: 0 12px;
  border: none;
  border-radius: var(--btn-radius);
  background: var(--surface-4);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.calendar-theme-banner .banner-actions .banner-action-btn:disabled{
  opacity: 0.56;
  cursor: default;
}

.calendar-theme-banner .banner-actions .banner-participants-btn,
.calendar-theme-banner .banner-actions .banner-requests-btn{
  position: relative;
}

.calendar-theme-banner .banner-actions .banner-participants-btn .count,
.calendar-theme-banner .banner-actions .banner-requests-btn .count{
  opacity: 0.76;
}

.calendar-theme-banner .banner-badge{
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent-red);
  color: var(--text-main-inverse);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
}

.calendar-theme-banner .banner-actions .banner-share-toggle{
  gap: 8px;
}

.calendar-theme-banner .banner-actions .banner-share-toggle .calendar-share-slots-icon{
  width: 14px;
  height: 14px;
  display: block;
  filter: var(--settings-icon-filter);
  pointer-events: none;
}

.calendar-theme-banner .banner-actions .calendar-tool-caption{
  display: inline-block;
}

.calendar-theme-banner.snapshot-text-mode .banner-actions > *{
  display: none;
}

.calendar-theme-banner.snapshot-text-mode #calendarShareToggle{
  display: inline-flex;
}

.calendar-theme-banner .snapshot-tools-row{
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.calendar-theme-banner .snapshot-range-row{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 720px) {
  .calendar-theme-banner{
    padding-left: 10px;
    padding-right: 10px;
  }

  .calendar-theme-banner .banner-title{
    font-size: 16px;
  }

  .calendar-theme-banner .banner-desc-text{
    font-size: 12px;
    line-height: 1.3;
  }
}
