/* Luo Direct Messages: immersive photo-and-text chat style with Luo gold accent. */
#chats:not(.hidden){background:radial-gradient(ellipse at 10% -12%,#89652d1a,transparent 36%),#0d0c0e!important;color:#f5e9d6}
#chats .inbox-heading h2,#chats #luoApprovedHeader h1{font-weight:850;letter-spacing:-.8px}
#chats .chatrow{min-height:78px!important;display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;column-gap:11px;position:relative;border:0!important;border-radius:14px!important;margin:1px 5px!important;padding:10px 12px!important;background:transparent!important;text-align:left}
#chats .chatrow:hover,#chats .chatrow:focus-visible{background:#c39b4c12!important}
#chats .chatrow .avatar{width:53px!important;height:53px!important;border-radius:50%!important;border:2px solid #e4c27a7b!important;display:grid;place-items:center}
#chats .chatrow .chatinfo{min-width:0;grid-column:2}
#chats .chatrow .chatinfo strong{font-size:14px;color:#f4e6cc;font-weight:780}
#chats .chatrow .chatinfo .preview{font-size:12px;color:#9e9797;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#chats .chatrow small{font-size:10px;color:#ad9f8a;align-self:start}
#chats .chatrow .unread{background:#dcb56c!important;color:#1c150c!important;border:0}
#chats .chatrow[data-luo-kind=group]{display:none!important}
#room.screen{--luo-dm-wallpaper:radial-gradient(circle at 12% 22%,#634a5230,transparent 50%),linear-gradient(155deg,#09090c,#161219);background:#09090b!important;color:#fff4e0}
#room .roomhead{position:relative;z-index:3;background:linear-gradient(105deg,#121015,#171219)!important;border-bottom:1px solid #8f693333!important;min-height:64px;box-shadow:0 7px 28px #0005}
#room .roomhead #roomavatar{width:43px;height:43px;border-radius:50%!important;border:2px solid #dcb66f}
#room .roomhead .room-identity strong{font-size:15px;letter-spacing:-.25px;color:#f3dbb2}
#room .roomhead .room-identity .tiny{font-size:11px;color:#c5aa84}
#room #messages{background-image:var(--luo-dm-wallpaper)!important;background-color:#0c0c11!important;background-size:cover!important;background-attachment:local;scrollbar-width:thin;padding:20px 15px 30px!important}
#room.luo-dm-animated #messages{animation:luo-wallpaper-breathe 22s ease-in-out infinite alternate}
@keyframes luo-wallpaper-breathe{0%{background-position:0 0;filter:saturate(.94)}100%{background-position:10% 8%;filter:saturate(1.04)}}
#room .bubble{max-width:min(82%,480px);border-radius:19px 19px 19px 5px!important;border:1px solid #ffffff0d;background:linear-gradient(155deg,#272126ee,#1b1a22ee)!important;color:#f6ebe1!important;box-shadow:0 6px 17px #0003;padding:10px 13px 8px;margin-block:8px}
#room .bubble.mine{background:linear-gradient(135deg,#977037,#5d4528)!important;border-color:#ffdfa34a!important;color:#fff2d8!important;border-radius:19px 19px 5px 19px!important}
#room .bubble .bubble-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-size:14px}
#room .bubble .stamp{font-size:10px;opacity:.8;text-align:right;margin-top:4px}
#room .bubble .reply-quote{background:#ffffff0f;border-left:3px solid #e6c17b;border-radius:8px;padding:7px;margin:5px 0}
#room #sendform{z-index:4;background:#141115ed!important;border-top:1px solid #88623535!important;backdrop-filter:blur(10px);padding:9px 11px calc(10px + env(safe-area-inset-bottom,0px))!important;gap:8px}
#room #sendform textarea,#room #body{background:#252128!important;color:#f9f0e3!important;border:1px solid #735b3c!important;border-radius:24px!important;min-height:43px;max-height:130px;padding:12px 13px!important;resize:vertical}
#room #sendform button{min-width:38px;min-height:38px}
#room .luo-dm-info{margin:0 9px;border:1px solid #927447a6;background:#261d16;color:#e7c384;font-size:11px;font-weight:800;border-radius:50px;min-width:43px;min-height:43px;padding:5px}
#room .luo-dm-info:hover{background:#3f2b1b}
.luo-dm-settings{position:fixed;inset:auto 0 0 0;width:min(680px,100%);height:min(88dvh,800px);max-height:90dvh;max-width:none;margin:auto auto 0;border:1px solid #8a642f;background:linear-gradient(155deg,#1b161a,#0d0d11);color:#f2e3cb;border-radius:24px 24px 0 0;padding:0 17px 25px;overflow-y:auto;box-shadow:0 -35px 110px #0009}
.luo-dm-settings::backdrop{background:#0009;backdrop-filter:blur(3px)}
.luo-dm-settings-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:3;background:#161217;padding:18px 4px;border-bottom:1px solid #53432b}
.luo-dm-settings-head h2{margin:0;font-size:22px}
.luo-dm-dismiss{background:#35261d;color:#ead0a8;border:1px solid #765933;border-radius:50%;width:42px;height:42px}
.luo-dm-profile{display:flex;gap:13px;align-items:center;padding:23px 5px}
.luo-dm-profile-icon{width:53px;height:53px;border-radius:50%;background:#5e442a;border:2px solid #b99354;display:grid;place-items:center;color:#fce5b9;font-size:22px;font-weight:850}
.luo-dm-profile-copy{font-size:17px;font-weight:750}
.luo-dm-quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.luo-dm-action{flex:1 1 110px;border:1px solid #7f5f31;background:#29221e;border-radius:12px;color:#edcb93;padding:12px 5px;min-height:49px;font-size:12px}
.luo-dm-wallpapers h3{font-size:18px;margin:12px 0}
.luo-dm-wallpaper-search{width:100%;padding:12px;border:1px solid #81633a;border-radius:11px;background:#100f12;color:#e9dac0}
.luo-dm-motion{display:flex;gap:10px;align-items:center;font-size:12px;margin:12px 0 20px;color:#cebda5}
.luo-dm-motion input{accent-color:#deb86b;width:18px;height:18px}
.luo-dm-wallpaper-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.luo-dm-wallpaper{min-width:0;background:#19151a;color:#e7d4b9;padding:6px;border:1px solid #42362c;border-radius:13px;cursor:pointer;text-align:center}
.luo-dm-wallpaper[aria-pressed=true]{outline:2px solid #eac881;outline-offset:1px}
.luo-dm-wallpaper-art{display:block;width:100%;aspect-ratio:3/4;border-radius:9px;background-size:cover;box-shadow:inset 0 0 15px #0003}
.luo-dm-wallpaper-name{display:block;font-size:10px;padding:9px 0 6px;line-height:1.3}
.luo-dm-settings-note{font-size:11px;color:#d4b577;margin:16px 0}
@media(max-width:520px){.luo-dm-wallpaper-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#room #messages{padding:14px 10px 28px!important}#room .bubble{max-width:87%}#chats .chatrow{margin:0!important}}
@media(prefers-reduced-motion:reduce){#room.luo-dm-animated #messages{animation:none!important}}

#room .luo-share-rich{display:flex;flex-direction:column;gap:7px;text-align:left;width:min(320px,100%);overflow:hidden;background:#161318;border:1px solid #99764a;border-radius:16px;color:#f3e7d9;padding:0 0 13px;min-height:105px}
#room .luo-share-rich:disabled{cursor:not-allowed;opacity:.65}
#room .luo-share-rich .luo-share-media{display:block;aspect-ratio:1.6/1;min-height:120px;max-height:220px;overflow:hidden;background:linear-gradient(120deg,#47351e,#17121a);width:100%}
#room .luo-share-rich video,#room .luo-share-rich img{object-fit:cover;width:100%;height:100%;display:block}
#room .luo-share-rich .luo-share-type{font-size:10px;letter-spacing:1px;color:#edc879;font-weight:850;padding:7px 13px 0}
#room .luo-share-rich .luo-share-title{font-size:15px;padding:0 13px;color:#f9eddf}
#room .luo-share-rich .luo-share-caption{font-size:12px;color:#b8b0ad;padding:0 13px 4px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
#room .mine .luo-share-rich{background:#1d1717}
