/* Date-strip calendar popover / bottom sheet (dstrip-cal.js) */
.dstrip__cal.is-open,
.dstrip__cal[aria-expanded="true"] {
  background: var(--m-surface-2);
  color: var(--m-brand);
}
.dstrip__cal:focus-visible {
  outline: 2px solid var(--m-brand);
  outline-offset: -3px;
}

.dcal-pop {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
}
.dcal-pop[hidden] { display: none; }
.dcal-pop.is-on { pointer-events: none; }
.dcal-pop__card {
  position: fixed;
  width: min(320px, calc(100vw - 16px));
  pointer-events: auto;
  background: var(--m-surface);
  color: var(--m-text);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18), 0 0 0 1px var(--m-line);
  padding: 12px 14px 14px;
}
.dcal-pop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.dcal-pop__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--m-text);
}
.dcal-pop__x {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--m-text-3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border: 0;
}
.dcal-pop__x:hover,
.dcal-pop__x:focus-visible {
  background: var(--m-surface-2);
  color: var(--m-text);
}

.msheet--dcal .msheet__body { padding-top: 0; }

.dcal__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.dcal__title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--m-text);
}
.dcal__navbtn {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--m-surface-2);
  color: var(--m-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.dcal__navbtn:hover,
.dcal__navbtn:focus-visible {
  background: color-mix(in srgb, var(--m-brand) 16%, var(--m-surface-2));
  color: var(--m-brand);
}
.dcal__week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  text-align: center;
  font-size: 11px;
  color: var(--m-text-3);
  font-weight: 600;
}
.dcal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.dcal__pad { min-height: 40px; }
.dcal__day {
  min-height: 40px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--m-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.dcal__day:hover,
.dcal__day:focus-visible {
  background: var(--m-surface-2);
  color: var(--m-brand);
}
.dcal__day.is-today {
  box-shadow: inset 0 0 0 1.5px var(--m-brand);
  color: var(--m-brand);
}
.dcal__day.is-on {
  background: var(--m-brand);
  color: #fff;
  box-shadow: none;
}
.dcal__day.is-on:hover,
.dcal__day.is-on:focus-visible {
  background: var(--m-brand);
  color: #fff;
}
.dcal__today {
  display: grid;
  place-items: center;
  width: 100%;
  height: 40px;
  margin-top: 10px;
  border-radius: 20px;
  border: 0;
  background: color-mix(in srgb, var(--m-brand) 14%, transparent);
  color: var(--m-brand);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.dcal__today:hover,
.dcal__today:focus-visible {
  background: var(--m-brand);
  color: #fff;
}
