/* Shell for the Stitch 일기 screens ("일기 (목록)", "일기 (쓰기)", "일기 (수정)", "일기 (상태 모음)", 2026-11-28).
   Mirrors the Stitch page (bg #FAF9F6, text #1A1C1A, Pretendard stack, px-4 pt-4 pb-[96px]). No page header: the bell
   lives only on Today. Components: diary-stitch.generated.css. */
#page-diary{width:100%;max-width:480px;margin:0 auto;padding:16px 16px calc(96px + env(safe-area-inset-bottom,0px));background:#FAF9F6;color:#1A1C1A;font-family:'Pretendard',-apple-system,BlinkMacSystemFont,system-ui,Roboto,'Noto Sans KR',sans-serif;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
#page-diary *{box-sizing:border-box}
#page-diary svg{display:block;flex-shrink:0}
body:has(#page-diary.active),.app-main:has(#page-diary.active){background:#FAF9F6}
#page-diary details>summary{list-style:none!important}
#page-diary details>summary::-webkit-details-marker,#page-diary details>summary::marker,#page-diary details>summary::before,#page-diary details>summary::after{content:none!important;display:none!important}
#page-diary summary:focus,#page-diary input:focus,#page-diary select:focus,#page-diary textarea:focus{outline:none}
#page-diary summary:focus-visible,#page-diary button:focus-visible,#page-diary label:focus-within{outline:2px solid #1E3A2F;outline-offset:2px}
#page-diary button:disabled{opacity:.5;cursor:not-allowed}
#page-diary [data-diary-menu][open] summary{color:#1A1C1A;background:#FAF9F6}
#page-diary .no-scrollbar{scrollbar-width:none}
#page-diary .no-scrollbar::-webkit-scrollbar{display:none}
/* The date labels cover transparent native date inputs, so a tap opens the system date picker. */
#page-diary :is(#diaryDate,#diarySearchDate)::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#page-diary #diarySearch::-webkit-search-cancel-button{-webkit-appearance:none}
/* 양식 선택 chevron turns down while the template panel is open. */
#page-diary #diaryTemplateToggle[aria-expanded="true"] svg{transform:rotate(90deg)}
/* Diary body: keep the writer's line breaks; four lines until 더보기 (activateCollapsibleText in app.js). */
#page-diary .collapsible-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
#page-diary .collapsible-text.clamped{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
#page-diary [data-lightbox] img{display:block}
/* Stitch draws the photo × at 24px and 더보기 at 32px; keep the look, give them a 44px touch area. */
#page-diary :is([data-remove-diary-media],[data-remove-new-diary-photo])::before{content:'';position:absolute;inset:-10px}
#page-diary [data-toggle-copy]{position:relative}
#page-diary [data-toggle-copy]::before{content:'';position:absolute;inset:-6px -4px}
