body[data-page="calendar"] .app-shell { grid-template-columns: minmax(0, 1fr); }
body[data-page="calendar"] .sticky-board { min-height: 260px; }
body[data-page="calendar"] [hidden] { display: none !important; }
.notes-storage { margin-top: 26px; }
.notes-folder-button { display: flex; gap: 18px; align-items: center; width: 100%; border: 0; padding: 12px; border-radius: 18px; color: var(--text-primary); background: transparent; text-align: left; cursor: pointer; }
.notes-folder-button img { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 8px 18px #3020131a; transition: transform .25s ease; }
.notes-folder-button:hover img, .notes-folder-button[aria-expanded="true"] img { transform: rotate(-5deg) translateY(-3px); }
.notes-folder-button strong, .notes-folder-button small { display: block; }
.notes-folder-button strong { font: 500 22px var(--font-display); margin-bottom: 8px; }
.notes-folder-button small { font-size: 11px; color: var(--text-secondary); line-height: 1.7; }
.notes-archive { overflow: hidden; border: 1px solid var(--border-default); border-radius: 20px; margin-top: 16px; background: #aa845212; }
.notes-archive-heading, .notes-archive-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; font-size: 12px; color: var(--text-secondary); }
.notes-storage button:not(.archive-note), #note-viewer-close { min-height: 44px; min-width: 44px; }
.notes-archive-heading button, .notes-archive-nav button { border: none; border-radius: 50%; color: var(--text-primary); background: transparent; cursor: pointer; }
.notes-archive-track { position: relative; display: flex; gap: 22px; overflow-x: auto; overflow-y: hidden; padding: 28px calc(50% - 85px) 105px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #a98b60 transparent; }
.archive-note { position: relative; flex: 0 0 170px; width: 170px; height: 190px; padding: 22px 16px; border: 1px solid #9d7b4740; border-radius: 3px 3px 22px 3px; background: var(--paper-color, #f6e7c9); color: #4b3927; box-shadow: 0 12px 24px #24160c20; transform: translateY(var(--arc-y, 0px)) rotate(var(--arc-rotation, 0deg)); scroll-snap-align: center; text-align: left; cursor: zoom-in; transition: box-shadow .2s; }
.archive-note small { display: block; font-size: 9px; letter-spacing: .14em; opacity: .7; margin-bottom: 14px; }
.archive-note > span { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; font: 15px/1.5 var(--font-display); }
.archive-note.arc-selected { box-shadow: 0 14px 28px #24160c36; }
.notes-storage button:focus-visible, #note-viewer-close:focus-visible { outline: 2px solid #a77c44; outline-offset: 3px; }
#note-viewer { box-sizing: border-box; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 26px; border: 1px solid #94734855; border-radius: 5px 5px 30px 5px; background: var(--paper-color, #f6e7c9); color: #483424; box-shadow: 0 24px 90px #0005; overflow: auto; }
#note-viewer[open] { animation: note-unfold .25s ease-out; }
#note-viewer::backdrop { background: #241b1499; backdrop-filter: blur(4px); }
.note-viewer-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#note-viewer-author { font-size: 14px; font-weight: 500; }
#note-viewer-close { border: none; background: transparent; color: inherit; cursor: pointer; font-size: 24px; }
#note-viewer-text { white-space: pre-wrap; overflow-wrap: anywhere; font: 20px/1.9 var(--font-display); padding: 18px 0 24px; }
#note-viewer-date { font-size: 11px; opacity: .7; }
#note-viewer-delete { display: block; min-height: 44px; margin-top: 20px; padding: 8px 14px; background: transparent; border: 1px solid #94734855; border-radius: 8px; color: #684531; cursor: pointer; }
#note-viewer-placement { display: block; min-height: 44px; margin-top: 20px; padding: 10px 18px; border: 1px solid #94734855; border-radius: 8px; background: #765536; color: #fff5e3; font: inherit; cursor: pointer; }
#note-viewer-placement:focus-visible { outline: 2px solid #765536; outline-offset: 3px; }
.note-placement-hint, #note-viewer-placement-status { font-size: 12px; line-height: 1.6; }
.archive-note .archive-note-location { position: absolute; bottom: 10px; left: 16px; margin: 0; letter-spacing: 0; }
.archive-note > span { -webkit-line-clamp: 5; }
body[data-page="calendar"] .sticky-note.note-just-unpacked { outline: 3px solid #b78742; outline-offset: 4px; }
@keyframes note-unfold { from { opacity: .2; transform: scale(.8) rotate(-3deg); } to { opacity: 1; transform: none; } }
@media (max-width: 580px) { body[data-page="calendar"] .user-email { display: none; } }
@media (prefers-reduced-motion: reduce) { #note-viewer[open] { animation: none; } .notes-folder-button img { transition: none; } }
