.calendar-welcome { position: relative; box-sizing: border-box; min-height: max(360px, calc(100dvh - 260px)); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 0 0 86px; text-align: left; touch-action: none; }
.calendar-welcome[hidden], #calendar-details[hidden] { display: none; }
.calendar-welcome h1 { font-size: clamp(28px, 3.5vw, 52px); font-weight: 400; letter-spacing: -.04em; line-height: 1.25; margin: 16px 0; }
.calendar-welcome p:not(.micro) { font-size: clamp(14px, 1.5vw, 20px); color: #e0e0e0; }
.calendar-welcome .micro { font-size: clamp(9px, 1vw, 12px); }
.calendar-welcome .calendar-open { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 52px; height: 52px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; color: white; }
.calendar-welcome .calendar-open:hover { background: transparent; box-shadow: none; transform: translateX(-50%); }
.calendar-open:focus-visible { outline: 1px solid #ffffff90; outline-offset: 4px; }
.calendar-open span { display: block; font-size: 34px; font-weight: 300; line-height: 1; background: linear-gradient(0deg, #ffffff30, #fff 55%, #ffffff50); background-size: 100% 200%; background-clip: text; -webkit-background-clip: text; color: transparent; animation: swipe-arrow-wave 2.4s ease-in-out infinite; }
@keyframes swipe-arrow-wave { 0%, 100% { opacity: .4; transform: translateY(5px); background-position: 0 100%; } 50% { opacity: 1; transform: translateY(-5px); background-position: 0 0; } }
.calendar-reveal { position: relative; padding-top: var(--pull-space, 0px); transition: padding-top .25s ease-out; }
.calendar-reveal.is-pulling { transition: none; }
.pull-close-hint { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-size: 12px; color: #e0e8ef; opacity: 0; visibility: hidden; pointer-events: none; }
.is-pulling > .pull-close-hint { opacity: 1; visibility: visible; }
body[data-page="calendar"] #page, body[data-page="memory"] #page, body[data-page="account"] #page { overscroll-behavior-y: contain; }
#calendar-details:focus { outline: none; }
#calendar-details { position: relative; padding-top: 64px; }
.calendar-reveal[data-module] #calendar-details { padding-top: 0; }
#calendar-details .section-head > [data-action="newtask"] { position: absolute; top: 0; right: 0; margin: 0; }
.is-open #calendar-details .section-head > [data-action="newtask"] { animation: calendar-add-appear .45s ease-out .25s both; }
@keyframes calendar-add-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.is-entering #calendar-details { animation: calendar-reveal-up .82s both; }
@keyframes calendar-reveal-up {
  0% { opacity: 0; transform: translateY(110px); animation-timing-function: cubic-bezier(.16,.65,.25,1); }
  55% { opacity: 1; transform: translateY(-16px); animation-timing-function: ease-in-out; }
  78% { opacity: 1; transform: translateY(5px); animation-timing-function: ease-in-out; }
  92% { opacity: 1; transform: translateY(-2px); animation-timing-function: ease-out; }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .is-open #calendar-details, .is-open #calendar-details .section-head > [data-action="newtask"] { animation: none; } }
@media (prefers-reduced-motion: reduce) { .calendar-open span { animation: none; opacity: .8; } }
