/* Local monthly scenery and optional device-only photo. Photos never apply to Email. */
body[data-service=chat] .messages[data-chat-wallpaper]{background-color:#f8f6f2;background-position:center;background-repeat:no-repeat;background-size:cover;background-attachment:scroll}
body[data-service=chat] .messages[data-chat-wallpaper=plain]{background-image:radial-gradient(ellipse at 90% 8%,#ece6fb80,transparent 64%)}
body[data-service=chat] .messages[data-chat-wallpaper=monthly]{background-image:linear-gradient(135deg,#f6f2fb91,#faf6edb3),var(--apochat-month-photo)}
body[data-service=chat] .messages[data-chat-wallpaper=own]{background-image:linear-gradient(135deg,#f6f2fb91,#faf6edb3),var(--apochat-own-photo,none)}
body[data-service=chat] .messages[data-chat-month="01"]{--apochat-month-photo:url('/communication/backgrounds/month-01.webp')}
body[data-service=chat] .messages[data-chat-month="02"]{--apochat-month-photo:url('/communication/backgrounds/month-02.webp')}
body[data-service=chat] .messages[data-chat-month="03"]{--apochat-month-photo:url('/communication/backgrounds/month-03.webp')}
body[data-service=chat] .messages[data-chat-month="04"]{--apochat-month-photo:url('/communication/backgrounds/month-04.webp')}
body[data-service=chat] .messages[data-chat-month="05"]{--apochat-month-photo:url('/communication/backgrounds/month-05.webp')}
body[data-service=chat] .messages[data-chat-month="06"]{--apochat-month-photo:url('/communication/backgrounds/month-06.webp')}
body[data-service=chat] .messages[data-chat-month="07"]{--apochat-month-photo:url('/communication/backgrounds/month-07.webp')}
body[data-service=chat] .messages[data-chat-month="08"]{--apochat-month-photo:url('/communication/backgrounds/month-08.webp')}
body[data-service=chat] .messages[data-chat-month="09"]{--apochat-month-photo:url('/communication/backgrounds/month-09.webp')}
body[data-service=chat] .messages[data-chat-month="10"]{--apochat-month-photo:url('/communication/backgrounds/month-10.webp')}
body[data-service=chat] .messages[data-chat-month="11"]{--apochat-month-photo:url('/communication/backgrounds/month-11.webp')}
body[data-service=chat] .messages[data-chat-month="12"]{--apochat-month-photo:url('/communication/backgrounds/month-12.webp')}
body[data-service=chat] .messages[data-chat-wallpaper] .message{background:#fffefd;border-color:#e5dfec;box-shadow:0 2px 7px #2920440a}
body[data-service=chat] .messages[data-chat-wallpaper] .message.mine{background:#e8e3f8;border-color:#ded6ef}
body[data-service=chat] .wallpaper-dialog{width:480px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 28px);padding:22px;border-radius:22px;background:#fffdfa;overflow:auto;box-sizing:border-box}
body[data-service=chat] .wallpaper-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
body[data-service=chat] .wallpaper-heading h2{font:650 23px/1.3 "Segoe UI",sans-serif;margin:0;color:#3b3055}
body[data-service=chat] .wallpaper-close{border:0;background:#f1edf8;width:40px;height:40px;min-width:40px;padding:0;font-size:26px;border-radius:12px;color:#5c4b7c}
body[data-service=chat] .wallpaper-options{display:flex;gap:7px;margin:16px 0;flex-wrap:wrap}
body[data-service=chat] .wallpaper-options button{flex:1;min-width:90px;padding:10px 8px;font-size:13px;border-color:#e0d7ed;background:#fffdfa;color:#695880;min-height:44px}
body[data-service=chat] .wallpaper-options button[aria-pressed=true]{background:#534ca4;border-color:#534ca4;color:#fff}
body[data-service=chat] .wallpaper-preview{aspect-ratio:16/9;width:100%;border:1px solid #e8e0ef;border-radius:13px;overflow:hidden;background:radial-gradient(ellipse at 70% 15%,#eae2f8,#f8f6f2 80%)}
body[data-service=chat] .wallpaper-preview img{display:block;width:100%;height:100%;object-fit:cover}
body[data-service=chat] .wallpaper-caption{font-size:13px;font-weight:650;margin:12px 0 5px;color:#4b3b65}
body[data-service=chat] .wallpaper-credit{font-size:11px;line-height:1.6;color:#81748e;overflow-wrap:anywhere;margin:0 0 16px}
body[data-service=chat] .wallpaper-credit a{text-decoration:underline;text-underline-offset:3px;color:#66519c}
body[data-service=chat] .wallpaper-own-actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #eae3f1;padding-top:16px}
body[data-service=chat] .wallpaper-own-actions button{font-size:13px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px}
body[data-service=chat] .wallpaper-delete{color:#924542;background:#fbf2ef;border-color:#edd8d3}
body[data-service=chat] .wallpaper-delete svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body[data-service=chat] .wallpaper-help{font-size:11px;line-height:1.65;color:#7e708a;margin:11px 0}
body[data-service=chat] .wallpaper-status{font-size:12px;line-height:1.6;color:#66519c;margin-bottom:0;overflow-wrap:anywhere}
body[data-service=chat] .wallpaper-status:empty{display:none}
@media(max-width:420px){body[data-service=chat] .wallpaper-dialog{padding:18px}.wallpaper-own-actions{display:grid!important}.wallpaper-options{gap:5px!important}}
