#santaLetterDialog {
    box-sizing: border-box;
    width: min(31rem, 94vw);
    max-height: 85dvh;
    padding: 1.15rem;
    border: 2px solid #aa824d;
    border-radius: .75rem;
    background: #fff0cf;
    color: #48291b;
    font: 1rem/1.45 Georgia, serif;
    overflow: auto;
}

#santaLetterDialog::backdrop { background: rgb(27 17 13 / .65); }
#santaLetterDialog header { display: flex; justify-content: space-between; gap: .75rem; align-items: start; }
#santaLetterDialog h2 { margin: 0; font-size: 1.4rem; }
#santaLetterDialog button {
    padding: .35rem .7rem;
    border: 1px solid #7e422c;
    border-radius: .35rem;
    background: #78352b;
    color: #fff6db;
    font: inherit;
}
#santaLetterDialog button:disabled { opacity: .6; }
#santaLetterForm { display: grid; justify-items: start; gap: .45rem; }
#santaLetterMessage {
    box-sizing: border-box;
    width: 100%;
    padding: .55rem;
    border: 1px solid #946f4e;
    border-radius: .3rem;
    background: #fffaed;
    color: inherit;
    font: inherit;
    resize: vertical;
}
#santaLetterList article { border-top: 1px solid #c9a779; padding-top: .5rem; overflow-wrap: anywhere; }
#santaLetterList article p { white-space: pre-wrap; }

#santaLetterButton.has-new-santa-letter,
#notificationsButton,
#ribbonToggle:is(.has-new-santa-letter, .has-unread-notifications) { position: relative; }

#notificationsUnread:not([hidden]),
#santaLetterButton.has-new-santa-letter::after,
#ribbonToggle:is(.has-new-santa-letter, .has-unread-notifications)::after {
    content: "";
    box-sizing: content-box;
    position: absolute;
    top: .15rem;
    right: .15rem;
    width: .65rem;
    height: .65rem;
    border: 2px solid #fff0cf;
    border-radius: 50%;
    background: #c52e27;
    pointer-events: none;
}
