/* ELVACS-MESSAGE-TYPOGRAPHY-V1 */
@font-face{
  font-family:'Vazirmatn';
  src:url('/fonts/vazirmatn-variable.woff2') format('woff2');
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
}
:root{--canvas:#f2f5ed;--surface:#fff;--surface-soft:#e8eee4;--ink:#1d332b;--ink-soft:#43574f;--muted:#718078;--line:#d8e0d7;--line-strong:#b8c7bb;--forest:#183d32;--forest-2:#245a48;--lime:#d5f36a;--coral:#f27662;--sky:#a9dce8;--danger:#bd4138;--success:#27805b;--shadow:0 22px 70px #16302733;--font:'Inter','Segoe UI',system-ui,-apple-system,sans-serif;color-scheme:light;--type-scale:1}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;background:var(--canvas);color:var(--ink);font-family:var(--font)}body{overscroll-behavior:none;font-size:16px}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.hidden{display:none!important}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:focus-visible{outline:3px solid #5b9d7d;outline-offset:3px}
#startup-gate{position:fixed;inset:0;z-index:10001;display:grid;place-items:center;background:#ead39a;color:#183d32;padding:24px;text-align:center}#startup-gate.hidden{display:none}.startup-box{max-width:320px}.startup-spinner,.image-viewer-spinner,.upload-spinner{width:38px;height:38px;margin:0 auto 20px;border:3px solid #ffffff35;border-top-color:var(--lime);border-radius:50%;animation:spin .8s linear infinite}.startup-spinner{border-color:#183d3230;border-top-color:#a75f3b}.startup-title{color:#183d32;font-size:22px;font-weight:700}.startup-sub{margin-top:7px;color:#53634d;font-size:15px}@keyframes spin{to{transform:rotate(360deg)}}
#app{position:relative;width:100%;height:100dvh;max-width:none;margin:0;display:flex;flex-direction:column;overflow:hidden;background:var(--canvas);border:0;isolation:isolate}.social-topbar{height:68px;flex:none;display:flex;align-items:center;gap:20px;padding:0 clamp(16px,4vw,56px);border-bottom:1px solid var(--line);background:#ffffffdd;z-index:2}.brand-mark{display:inline-flex;align-items:center;gap:9px;color:var(--forest);font-size:23px;font-weight:800;text-decoration:none;direction:ltr;letter-spacing:.02em;text-transform:uppercase}.brand-glyph{width:34px;height:34px;display:grid;place-items:center;border-radius:12px 12px 12px 3px;background:var(--lime);color:var(--forest);font-size:23px;font-weight:900}.live-presence{min-width:0;display:flex;align-items:center;gap:9px;color:var(--forest-2);font-size:14px;font-weight:700}.live-pulse,.room-live-dot{width:9px;height:9px;display:inline-block;flex:none;border-radius:50%;background:#43ae76;box-shadow:0 0 0 4px #43ae7625}.ticker{position:relative;min-width:0;flex:1;height:38px;overflow:hidden;display:flex;align-items:center;color:var(--muted);font-size:13px;white-space:nowrap}.news-ticker-item{position:absolute;inset-inline-start:0;white-space:nowrap;padding-inline:12px;line-height:38px}.ticker-running{animation:ticker var(--ticker-duration,12s) linear 1}@keyframes ticker{from{transform:translateX(100%)}to{transform:translateX(-100%)}}.top-account{min-height:42px;display:flex;align-items:center;gap:9px;margin-inline-start:auto;padding:0 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--forest);font-size:14px;font-weight:700}.account-glyph{font-size:19px;line-height:1}
.social-layout{width:100%;max-width:1580px;min-height:0;flex:1;align-self:center;display:grid;grid-template-columns:230px minmax(0,1fr);gap:clamp(18px,3vw,46px);padding:24px clamp(18px,4vw,60px) 28px}.social-rail{display:flex;flex-direction:column;min-width:0;padding:18px 0 14px;border-inline-end:1px solid var(--line)}.rail-label{padding:0 14px 13px;color:var(--muted);font-size:12px;font-weight:700}.rail-label-spaced{margin-top:30px}.rail-link{width:calc(100% - 20px);min-height:50px;display:flex;align-items:center;gap:13px;margin:2px 0;padding:0 14px;border:0;border-radius:13px;background:transparent;color:var(--ink-soft);text-align:start;font-size:15px;font-weight:600;transition:background .18s,color .18s}.rail-link:hover{background:var(--surface-soft);color:var(--forest)}.rail-link.is-current{background:var(--forest);color:white}.nav-icon{width:25px;display:inline-grid;place-items:center;color:var(--coral);font-size:23px;line-height:1}.rail-link.is-current .nav-icon{color:var(--lime)}.rail-spacer{flex:1;min-height:32px}.rail-profile{width:calc(100% - 20px);min-height:68px;display:flex;align-items:center;gap:11px;padding:9px 11px;border:1px solid var(--line);border-radius:16px;background:var(--surface);text-align:start}.rail-avatar{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:14px;background:var(--sky);color:var(--forest);font-size:22px}.rail-profile-copy{min-width:0;flex:1}.rail-profile-copy b,.rail-profile-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rail-profile-copy b{font-size:14px}.rail-profile-copy small{margin-top:3px;color:var(--muted);font-size:12px}
.room-experience{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:23px;background:var(--surface);box-shadow:0 8px 30px #183d320b;animation:arrive .42s cubic-bezier(.2,.8,.2,1) both}@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.room-identity{min-height:122px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px clamp(18px,3vw,38px);border-bottom:1px solid var(--line);background:linear-gradient(110deg,#f8faf4,#fff 62%,#f6f5e9)}.room-identity-copy{min-width:0}.room-eyebrow{display:flex;align-items:center;gap:9px;margin-bottom:7px;color:var(--forest-2);font-size:12px;font-weight:700}.room-live-dot{width:7px;height:7px;box-shadow:0 0 0 3px #43ae7620}.room-title{margin:0;color:var(--ink);font-size:24px;font-weight:800;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-sub{max-width:54ch;margin:5px 0 0;color:var(--muted);font-size:14px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-actions{display:flex;align-items:center;gap:10px;flex:none}.people-presence{max-width:220px;min-height:48px;display:flex;align-items:center;gap:9px;padding:0 13px;border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--forest);font-size:14px;font-weight:700}.room-stats{max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.presence-stack{display:flex;align-items:center;direction:ltr;padding-inline-end:3px}.presence-stack i{width:24px;height:24px;display:grid;place-items:center;margin-inline-end:-7px;border:2px solid var(--surface);border-radius:50%;background:var(--coral);color:white;font-size:13px;font-style:normal}.presence-stack i:nth-child(2){background:var(--sky);color:var(--forest)}.presence-stack i:nth-child(3){background:var(--lime);color:var(--forest)}.presence-chevron{color:var(--muted);font-size:18px}.room-icon-action{width:48px;height:48px;display:grid;place-items:center;border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--forest)}.room-icon-action svg,.composer svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.conversation{position:relative;min-height:0;flex:1;overflow:hidden;background-color:#fbfcf8;background-image:radial-gradient(#b6c7ba .65px,transparent .65px);background-size:19px 19px}.feed{box-sizing:border-box;width:100%;max-width:100%;position:absolute;inset:0;overflow:auto;padding:24px clamp(15px,3vw,38px) 50px;background:transparent;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;scroll-behavior:smooth}.msg{max-width:920px;margin:0 auto;padding:4px 0 2px;color:var(--ink);font-size:16px;line-height:1.65;word-break:break-word;animation:message-in .24s ease-out both}@keyframes message-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.msgline{display:flex;align-items:flex-start;gap:12px}.msg .avatar{width:42px;height:42px;flex:none;display:grid;place-items:center;overflow:hidden;border:2px solid var(--surface);border-radius:15px;background:var(--sky);color:var(--forest);font-size:16px;font-weight:800;box-shadow:0 0 0 1px var(--line)}.avatar img{width:100%;height:100%;object-fit:cover}.msg-content{min-width:0;flex:1}.msg-head{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px 9px;max-width:100%;min-width:0;margin:1px 0 0;color:var(--ink);font-size:14px;vertical-align:baseline}.name{color:var(--forest);font-weight:800;cursor:pointer;unicode-bidi:plaintext}.body{display:inline;color:var(--ink-soft);min-width:0;max-width:100%;overflow-wrap:anywhere;font-size:16px;line-height:1.65;white-space:pre-wrap;unicode-bidi:plaintext}.msg-separator{color:var(--muted);font-weight:600;unicode-bidi:isolate}.msg-clickable{cursor:pointer}.msg-clickable:hover .msg-content{background:#eaf0e4;border-radius:4px 15px 15px 15px}.msg-clickable .msg-content{padding:2px 8px;transition:background .16s}.id,.time{color:var(--muted);font-size:12px;unicode-bidi:isolate;direction:ltr}.rank{min-height:23px;display:inline-flex;align-items:center;padding:2px 8px;border:0;border-radius:7px;background:var(--forest-2);color:white;font-size:11px;font-weight:700}.crown,.special-crown,.special-crown-platform{
  position:relative;
  display:inline-grid;
  place-items:center;
  vertical-align:middle;
  width:25px;
  height:25px;
  line-height:1;
  flex:none
}
.crown-emoji{
  position:relative;
  z-index:2;
  display:block;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  font-size:21px;
  line-height:1;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.16))
}
.top-user-rank{background:#c8614d}.room-activity{max-width:920px;margin:5px auto;padding:9px 14px;border:0;border-inline-start:3px solid var(--coral);border-radius:3px 12px 12px 3px;background:#f8eee8;color:var(--ink-soft)}.room-activity .msgline{align-items:center}.room-activity .activity-text,.room-activity .activity-display{font-size:13px;line-height:1.55}.room-activity .activity-user{cursor:pointer}.room-activity .room-link-small{min-height:0;padding:0;border:0;background:none;color:var(--forest-2);font:inherit;text-decoration:underline}.room-link{border:0;background:transparent;color:var(--forest-2);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}.msg-img{display:block;max-width:min(460px,100%);max-height:390px;margin-top:9px;border-radius:14px;object-fit:cover;cursor:pointer}.empty{max-width:480px;margin:clamp(36px,12vh,130px) auto;padding:26px 20px;color:var(--muted);text-align:center;font-size:16px;line-height:1.7}
.guest{position:relative;inset:auto;z-index:1;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:13px clamp(14px,3vw,38px);border:0;border-top:1px solid var(--line);background:#f5f8ee;color:var(--ink-soft);font-size:14px;line-height:1.5}.guest span{flex:1}.guest button,.send{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 18px;border:0;border-radius:14px;background:var(--forest);color:white;font-size:15px;font-weight:800;white-space:nowrap}.guest button:hover,.send:hover{background:var(--forest-2)}.conversation-compose-area{position:relative;z-index:2;flex:none;padding:14px clamp(14px,3vw,38px) 6px;border-top:1px solid var(--line);background:var(--surface)}.composer{position:relative;inset:auto;width:100%;min-height:72px;display:flex;align-items:center;gap:9px;padding:9px;border:1px solid var(--line-strong);border-radius:20px;background:#f8faf5;box-shadow:0 4px 14px #183d320b}.composer-tool{width:48px;height:48px;flex:none;display:grid;place-items:center;border:0;border-radius:14px;background:transparent;color:var(--forest-2)}.composer-tool:hover{background:var(--surface-soft)}.composer-input-wrap{min-width:0;flex:1}.composer input[data-composer-input]{width:100%;height:50px;min-width:0;padding:0 13px;border:0;border-radius:13px;outline:0;background:transparent;color:var(--ink);font-size:17px}.composer input::placeholder{color:#85938a;opacity:1}.composer .send{min-width:112px;height:50px;border-radius:14px;background:var(--coral);color:#2b3026}.composer .send:hover{background:#eb6855}.composer .send svg{width:19px;height:19px}.compose-spark{color:#c9724c;font-size:15px}
.room-side-note{display:none}.bottom{display:none}.layer{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:20px;background:#10271f78;backdrop-filter:blur(4px);pointer-events:none;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}.layer:has(.win){pointer-events:auto;opacity:1;visibility:visible}.win{position:relative;inset:auto!important;width:min(650px,100%);max-width:650px;max-height:min(88dvh,900px);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:24px;background:var(--surface);box-shadow:var(--shadow);pointer-events:auto;animation:sheet-arrive .2s ease-out both}@keyframes sheet-arrive{from{opacity:.5;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}.win[aria-hidden="true"]{display:none}.win-head{position:relative;z-index:2;min-height:68px;height:auto;flex:none;display:flex;align-items:center;gap:16px;padding:12px 20px;border:0;border-bottom:1px solid var(--line);background:var(--surface);color:var(--ink);box-shadow:none}.win-head b{min-width:0;flex:1;color:var(--ink);font-size:19px;font-weight:800;line-height:1.35}.win-head button{width:42px;height:42px;flex:none;display:grid;place-items:center;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft);color:var(--forest);font-size:25px;line-height:1}.win-body{min-height:0;overflow:auto;padding:20px;background:var(--surface);color:var(--ink);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.win-body.flush{padding:0}.row{min-height:68px;display:flex;align-items:center;gap:13px;padding:11px 8px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:start}.row:hover{background:#f4f7f0}.row .avatar{width:46px;height:46px;flex:none;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--sky);font-size:17px}.row-main{min-width:0;flex:1}.row-main b{display:block;overflow:hidden;color:var(--ink);font-size:15px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.row-main small{display:block;margin-top:4px;color:var(--muted);font-size:13px;line-height:1.5}.row-right{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.section-title{margin:0 0 10px;padding:0 0 12px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--forest);font-size:16px;font-weight:800}.btn,.btn-sm,.btn-link{min-height:46px;padding:0 15px;border:1px solid var(--line-strong);border-radius:13px;background:var(--surface);color:var(--forest);font-size:14px;font-weight:700}.btn:hover,.btn-sm:hover{background:var(--surface-soft)}.btn.primary{border-color:var(--forest);background:var(--forest);color:white}.btn.primary:hover{background:var(--forest-2)}.btn.danger{border-color:var(--danger);background:var(--danger);color:white}.btn.gold{border-color:#d8c178;background:#f4efdc;color:#624b12}.btn-sm{min-height:40px;padding-inline:12px;font-size:13px}.btn-link{border:0;background:transparent;text-decoration:underline}.field{margin:0 0 17px}.field label{display:block;margin-bottom:7px;color:var(--ink-soft);font-size:14px;font-weight:700}.field input,.field textarea,.field select,.toolrow input,.toolrow textarea{width:100%;min-height:48px;padding:11px 13px;border:1px solid var(--line-strong);border-radius:12px;background:white;color:var(--ink);font-size:16px;outline:none}.field textarea,.toolrow textarea{min-height:112px;resize:vertical;line-height:1.6}.field input:focus,.field textarea:focus,.field select:focus,.toolrow input:focus,.toolrow textarea:focus{border-color:var(--forest-2);box-shadow:0 0 0 3px #245a481a}.field-hint,.hint{display:block;margin-top:6px;color:var(--muted);font-size:13px;line-height:1.5}.toolrow{display:flex;align-items:center;gap:9px;margin:0 0 14px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tabs{display:flex;gap:5px;margin:0 0 16px;padding:5px;border-radius:14px;background:var(--surface-soft)}.tabs button{min-height:44px;flex:1;border:0;border-radius:10px;background:transparent;color:var(--ink-soft);font-size:14px;font-weight:700}.tabs button.active{background:var(--surface);color:var(--forest);box-shadow:0 1px 5px #183d3217}
.profile{text-align:start}.profile-avatar{width:112px;height:112px;max-width:112px;max-height:112px;display:grid;place-items:center;margin:0 auto 16px;overflow:hidden;border:4px solid var(--surface);border-radius:34px;background:var(--sky);color:var(--forest);font-size:36px;box-shadow:0 0 0 1px var(--line)}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-avatar-clickable{display:flex;justify-content:center;cursor:zoom-in}.profile h2{margin:0;color:var(--ink);font-size:25px;font-weight:800;text-align:center}.profile-id{margin:6px 0 11px;color:var(--muted);font-size:13px;text-align:center}.profile>.rank,.profile>span.special-crown{display:flex;width:max-content;margin:0 auto 10px}.status{margin:10px 0;color:var(--forest-2);font-size:15px;text-align:center}.about{margin:14px 0;padding:14px 16px;border:0;border-inline-start:3px solid var(--sky);border-radius:3px 12px 12px 3px;background:#f3f7f2;color:var(--ink-soft);font-size:15px;line-height:1.7;text-align:start}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.stat{min-width:0;padding:12px 8px;border:1px solid var(--line);border-radius:14px;background:#fbfcf9;text-align:center}.stat small{display:block;color:var(--muted);font-size:12px;line-height:1.4}.stat b{display:block;margin-top:4px;color:var(--forest);font-size:17px}.tag{display:inline-flex;padding:4px 9px;border-radius:9px;background:var(--forest-2);color:white;font-size:12px}.fee{margin:13px 0;padding:15px;border:1px solid #ead69e;border-radius:14px;background:#fff9e9;color:var(--ink-soft);font-size:14px;line-height:1.6}.fee strong{color:#785b15}.balance{color:var(--success);font-weight:800}.settings-section{margin:0 0 22px;padding:0 0 19px;border-bottom:1px solid var(--line)}.settings-section h4{margin:0 0 14px;color:var(--forest);font-size:17px}.color-row{display:flex;align-items:center;gap:12px;margin:12px 0}.color-row input[type=color]{width:54px;height:48px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.menu-grid button{min-height:74px;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--forest);font-size:14px;font-weight:700}.menu-grid button:hover{background:var(--surface-soft)}.menu-grid b{display:block;margin-bottom:3px;color:var(--coral);font-size:21px}.profile-edit{display:flex;flex-direction:column;gap:12px}.profile-edit-photo{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#f8faf6}.profile-edit-photo .profile-avatar{width:68px;height:68px;margin:0;border-radius:22px;font-size:22px}.profile-edit-photo-info{min-width:0;flex:1}.profile-edit-photo-info>b,.profile-edit-photo-info>small{display:block}.profile-edit-photo-info>b{font-size:15px}.profile-edit-photo-info>small{margin:5px 0 9px;color:var(--muted);font-size:12px;line-height:1.5}
.image-viewer{max-height:78dvh;display:flex;flex-direction:column;align-items:center;gap:14px;padding:10px;overflow:auto}.image-viewer img{display:block;max-width:100%;max-height:68dvh;object-fit:contain}.image-download{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.avatar-preview{max-height:75dvh;display:flex;align-items:center;justify-content:center;overflow:auto;padding:8px}.avatar-preview img{display:block;max-width:100%;max-height:70dvh;object-fit:contain}.pm-window{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}.pm-history{min-height:0;flex:1;overflow:auto;padding:4px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.pm-history .msg{max-width:none;margin:0;padding:13px 9px;border-bottom:1px solid var(--line);font-size:15px}.pm-history .msg-head{display:flex;align-items:center;gap:8px;margin:0 0 5px}.pm-composer{position:relative;inset:auto;z-index:2;flex:none;margin:10px 0 0;padding:9px;border:1px solid var(--line);border-radius:16px;background:#f6f8f3}.pm-composer input{height:48px;flex:1;min-width:0;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:16px}.pm-composer .btn{flex:none}
.modal-overlay{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:20px;background:#10271f80;backdrop-filter:blur(4px)}.modal-box{width:min(500px,100%);max-height:90dvh;overflow:auto;padding:22px;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:var(--shadow)}.modal-box h3{margin:0 0 12px;font-size:21px}.modal-box p{font-size:15px}#suspend-reason{width:100%;min-height:110px;padding:12px;border:1px solid var(--line-strong);border-radius:12px;font-size:16px}.invitation-card{padding:5px;font-size:16px;line-height:1.7}.toast{position:fixed;z-index:12000;left:50%;top:50%;right:auto;bottom:auto;width:max-content;max-width:calc(100vw - 24px);box-sizing:border-box;padding:14px 18px;transform:translate(-50%,-50%);border:1px solid #ffffff22;border-radius:14px;background:var(--forest);box-shadow:0 8px 30px #10271f3b;color:white;font-size:14px;line-height:1.55;text-align:center;direction:rtl;overflow-wrap:anywhere;word-break:break-word}.error-toast{background:var(--danger)!important;color:white!important}
.pm-float-stack{position:fixed;z-index:1150;top:calc(16px + env(safe-area-inset-top,0px));left:50%;right:auto;inset-inline-end:auto;transform:translateX(-50%);width:min(400px,calc(100vw - 32px));max-height:70dvh;display:flex;flex-direction:column;gap:10px;overflow:auto;pointer-events:none}.pm-float-notice,.purs-gift-float{width:100%;overflow:hidden;border:1px solid var(--line);border-radius:17px;background:var(--surface);box-shadow:var(--shadow);color:var(--ink);pointer-events:auto;animation:sheet-arrive .2s ease-out}.pm-float-top{min-height:60px;display:flex;align-items:center;gap:11px;padding:10px 13px;background:var(--forest);color:white}.pm-float-avatar{width:40px;height:40px;flex:none;display:grid;place-items:center;overflow:hidden;border:1px solid #ffffff55;border-radius:13px;background:var(--sky);color:var(--forest);font-size:18px}.pm-float-avatar img{width:100%;height:100%;object-fit:cover}.pm-float-meta{min-width:0;flex:1}.pm-float-title{overflow:hidden;font-size:14px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.pm-float-label{margin-top:2px;font-size:12px;opacity:.8}.pm-float-close{width:40px;height:40px;border:0;border-radius:12px;background:#ffffff1c;color:white;font-size:22px}.pm-float-body{padding:14px;font-size:15px;line-height:1.6}.pm-float-actions,.purs-gift-actions{display:flex;gap:8px;padding:10px 13px;background:#f4f7f0}.pm-float-actions .btn,.purs-gift-actions .btn{min-width:0;flex:1}.purs-gift-head{display:flex;gap:9px;padding:13px;font-size:15px;font-weight:800}.purs-gift-body{padding:7px 14px 15px;color:var(--forest);font-size:21px;font-weight:800;text-align:center}
.upload-overlay{position:fixed;inset:0;z-index:12000;display:flex;align-items:center;justify-content:center;padding:20px;background:#10271f80;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s,visibility .18s}.upload-overlay.upload-visible{opacity:1;visibility:visible;pointer-events:auto}.upload-card{width:min(360px,100%);padding:25px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:var(--shadow);text-align:center}.upload-spinner{border-color:var(--line);border-top-color:var(--coral)}.upload-title{font-size:17px;font-weight:800}.upload-status{margin-top:8px;color:var(--ink-soft);font-size:14px}.upload-hint{margin-top:14px;color:var(--muted);font-size:12px}.user-context-popup{position:fixed!important;z-index:1300!important;width:min(300px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:14px!important;border:1px solid var(--line)!important;border-radius:18px!important;background:var(--surface)!important;box-shadow:var(--shadow)!important;color:var(--ink)!important}.user-context-popup .btn{width:100%;text-align:start}.user-context-popup [style*="display:flex"]{gap:8px!important}
.news-packages{display:flex;flex-direction:column;gap:8px;max-height:50dvh;overflow:auto}.news-pack{position:relative;display:block;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);cursor:pointer}.news-pack input{position:absolute;opacity:0}.news-pack-main{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:15px}.news-pack-desc{display:block;margin-top:5px;color:var(--muted);font-size:13px;line-height:1.5}.news-pack input:checked~.news-pack-desc{font-weight:700}.news-pack:has(input:checked){outline:3px solid #8eac79;outline-offset:1px}.news-pack-once,.news-pack-twice,.news-pack-day,.news-pack-2days,.news-pack-week{background:var(--surface);color:var(--ink);border-color:var(--line)}.image-loading-state{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:14px}.image-viewer-spinner{width:25px;height:25px;border:3px solid var(--line);border-top-color:var(--forest-2)}
html[data-theme="dark"]{--canvas:#172820;--surface:#20382f;--surface-soft:#2c473b;--ink:#f0f4e9;--ink-soft:#cfdbce;--muted:#a4b6a8;--line:#3c5749;--line-strong:#597461;--forest:#cce780;--forest-2:#a8d06b;--lime:#d5f36a;--coral:#f28b72;color-scheme:dark}html[data-theme="dark"] #app,html[data-theme="dark"] .room-experience,html[data-theme="dark"] .conversation,html[data-theme="dark"] .win-body{background-color:var(--surface)}html[data-theme="dark"] .social-topbar,html[data-theme="dark"] .win-head,html[data-theme="dark"] .conversation-compose-area{background:var(--surface)}html[data-theme="dark"] .room-identity{background:linear-gradient(110deg,#263d32,#20382f 65%,#3b4231)}html[data-theme="dark"] .conversation{background-image:radial-gradient(#627568 .65px,transparent .65px)}html[data-theme="dark"] .feed{background:transparent}html[data-theme="dark"] .guest,html[data-theme="dark"] .profile-edit-photo,html[data-theme="dark"] .stat{background:#283f34}html[data-theme="dark"] .field input,html[data-theme="dark"] .field textarea,html[data-theme="dark"] .field select,html[data-theme="dark"] .toolrow input,html[data-theme="dark"] .toolrow textarea,html[data-theme="dark"] .composer,html[data-theme="dark"] .composer input[data-composer-input],html[data-theme="dark"] .pm-composer input{background:#172a21;color:var(--ink)}html[data-theme="dark"] .msg-clickable:hover .msg-content,html[data-theme="dark"] .row:hover{background:#2a4437}html[data-theme="dark"] .about{background:#2a4035}html[data-font-size="small"] body{font-size:15px}html[data-font-size="large"] body{font-size:18px}html[data-font-size="large"] .room-title{font-size:28px}
@media(min-width:1200px){.social-layout{grid-template-columns:230px minmax(0,1fr) 240px;gap:30px}.room-side-note{align-self:start;display:flex;flex-direction:column;gap:12px;padding:24px 6px 14px}.side-note-art{position:relative;height:155px;display:grid;place-items:center;overflow:hidden;border-radius:24px;background:var(--forest);color:var(--lime)}.side-note-art:before,.side-note-art:after{position:absolute;content:"";border:1px solid #ffffff35;border-radius:50%}.side-note-art:before{width:190px;height:190px}.side-note-art:after{width:130px;height:130px}.side-note-art span{z-index:1;font-size:82px;font-weight:800;line-height:1}.side-note-art i{position:absolute;inset-inline-end:35px;top:27px;color:var(--coral);font-size:29px;font-style:normal}.side-note-kicker{margin-top:8px;color:var(--coral);font-size:11px;font-weight:800}.room-side-note p{margin:0;color:var(--ink);font-size:19px;font-weight:700;line-height:1.5}.room-side-note>button{min-height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--forest);font-size:13px;font-weight:700}.side-note-footer{display:flex;align-items:center;gap:9px;margin-top:13px;color:var(--muted);font-size:12px}}
@media(max-width:760px){#app{height:100dvh;min-height:0}.social-topbar{height:58px;gap:12px;padding:0 15px}.brand-mark{gap:7px;font-size:20px}.brand-glyph{width:31px;height:31px;border-radius:11px 11px 11px 3px;font-size:21px}.live-presence{gap:8px;font-size:12px}.live-presence>.ticker{display:none}.top-account{min-height:40px;padding:0 11px;font-size:13px}.social-layout{display:flex;min-height:0;gap:0;padding:0}.social-rail,.room-side-note{display:none}.room-experience{flex:1;border:0;border-radius:0;box-shadow:none}.room-identity{min-height:91px;gap:10px;padding:13px 15px}.room-eyebrow{margin-bottom:4px;font-size:11px}.room-title{font-size:20px}.room-sub{max-width:48vw;margin-top:3px;font-size:12px}.room-actions{gap:7px}.people-presence{max-width:136px;min-height:43px;gap:6px;padding:0 8px;border-radius:13px;font-size:12px}.room-stats{max-width:80px}.presence-stack i{width:20px;height:20px;margin-inline-end:-8px;font-size:11px}.room-icon-action{width:43px;height:43px;border-radius:13px}.conversation{min-height:0;flex:1}.feed{padding:15px 14px 20px}.msg{padding:4px 0 2px;font-size:16px}.msgline{gap:9px}.msg .avatar{width:38px;height:38px;border-radius:13px}.msg-head{font-size:13px}.body{font-size:16px;line-height:1.6}.guest{min-height:74px;gap:10px;padding:10px 13px;font-size:13px}.guest button{min-height:46px;padding:0 12px;font-size:13px}.conversation-compose-area{padding:8px 10px 5px}.composer{min-height:64px;gap:4px;padding:6px;border-radius:17px}.composer-tool{width:40px;height:44px;border-radius:12px}.composer-tool svg{width:21px;height:21px}.composer-input-wrap{min-width:0}.composer input[data-composer-input]{height:46px;padding:0 7px;font-size:16px}.composer .send{width:54px;min-width:54px;height:46px;padding:0;border-radius:13px}.composer .send span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.bottom{position:relative;z-index:3;height:calc(62px + env(safe-area-inset-bottom,0px));flex:none;display:flex;align-items:stretch;padding:2px 6px env(safe-area-inset-bottom,0px);border:0;border-top:1px solid var(--line);background:var(--surface)}.bottom button{min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:12px;background:transparent;color:var(--muted)}.bottom button[aria-current="page"]{background:var(--surface-soft);color:var(--forest)}.bottom b{font-size:20px;line-height:22px}.bottom small{font-size:11px;line-height:1.2}.layer{align-items:flex-end;padding:0;background:#0d221a7a}.win,.win.compact{width:100%;max-width:none;max-height:min(91dvh,960px);border-radius:24px 24px 0 0;border-bottom:0;animation:mobile-sheet-in .24s cubic-bezier(.2,.8,.2,1) both}@keyframes mobile-sheet-in{from{transform:translateY(28px)}to{transform:translateY(0)}}.win-head{min-height:64px;padding:10px 16px}.win-head:before{position:absolute;top:7px;left:50%;width:36px;height:4px;transform:translateX(-50%);border-radius:4px;background:var(--line-strong);content:""}.win-head b{font-size:18px}.win-head button{width:42px;height:42px}.win-body{padding:16px 15px calc(17px + env(safe-area-inset-bottom,0px))}.pm-window-host{height:min(91dvh,960px)}.pm-window{height:100%;min-height:0}.pm-composer{margin-top:7px}.pm-composer .btn{min-width:72px}.toast{left:50%;top:50%;right:auto;bottom:auto;max-width:calc(100vw - 24px);transform:translate(-50%,-50%)}.pm-float-stack{top:calc(66px + env(safe-area-inset-top,0px));left:8px;right:8px;inset-inline-end:auto;transform:none;width:auto}.modal-overlay{align-items:flex-end;padding:0}.modal-box{width:100%;max-height:90dvh;padding:23px 17px calc(18px + env(safe-area-inset-bottom,0px));border-radius:24px 24px 0 0}.profile-avatar{width:100px;height:100px;border-radius:31px}.profile h2{font-size:23px}}
@media(max-width:390px){.social-topbar{padding-inline:11px}.live-presence{font-size:11px}.top-account{gap:6px;padding-inline:9px}.room-identity{padding-inline:11px}.room-title{font-size:18px}.room-sub{max-width:43vw;font-size:11px}.people-presence{max-width:118px;gap:4px;padding-inline:6px;font-size:11px}.room-stats{max-width:70px}.room-icon-action{width:40px;height:40px}.composer-tool{width:35px}.composer .send{width:47px;min-width:47px}.guest{font-size:12px}.guest button{padding-inline:9px;font-size:12px}.stats{gap:5px}.stat{padding-inline:4px}.stat small{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@media(hover:none){.rail-link:hover,.row:hover,.btn:hover{background:initial}}
:root[data-theme="dark"] .feed{background:transparent}
@media(max-width:760px){#app{padding-bottom:0!important}}
.guest{position:absolute;inset-inline:0;bottom:0;z-index:4}
.conversation:has(.guest:not(.hidden)) .feed{padding-bottom:112px}
.room-menu-action{display:none}
@media(max-width:760px){
	.social-topbar,.bottom{display:none!important}
	.room-menu-action{width:43px;height:43px;display:grid;place-items:center;flex:none;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--forest)}
	.room-menu-action svg{width:21px;height:21px;fill:currentColor}
	.conversation-compose-area{padding:7px 10px calc(8px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:390px){.room-menu-action{width:40px;height:40px}}
.room-identity{position:relative;z-index:2}
.room-actions button{flex:0 0 auto}
.people-presence{min-width:0}
.room-title,.room-sub{unicode-bidi:plaintext}
.room-sub{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.conversation-compose-area{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));}
.composer{min-height:68px}
.composer [data-composer-input]{touch-action:manipulation}
.emoji-picker-popover{position:absolute;z-index:12;inset-inline-end:12px;bottom:calc(100% + 8px);width:min(360px,calc(100vw - 24px));height:min(390px,55dvh);overflow:hidden;border:1px solid var(--line-strong);border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}
emoji-picker{width:100%;height:100%;--background:var(--surface);--border-color:var(--line);--indicator-color:var(--coral);--input-border-color:var(--line-strong);--input-font-color:var(--ink);--input-placeholder-color:var(--muted);--category-font-color:var(--ink);--outline-color:var(--forest-2);--num-columns:8;--emoji-size:1.6rem;--emoji-padding:.42rem}
.layer:has(.pm-window-host){align-items:flex-end;justify-content:flex-end;padding:16px;background:transparent;backdrop-filter:none;pointer-events:none}
.layer:has(.pm-window-host) .pm-window-host{width:min(420px,calc(100vw - 32px));max-width:420px;height:min(620px,72dvh);max-height:72dvh;margin-block-start:auto;margin-inline-start:auto;border:1px solid var(--line-strong);border-radius:22px;background:color-mix(in srgb,var(--surface) 96%,transparent);box-shadow:0 18px 55px #10271f35;pointer-events:auto}
.layer:has(.pm-window-host) .pm-window-host .win-head{height:25px;min-height:25px;padding:0 7px;border-radius:13px 13px 0 0}
.layer:has(.pm-window-host) .pm-window-host .win-head [data-close]{width:25px;height:25px;min-width:25px;min-height:25px;padding:0;display:grid;place-items:center;border:1px solid var(--line-strong) !important;border-radius:50%;background:var(--surface-soft) !important;color:var(--ink) !important;font-size:22px !important;line-height:25px !important}
.pm-window-header{min-width:0;display:flex;align-items:center;gap:5px;flex:1}
.pm-window-avatar{width:20px;height:20px;flex:none;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:7px;background:var(--sky);color:var(--forest);font-size:10px}
.pm-window-avatar img{width:100%;height:100%;object-fit:cover}
.pm-window-identity{min-width:0;display:flex;flex-direction:column;gap:0}
.pm-window-identity strong,.pm-window-identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pm-window-identity strong{font-size:11px;font-weight:800;line-height:12px}
.pm-window-identity small{color:var(--muted);font-size:8px;line-height:9px}
.pm-head{gap:5px}
.pm-head>b{display:flex;align-items:center;gap:5px}
.pm-head .pm-window-identity{min-width:0;flex:1;text-align:start}
.pm-online-dot{width:7px;height:7px;display:inline-block;margin-inline-end:5px;border-radius:50%;background:var(--muted);vertical-align:middle}
.pm-online-dot.is-online{background:var(--success);box-shadow:0 0 0 3px color-mix(in srgb,var(--success) 18%,transparent)}
.pm-window-host .win-body{min-height:0;display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden;padding:9px;background:transparent}
.pm-history{min-height:0;flex:1;overflow:auto;padding:8px;border-radius:16px;background:color-mix(in srgb,var(--surface) 76%,transparent);overscroll-behavior:contain}
.pm-history .msg{max-width:100%;padding:12px 10px;border-bottom:1px solid var(--line);border-radius:13px}
.pm-history .msg-head{align-items:center}
.pm-history .pm-message-body{font-size:15px;line-height:1.55;overflow-wrap:anywhere;white-space:pre-wrap}
.pm-composer{display:flex;align-items:center;gap:5px;flex:none;margin:6px 0 0;padding:5px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}
.pm-composer [data-pm-input]{height:36px;min-height:36px;flex:1;min-width:0;padding-inline:10px;border:0;border-radius:10px;background:var(--surface-soft);font-size:15px}
.pm-composer .pm-image-btn,.pm-composer .pm-emoji-btn{width:36px;height:36px;flex:none;display:grid;place-items:center;border:0;border-radius:10px;background:var(--surface-soft);color:var(--forest);font-size:18px}
.pm-composer svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pm-composer .btn{min-width:64px;min-height:36px;padding-inline:9px;border-radius:10px}
@media(max-width:760px){
	.room-identity{min-height:82px;padding-block:10px}
	.room-actions{gap:5px}
	.people-presence{min-height:42px}
	.conversation-compose-area{padding:7px 9px calc(9px + env(safe-area-inset-bottom,0px))}
	.composer{min-height:62px}
	.layer:has(.pm-window-host){justify-content:center;padding:0 8px calc(78px + env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,transparent 45%,#0c171240)}
	.layer:has(.pm-window-host) .pm-window-host{width:min(360px,calc(100vw - 36px));max-width:520px;height:min(56dvh,500px);max-height:56dvh;margin:0;border-radius:22px;border-bottom:1px solid var(--line-strong)}
	.emoji-picker-popover{inset-inline:8px;bottom:calc(100% + 7px);width:auto;height:min(360px,48dvh);border-radius:16px}
}
@media(max-width:350px){.room-actions{gap:3px}.people-presence{padding-inline:5px}.room-stats{max-width:62px}.room-menu-action,.room-icon-action{width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){.layer:has(.pm-window-host),.pm-window-host,.emoji-picker-popover{transition:none;animation:none}}
@media(max-width:760px){#app{height:var(--visual-viewport-height,100dvh)}}


/* ELVACS ROOM STATE NOTIFICATIONS */
.room-state-float{
  position:relative;
  width:min(420px,calc(100vw - 24px));
  box-sizing:border-box;
  margin-bottom:10px;
  padding:42px 18px 16px;
  border-radius:14px;
  color:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  font-size:15px;
  line-height:1.8;
  direction:rtl;
  text-align:right;
  overflow-wrap:anywhere;
}

.room-state-suspended{
  background:#dc2626;
  border:1px solid #b91c1c;
}

.room-state-released{
  background:#16a34a;
  border:1px solid #15803d;
}

.room-state-close{
  position:absolute;
  top:7px;
  right:9px;
  width:32px;
  height:32px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.16);
  color:#fff;
  font-size:25px;
  line-height:30px;
  cursor:pointer;
}

.room-state-close:hover{
  background:rgba(255,255,255,.28);
}

.room-state-text{
  padding:0 2px;
}

/* ELVACS ROOM STATE FLOAT - realtime moderation notice */
.pm-float-stack:has(.room-state-float){
  z-index:15000 !important;
  pointer-events:none !important;
}
.room-state-float{
  position:relative !important;
  z-index:15001 !important;
  pointer-events:auto !important;
}
.room-state-close{
  z-index:15002 !important;
  pointer-events:auto !important;
  touch-action:manipulation;
}


/* ELVACS — SINGLE REALTIME ROOM MODERATION POPUP */
.pm-float-stack{
  z-index:15000 !important;
  pointer-events:none !important;
}

.pm-float-stack .room-state-float{
  position:relative !important;
  z-index:15001 !important;
  pointer-events:auto !important;
}

.pm-float-stack .room-state-close{
  z-index:15002 !important;
  pointer-events:auto !important;
  touch-action:manipulation;
}

.room-identity-slot{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  overflow:hidden;
}

@media(max-width:760px){
  .room-identity-slot{
    width:38px;
    height:38px;
    flex-basis:38px;
  }
}

.conversation>.feed{
  width:100%;
  max-width:920px;
  margin:0 auto;
  direction:ltr;
  overflow-x:hidden;
  overflow-y:auto;
}

.room-activity .msgline{
  margin-left:-17px;
  margin-right:-14px;
}

.conversation .msgline{
  direction:ltr;
}

html[dir="rtl"] .conversation .msgline{
  direction:rtl;
}

html[dir="rtl"] .conversation .msg-content{
  direction:rtl;
}

html[dir="ltr"] .conversation .msg-content{
  direction:ltr;
}


/* Room identity spacing: crown 1px from username; keep avatar dimensions. */
.conversation .feed .msgline{
  column-gap:1px !important;
}
.conversation .feed .room-identity-slot-crown{
  width:auto !important;
  flex:0 0 auto !important;
  overflow:visible !important;
}

.conversation .room-identity-slot{
  direction:ltr;
  unicode-bidi:isolate;
}

.platform-news-band{
  width:100%;
  height:34px;
  flex:none;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:#FBF7D5;
}
.room-identity-copy{
  min-width:0;
  flex:1;
}
.room-news-ticker{
  width:100%;
  height:28px;
  flex:none;
  background:transparent;
  color:var(--forest-2);
  font-size:12px;
}
.room-news-ticker .news-ticker-item{
  top:0;
  left:0;
  right:auto;
  inset-inline-start:auto;
  line-height:28px;
  padding-inline:12px;
  will-change:transform;
}
.room-news-ticker.ticker-motion-rtl .ticker-running{
  animation-name:ticker-right-to-left;
}
.room-news-ticker.ticker-motion-ltr .ticker-running{
  animation-name:ticker-left-to-right;
}
.room-news-ticker .ticker-running{
  animation-fill-mode:forwards;
}
.room-news-ticker .news-ticker-relationship{
  border:1px solid #e0b83f;
  border-radius:5px;
  background:#ffe16a !important;
  background-color:#ffe16a !important;
  color:#111 !important;
  font-weight:800;
  text-shadow:none;
}
@media(max-width:760px){
  .platform-news-band{
    height:34px;
  }
}
@keyframes ticker-right-to-left{
  from{transform:translateX(var(--ticker-from))}
  to{transform:translateX(var(--ticker-to))}
}
@keyframes ticker-left-to-right{
  from{transform:translateX(var(--ticker-from))}
  to{transform:translateX(var(--ticker-to))}
}

.news-pack{
  border-width:2px;
  transition:filter .16s,transform .16s;
}
.news-pack:hover{
  filter:brightness(.97);
  transform:translateY(-1px);
}
.news-pack-once{
  --news-pack-swatch:#fff;
  background:#fff;
  color:#162536;
  border-color:#152b45;
  box-shadow:inset 4px 0 0 #152b45;
}
.news-pack-twice{
  --news-pack-swatch:#8fd3ff;
  background:#8fd3ff;
  color:#000;
  border-color:#5ba9dc;
}
.news-pack-day{
  --news-pack-swatch:#1674c8;
  background:#1674c8;
  color:#fff;
  border-color:#0c5597;
}
.news-pack-2days{
  --news-pack-swatch:#ffe100;
  background:#ffe100;
  color:#3d075d;
  border-color:#d6b800;
}
.news-pack-week{
  --news-pack-swatch:#ffd000;
  background:#ffd000;
  color:#4b0a78;
  border-color:#ffea00;
  box-shadow:0 0 0 1px #c49f00,inset 0 0 12px rgba(255,255,255,.65);
}
.news-pack-color{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:9px;
  font-size:12px;
  font-weight:700;
  line-height:1.5;
}
.news-pack-color i{
  width:15px;
  height:15px;
  flex:none;
  border:2px solid currentColor;
  border-radius:50%;
  background:var(--news-pack-swatch);
  box-shadow:0 0 0 2px rgba(255,255,255,.8);
}

.win.room-monitor-host{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  max-width:none!important;
  height:100dvh!important;
  max-height:100dvh!important;
  border:0;
  border-radius:0;
}
.win.room-monitor-host .win-body{
  min-height:0;
  flex:1;
  display:flex;
  flex-direction:column;
  padding:0;
}
.win.room-monitor-host [data-monitor-feed]{
  position:relative;
  inset:auto;
  width:100%;
  max-width:none;
  flex:1;
  height:auto!important;
  min-height:0;
  margin:0;
  padding:24px clamp(15px,3vw,38px);
}

/* =========================================================
   ELVACS — PM Background by Platform Authority
   Only the PM conversation background changes.
   Window structure, header, fonts and composer remain untouched.
   ========================================================= */

.pm-window-host[data-pm-rank="administrator"] .pm-history{
  background:linear-gradient(180deg,#5c3b00,#c99a2e) !important;
}

.pm-window-host[data-pm-rank="top_user"] .pm-history{
  background:linear-gradient(180deg,#7a4f00,#e0ad3f) !important;
}

.pm-window-host[data-pm-rank="super_manager"] .pm-history{
  background:linear-gradient(180deg,#8a5a00,#e8b94f) !important;
}

.pm-window-host[data-pm-rank="hyper_manager"] .pm-history{
  background:linear-gradient(180deg,#a66b00,#f2c861) !important;
}

.pm-window-host[data-pm-rank="merchant"] .pm-history{
  background:linear-gradient(180deg,#b87900,#f6d77a) !important;
}

/* =========================================================
   ELVACS — Incoming Authority PM Popup Background
   One continuous authority surface: header + body + actions.
   ========================================================= */

.pm-float-rank-administrator{
  background:linear-gradient(180deg,#5c3b00,#c99a2e) !important;
}

.pm-float-rank-top_user{
  background:linear-gradient(180deg,#7a4f00,#e0ad3f) !important;
}

.pm-float-rank-super_manager{
  background:linear-gradient(180deg,#8a5a00,#e8b94f) !important;
}

.pm-float-rank-hyper_manager{
  background:linear-gradient(180deg,#a66b00,#f2c861) !important;
}

.pm-float-rank-merchant{
  background:linear-gradient(180deg,#b87900,#f6d77a) !important;
}

.pm-float-rank .pm-float-top,
.pm-float-rank .pm-float-body,
.pm-float-rank .pm-float-actions{
  background:transparent !important;
}

.pm-window-host .pm-history .msg-head>b,
.pm-window-host .pm-history .msg>div:last-child,
.pm-float-notice .pm-float-body{
  color:#000 !important;
}

.win[data-relationship-notice="marriage"] .win-head{
  background:linear-gradient(110deg,#f6bbcc,#f8d98b,#a9dfc3) !important;
  color:#382332 !important;
}
.relationship-proposal-marriage{
  padding:18px;
  border:1px solid #e7c879;
  border-radius:12px;
  background:linear-gradient(145deg,#fff0f5 0%,#fff9e8 56%,#edfff4 100%);
  color:#302232;
  box-shadow:inset 0 1px rgba(255,255,255,.95),0 12px 28px rgba(130,76,91,.16);
  text-align:center;
}
.relationship-proposal-marriage .relationship-bouquet{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:62px;
  font-size:30px;
}
.relationship-proposal-marriage .relationship-bouquet span:nth-child(2){font-size:42px}
.relationship-proposal-marriage p{
  margin:8px 0 16px;
  color:#302232;
  font-family:Georgia,"Noto Serif",serif;
  font-size:17px;
  font-weight:600;
  line-height:1.8;
}
.relationship-proposal-marriage .relationship-proposal-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}
.relationship-proposal-marriage .relationship-proposal-actions>*{flex:1 1 120px;min-height:42px}
.relationship-proposal-marriage [data-proposal-accept]{
  background:linear-gradient(135deg,#e97897,#c64b73) !important;
  border-color:#b94269 !important;
  color:#fff !important;
  font-weight:700;
}
.relationship-proposal-marriage [data-proposal-reject]{
  background:rgba(255,255,255,.8) !important;
  border-color:#d8c8cb !important;
  color:#4d3b46 !important;
}
.relationship-outcome-happy{
  padding:16px;
  border:1px solid #d5b86d;
  border-radius:12px;
  background:linear-gradient(145deg,#fff3f6,#fff7e8 62%,#f0fff4);
  text-align:center;
}
.relationship-outcome-happy .relationship-bouquet{font-size:30px;line-height:1.8}

/* Premium light window surfaces: compact spacing, restrained platinum and gold. */
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host){
  --window-ink:#172033;
  --window-muted:#64748b;
  --window-line:#e8e5df;
  background:#fff!important;
  border:1px solid var(--window-line)!important;
  border-radius:16px!important;
  box-shadow:0 8px 30px rgba(15,23,42,.08)!important;
  backdrop-filter:none!important;
  max-width:min(640px,calc(100vw - 20px))!important;
  max-height:min(86dvh,820px)!important;
}

.layer:has(.win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host)){
  background:rgba(23,32,51,.22)!important;
  backdrop-filter:none!important;
}

:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .win-head{
  height:46px!important;
  min-height:46px!important;
  padding:3px 9px!important;
  gap:8px!important;
  border:0!important;
  border-block-start:2px solid #c5a46d!important;
  border-block-end:1px solid #e8e5df!important;
  border-radius:0!important;
  background:#fff!important;
  color:#172033!important;
  box-shadow:none!important;
}

:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .win-head b{
  color:#172033!important;
  font-size:15px!important;
  font-weight:700!important;
}

:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .win-head button{
  width:40px!important;
  height:40px!important;
  border:1px solid #e8e5df!important;
  border-radius:10px!important;
  background:#fafaf8!important;
  color:#64748b!important;
  font-size:22px!important;
}

:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .win-body{
  padding:10px!important;
  background:#fff!important;
  color:#172033!important;
}

:root[data-theme="light"] .win.compact:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host){
  max-height:min(82dvh,760px)!important;
}

:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .row{
  min-height:48px!important;
  gap:8px!important;
  padding:7px 6px!important;
  border-block-end:1px solid #e8e5df!important;
  border-radius:8px!important;
  color:#172033!important;
}

:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .row:hover,
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .row:active{
  background:#f7f7f4!important;
}

:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .row-main b{color:#172033!important}
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .row-main small{color:#64748b!important}

:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .field{margin-block-end:6px}
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .field label{margin-block-end:3px;color:#64748b!important;font-size:12px}

:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .field input,
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .field textarea,
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .field select,
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .toolrow input,
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .toolrow textarea{
  min-height:42px;
  padding:8px 10px;
  border:1px solid #e5e7eb!important;
  border-radius:9px!important;
  background:#fafaf8!important;
  color:#172033!important;
}

:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .btn{
  min-height:42px;
  padding-inline:12px;
  border:1px solid #e5e7eb!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#1e293b!important;
  font-size:12px;
  font-weight:600;
}

:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .btn.primary{
  border-color:#8c6a3d!important;
  background:#8c6a3d!important;
  color:#fff!important;
}

:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .btn.gold{
  border-color:#d4c2a2!important;
  background:#f7f4ed!important;
  color:#765a32!important;
}

:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .btn.danger{
  border-color:#f1d0ca!important;
  background:#fff7f5!important;
  color:#a33d31!important;
}

:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .tabs{gap:4px;margin-block-end:8px}
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .tabs button{min-height:40px;border-radius:8px!important}
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .grid2{gap:6px}
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .toolrow{gap:6px;margin-block-end:8px}

:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .about,
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .stat{
  margin-block:6px;
  padding:8px 9px;
  border:1px solid #e8e5df!important;
  border-radius:9px!important;
  background:#fafaf8!important;
  color:#39465a!important;
}

:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .stats{gap:6px;margin-block:6px}
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .stat b{color:#765a32!important}
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .empty{margin-block:12px;padding:12px}
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .settings-section{margin-block-end:8px;padding-block-end:6px}
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .settings-section h4{margin-block-end:6px;padding-inline-start:7px;border-inline-start:2px solid #c5a46d;color:#765a32!important;font-size:15px}
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .color-row{gap:8px;margin-block:8px}
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .menu-grid{gap:6px!important}
:root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .menu-grid button{min-height:60px!important;padding:8px!important;border-radius:10px!important}

:root[data-theme="light"] .relationship-proposal-marriage,
:root[data-theme="light"] .relationship-outcome-happy{
  padding:8px;
  border:1px solid #e8e5df;
  border-radius:10px;
  background:#fafaf8;
  box-shadow:none;
  color:#172033;
}

:root[data-theme="light"] .relationship-proposal-marriage .relationship-bouquet{min-height:38px;gap:7px;font-size:23px}
:root[data-theme="light"] .relationship-proposal-marriage .relationship-bouquet span:nth-child(2){font-size:30px}
:root[data-theme="light"] .relationship-proposal-marriage p{margin:6px 0 8px;color:#1e293b;font-size:15px;line-height:1.6}
:root[data-theme="light"] .relationship-proposal-marriage .relationship-proposal-actions{gap:6px}
:root[data-theme="light"] .relationship-proposal-marriage [data-proposal-accept]{background:#8c6a3d!important;border-color:#8c6a3d!important}
:root[data-theme="light"] .relationship-proposal-marriage [data-proposal-reject]{background:#fff!important;border-color:#e5e7eb!important;color:#1e293b!important}

:root[data-theme="light"] .modal-box,
:root[data-theme="light"] .user-context-popup{
  padding:12px!important;
  border:1px solid #e8e5df!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 8px 30px rgba(15,23,42,.08)!important;
}

.win:not(.pm-window-host) button:not(:disabled),
.win:not(.pm-window-host) [role="button"],
.win:not(.pm-window-host) .news-pack,
.user-context-popup button,
.room-icon-action,
.room-menu-action,
.tiny,
.composer-tool,
.feed .msg-clickable,
.feed .avatar[role="button"]{
  transition:background-color 140ms ease,color 140ms ease,border-color 140ms ease,box-shadow 140ms ease,transform 140ms ease;
}

@media(hover:hover){
  .win:not(.pm-window-host) button:not(:disabled):hover,
  .user-context-popup button:not(:disabled):hover{
    border-color:#c5a46d!important;
  }
  .room-icon-action:hover,.room-menu-action:hover,.tiny:hover,.composer-tool:hover{border-color:#c5a46d}
}

.win:not(.pm-window-host) button:not(:disabled):active,
.user-context-popup button:not(:disabled):active,
.room-icon-action:active,
.room-menu-action:active,
.tiny:active,
.composer-tool:active,
.feed .msg-clickable:active{
  transform:scale(.985);
}

.win button:disabled,.user-context-popup button:disabled{transform:none!important;filter:none!important}
.win:not(.pm-window-host) :focus-visible,
.user-context-popup :focus-visible,
.room-icon-action:focus-visible,
.room-menu-action:focus-visible,
.tiny:focus-visible,
.composer-tool:focus-visible,
.feed .msg-clickable:focus-visible{
  outline:2px solid #b08d57!important;
  outline-offset:2px!important;
}

@media(max-width:412px){
  :root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host){width:calc(100vw - 20px)!important;max-height:84dvh!important}
  :root[data-theme="light"] .win.compact:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host){max-height:80dvh!important}
  :root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .win-body{padding:8px!important}
  :root[data-theme="light"] .win:not(.elvacs-window):not(.pm-window-host):not(.room-monitor-host) .row{min-height:48px!important}
}

.photo-week-view{display:flex;flex-direction:column;gap:7px}
.photo-week-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.photo-week-tabs button{min-width:0;min-height:40px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);color:var(--ink);font:inherit;font-size:13px;line-height:1.2}
.photo-week-tabs button[aria-selected="true"]{border-color:var(--forest);background:var(--forest);color:#fff}
.photo-week-prize{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border:1px solid color-mix(in srgb,var(--lime) 55%,var(--line));border-inline-start:4px solid var(--lime);border-radius:8px;background:linear-gradient(110deg,var(--surface-soft),var(--surface));box-shadow:0 3px 10px #16302712}
.photo-week-prize span{color:var(--muted);font-size:12px;font-weight:600}
.photo-week-prize strong{color:var(--forest);font-size:19px;font-weight:800;white-space:nowrap}
.photo-week-list{display:flex;flex-direction:column;gap:1px}
.photo-week-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:6px;min-height:34px;padding:4px 2px;border-bottom:1px solid var(--line);font-size:13px}
.photo-week-user{display:inline-flex;min-width:0;align-items:center;gap:5px;overflow:hidden;border:0;background:transparent;color:#172554;font:inherit;font-weight:600;text-align:start;white-space:nowrap}
.photo-week-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.photo-week-star{flex:none;color:#f5c518;font-size:15px;line-height:1}
.photo-week-score{white-space:nowrap;color:var(--muted);font-size:12px}
.photo-week-empty{margin:4px 0;padding:10px}
.photo-week-window{width:min(440px,72vw)}
@media(max-width:412px){.layer:has(section.win.photo-week-window) section.win.photo-week-window{width:calc(100vw - 48px)!important;max-width:440px!important}}
@media(max-width:360px){.photo-week-row{grid-template-columns:20px minmax(0,1fr) auto;gap:4px;font-size:12px}.photo-week-score{font-size:11px}.photo-week-tabs button{font-size:12px;padding-inline:4px}}

/* Public dialog system. PM and the full-screen room monitor keep their own visual systems. */

.elvacs-window:not(.pm-window-host):not(.room-monitor-host){
  --window-bg:#FAF7F2;
  --window-card:#FDFBF7;
  --window-text:#3D2B1F;
  --window-body:#5C4A3A;
  --window-muted:#8B7355;
  --window-border:#E8DFD0;
  --window-gold:#D4AF37;
  --window-copper:#C97B5A;
  --window-primary:#5C3D2E;
  --window-primary-mid:#7A5C47;
  --window-primary-dark:#6B4F3A;
  width:min(650px,100%)!important;
  max-width:650px!important;
  max-height:min(88dvh,900px);
  overflow:hidden;
  border:0!important;
  border-radius:20px!important;
  background:var(--window-bg)!important;
  color:var(--window-text)!important;
  box-shadow:
    0 25px 60px rgba(60,35,15,.35),
    0 0 0 1px rgba(212,175,55,.12),
    inset 0 1px 0 rgba(255,255,255,.75)!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .win-head{
  position:relative;
  z-index:2;
  min-height:50px!important;
  height:50px!important;
  flex:none;
  display:flex;
  align-items:center!important;
  gap:8px 12px!important;
  padding:3px 16px!important;
  border:0!important;
  border-bottom:0!important;
  border-radius:20px 20px 0 0!important;
  background:
    linear-gradient(
      90deg,
      #5C3D2E 0%,
      #7A5C47 50%,
      #8B6F47 100%
    )!important;
  color:#FFFFFF!important;
  box-shadow:
    0 2px 8px rgba(212,175,55,.5)!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .win-head::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:8px;
  height:1px;
  border-radius:1px;
  background:linear-gradient(
    90deg,
    rgba(212,175,55,.25) 0%,
    #D4AF37 25%,
    #F4D35E 50%,
    #D4AF37 75%,
    rgba(212,175,55,.25) 100%
  );
  box-shadow:
    0 0 5px rgba(212,175,55,.28),
    0 0 10px rgba(244,211,94,.12);
  pointer-events:none;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .win-head b{
  min-width:0;
  flex:1;
  color:#FFFFFF!important;
  font-family:Vazirmatn,sans-serif!important;
  font-size:18px!important;
  font-weight:700!important;
  line-height:1.35;
  letter-spacing:.3px;
  text-shadow:0 1px 3px rgba(45,25,10,.35);
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .win-head button{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  flex:none;
  display:grid;
  place-items:center;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#FFFFFF!important;
  box-shadow:none!important;
  font-size:27px!important;
  line-height:1;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .win-head button:hover{
  background:transparent!important;
  border-color:transparent!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .win-body{
  min-height:0;
  overflow:auto;
  padding:20px!important;
  background:#FAF7F2!important;
  color:#5C4A3A!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .row{
  min-height:68px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:16px 20px!important;
  border:0!important;
  border-bottom:1px solid #F0EBE4!important;
  border-radius:0!important;
  background:#FFFFFF!important;
  color:#5C4A3A!important;
  text-align:start;
  transition:
    background .3s cubic-bezier(.16,1,.3,1),
    border-color .3s cubic-bezier(.16,1,.3,1),
    box-shadow .3s cubic-bezier(.16,1,.3,1);
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .row:hover{
  background:linear-gradient(90deg,#FFFDF9,#F8F0DF)!important;
  border-bottom-color:#D4AF37!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .row-main b{
  color:#3D2B1F!important;
  font-family:Vazirmatn,sans-serif!important;
  font-size:14px!important;
  font-weight:700!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .row-main small,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .row-right,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .profile-id,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .field-hint,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .hint{
  color:#8B7355!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .section-title{
  margin:0 0 12px;
  padding:0 0 12px;
  border:0!important;
  border-bottom:1px solid #E8DFD0!important;
  color:#3D2B1F!important;
  font-family:Vazirmatn,sans-serif!important;
  font-size:16px!important;
  font-weight:700!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .about,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .fee,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .stat,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .settings-section,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .profile-edit-photo,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .menu-grid button,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .news-pack{
  background:#FDFBF7!important;
  border:1.5px solid #E8DFD0!important;
  border-radius:16px!important;
  color:#5C4A3A!important;
  box-shadow:0 4px 14px rgba(60,35,15,.05)!important;
  transition:
    border-color .3s cubic-bezier(.16,1,.3,1),
    box-shadow .3s cubic-bezier(.16,1,.3,1),
    transform .3s cubic-bezier(.16,1,.3,1);
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .about:hover,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .fee:hover,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .stat:hover,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .settings-section:hover,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .profile-edit-photo:hover,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .menu-grid button:hover,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .news-pack:hover{
  border-color:#D4AF37!important;
  box-shadow:0 8px 22px rgba(212,175,55,.12)!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .settings-section{
  padding:16px!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .settings-section h4{
  color:#3D2B1F!important;
  font-family:Vazirmatn,sans-serif!important;
  font-size:16px!important;
  font-weight:700!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .btn,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .btn-sm{
  min-height:46px;
  padding:14px 20px!important;
  border:1px solid #E0D8CC!important;
  border-radius:14px!important;
  background:#F5ECD7!important;
  color:#7A6B5D!important;
  font-family:Vazirmatn,sans-serif!important;
  font-size:14px!important;
  font-weight:600!important;
  box-shadow:none!important;
  transition:
    background .25s ease,
    border-color .25s ease,
    color .25s ease,
    transform .25s ease,
    box-shadow .25s ease;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .btn:hover,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .btn-sm:hover{
  background:#C9A96E!important;
  border-color:#C9A96E!important;
  color:#5C3D2E!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .btn.primary{
  border-color:#6B4F3A!important;
  background:linear-gradient(90deg,#5C3D2E 0%,#7A5C47 50%,#6B4F3A 100%)!important;
  color:#FFFFFF!important;
  box-shadow:
    0 6px 16px rgba(92,61,46,.25),
    inset 0 -2px 0 rgba(212,175,55,.85)!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .btn.primary:hover{
  background:linear-gradient(90deg,#6B4F3A,#8B6F47,#76553F)!important;
  color:#FFFFFF!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .btn.danger{
  border-color:#8B3A3A!important;
  background:#8B3A3A!important;
  color:#FFFFFF!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .btn.gold{
  border-color:#D4AF37!important;
  background:linear-gradient(90deg,#F5ECD7,#E8D5A9)!important;
  color:#5C3D2E!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .field label{
  color:#8B7355!important;
  font-family:Vazirmatn,sans-serif!important;
  font-size:13px!important;
  font-weight:400!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .field input,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .field textarea,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .field select,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .toolrow input,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .toolrow textarea{
  border:1.5px solid #E8DFD0!important;
  border-radius:14px!important;
  background:#FFFFFF!important;
  color:#5C4A3A!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .field input:focus,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .field textarea:focus,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .field select:focus,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .toolrow input:focus,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .toolrow textarea:focus{
  border-color:#D4AF37!important;
  box-shadow:0 0 0 3px rgba(212,175,55,.14)!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .tabs{
  padding:5px;
  border-radius:14px;
  background:#F5ECD7!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .tabs button{
  min-height:44px;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#7A6B5D!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .tabs button.active,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .tabs button[aria-selected="true"],
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) [role="tab"][aria-selected="true"]{
  background:#FFFFFF!important;
  color:#5C3D2E!important;
  box-shadow:0 3px 10px rgba(60,35,15,.10)!important;
  border-color:#D4AF37!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) :focus-visible{
  outline:2px solid #D4AF37!important;
  outline-offset:2px;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .menu-grid button{
  min-height:70px!important;
  padding:14px!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .menu-grid button:hover{
  background:linear-gradient(135deg,#FDFBF7,#F8F0DF)!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .menu-grid button svg,
.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .row svg{
  color:#C97B5A!important;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .win-body::-webkit-scrollbar{
  width:7px;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .win-body::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:#C9A96E;
}

.elvacs-window:not(.pm-window-host):not(.room-monitor-host) .win-body::-webkit-scrollbar-track{
  background:#F5ECD7;
}

.elvacs-modal-card{
  width:min(500px,calc(100vw - 32px))!important;
  max-width:500px;
  max-height:88dvh;
  overflow:auto;
  padding:18px;
  border:1.5px solid #E8DFD0;
  border-radius:16px;
  background:#FDFBF7;
  box-shadow:0 12px 30px rgba(60,35,15,.12),inset 0 1px 0 rgba(255,255,255,.8);
  color:#5C4A3A;
}
.elvacs-modal-card h3{color:#3D2B1F;font-family:Vazirmatn,sans-serif;font-size:17px;font-weight:700}
.elvacs-modal-card p{color:#5C4A3A;line-height:1.6}
.elvacs-modal-card #suspend-reason{width:100%;min-height:100px;border:1.5px solid #E8DFD0;border-radius:14px;background:#FFFFFF;color:#5C4A3A}
.elvacs-modal-card .btn{min-height:44px;border:1px solid #E0D8CC;border-radius:14px;background:#F5ECD7;color:#7A6B5D;font-family:Vazirmatn,sans-serif;font-weight:600}
.elvacs-modal-card .btn.primary{border-color:#6B4F3A;background:linear-gradient(90deg,#5C3D2E,#7A5C47,#6B4F3A);color:#FFFFFF;box-shadow:0 6px 16px rgba(92,61,46,.25),inset 0 -2px 0 rgba(212,175,55,.85)}
.elvacs-modal-card .btn.danger{border-color:#8B3A3A;background:#8B3A3A;color:#FFFFFF}
@media(max-width:760px){
  .layer:has(>.elvacs-window.active:not(.pm-window-host):not(.room-monitor-host)){align-items:center;justify-content:center;padding:12px;background:rgba(60,35,15,.28);backdrop-filter:blur(2px)}
  .elvacs-window:not(.pm-window-host):not(.room-monitor-host){width:calc(100vw - 24px)!important;max-width:620px!important;max-height:90dvh!important;border-radius:20px!important}
  .elvacs-window.photo-week-window:not(.pm-window-host):not(.room-monitor-host){width:calc(100vw - 48px)!important;max-width:440px!important}
  .elvacs-window:not(.pm-window-host):not(.room-monitor-host) .win-head{min-height:50px!important;height:50px!important;padding:3px 12px!important;align-items:center!important;border-radius:20px 20px 0 0!important}
  .elvacs-window:not(.pm-window-host):not(.room-monitor-host) .win-head{min-height:50px!important;height:50px!important;padding:3px 12px!important;align-items:center!important}
  .elvacs-window:not(.pm-window-host):not(.room-monitor-host) .win-body{padding:12px!important}
  .elvacs-modal-card{width:calc(100vw - 24px)!important;max-height:88dvh;padding:16px;border-radius:18px}
}

@media(prefers-reduced-motion:reduce){
  .win:not(.pm-window-host),.win:not(.pm-window-host) *,
  .room-icon-action,.room-menu-action,.tiny,.composer-tool,.feed .msg-clickable{transition:none!important}
}

:root[data-theme="light"] .room-identity{
  border-block-end:1px solid #e8e5df!important;
  background:#fff!important;
}

:root[data-theme="light"] .room-title{color:#172033!important}
:root[data-theme="light"] .room-sub,:root[data-theme="light"] .room-stats{color:#64748b!important}

:root[data-theme="light"] .conversation{
  background-color:#f7f4ed!important;
  background-image:linear-gradient(180deg,#f7f4ed 0%,#fbfaf7 38%,#f5f5f1 100%)!important;
  background-size:100% 100%!important;
}

:root[data-theme="light"] .conversation-compose-area{
  border-block-start:1px solid #e8e5df!important;
  background:#fff!important;
}

:root[data-theme="light"] .room-icon-action,
:root[data-theme="light"] .room-menu-action{
  border:1px solid #e5e7eb!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#8c6a3d!important;
}

:root[data-theme="light"] .composer{
  border-color:#e5e7eb!important;
  border-radius:14px!important;
  background:#fafaf8!important;
  box-shadow:0 4px 14px rgba(23,32,51,.05)!important;
}

:root[data-theme="light"] .composer input[data-composer-input]{color:#172033!important}
:root[data-theme="light"] .composer input::placeholder{color:#64748b!important}

:root[data-theme="light"] .composer .send{
  border:1px solid #8c6a3d!important;
  background:#8c6a3d!important;
  color:#fff!important;
  box-shadow:none!important;
}

:root[data-theme="light"] .composer .send:hover{background:#765a32!important}

:root[data-theme="light"] .room-activity{
  border-color:#e8e5df!important;
  background:#FBF7D5!important;
  box-shadow:none!important;
}

@media(max-width:350px){
  .room-icon-action,.room-menu-action{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
}

:root[data-theme="light"] .room-identity{
  border-block-end:2px solid #c5a46d!important;
  background:linear-gradient(112deg,#fff 0%,#fafaf8 62%,#f3eee2 100%)!important;
  box-shadow:0 4px 16px rgba(23,32,51,.07)!important;
}

:root[data-theme="light"] .room-identity-copy{
  position:relative;
  padding-inline-start:12px;
}

:root[data-theme="light"] .room-identity-copy::before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  inset-block-start:50%;
  inline-size:3px;
  block-size:42px;
  transform:translateY(-50%);
  border-radius:3px;
  background:linear-gradient(180deg,#d4b483,#8c6a3d);
}

:root[data-theme="light"] .room-title{
  font-family:"Palatino Linotype",Palatino,"Times New Roman",Georgia,"Noto Naskh Arabic","Noto Serif",Tahoma,serif!important;
  font-size:22px!important;
  font-weight:700;
  line-height:1.2;
}

:root[data-theme="light"] .room-sub{
  font-family:"Segoe UI","Noto Sans Arabic",Tahoma,sans-serif;
  line-height:1.4;
}

@media(max-width:360px){
  :root[data-theme="light"] .room-title{font-size:14px!important}
}

@media(min-width:361px) and (max-width:380px){
  :root[data-theme="light"] .room-title{font-size:15px!important}
}

@media(min-width:381px) and (max-width:390px){
  :root[data-theme="light"] .room-title{font-size:18px!important}
}

@media(min-width:391px) and (max-width:412px){
  :root[data-theme="light"] .room-title{font-size:17px!important}
}

@media(min-width:351px) and (max-width:360px){
  :root[data-theme="light"] .room-sub{display:block;max-width:none;overflow:visible;-webkit-line-clamp:unset}
}

@media(max-width:350px){
  :root[data-theme="light"] .room-identity{flex-wrap:wrap;row-gap:4px;padding-block:8px}
  :root[data-theme="light"] .room-identity-copy{flex:1 1 100%}
  :root[data-theme="light"] .room-identity-copy::before{block-size:40px;margin:0}
  :root[data-theme="light"] .room-title{font-size:20px!important;white-space:normal;overflow:visible;text-overflow:clip}
  :root[data-theme="light"] .room-sub{display:block;max-width:none;overflow:visible;-webkit-line-clamp:unset}
  :root[data-theme="light"] .room-actions{flex:0 0 100%;justify-content:flex-end}
}

:root[data-theme="light"] .room-identity{
  min-height:0!important;
  margin-block-start:8px;
  margin-inline:10px;
  padding-block:6px!important;
  padding-inline:8px;
  border:1px solid #e8e5df!important;
  border-radius:14px!important;
  background:linear-gradient(112deg,#fff 0%,#fafaf8 62%,#f3eee2 100%)!important;
  box-shadow:0 5px 18px rgba(23,32,51,.09)!important;
}

:root[data-theme="light"] .room-identity-copy{padding-inline-start:6px}

@media(max-width:760px){
  :root[data-theme="light"] .room-identity{margin-inline:8px;padding-block:6px!important}
}

@media(max-width:350px){
  :root[data-theme="light"] .room-identity{row-gap:2px;padding-block:4px!important}
}

:root[data-theme="light"] .room-identity{
  margin-block-start:2px;
  padding-block:3px!important;
  border-radius:16px!important;
  border-block-end:1px solid rgba(232,229,223,.72)!important;
  box-shadow:0 9px 24px rgba(23,32,51,.13),0 0 16px rgba(197,164,109,.10)!important;
  backdrop-filter:blur(8px) saturate(1.03);
  -webkit-backdrop-filter:blur(8px) saturate(1.03);
}

:root[data-theme="light"][dir="ltr"] .room-identity{
  background:linear-gradient(90deg,rgba(255,255,255,.94) 0%,rgba(255,255,255,.91) 56%,rgba(244,235,211,.9) 100%)!important;
}

:root[data-theme="light"][dir="rtl"] .room-identity{
  background:linear-gradient(270deg,rgba(255,255,255,.94) 0%,rgba(255,255,255,.91) 56%,rgba(244,235,211,.9) 100%)!important;
}

@media(max-width:760px){
  :root[data-theme="light"] .room-title{font-size:17px!important}
  :root[data-theme="light"] .room-sub{font-size:11px!important;line-height:1.3}
}

@media(max-width:380px){
  :root[data-theme="light"] .room-title{font-size:15px!important}
}

@media(max-width:360px){
  :root[data-theme="light"] .room-title{font-size:14px!important}
}

@media(max-width:350px){
  :root[data-theme="light"] .room-identity{row-gap:2px;padding-block:2px!important}
  :root[data-theme="light"] .room-title{font-size:18px!important}
  :root[data-theme="light"] .room-sub{font-size:10px!important;line-height:1.3}
}

.room-identity .room-sub{display:none!important}
:root[data-theme="light"] .room-identity-copy::before{display:none!important;content:none!important}

.conversation .feed .msg{
  padding-block:2px!important;
}

.conversation .feed .msgline{
  gap:6px!important;
}

.conversation .feed .msg .avatar{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
}

.conversation .feed .msg .body{
  font-family:'Vazirmatn',Tahoma,sans-serif!important;
  font-size:15px!important;
  line-height:1.75!important;
  letter-spacing:normal!important;
  word-spacing:normal!important;
  overflow-wrap:anywhere;
  unicode-bidi:plaintext;
}

.conversation .feed .room-activity{
  margin-block:2px!important;
  padding-block:1px!important;
  min-block-size:42px;
}

:root[data-theme="light"] .room-identity{
  margin-block-start:0!important;
  margin-inline:4px!important;
  border-radius:18px!important;
  box-shadow:0 8px 22px rgba(23,32,51,.10),0 0 24px rgba(224,174,31,.23)!important;
}

:root[data-theme="light"][dir="ltr"] .room-identity{
  background:linear-gradient(108deg,transparent 32%,rgba(255,255,255,.02) 38%,rgba(255,255,255,.08) 43%,rgba(255,255,255,.18) 48%,rgba(255,255,255,.20) 52%,rgba(255,255,255,.12) 58%,rgba(255,255,255,.04) 64%,transparent 70%),linear-gradient(90deg,#fff 0%,rgba(255,255,255,.98) 10%,rgba(255,249,232,.98) 24%,rgba(255,238,195,.96) 42%,rgba(248,220,148,.95) 60%,rgba(238,194,86,.94) 78%,rgba(207,151,24,.94) 100%)!important;
}

:root[data-theme="light"][dir="rtl"] .room-identity{
  background:linear-gradient(252deg,transparent 32%,rgba(255,255,255,.02) 38%,rgba(255,255,255,.08) 43%,rgba(255,255,255,.18) 48%,rgba(255,255,255,.20) 52%,rgba(255,255,255,.12) 58%,rgba(255,255,255,.04) 64%,transparent 70%),linear-gradient(270deg,#fff 0%,rgba(255,255,255,.98) 10%,rgba(255,249,232,.98) 24%,rgba(255,238,195,.96) 42%,rgba(248,220,148,.95) 60%,rgba(238,194,86,.94) 78%,rgba(207,151,24,.94) 100%)!important;
}

:root[data-theme="light"] .room-identity-copy::before{
  background:linear-gradient(180deg,#ffe79b,#d39b19);
}

:root[data-theme="light"] .room-identity .people-presence,
:root[data-theme="light"] .room-identity .room-menu-action,
:root[data-theme="light"] .room-identity .room-icon-action{
  background:rgba(255,255,255,.22)!important;
  border-color:rgba(140,106,61,.24)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

@media(hover:hover){
  :root[data-theme="light"] .room-identity .people-presence:hover,
  :root[data-theme="light"] .room-identity .room-menu-action:hover,
  :root[data-theme="light"] .room-identity .room-icon-action:hover{
    background:rgba(255,255,255,.42)!important;
  }
}

:root[data-theme="light"] .room-identity .people-presence:active,
:root[data-theme="light"] .room-identity .room-menu-action:active,
:root[data-theme="light"] .room-identity .room-icon-action:active{
  background:rgba(255,255,255,.55)!important;
}

@media(max-width:370px){
  :root[data-theme="light"] .room-identity{flex-wrap:wrap;row-gap:2px}
  :root[data-theme="light"] .room-identity-copy{flex:1 1 100%}
  :root[data-theme="light"] .room-title{font-size:18px!important;white-space:normal;overflow:visible;text-overflow:clip}
  :root[data-theme="light"] .room-actions{flex:0 0 100%;justify-content:flex-end}
}

@media(min-width:371px) and (max-width:380px){
  :root[data-theme="light"] .room-title{font-size:14px!important}
}

@media(min-width:381px) and (max-width:412px){
  :root[data-theme="light"] .room-title{font-size:15px!important}
}

@media(max-width:760px){
  .conversation .feed .msg-head{display:inline!important}
}

:root[data-theme="light"] .conversation{
  background-color:#FBF7D5!important;
  background-image:none!important;
}

/* ELVACS: unified composer background */
:root[data-theme="light"] .conversation-compose-area,
:root[data-theme="light"] .composer,
:root[data-theme="light"] .composer-tool,
:root[data-theme="light"] .composer-tool:hover {
  background:#FBF7D5 !important;
}

/* ELVACS: match room header outer corner background */
.room-experience {
  background:#FBF7D5;
}

/* ELVACS: match divider between News and Room Header */
.platform-news-band {
  border-bottom-color:#FBF7D5 !important;
}

/* =========================================================
   STAGE 2 — IMAGE VIEWER LUXURY HEADER — FINAL
   Only the image viewer window header is affected.
   ========================================================= */

.win.image-viewer-fullscreen .win-head{
  position:relative!important;
  z-index:2!important;
  min-height:50px!important;
  height:50px!important;
  flex:none!important;
  display:flex!important;
  align-items:center!important;
  gap:8px 12px!important;
  padding:3px 16px!important;
  border:0!important;
  border-bottom:0!important;
  border-radius:20px 20px 0 0!important;
  background:
    linear-gradient(
      90deg,
      #5C3D2E 0%,
      #7A5C47 50%,
      #8B6F47 100%
    )!important;
  color:#FFFFFF!important;
  box-shadow:
    0 2px 8px rgba(212,175,55,.5)!important;
}

.win.image-viewer-fullscreen .win-head b{
  color:#FFFFFF!important;
}

.win.image-viewer-fullscreen .win-head button{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  flex:none!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#FFFFFF!important;
  box-shadow:none!important;
}

/* Room User Context Popup — header only */
.user-context-popup > div:first-child{
  height:46px!important;
  min-height:46px!important;
  margin:-10px -10px 8px!important;
  padding:0 10px!important;
  display:flex!important;
  align-items:center!important;
  position:relative!important;
}

.user-context-popup > div:first-child::after{
  content:""!important;
  position:absolute!important;
  left:10px!important;
  right:10px!important;
  bottom:5px!important;
  height:1px!important;
  background:linear-gradient(
    90deg,
    rgba(212,175,55,.25) 0%,
    #D4AF37 25%,
    #F4D35E 50%,
    #D4AF37 75%,
    rgba(212,175,55,.25) 100%
  )!important;
  box-shadow:0 0 5px rgba(212,175,55,.28)!important;
  pointer-events:none!important;
}


/* Stage 4 — PM header structure only */
.layer:has(.pm-window-host) .pm-window-host .win-head{
  height:46px!important;
  min-height:46px!important;
  position:relative!important;
  box-sizing:border-box!important;
}

.layer:has(.pm-window-host) .pm-window-host .win-head::after{
  content:""!important;
  position:absolute!important;
  left:10px!important;
  right:10px!important;
  bottom:4px!important;
  height:1px!important;
  background:linear-gradient(
    90deg,
    rgba(212,175,55,.25) 0%,
    #D4AF37 25%,
    #F4D35E 50%,
    #D4AF37 75%,
    rgba(212,175,55,.25) 100%
  )!important;
  box-shadow:0 0 5px rgba(212,175,55,.28)!important;
  pointer-events:none!important;
}

.layer:has(.pm-window-host) .pm-window-host .win-head [data-close]{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}


/* Stage 4 — PM luxury header visual override */
.layer:has(.pm-window-host) .pm-window-host{
  border-radius:8px!important;
  overflow:hidden!important;
}

.layer:has(.pm-window-host) .pm-window-host .win-head{
  height:46px!important;
  min-height:46px!important;
  padding:3px 10px!important;
  border:0!important;
  border-radius:0!important;
  background:
    linear-gradient(
      90deg,
      #5C3D2E 0%,
      #7A5C47 50%,
      #8B6F47 100%
    )!important;
  color:#FFFFFF!important;
  box-shadow:none!important;
}

.layer:has(.pm-window-host) .pm-window-host .win-head [data-close]{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#FFFFFF!important;
  box-shadow:none!important;
  font-size:22px!important;
}


/* Stage 4 — PM final surface cleanup */
.layer:has(.pm-window-host) .pm-window-host{
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:hidden!important;
}

.layer:has(.pm-window-host) .pm-window-host .win-head,
.layer:has(.pm-window-host) .pm-window-host .win-head b,
.layer:has(.pm-window-host) .pm-window-host .win-head strong,
.layer:has(.pm-window-host) .pm-window-host .win-head span{
  color:#FFFFFF!important;
}

.layer:has(.pm-window-host) .pm-window-host .win-head{
  height:46px!important;
  min-height:46px!important;
  padding:3px 10px!important;
  border:0!important;
  border-radius:0!important;
  background:
    linear-gradient(
      90deg,
      #5C3D2E 0%,
      #7A5C47 50%,
      #8B6F47 100%
    )!important;
  box-shadow:none!important;
}

.layer:has(.pm-window-host) .pm-window-host .win-body{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}

.layer:has(.pm-window-host) .pm-window-host .win-head [data-close]{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#FFFFFF!important;
  box-shadow:none!important;
}


/* Stage 4 — PM completely flat, edge-to-edge surface */
.layer:has(.pm-window-host) .pm-window-host{
  width:min(420px,calc(100vw - 32px))!important;
  max-width:420px!important;
  height:min(620px,72dvh)!important;
  max-height:72dvh!important;

  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}

.layer:has(.pm-window-host) .pm-window-host .win-head{
  width:100%!important;
  height:46px!important;
  min-height:46px!important;
  margin:0!important;
  padding:3px 10px!important;

  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

.layer:has(.pm-window-host) .pm-window-host .win-body{
  width:100%!important;
  height:calc(100% - 46px)!important;
  min-height:0!important;
  margin:0!important;
  padding:9px!important;

  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;

  /* PM message/rank surface remains responsible for its own color */
  background:var(--surface)!important;
}

.layer:has(.pm-window-host) .pm-window-host .pm-messages,
.layer:has(.pm-window-host) .pm-window-host [class*="message-list"],
.layer:has(.pm-window-host) .pm-window-host [class*="messages"]{
  border-radius:0!important;
}

.layer:has(.pm-window-host) .pm-window-host .win-head [data-close]{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  margin:0!important;

  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#FFFFFF!important;
  box-shadow:none!important;
}


/* Stage 4 — PM inner window is the single continuous surface */
.layer:has(.pm-window-host) .pm-window-host .pm-window{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;

  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  outline:0!important;

  background:var(--surface)!important;

  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}

.layer:has(.pm-window-host) .pm-window-host .pm-window .pm-history{
  flex:1 1 auto!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;

  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

.layer:has(.pm-window-host) .pm-window-host .pm-window .pm-composer{
  width:100%!important;
  margin:0!important;
  border-radius:0!important;
  border-inline:0!important;
  border-bottom:0!important;
}


/* Stage 4 — PM full rank-colored surface + luxury header details */

/* Entire PM body must use the rank surface, not a white frame */
.layer:has(.pm-window-host .pm-window[data-pm-rank]) .pm-window-host .win-body{
  background:transparent!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

.layer:has(.pm-window-host .pm-window[data-pm-rank]) .pm-window-host .pm-window{
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  overflow:hidden!important;
}

/* History fills the complete colored PM surface */
.layer:has(.pm-window-host .pm-window[data-pm-rank]) .pm-window-host .pm-history{
  flex:1 1 auto!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:10px!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

/* Keep composer at the bottom without creating a white frame */
.layer:has(.pm-window-host .pm-window[data-pm-rank]) .pm-window-host .pm-composer{
  flex:0 0 auto!important;
  width:100%!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

/* PM header always uses the luxury copper system */
.layer:has(.pm-window-host .pm-window[data-pm-rank]) .pm-window-host .win-head{
  height:46px!important;
  min-height:46px!important;
  padding:3px 10px!important;
  border:0!important;
  border-radius:0!important;
  background:linear-gradient(
    90deg,
    #5C3D2E 0%,
    #7A5C47 50%,
    #8B6F47 100%
  )!important;
  color:#FFFFFF!important;
  box-shadow:none!important;
  position:relative!important;
}

.layer:has(.pm-window-host .pm-window[data-pm-rank]) .pm-window-host .win-head::after{
  content:""!important;
  position:absolute!important;
  left:10px!important;
  right:10px!important;
  bottom:5px!important;
  height:1px!important;
  background:linear-gradient(
    90deg,
    rgba(212,175,55,.25) 0%,
    #D4AF37 25%,
    #F4D35E 50%,
    #D4AF37 75%,
    rgba(212,175,55,.25) 100%
  )!important;
  box-shadow:0 0 5px rgba(212,175,55,.28)!important;
  pointer-events:none!important;
}

/* Last-seen text in PM header */
.layer:has(.pm-window-host .pm-window[data-pm-rank]) .pm-window-host .pm-window-identity small{
  color:#F4D35E!important;
}

/* PM close button */
.layer:has(.pm-window-host .pm-window[data-pm-rank]) .pm-window-host .win-head [data-close]{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#FFFFFF!important;
  box-shadow:none!important;
}


/* =========================================================
   STAGE 4 — PM AUTHORITY SURFACE
   Uses the existing ELVACS authority palette.
   Rank source remains app.js -> data-pm-rank.
   ========================================================= */

.layer:has(.pm-window-host .pm-window[data-pm-rank]) .pm-window-host .win-body{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.layer:has(.pm-window-host .pm-window[data-pm-rank]) .pm-window-host .pm-window{
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}

/* Administrator */
.layer:has(.pm-window-host .pm-window[data-pm-rank="administrator"])
  .pm-window-host .pm-window{
  background:linear-gradient(180deg,#5c3b00,#c99a2e)!important;
}

/* Top User */
.layer:has(.pm-window-host .pm-window[data-pm-rank="top_user"])
  .pm-window-host .pm-window{
  background:linear-gradient(180deg,#7a4f00,#e0ad3f)!important;
}

/* Super Manager */
.layer:has(.pm-window-host .pm-window[data-pm-rank="super_manager"])
  .pm-window-host .pm-window{
  background:linear-gradient(180deg,#8a5a00,#e8b94f)!important;
}

/* Hyper Manager */
.layer:has(.pm-window-host .pm-window[data-pm-rank="hyper_manager"])
  .pm-window-host .pm-window{
  background:linear-gradient(180deg,#a66b00,#f2c861)!important;
}

/* Merchant */
.layer:has(.pm-window-host .pm-window[data-pm-rank="merchant"])
  .pm-window-host .pm-window{
  background:linear-gradient(180deg,#b87900,#f6d77a)!important;
}

/* Conversation history is part of the same continuous surface */
.layer:has(.pm-window-host .pm-window[data-pm-rank])
  .pm-window-host .pm-history{
  flex:1 1 auto!important;
  width:100%!important;
  min-height:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

/* Composer stays inside the same PM surface */
.layer:has(.pm-window-host .pm-window[data-pm-rank])
  .pm-window-host .pm-composer{
  flex:0 0 auto!important;
  width:100%!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

/* Last presence */
.layer:has(.pm-window-host .pm-window[data-pm-rank])
  .pm-window-host .pm-window-identity small{
  color:#F4D35E!important;
}


/* STAGE 4 FINAL FIX — ordinary PM surface + rounded PM header top corners */

/* Ordinary users: restore the original PM surface */
.layer:has(.pm-window-host) .pm-window-host .pm-window[data-pm-rank=""]{
  background:var(--surface)!important;
}

.layer:has(.pm-window-host) .pm-window-host .pm-window[data-pm-rank=""] .pm-history{
  background:color-mix(in srgb,var(--surface) 76%,transparent)!important;
}

/* PM header: only top corners rounded */
.layer:has(.pm-window-host) .pm-window-host .win-head{
  border-radius:20px 20px 0 0!important;
  overflow:hidden!important;
}


/* STAGE 4 FINAL SURFACE CORRECTION */

/* Ordinary PM must be fully opaque */
.layer:has(.pm-window-host) .pm-window-host .pm-window[data-pm-rank=""]{
  background:#F7F4EE!important;
  opacity:1!important;
}

.layer:has(.pm-window-host) .pm-window-host .pm-window[data-pm-rank=""] .pm-history{
  background:#F7F4EE!important;
  opacity:1!important;
}

/* PM header — rounded top corners must be visible */
.layer:has(.pm-window-host) .pm-window-host .win-head{
  border-radius:20px 20px 0 0!important;
  overflow:hidden!important;
  clip-path:inset(0 0 0 0 round 20px 20px 0 0)!important;
}


/* STAGE 4 — PM HOST TOP CORNERS */
.layer:has(.pm-window-host) .pm-window-host{
  border-radius:20px 20px 0 0!important;
  overflow:hidden!important;
}

/* Keep the PM header aligned with the host corners */
.layer:has(.pm-window-host) .pm-window-host .win-head{
  border-radius:20px 20px 0 0!important;
  clip-path:none!important;
}

/* Ordinary-user PM remains fully opaque */
.layer:has(.pm-window-host) .pm-window-host .pm-window[data-pm-rank=""],
.layer:has(.pm-window-host) .pm-window-host .pm-window[data-pm-rank=""] .pm-history{
  background:#F7F4EE!important;
  opacity:1!important;
}

/* Incoming PM — compact premium actions */
.pm-float-actions{
  gap:7px !important;
  padding:8px 10px !important;
}

.pm-float-actions .btn{
  min-height:34px !important;
  height:34px !important;
  padding:0 12px !important;
  border-radius:10px !important;
  font-size:11px !important;
  font-weight:750 !important;
  letter-spacing:.01em !important;
  box-shadow:none !important;
}

.pm-float-actions .btn.primary{
  box-shadow:0 4px 12px rgba(17,24,39,.10) !important;
}

/* Incoming PM — ordinary users: continuous surface, normal app colors */
.pm-float-notice:not(.pm-float-rank) .pm-float-body,
.pm-float-notice:not(.pm-float-rank) .pm-float-actions{
  background:transparent !important;
}


/* Incoming PM — ONE shared header structure for every sender */
.pm-float-notice .pm-float-top{
  min-height:46px !important;
  height:46px !important;
  padding:0 12px !important;
  gap:10px !important;
  background:transparent !important;
  color:inherit !important;
}

.pm-float-notice .pm-float-avatar{
  width:34px !important;
  height:34px !important;
  border-radius:10px !important;
}

.pm-float-notice .pm-float-close{
  width:36px !important;
  height:36px !important;
  border-radius:9px !important;
  background:transparent !important;
  color:inherit !important;
}

.pm-float-notice .pm-float-label{
  opacity:.75 !important;
}

.pm-float-notice .pm-float-body,
.pm-float-notice .pm-float-actions{
  background:transparent !important;
}


/* Mobile keyboard: rely on the visual viewport height. */
@media (max-width:760px){
  .conversation{
    scroll-padding-bottom:24px;
  }
}

/* Room image link: fixed blue exception to user-selected message colors */
.body .image-message-link,
.body .image-message-link:visited,
.body .image-message-link:hover,
.body .image-message-link:focus {
  color: #1677e8 !important;
  text-decoration: underline !important;
}

/* =========================================================
   ELVACS — Room Message Reply System
   Swipe-to-reply (WhatsApp/Telegram-style)
   Brand colors: forest / lime
   ========================================================= */

/* Wrapper for swipe gesture — must not affect normal layout */
.msg-swipe-wrap{
  position:relative;
  overflow:hidden;
  /* touch-action pan-y lets vertical scroll still work while we intercept horizontal */
  touch-action:pan-y;
}

/* The actual message inside the wrapper slides horizontally */
.msg-swipe-wrap > .msg{
  will-change:transform;
  transition:transform .18s cubic-bezier(.22,1,.36,1);
}

.msg-swipe-wrap.msg-swiping > .msg{
  transition:none;
}

/* Reply icon that appears behind the message while swiping (brand lime) */
.msg-swipe-icon{
  position:absolute;
  top:0;
  bottom:0;
  inset-inline-end:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  opacity:0;
  transform:scale(.7);
  transition:opacity .15s, transform .15s;
  color:var(--forest-2, #245a48);
}

.msg-swipe-icon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.msg-swipe-icon.is-visible{
  opacity:1;
  transform:scale(1);
}

.msg-swipe-icon.is-armed{
  color:#43ae76; /* success green: threshold passed */
  transform:scale(1.15);
}

/* Reply preview bar above the composer */
.reply-preview-bar{
  display:none;
  align-items:center;
  gap:10px;
  margin:0 0 8px;
  padding:8px 12px;
  border:1px solid rgba(36,90,72,.28);
  border-inline-start:4px solid var(--forest-2, #245a48);
  border-radius:10px;
  background:linear-gradient(135deg, rgba(213,243,106,.14), rgba(36,90,72,.06));
  color:var(--forest, #183d32);
  font-size:13px;
  line-height:1.4;
}

.reply-preview-bar.is-active{
  display:flex;
}

.reply-preview-bar .reply-preview-icon{
  flex:none;
  color:var(--forest-2, #245a48);
  font-size:17px;
  line-height:1;
}

.reply-preview-bar .reply-preview-body{
  min-width:0;
  flex:1;
  overflow:hidden;
}

.reply-preview-bar .reply-preview-head{
  overflow:hidden;
  color:var(--forest-2, #245a48);
  font-size:12px;
  font-weight:800;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.reply-preview-bar .reply-preview-text{
  margin-top:2px;
  overflow:hidden;
  color:var(--ink-soft, #43574f);
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.reply-preview-bar .reply-preview-close{
  width:30px;
  height:30px;
  flex:none;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(36,90,72,.12);
  color:var(--forest, #183d32);
  font-size:16px;
  line-height:1;
  cursor:pointer;
  touch-action:manipulation;
}

.reply-preview-bar .reply-preview-close:hover{
  background:rgba(36,90,72,.22);
}

/* Reply quote block INSIDE a message (above its text) */
.msg.msg-highlight .msg-content{
  animation:msgHighlight 2s ease-out;
  border-radius:8px;
}

@keyframes msgHighlight{
  0%   { background:rgba(213,243,106,.85); }
  30%  { background:rgba(213,243,106,.55); }
  100% { background:transparent; }
}

/* Dark theme adjustments */
html[data-theme="dark"] .reply-quote{
  background:linear-gradient(135deg, rgba(213,243,106,.10), rgba(36,90,72,.16));
  color:var(--ink, #eef1f7);
}
html[data-theme="dark"] .reply-quote.is-deleted{
  background:#2a3a33;
}
html[data-theme="dark"] .reply-preview-bar{
  background:linear-gradient(135deg, rgba(213,243,106,.10), rgba(36,90,72,.14));
  color:var(--ink, #eef1f7);
}
html[data-theme="dark"] .reply-preview-bar .reply-preview-text{
  color:var(--ink-soft, #cfdbce);
}

/* =========================================================
   ELVACS — Inline reply-quote (WhatsApp/Slack-like)
   The reply-quote behaves like a single inline "chip" placed
   between the sender's ":" and the message body. It flows
   naturally with the text — wraps to next line if needed,
   never causes horizontal scroll.
   ========================================================= */
.msg .msg-head{
  display:inline;
}
.msg .msg-head .msg-separator{
  margin-inline-end:4px;
}
.msg .reply-quote{
  display:inline-block;
  vertical-align:baseline;
  max-width:100%;
  margin-inline-end:6px;
  padding:1px 7px;
  border-radius:8px;
  background:linear-gradient(135deg, rgba(213,243,106,.18), rgba(36,90,72,.05));
  color:var(--ink-soft, #43574f);
  font-size:12px;
  line-height:1.4;
  cursor:pointer;
  word-break:break-word;
  overflow-wrap:anywhere;
  white-space:normal;
}
.msg .reply-quote .reply-quote-head{
  color:var(--forest-2, #245a48);
  font-weight:800;
}
.msg .reply-quote .reply-quote-sep{
  color:var(--muted, #718078);
  font-weight:600;
}
.msg .reply-quote .reply-quote-text{
  color:var(--ink-soft, #43574f);
}
.msg .reply-quote.is-deleted{
  opacity:.55;
  border-inline-start-color:#a4b6a8;
  background:#f4f6f1;
}
.msg .reply-quote.is-deleted .reply-quote-head{
  color:#8792a3;
  font-style:italic;
}
.msg .body{
  display:inline;
}

/* ELVACS PURS gift notification — vivid golden yellow */
.purs-gift-float{
  background:#ffdf00;
  border:2px solid #c99a00;
  color:#493000;
  box-shadow:0 10px 30px rgba(190,145,0,.38);
}
.purs-gift-float .purs-gift-head{
  background:linear-gradient(110deg,#ffe680,#f4d35e);
  color:#493715;
}
.purs-gift-float .purs-gift-body{
  color:#624b12;
}
.purs-gift-float .purs-gift-actions{
  background:#ffefad;
}

/* ELVACS: precise spacing for ordinary room messages only */
.conversation .feed .msg-clickable .msgline {
  gap: 6px !important;
  column-gap: 6px !important;
}

.conversation .feed .msg-clickable .room-identity-slot {
  width: auto !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}

.conversation .feed .msg-clickable .msg-content {
  padding: 0 !important;
}

/* Keep the username, rank badge and colon tightly grouped. */
.conversation .feed .msg-clickable .msg-head {
  display: inline !important;
  column-gap: normal !important;
}

.conversation .feed .msg-clickable .msg-separator {
  margin-inline-start: 1px !important;
  margin-inline-end: 1px !important;
}

/* Fix ONLY crown-to-username spacing in ordinary room messages */
.conversation .feed .msg-clickable .room-identity-slot-crown {
  width: 28px !important;
  min-width: 28px !important;
  height: 25px !important;
  flex: 0 0 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

.conversation .feed .msg-clickable .room-identity-slot-avatar {
  width: 30px !important;
  flex: 0 0 30px !important;
}

@media (min-width: 761px) {
  .conversation .feed .msg-clickable .room-identity-slot-avatar {
    width: 30px !important;
    flex-basis: 30px !important;
  }
}

/* =========================================================
   ELVACS — Global font-size scaling
   =========================================================
   Only text-bearing elements scale. Containers, icons, badges
   and spacing stay fixed. The base size is set on <html> via
   data-font-size; child rules use rem so any future change to
   the base automatically propagates.
   ========================================================= */

html[data-font-size="small"]  { font-size: 12px; }
html[data-font-size="medium"] { font-size: 14px; }
html[data-font-size="large"]  { font-size: 16px; }

/* Base text */
html[data-font-size] body { font-size: 1rem; }

/* Chat messages */
html[data-font-size] .msg,
html[data-font-size] .body,
html[data-font-size] .msg-head,
html[data-font-size] .room-activity .activity-text,
html[data-font-size] .pm-history .msg { font-size: 1rem !important; }

/* Inputs and textareas */
html[data-font-size] .field input,
html[data-font-size] .field textarea,
html[data-font-size] .field select,
html[data-font-size] .toolrow input,
html[data-font-size] .toolrow textarea,
html[data-font-size] .composer input[data-composer-input],
html[data-font-size] .pm-composer input,
html[data-font-size] textarea,
html[data-font-size] input[type="text"],
html[data-font-size] input[type="email"],
html[data-font-size] input[type="password"],
html[data-font-size] input[type="number"] { font-size: 1rem !important; }

/* Buttons */
html[data-font-size] .btn,
html[data-font-size] .btn-sm,
html[data-font-size] .send { font-size: 0.9rem !important; }

/* Row text (lists) */
html[data-font-size] .row-main b { font-size: 0.95rem !important; }
html[data-font-size] .row-main small { font-size: 0.8rem !important; }

/* Descriptive text blocks */
html[data-font-size] .about,
html[data-font-size] .stat small,
html[data-font-size] .stat b,
html[data-font-size] .fee,
html[data-font-size] .section-title,
html[data-font-size] .settings-section h4,
html[data-font-size] .field label { font-size: 0.9rem !important; }

/* Window titles and room title */
html[data-font-size] .win-head b { font-size: 1.05rem !important; }
html[data-font-size] .room-title { font-size: 1.4rem !important; }
html[data-font-size] .room-sub { font-size: 0.85rem !important; }

/* News ticker */
html[data-font-size] .ticker,
html[data-font-size] .news-ticker-item { font-size: 0.8rem !important; }

/* Profile */
html[data-font-size] .profile h2 { font-size: 1.4rem !important; }
html[data-font-size] .status { font-size: 0.9rem !important; }
html[data-font-size] .profile-id { font-size: 0.8rem !important; }


/* ELVACS: avatar message vertical alignment fix */
.conversation .feed .msg-clickable .msg-head {
  line-height: 1.5 !important;
}
.conversation .feed .msg-clickable .body {
  line-height: 1.5 !important;
}


/* ELVACS: match avatar slot height to avatar */
.conversation .feed .msg-clickable .room-identity-slot-avatar {
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  align-self: flex-start !important;
}


/* ELVACS: unified vertical alignment for avatar messages */
.conversation .feed .msg-clickable .msgline {
  align-items: flex-start !important;
}

.conversation .feed .msg-clickable .room-identity-slot-avatar {
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  align-self: flex-start !important;
}

.conversation .feed .msg-clickable .msg-content {
  min-height: 30px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: flex-start !important;
}

.conversation .feed .msg-clickable .msg-head {
  display: inline !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: top !important;
}

.conversation .feed .msg-clickable .body {
  line-height: 1.5 !important;
  vertical-align: baseline !important;
}

/* ELVACS: vertically center username and message beside 30px avatar */
.conversation .feed .msg-clickable .msg-content {
  display: flex !important;
  align-items: center !important;
  min-height: 30px !important;
  height: auto !important;
  padding: 0 !important;
}

.conversation .feed .msg-clickable .msg-head {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
  vertical-align: middle !important;
}
