.notes-page .journal-main{min-height:0;padding:0}
.notes-page .site-footer{padding:0;gap:12px 24px}
.notes-window{display:grid;grid-template-columns:clamp(176px,19vw,220px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:100%;min-height:0;border:1px solid #dedede;border-radius:22px;background:#fff;box-shadow:0 8px 32px #00000008;overflow:hidden;font-size:1rem;line-height:1.5}
.notes-sidebar{min-height:0;overflow-y:auto;overscroll-behavior:contain;background:#f6f6f6;border-right:1px solid #e8e8e8;padding:24px 12px}
.notes-window-dots{display:flex;gap:8px;height:40px;padding-left:12px}
.notes-window-dots span{display:block;width:11px;height:11px;background:#aaa;border:1px solid #00000010;border-radius:50%}
.notes-folder{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border:0;border-radius:7px;background:none;font-size:.875rem;line-height:1.5;text-align:left;color:#404040;text-decoration:none}
.notes-folder svg{width:20px;height:20px;flex-shrink:0}
.notes-folder>span:last-child{margin-left:auto;color:#737373}
.notes-folder[aria-pressed=true]{background:#e8e8e8;color:#171717}
.notes-folder:hover{background:#ededed}
.notes-folder-label{padding:0 10px;margin:28px 0 6px;color:#737373;font-size:.875rem}
.notes-content{display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;overflow:hidden}
.notes-scroll,.note-reader{min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}
.notes-scroll:focus-visible,.note-reader:focus-visible{outline:2px solid #386961;outline-offset:-3px}
.notes-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 28px}
.notes-toolbar h1{font:500 1rem/1.5 Geist,Arial,sans-serif;letter-spacing:0;margin:0}
.notes-toolbar>div>p{font-size:.875rem;line-height:1.5;color:#737373}
.notes-search{display:flex;align-items:center;gap:8px;min-width:0;width:210px;border:1px solid #ebebeb;border-radius:22px;padding:8px 12px;background:#fafafa;color:#929292}
.notes-search:focus-within{border-color:#aaa;box-shadow:0 0 0 2px #00000008}
.notes-search svg{width:18px;height:18px;flex-shrink:0}
.notes-search input{width:100%;min-width:0;border:0;background:none;outline:0;font:400 1rem/1.5 Geist,Arial,sans-serif;color:#404040;padding:0}
.notes-search input::placeholder{color:#737373;opacity:1}
.notes-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:32px 24px;padding:8px 28px 32px}
.note-card{min-width:0}
.note-card>a{display:block;text-decoration:none;color:inherit;border-radius:10px}
.note-preview{height:clamp(238px,26vw,300px);border:1px solid #dedede;border-radius:10px;overflow:hidden;padding:18px;display:flex;flex-direction:column;gap:12px;box-shadow:0 2px 5px #00000003;transition:border-color .2s,box-shadow .2s}
.note-card>a:hover .note-preview{border-color:#bdbdbd;box-shadow:0 4px 12px #00000007}
.note-preview h2{font:500 .875rem/1.45 Geist,Arial,sans-serif;margin:0;color:#262626}
.note-preview p{font-size:.875rem;line-height:1.45;color:#525252}
.note-preview img{display:block;width:100%;height:96px;object-fit:cover;border-radius:3px;margin-top:auto}
.note-caption{text-align:center;padding:12px 4px 0}
.note-caption h2{font:400 1rem/1.4 Geist,Arial,sans-serif;margin:0 0 3px;color:#262626}
.note-caption p{color:#737373;font-size:.875rem;line-height:1.5}
.notes-empty{padding:72px 28px;text-align:center;color:#737373}
.notes-page-list{display:grid;gap:4px;margin-top:24px}
.notes-page-list a{padding:10px;border-radius:7px;color:#525252;text-decoration:none;font-size:.875rem;line-height:1.5}
.notes-page-list a[aria-current]{background:#e8e8e8;color:#171717}
.notes-page-list a:hover{background:#ededed}
.note-reader-toolbar{font-size:.875rem;color:#737373;gap:16px}
.notes-return{color:#737373;text-decoration:none}
.notes-return:hover{color:#171717}
.note-reader{padding:24px 36px 48px}
.note-reader h1{font:500 1.5rem/1.3 Geist,Arial,sans-serif;letter-spacing:-.025em;margin:0 0 20px;text-wrap:pretty}
.note-reader>p{max-width:var(--reading-width);font-size:.9375rem;line-height:1.6}
.note-reader figure{margin:32px 0}
.note-reader figure img{display:block;width:100%;height:auto;border-radius:5px}
.note-reader figcaption{margin-top:10px;font-size:.875rem;color:#737373}
.note-reader .note-draft-status{font-size:.875rem;color:#737373}
.note-locked-preview{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#929292;font-size:.875rem}
.note-locked-preview svg{width:30px;height:30px}
.note-reader .note-date{font-size:.875rem;color:#737373;margin:0 0 14px}
.note-lock-status,.note-lock-button{display:inline-flex;align-items:center;gap:7px;font:400 .875rem/1.5 Geist,Arial,sans-serif;color:#737373}
.note-lock-status svg,.note-lock-button svg{width:17px;height:17px}
.note-lock-button{border:1px solid #e8e8e8;background:#fafafa;border-radius:18px;padding:6px 12px;cursor:pointer}
.note-lock-button:hover{border-color:#c8c8c8;color:#171717}
.note-lock-screen{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 0 50px}
.note-lock-screen>svg{width:40px;height:40px;color:#999;margin-bottom:20px}
.note-lock-screen h2{font:500 1.125rem/1.4 Geist,Arial,sans-serif;margin:0 0 8px;color:#262626}
.note-lock-screen>p{font-size:.875rem;color:#737373;margin:0 0 24px}
.note-lock-screen form{width:100%;max-width:290px}
.note-password-field{display:flex;align-items:center;border:1px solid #dedede;border-radius:10px;overflow:hidden;background:#fff}
.note-password-field:focus-within{border-color:#949494;box-shadow:0 0 0 3px #00000006}
.note-password-field input{font:400 1rem/1.5 Geist,Arial,sans-serif;border:0;outline:0;min-width:0;width:100%;padding:10px 12px;background:transparent;text-transform:none}
.note-password-toggle{border:0;background:none;color:#737373;font:400 .875rem/1.5 Geist,Arial,sans-serif;padding:10px 12px;cursor:pointer}
.note-password-toggle:focus-visible{outline-offset:-3px}
.note-password-error{font-size:.875rem;line-height:1.4;color:#a33;margin:10px 0 0}
.note-password-error:empty{display:none}
.note-unlock-button{border:1px solid #1d1d1d;border-radius:10px;background:#262626;color:#fff;font:400 .875rem/1.5 Geist,Arial,sans-serif;padding:10px 18px;margin-top:14px;width:100%;cursor:pointer}
.note-unlock-button:hover{background:#111}
.note-unlock-button:disabled,.note-lock-button:disabled{opacity:.5;cursor:wait}
.note-prose{max-width:660px}
.note-prose p{font-size:.9375rem;line-height:1.7;margin:0 0 20px;color:#404040}
.note-prose p:last-child{margin-top:32px;margin-bottom:0}
.note-prose ul{list-style:disc;margin:0 0 20px;padding-left:1.4em;font-size:.9375rem;line-height:1.7;color:#404040}
.note-prose li{padding-left:.2em;margin-bottom:10px}
.note-prose li:last-child{margin-bottom:0}
.public-note-page .note-reader h1{margin-bottom:28px}
.note-reader .note-photo{max-width:660px;margin:32px 0 0}
.note-reader .note-photo img{border-radius:12px}
.note-references{max-width:660px;margin-top:32px;font-size:.875rem;line-height:1.6;color:#737373}
.note-references summary{width:fit-content;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.note-references ul{list-style:disc;padding-left:1.4em;margin:16px 0 0}
.note-references li{margin-bottom:14px}
.note-references a{color:inherit;text-underline-offset:3px}
.note-references p{margin:4px 0 0}
.note-session-message{font-size:.875rem;color:#737373}
.locked-note-page .note-reader h1{margin-bottom:28px}
@media(max-width:639px){
 .notes-page .footer-navigation,.notes-page .site-footer .footer-links{gap:24px}
 .notes-window{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);border-radius:16px}
 .notes-sidebar{border-right:0;border-bottom:1px solid #e8e8e8;padding:12px}
 .notes-window-dots,.notes-folder-label{display:none}
 .notes-sidebar>div[role=group]{display:flex;overflow-x:auto;gap:4px}
 .notes-folder{width:auto;flex-shrink:0;white-space:nowrap;gap:8px}
 .notes-folder>span:last-child{display:none}
 .notes-folder svg{width:18px;height:18px}
 .notes-toolbar{padding:20px 16px;gap:16px}
 .notes-search{width:180px}
 .notes-gallery{padding:0 16px 24px;gap:24px 14px}
 .note-preview{height:210px;padding:12px;gap:8px}
 .note-preview h2{display:none}
 .note-preview img{height:64px}
 .note-caption h2{font-size:.875rem}
 .note-detail-page .notes-sidebar{display:flex;align-items:center;gap:6px}
 .note-detail-page .notes-page-list{display:flex;min-width:0;overflow-x:auto;margin-top:0}
 .note-detail-page .notes-page-list a{white-space:nowrap;padding:8px 10px}
 .note-reader{padding:20px 24px 36px}
 .note-reader h1{font-size:1.375rem}
 .note-reader-toolbar{flex-wrap:wrap;gap:8px}
}
@media(max-height:600px){
 .notes-toolbar{padding-top:12px;padding-bottom:12px}
 .note-lock-screen{min-height:0;padding:8px 0 20px}
}
@media(max-width:359px){.notes-gallery{grid-template-columns:1fr}.note-preview{height:230px}}

@media(min-width:640px){
 .notes-window{grid-template-columns:192px minmax(0,1fr)}
}
@media(min-width:640px) and (max-width:767px){.notes-gallery{grid-template-columns:1fr}}

.note-poster-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:8px;margin-top:auto}
.note-preview .note-poster-preview img{width:100%;height:auto;aspect-ratio:2/3;object-fit:contain;margin:0;border-radius:3px}
.note-prose .note-films{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 16px;list-style:none;padding:0;margin:32px 0 0}
.note-prose .note-film{min-width:0;margin:0;padding:0}
.note-reader .note-film figure{margin:0}
.note-reader .note-film img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:contain;background:#f5f5f7;border-radius:5px}
.note-reader .note-film figcaption{margin:10px 0 0;font-size:.875rem;line-height:1.45;color:#525252}
.note-film figcaption span{color:#929292}
@media(max-width:900px){.note-prose .note-films{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}}

/* A compact collection and an uncluttered reading surface for phones. */
@media(max-width:950px){
 .notes-folder,.notes-return,.note-lock-button,.note-password-toggle,.note-unlock-button,.notes-search,.notes-page-list a{min-height:44px}
 .notes-return{display:inline-flex;align-items:center}
 .note-prose p,.note-prose ul,.note-reader>p{font-size:1rem;line-height:1.7}
}
@media(max-width:639px){
 .notes-sidebar{padding:8px}
 .notes-folder,.notes-return,.note-lock-button,.note-password-toggle,.note-unlock-button{min-height:44px}
 .notes-return{display:inline-flex;align-items:center}
 .notes-toolbar{padding:16px;gap:12px}
 .notes-search{min-height:44px;flex:0 1 180px}
 .notes-gallery{grid-template-columns:1fr;gap:0;padding:0 16px 12px}
 .note-card>a{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:16px;padding:14px 0;border-radius:0;border-bottom:1px solid #ededed}
 .note-card:last-child>a{border-bottom:0}
 .note-preview{height:80px;padding:8px;gap:4px;border-radius:6px;background:#fff}
 .note-preview p{font-size:7px;line-height:1.5}
 .note-preview img{height:32px}
 .note-preview:has(img){padding:0}
 .note-preview:has(img)>p{display:none}
 .note-preview>img{height:100%;object-fit:cover;margin:0}
 .note-preview .note-poster-preview{display:block;height:100%;margin:0}
 .note-preview .note-poster-preview img{width:100%;height:100%;object-fit:cover;border-radius:0}
 .note-preview .note-poster-preview img:not(:first-child){display:none}
 .note-preview .note-poster-preview{gap:2px}
 .note-locked-preview{gap:0}
 .note-locked-preview svg{width:22px;height:22px}
 .note-locked-preview>span{display:none}
 .note-caption{text-align:left;padding:0}
 .note-caption h2{font-size:1rem;line-height:1.4;margin-bottom:6px}
 .note-caption p{font-size:.8125rem}
 .note-detail-page .notes-window{grid-template-rows:minmax(0,1fr)}
 .note-detail-page .notes-sidebar{display:none}
 .note-reader-toolbar{padding:8px 20px;border-bottom:1px solid #f0f0f0}
 .note-reader{padding:24px 20px 36px;scroll-padding-block:24px}
 .note-prose p,.note-prose ul,.note-reader>p{font-size:1rem;line-height:1.7}
 .note-reader h1{font-size:1.5rem;line-height:1.25}
 .note-lock-screen{min-height:0;padding:20px 0 32px}
 .note-references summary{display:flex;align-items:center;min-height:44px}
}
@media(min-width:640px) and (max-width:950px) and (max-height:500px){
 .notes-window{grid-template-columns:140px minmax(0,1fr)}
 .notes-sidebar{padding:12px 8px}
 .notes-window-dots,.notes-folder-label{display:none}
 .notes-folder{min-height:44px}
 .note-detail-page .notes-window{grid-template-columns:minmax(0,1fr)}
 .note-detail-page .notes-sidebar{display:none}
 .note-reader-toolbar{padding:4px 24px}
 .notes-return,.note-lock-button{min-height:44px;display:inline-flex;align-items:center}
 .note-reader{padding-top:16px;padding-bottom:32px}
 .note-prose p,.note-prose ul{font-size:1rem}
}
