/* Shell for the final Stitch Calendar screen (calendar.html, 2026-11-20).
   Mirrors the Stitch page (bg #FAF9F6, text #1C1D1B, py-4 px-3, Pretendard stack, details markers removed) and hides
   the global top bar (the calendar card carries its own month header). Component styles come from calendar-stitch.generated.css. */
#page-calendar{width:100%;max-width:448px;margin:0 auto;padding:16px 12px calc(96px + env(safe-area-inset-bottom,0px));background:#FAF9F6;color:#1C1D1B;font-family:'Pretendard',-apple-system,BlinkMacSystemFont,sans-serif;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
#page-calendar *{box-sizing:border-box}
#page-calendar svg{display:block}
#page-calendar button,#page-calendar input,#page-calendar select{font-family:inherit}
body:has(#page-calendar.active),.app-main:has(#page-calendar.active){background:#FAF9F6}
body:has(#page-calendar.active) .topbar{display:none!important}
#page-calendar details>summary{list-style:none!important}
#page-calendar details>summary::-webkit-details-marker,#page-calendar details>summary::marker,#page-calendar details>summary::before,#page-calendar details>summary::after{content:none!important;display:none!important}
#page-calendar details[open]>summary .stitch-chevron{transform:rotate(180deg)}
/* Weekday chips for "요일 선택" in the Stitch control style. */
#page-calendar .stitch-day-chip{position:relative;display:inline-flex}
#page-calendar .stitch-day-chip input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
#page-calendar .stitch-day-chip span{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:24px;padding:0 6px;border:1px solid #E5E3DE;border-radius:6px;background:#fff;color:#444;font-size:11px}
#page-calendar .stitch-day-chip input:checked+span{border-color:#1E3A2F;background:#1E3A2F;color:#fff}
#page-calendar .stitch-day-chip input:focus-visible+span{outline:2px solid #1E3A2F;outline-offset:1px}
/* 16px Stitch checkboxes keep their size but get a 44px invisible touch target. */
#page-calendar [data-event-toggle]{position:relative}
#page-calendar [data-event-toggle]::before{content:'';position:absolute;inset:-14px}
#page-calendar [data-select-day]:focus-visible,#page-calendar [data-habit-toggle]:focus-visible{outline:2px solid #1E3A2F;outline-offset:-2px}
@media(max-width:359px){#page-calendar{padding-left:8px;padding-right:8px}}
