/* Daily Acts of Peace — minimalist act grid */

.daily-acts-page {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  /* 24px content gap + safe-area so header matches pre–edge-to-edge distance */
  padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(var(--nav-height) + 36px);
  min-height: 100vh;
}

/* ── Header ── */

.dap-header {
  margin-bottom: 28px;
}

.dap-header__row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.dap-header__main {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding-inline: 44px;
}

.dap-header__label {
  margin: 0 0 8px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-aurora);
}

.dap-header__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.dap-header__subtitle {
  margin: 0 auto;
  max-width: 26em;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.dap-header__calendar {
  appearance: none;
  position: absolute;
  top: 0;
  right: 0;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--surface-lift-soft);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dap-header__calendar:hover {
  color: var(--accent-aurora);
  border-color: rgba(78, 197, 232, 0.35);
  background: rgba(78, 197, 232, 0.06);
}

/* ── Category nav ── */

.dap-cats {
  margin: 0 0 22px;
  margin-inline: -20px;
  padding-inline: 20px;
}

.dap-cats__track {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.dap-cats__track::-webkit-scrollbar {
  display: none;
}

.dap-cats__pill {
  appearance: none;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.dap-cats__pill:hover {
  color: var(--text-secondary);
}

.dap-cats__pill.is-active {
  color: var(--accent-aurora);
  background: rgba(78, 197, 232, 0.1);
}

.dap-cats__name {
  pointer-events: none;
}

/* ── Progress / streak panel ── */

.dap-progress {
  display: grid;
  grid-template-columns: minmax(64px, 78px) 1fr minmax(64px, 78px);
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(78, 197, 232, 0.28);
  background:
    linear-gradient(180deg, rgba(78, 197, 232, 0.06) 0%, rgba(12, 12, 14, 0.92) 40%),
    #0c0c0e;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.dap-progress__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  min-width: 0;
}

.dap-progress__emoji {
  font-size: 1rem;
  line-height: 1;
}

.dap-progress__value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.dap-progress__label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dap-progress__week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
}

.dap-progress__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dap-progress__day-label {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.dap-progress__day-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 700;
  color: #041018;
  line-height: 1;
}

.dap-progress__day.is-completed .dap-progress__day-dot {
  background: #4ec5e8;
  border-color: #4ec5e8;
  color: #041018;
  box-shadow: 0 0 10px rgba(78, 197, 232, 0.35);
}

.dap-progress__day.is-today .dap-progress__day-dot {
  box-shadow:
    0 0 0 2px rgba(78, 197, 232, 0.35),
    0 0 14px rgba(78, 197, 232, 0.28);
}

.dap-progress__day.is-future .dap-progress__day-dot {
  opacity: 0.45;
}

@media (max-width: 380px) {
  .dap-progress {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .dap-progress__week {
    order: 3;
  }
  .dap-progress__stat--streak,
  .dap-progress__stat--acts {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }
  .dap-progress__label {
    letter-spacing: 0.1em;
  }
}

/* ── Theme intro ── */

.dap-theme-intro {
  margin: 0 0 20px;
  text-align: center;
}

.dap-theme-intro__label {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dap-theme-intro__copy {
  margin: 0 auto;
  max-width: 28em;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ── Category accent colors (supporting only) ── */

.dap-cat--kindness { color: #f2a0b0; }
.dap-cat--connection { color: #7eb8f0; }
.dap-cat--courage { color: #e8b86d; }
.dap-cat--compassion { color: #c4a0e8; }
.dap-cat--understanding { color: #8fd4a8; }
.dap-cat--generosity { color: #e8c87a; }
.dap-cat--presence { color: #9ec9d8; }
.dap-cat--community { color: #4ec5e8; }

/* ── Grid ── */

.dap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 520px) {
  .dap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 900px) {
  .dap-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1280px) {
  .dap-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.dap-grid__cell {
  aspect-ratio: 3 / 4;
  min-height: 0;
}

.dap-square {
  appearance: none;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121214;
  font-family: var(--font-sans);
  color: #f2efe8;
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.35s ease;
}

.dap-square__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 0.45s ease;
  border: 0;
  pointer-events: none;
}

.dap-square__media--fallback {
  display: block;
  background:
    radial-gradient(circle at 30% 20%, rgba(78, 197, 232, 0.18), transparent 55%),
    linear-gradient(160deg, #1a1a1e, #0a0a0c);
}

.dap-square__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 38%,
    rgba(0, 0, 0, 0.82) 100%
  );
  pointer-events: none;
}

.dap-square__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px 12px;
  min-height: 46%;
}

.dap-square__cat {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* Incomplete / available cards */
  color: rgba(255, 255, 255, 0.45);
}

.dap-square.is-completed .dap-square__cat {
  /* Same World Choir blue as completion marks */
  color: #4ec5e8;
}

.dap-square__text {
  font-size: clamp(0.82rem, 3.4vw, 0.95rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #f5f2ea;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dap-square__mark {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #041018;
  background: #4ec5e8;
  box-shadow: 0 0 16px rgba(78, 197, 232, 0.45);
}

.dap-square__lock {
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
}

.dap-square__mystery {
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  opacity: 0.55;
}

.dap-square__tease {
  margin-top: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.dap-square:hover {
  transform: translateY(-2px);
}

.dap-square.has-image:hover .dap-square__media {
  transform: scale(1.06);
}

/* Completed = cyan border + soft glow */
.dap-square.is-completed {
  border-color: rgba(78, 197, 232, 0.55);
  box-shadow: 0 0 0 1px rgba(78, 197, 232, 0.18), 0 10px 28px rgba(78, 197, 232, 0.12);
}

.dap-square.is-completed:hover {
  border-color: rgba(78, 197, 232, 0.8);
  box-shadow: 0 0 0 1px rgba(78, 197, 232, 0.28), 0 14px 34px rgba(78, 197, 232, 0.18);
}

/* Available revealed */
.dap-square.is-available {
  border-color: rgba(255, 255, 255, 0.1);
}

.dap-square.is-available:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Today's act — stronger World Choir blue outline */
.dap-square.is-today {
  border-width: 1.5px;
  border-color: #4ec5e8;
  box-shadow:
    0 0 0 1px rgba(78, 197, 232, 0.35),
    0 0 22px rgba(78, 197, 232, 0.2);
}

.dap-square.is-today.is-completed {
  border-color: #4ec5e8;
  box-shadow:
    0 0 0 1px rgba(78, 197, 232, 0.5),
    0 0 28px rgba(78, 197, 232, 0.28);
}

/* Future = mysterious locked */
.dap-square.is-future {
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(78, 197, 232, 0.06), transparent 55%),
    linear-gradient(165deg, #161618 0%, #0a0a0c 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 16px 12px;
}

.dap-square.is-future:hover {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.55);
}

/* Completion pulse */
.dap-square.is-just-completed {
  animation: dapSquareComplete 0.9s ease forwards;
}

@keyframes dapSquareComplete {
  0% {
    box-shadow: 0 0 0 rgba(78, 197, 232, 0);
  }
  40% {
    box-shadow: 0 0 28px rgba(78, 197, 232, 0.4);
    border-color: rgba(78, 197, 232, 0.85);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(78, 197, 232, 0.18), 0 10px 28px rgba(78, 197, 232, 0.12);
    border-color: rgba(78, 197, 232, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dap-square,
  .dap-square__media,
  .dap-square.is-just-completed {
    transition: none;
    animation: none;
  }
}

/* ── Empty ── */

.dap-empty-state {
  text-align: center;
  padding: 48px 16px;
}

.dap-empty-state__title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dap-empty-state__copy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.dap-loading,
.dap-error {
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 40px 12px;
}

/* ── Sheet / modal ── */

.dap-sheet {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center in the usable viewport (above bottom nav), not the tall scrollable page. */
  padding:
    max(20px, env(safe-area-inset-top, 0px))
    16px
    calc(var(--nav-height, 84px) + max(16px, env(safe-area-inset-bottom, 0px)));
  box-sizing: border-box;
  pointer-events: auto;
  animation: dapSheetIn 0.32s ease;
}

@keyframes dapSheetIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dap-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.dap-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-width: 520px;
  max-height: min(
    calc(
      100dvh
      - var(--nav-height, 84px)
      - 48px
      - env(safe-area-inset-top, 0px)
      - env(safe-area-inset-bottom, 0px)
    ),
    680px
  );
  margin: 0 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 28px 22px;
  border-radius: 24px;
  border: 1px solid var(--df-line);
  background: linear-gradient(
    180deg,
    rgba(18, 20, 28, 0.98) 0%,
    rgba(8, 8, 12, 0.99) 100%
  );
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  animation: dapPanelIn 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.dap-sheet__hero {
  margin: -28px -22px 18px;
  height: 160px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  background: #121214;
  box-shadow: inset 0 -40px 50px rgba(8, 8, 12, 0.85);
}

.dap-sheet__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@keyframes dapPanelIn {
  from { transform: translateY(14px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.dap-sheet--moment .dap-sheet__panel {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.dap-sheet__close {
  appearance: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--border-subtle);
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.dap-sheet__close:hover {
  color: var(--text-primary);
  background: var(--border-mid);
}

.dap-sheet__kicker {
  margin: 0 0 10px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-aurora);
}

.dap-sheet__category {
  margin: 0 0 8px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dap-sheet__title {
  margin: 0 0 16px;
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text-primary);
}

.dap-sheet__title--small {
  font-size: 1.05rem;
}

.dap-sheet__title--muted {
  color: var(--text-secondary);
}

.dap-sheet__body {
  margin: 0 0 14px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Grey act explanation — full text always visible; copy is sized for ~2 lines. */
.dap-sheet__body--explanation {
  line-height: 1.55;
}

.dap-sheet__body--soft {
  color: var(--text-muted);
  font-style: italic;
}

.dap-sheet__meta-block {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.dap-sheet__meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.dap-sheet__meta-block--inline {
  margin: 0;
  padding-top: 0;
  border-top: 0;
  flex: 1 1 0;
}

.dap-sheet__meta-block--sponsor {
  text-align: right;
  flex: 0 0 auto;
}

.dap-sponsor-logo {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 4px 0 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 120px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.dap-sponsor-logo:hover,
.dap-sponsor-logo:focus-visible {
  opacity: 0.85;
  outline: none;
}

.dap-sponsor-logo img {
  display: block;
  max-width: 100%;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.dap-sheet__meta-label {
  margin: 0 0 4px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-aurora);
}

.dap-sheet__meta-value {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.dap-sheet__meta-note {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dap-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.dap-sheet__actions .btn {
  width: 100%;
  max-width: none;
}

/* ── Completion moment ── */

.dap-complete-moment {
  padding: 12px 8px;
}

.dap-complete-moment__icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

.dap-complete-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(78, 197, 232, 0.5);
  animation: dapRingPulse 1.1s ease forwards;
}

@keyframes dapRingPulse {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1); opacity: 1; }
  100% {
    transform: scale(1);
    opacity: 1;
    border-color: rgba(78, 197, 232, 0.7);
    background: rgba(78, 197, 232, 0.1);
  }
}

.dap-complete-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-aurora);
  animation: dapCheckIn 0.55s ease 0.3s both;
}

@keyframes dapCheckIn {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.dap-complete-moment__eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-aurora);
}

.dap-complete-moment__copy {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Reflection ── */

.dap-reflection-box {
  margin-top: 16px;
  text-align: left;
}

.dap-reflection-box label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-aurora);
}

.dap-reflection-box textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 14px;
}

.dap-reflection-box textarea:focus {
  outline: none;
  border-color: rgba(78, 197, 232, 0.4);
}

.dap-reflection-hint {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dap-reflection-view {
  margin: 20px 0 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-lift-soft);
}

.dap-reflection-view__label {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dap-reflection-view__quote {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-style: italic;
}

.dap-link-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-aurora);
  cursor: pointer;
}

.dap-link-btn:hover {
  color: var(--text-primary);
}

/* ── Calendar ── */

.dap-calendar {
  margin-top: 8px;
}

.dap-calendar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dap-calendar__month {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.dap-calendar__nav button {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
}

.dap-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.dap-calendar__dow {
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 0;
}

.dap-calendar__day {
  appearance: none;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--surface-lift-soft);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: default;
  position: relative;
}

.dap-calendar__day.is-marked {
  border-color: rgba(78, 197, 232, 0.4);
  color: var(--accent-aurora);
  cursor: pointer;
  background: rgba(78, 197, 232, 0.1);
}

.dap-calendar__mark {
  position: absolute;
  bottom: 3px;
  right: 4px;
  font-size: 0.55rem;
}

.dap-calendar__day.is-empty {
  opacity: 0.25;
}

.dap-calendar__note {
  margin: 18px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 640px) {
  .dap-sheet {
    padding:
      24px
      24px
      calc(var(--nav-height, 84px) + 24px);
  }

  .dap-sheet__panel {
    max-height: min(
      calc(100dvh - var(--nav-height, 84px) - 56px),
      680px
    );
  }

  .dap-square {
    border-radius: 16px;
    padding: 12px;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .dap-grid {
    gap: 8px;
  }

  .dap-square {
    border-radius: 10px;
    padding: 6px;
    gap: 4px;
  }

  .dap-header__main {
    padding-inline: 40px;
  }
}

/* Light Mode only — mystery "?" is white; tile boxes stay as-is.
   Dark Mode rules above are untouched. */
html[data-theme="light"] .dap-square__mystery {
  color: #ffffff !important;
  opacity: 0.95;
}

html[data-theme="light"] .dap-square.is-future .dap-square__mystery {
  color: #ffffff !important;
  opacity: 0.9;
}

html[data-theme="light"] .dap-square.is-available .dap-square__mystery,
html[data-theme="light"] .dap-square.is-today.is-available .dap-square__mystery {
  color: #ffffff !important;
  opacity: 0.95;
}

/* Light Mode only — calendar month title white */
html[data-theme="light"] .dap-calendar__month {
  color: #ffffff;
}

/* Light Mode only — act detail rectangle clear grey (same as Home lightbulb) */
html[data-theme="light"] .dap-sheet__panel {
  background: #e8e8ec;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}
