/* V81: mic frame stays entirely within seat; other avatar placements retain V80. */
#room-view.classic-room .mic-ring{overflow:hidden!important;border-radius:50%;}
#room-view.classic-room .mic-ring .inferno-avatar66{width:34px!important;height:34px!important;min-width:34px!important;overflow:hidden!important;border-radius:50%;margin:0!important;}
#room-view.classic-room .mic-ring .inferno-avatar66::after{inset:0!important;mask-image:radial-gradient(circle closest-side,transparent 0 56%,#000 57%);filter:none;animation-name:mic-inner81;}
#room-view.classic-room .mic-ring .inferno-avatar66.aura-visible80::after{animation:mic-inner81 3s ease-in-out infinite;}
@keyframes mic-inner81{0%,100%{transform:rotate(-4deg) scale(.97);opacity:.88}50%{transform:rotate(4deg) scale(1);opacity:1}}
html.aura-motion-off80 #room-view.classic-room .mic-ring .inferno-avatar66::after{animation:none!important;}
@media(prefers-reduced-motion:reduce){#room-view.classic-room .mic-ring .inferno-avatar66::after{animation:none!important;}}
#room-view.classic-room .mic-seat:has(.inferno-avatar66){gap:2px;}
#room-view.classic-room .mic-label{overflow:hidden!important;max-width:100%;}
#room-view.classic-room .mic-label .inferno-nameframe66{padding:0 3px!important;max-width:100%;}
/* User text only: clamp actual rendered lines, preserve animated outer frame and full stored text. */
#room-view .message-lines81{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.5;}
#room-view .message-text:has(.message-lines81){max-width:100%;}
#room-view .message-text.aura-frame-v39:has(.message-lines81){display:inline-block;max-width:100%;box-sizing:border-box;}
/* All member cards use rounded edges regardless of badge or banner. */
#room-view.classic-room .member-card{border-radius:16px!important;}
#room-view.classic-room .member-card.has-profile-banner-v27{border-radius:16px!important;background-clip:padding-box!important;}
#room-view .inferno-nameframe66,#room-view .inferno-nameframe66::before{border-radius:10px!important;}
/* Non-destructive catalog: keep the room DOM, sockets and media alive under the overlay. */
#viewport:has(>.room-catalog81){position:relative;isolation:isolate;}
#viewport>.room-catalog81{position:absolute!important;inset:0!important;z-index:1500;background:#f5f3f9;display:flex;flex-direction:column;overflow:hidden;width:100%;height:100%;}
.room-catalog81 .lobby-layout{flex:1;min-height:0;}
.catalog-return81{display:flex;align-items:center;gap:10px;padding:9px 12px;background:#29243f;color:white;flex-wrap:wrap;direction:rtl;}
.catalog-return81 span{flex:1;min-width:150px;font-size:12px;}
.catalog-return81 button{border:1px solid #9686bc;background:#493d70;color:white;padding:8px 12px;border-radius:9px;cursor:pointer;}
.catalog-return81 [data-leave81]{background:#80374e;}
/* Full profile palette, keeps each tier's original decorative artwork and layout. */
.profile-theme-swatches81{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px;}
.theme-chip81{flex:1 1 120px;border:2px solid transparent;border-radius:10px;padding:12px;color:white;background:#79522b;cursor:pointer;}
.theme-chip81.theme-ocean{background:#154e85}.theme-chip81.theme-emerald{background:#166447}.theme-chip81.theme-amethyst{background:#633789}.theme-chip81[aria-pressed=true]{border-color:#ffd477;outline:2px solid #88704f;}
#modal-root .pf18-dialog[data-tier67][data-theme81=ocean]{--accent67:#74d5ff;--ink67:#e8f9ff;--surface67:#173d61;--line67:#4477a3;--muted67:#b8def0;--dark67:#10243b;--glow67:#429ee9;}
#modal-root .pf18-dialog[data-tier67][data-theme81=emerald]{--accent67:#8de3b6;--ink67:#effff3;--surface67:#1b4939;--line67:#458365;--muted67:#bce3ce;--dark67:#102c23;--glow67:#5cde95;}
#modal-root .pf18-dialog[data-tier67][data-theme81=amethyst]{--accent67:#e0b2ff;--ink67:#fff0ff;--surface67:#492963;--line67:#9468b8;--muted67:#e3c6f0;--dark67:#29173e;--glow67:#b178ed;}
#modal-root .pf18-dialog[data-tier67]:is([data-theme81=ocean],[data-theme81=emerald],[data-theme81=amethyst]){background:var(--dark67);color:var(--ink67);border-color:var(--accent67);}
#modal-root .pf18-dialog[data-tier67]:is([data-theme81=ocean],[data-theme81=emerald],[data-theme81=amethyst]) :is(.dialog-head,.dialog-body,.dialog-actions,.pf18-hero,.pf18-info,.pf18-stat,.pf18-editor,.pf18-info-grid,.pf18-info-grid>div,.pf18-term,.pf18-upload,.pf18-gallery-item,.choice-studio67,.profile-gifts49,.pf18-tier){background:var(--surface67);color:var(--ink67);border-color:var(--line67);}
#modal-root .pf18-dialog[data-tier67]:is([data-theme81=ocean],[data-theme81=emerald],[data-theme81=amethyst]) :is(h2,h3,h4,.pf18-stat b,.pf18-info-grid b,.pf18-about p,.pf18-tier,.pf18-editor .field,.pf18-privacy,.pf18-upload-body b){color:var(--ink67);}
#modal-root .pf18-dialog[data-tier67]:is([data-theme81=ocean],[data-theme81=emerald],[data-theme81=amethyst]) :is(.pf18-handle,.pf18-stat span,.pf18-info-grid span,.pf18-about span,.pf18-upload-body small,.pf18-gallery-note,.pf18-remove){color:var(--muted67);}
#modal-root .pf18-dialog[data-tier67]:is([data-theme81=ocean],[data-theme81=emerald],[data-theme81=amethyst]) :is(input:not([type=file]):not([type=checkbox]),textarea,select){background:var(--dark67);border-color:var(--line67);color:var(--ink67);}

#room-view.classic-room .member-card.has-profile-banner-v27::before{border-radius:inherit;clip-path:inset(0 round 16px);}
.full-message81{white-space:pre-wrap;overflow-wrap:anywhere;max-height:60vh;overflow:auto;}
