.fan-note-dialog{width:min(570px,calc(100vw - 28px));max-height:calc(100dvh - 36px);padding:42px 36px 30px;background:#e8dfc8;color:#302f26;border:1px solid #bcb197;border-radius:4px;box-shadow:0 24px 100px #0008;overflow:auto;color-scheme:light}
.fan-note-dialog::backdrop{background:#0a0e0bd9;backdrop-filter:blur(8px)}
.fan-note-dialog[open]{animation:note-arrive .35s ease-out}
.note-close{position:absolute;right:8px;top:8px;font-size:27px;color:#4a4a3d}
.note-stamp{float:right;display:grid;place-items:center;width:54px;height:64px;border:2px dashed #8c694c;color:#8c4d3b;font:36px Georgia,serif;transform:rotate(9deg);margin:10px 0 12px 16px}
.fan-note-dialog h2{font:36px/1.14 var(--display);margin:10px 0 16px;max-width:370px}
.note-intro,.note-delivered>p{font:17px/1.55 var(--reading);margin:0 0 24px}
.note-moods{padding:0;margin:0 0 24px;border:0;display:flex;flex-wrap:wrap;gap:8px}.note-moods legend,.note-field{font:12px/1.5 var(--typewriter);margin-bottom:12px;display:block}
.note-moods label{position:relative;cursor:pointer}.note-moods input{position:absolute;opacity:0;width:1px;height:1px}.note-moods span{display:inline-flex;align-items:center;min-height:40px;padding:8px 13px;border:1px solid #a69b81;border-radius:24px;font:11px/1.4 var(--typewriter)}
.note-moods input:checked+span{background:#454d3a;border-color:#454d3a;color:#f1e8d6}.note-moods input:focus-visible+span{outline:1px solid #454d3a;outline-offset:3px}
.fan-note-dialog textarea{display:block;width:100%;min-height:150px;padding:0 8px;border:0;border-radius:0;background:repeating-linear-gradient(transparent 0 31px,#a99d803f 31px 32px);font:18px/32px var(--reading);color:#302f26;resize:vertical}
.fan-note-dialog textarea::placeholder{color:#706b5b}.note-count{text-align:right;font:10px var(--typewriter);margin:8px 0 18px;color:#686452}
#fan-note-name{width:100%;border:0;border-bottom:1px solid #9b9078;padding:8px;background:transparent;color:#302f26;font:17px var(--reading)}
.fan-note-dialog textarea:focus,#fan-note-name:focus{outline:2px solid #7a8168;outline-offset:4px}
.note-privacy{font:13px/1.6 var(--reading);color:#625e50;margin:20px 0}
.note-send{display:flex;align-items:center;justify-content:center;gap:20px;min-height:48px;width:100%;padding:14px 20px;border-radius:26px;background:#454d3a;color:#f1e8d6;font:13px/1.5 var(--typewriter)}
.note-error{font:14px/1.6 var(--reading);color:#813c2b}.note-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.note-delivered{text-align:center;padding:20px 0}.note-delivered h2{max-width:none}.note-envelope{display:grid;place-items:center;width:150px;height:100px;margin:20px auto 38px;border:1px solid #aa9876;border-radius:3px;background:linear-gradient(145deg,transparent 49%,#bcae8d 50%,transparent 51%) left/50% 100% no-repeat,linear-gradient(215deg,transparent 49%,#bcae8d 50%,transparent 51%) right/50% 100% no-repeat,#ded2b6;color:#914d3b;font:38px Georgia;box-shadow:5px 8px 16px #44332222;transform:rotate(-5deg)}
.note-is-delivered .note-envelope{animation:note-sealed .6s ease-out}
.bottom-nav [data-note-open]{font-size:11px;color:inherit;letter-spacing:1px;padding:8px}
body:has(#fan-note-dialog[open]){overflow:hidden}
@keyframes note-arrive{from{opacity:0;transform:translateY(12px) rotate(-2deg)}to{opacity:1;transform:none}}
@keyframes note-sealed{from{opacity:0;transform:translateY(18px) rotate(3deg)}to{opacity:1;transform:rotate(-5deg)}}
@media(max-width:480px){.fan-note-dialog{padding:38px 24px 24px}.fan-note-dialog h2{font-size:30px}.note-stamp{width:44px;height:54px}.note-moods span{font-size:10px;padding:8px 10px}}
@media(prefers-reduced-motion:reduce){.fan-note-dialog[open],.note-is-delivered .note-envelope{animation:none}}

/* Shared soft corners across fan and business pop-up windows. */
dialog#fan-note-dialog,dialog#streaming-dialog,dialog#socials-dialog,dialog.business-panel{border-radius:24px}
dialog .dialog-close{top:10px;right:10px;border-radius:50%}

/* Native dialog autofocus should not draw rings after a tap or click. */
html:not(.keyboard-navigation) dialog:focus,
html:not(.keyboard-navigation) dialog :focus,
html:not(.keyboard-navigation) dialog .note-moods input:focus+span{outline:none!important}
html.keyboard-navigation dialog :is(a,button,input,select,textarea,summary,[tabindex="0"]):focus-visible{outline:1px solid currentColor;outline-offset:4px}
html.keyboard-navigation dialog .note-moods input:focus-visible+span{outline:1px solid #454d3a;outline-offset:3px}
dialog [tabindex="-1"]:focus{outline:none}

.fan-gallery{width:min(960px,calc(100% - 32px));border-radius:24px}.fan-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.fan-photo-grid figure{margin:0}.fan-photo-grid img{width:100%;height:auto;display:block;border-radius:12px}.fan-photo-grid a{display:inline-flex;align-items:center;min-height:44px;font-family:var(--typewriter)}.fan-photo-grid figcaption{font-size:16px;margin-top:8px}.note-delivered .note-send{margin:8px}body:has(#fan-gallery-dialog[open]){overflow:hidden}@media(max-width:700px){.fan-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.bottom-nav{gap:16px}}

.gallery-download-actions{display:flex;gap:16px;flex-wrap:wrap;justify-content:flex-end}.gallery-download-actions button{font:inherit;min-height:44px}.fan-gallery .press-toolbar{flex-wrap:wrap}.fan-gallery .gallery-download-actions{margin-left:auto}@media(max-width:500px){.fan-gallery .gallery-download-actions{width:100%;justify-content:space-between;margin-left:0}}
.note-check-link{margin:0 0 18px;color:#644a38;text-decoration:underline;text-underline-offset:4px}.note-receipt{margin:24px 0;text-align:left}.note-receipt input,#note-replies-dialog input,#note-replies-dialog select{display:block;width:100%;padding:12px;margin:10px 0 18px;border:1px solid #9b9078;border-radius:10px;background:#fff6;color:#302f26;font:17px var(--typewriter)}[data-note-receipt]{font-family:monospace!important;font-size:13px!important}#note-replies-dialog blockquote{margin:24px 0;padding:20px;border-left:2px solid #8c694c;white-space:pre-wrap;font:22px/1.5 var(--typewriter)}.note-receipt p{font:17px/1.5 var(--typewriter)}

[data-note-receipt]{font-family:var(--typewriter)!important;font-size:24px!important;letter-spacing:2px;text-align:center}

/* Reserve space for the persistent close control beside the replies heading. */
#note-replies-dialog #note-replies-title{padding-right:52px;overflow-wrap:break-word}
