/* Mobilsesli.com profile parity layer — P16-r1-r10 */
#featureLayer:has(.msref-profile-host),#featureLayer:has(.msref-menu-backdrop){position:fixed;inset:0;z-index:9800;pointer-events:none}
.msref-profile-host{position:absolute;inset:0;pointer-events:none}
.msref-profile-panel{position:absolute;top:0;right:0;width:360px;max-width:100vw;height:100%;display:flex;flex-direction:column;background:#fff;color:#27313d;border-left:1px solid #e7e9ee;box-shadow:-8px 0 24px rgba(20,28,40,.08);pointer-events:auto;overflow:hidden;font-family:inherit}
.msref-profile-head{position:relative;min-height:52px;display:flex;align-items:center;justify-content:center;padding:12px 12px 8px;background:#fff;flex:0 0 auto}
.msref-profile-head>button:first-child{position:absolute;left:12px;width:36px;height:36px;border-radius:50%;border:1px solid rgba(0,0,0,.1);background:#fff;color:#333;box-shadow:0 1px 4px rgba(0,0,0,.08);display:flex;align-items:center;justify-content:center;cursor:pointer}
.msref-profile-head>button:first-child:hover{background:#f6f7f9}.msref-profile-head .material-symbols-outlined{font-size:20px}
.msref-presence{display:inline-flex;flex-direction:column;align-items:center;gap:2px;font-size:12px;font-weight:650}.msref-presence.online{color:#10b981}.msref-presence.online>i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#10b981;margin-right:5px}.msref-presence.offline{color:#7b8794}.msref-presence small{font-size:10px;font-weight:500;color:#8c96a2}
.msref-head-menu-wrap{position:absolute;right:12px}.msref-more{width:36px;height:36px;border-radius:50%;border:1px solid rgba(0,0,0,.1);background:#fff;display:flex;align-items:center;justify-content:center;color:#697586;cursor:pointer}.msref-peer-menu{position:absolute;top:42px;right:0;width:180px;padding:5px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 12px 28px rgba(0,0,0,.18);z-index:20}.msref-peer-menu button{width:100%;display:flex;align-items:center;gap:9px;padding:9px 10px;border:0;border-radius:8px;background:transparent;font-size:12px;text-align:left;color:#27313d}.msref-peer-menu button:hover{background:#f5f7f9}.msref-peer-menu button.danger{color:#ef4444}
.msref-profile-scroll{flex:1;overflow-y:auto;overscroll-behavior:contain}.msref-profile-hero{position:relative;padding:41px 16px 18px;text-align:center;border-bottom:1px solid #e7e9ee}.msref-avatar-wrap{display:inline-block;position:relative;margin-bottom:6px}.msref-profile-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.msref-profile-avatar .ref-avatar,.msref-avatar-wrap .ref-avatar{width:112px!important;height:112px!important;min-width:112px!important;border-radius:50%!important;object-fit:cover!important;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.msref-user-row .msref-profile-avatar .ref-avatar{width:42px!important;height:42px!important;min-width:42px!important}.msref-name-line{display:flex;justify-content:center;align-items:center;gap:5px;max-width:90%;margin:0 auto}.msref-name-line h2{margin:0;font-size:18px;line-height:1.25;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.msref-verified{font-size:18px;color:#3b82f6}.msref-role{margin:3px 0 2px;font-size:12px}.msref-stars{font-size:10px;display:flex;justify-content:center;gap:1px;min-height:12px}.msref-profile-chips{margin:9px auto 0;display:flex;justify-content:center;gap:5px;flex-wrap:wrap;max-width:95%}.msref-profile-chips span{padding:3px 7px;border-radius:999px;background:#f4f6f8;color:#6b7582;font-size:10px}.msref-presence-stack{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;max-width:calc(100% - 96px)}
.msref-presence-stack .msref-mood{position:static;top:auto;left:auto;transform:none;max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff;border:1px solid rgba(0,0,0,.07);border-radius:16px;padding:5px 10px;font-size:11px;box-shadow:0 4px 12px rgba(0,0,0,.08)}
.msref-profile-head:has(.msref-presence-stack .msref-mood)>button:first-child{top:10px}
.msref-profile-head:has(.msref-presence-stack .msref-mood) .msref-head-menu-wrap{top:10px}
.msref-profile-head:has(.msref-presence-stack .msref-mood) .msref-peer-menu{top:66px}
.msref-profile-actions{padding:10px 12px;border-bottom:1px solid #e7e9ee}.msref-actions-two,.msref-actions-four{display:grid;gap:6px}.msref-actions-two{grid-template-columns:repeat(2,1fr);margin-bottom:6px}.msref-actions-four{grid-template-columns:repeat(4,1fr)}.msref-profile-actions button{border:1px solid #e1e5ea;background:transparent;border-radius:9px;color:#27313d;min-width:0;cursor:pointer;transition:.15s}.msref-actions-two button{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 5px;font-size:11px}.msref-actions-four button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:7px 2px;font-size:9px}.msref-profile-actions button:hover{background:#f6f8fa}.msref-profile-actions button:disabled{opacity:.45;cursor:not-allowed}.msref-profile-actions button .material-symbols-outlined{font-size:17px}.msref-profile-actions .gift{color:#ec4899}.msref-profile-actions .danger{color:#ef4444}.msref-pending{margin-top:6px;display:flex;align-items:center;justify-content:center;gap:4px;padding:6px;border-radius:8px;background:rgba(236,72,153,.08);color:#ec4899;font-size:10px}.msref-pending .material-symbols-outlined{font-size:15px}.msref-self-note{padding:14px 12px;text-align:center;border-bottom:1px solid #e7e9ee;color:#7b8794}.msref-self-note .material-symbols-outlined{font-size:30px}.msref-self-note p{margin:3px 0 0;font-size:11px}
.msref-profile-tabs{padding:8px 10px;display:flex;gap:4px;border-bottom:1px solid #e7e9ee;overflow-x:auto}.msref-profile-tabs button{flex:1;min-width:max-content;padding:6px 6px;border:1px solid rgba(0,0,0,.1);border-radius:7px;background:#fff;color:#7b8794;font-size:10px;font-weight:700;white-space:nowrap}.msref-profile-tabs button.active{border-color:#3b82f6;background:#3b82f6;color:#fff;box-shadow:0 1px 3px rgba(59,130,246,.22)}.msref-profile-tabs small{margin-left:3px;font-size:9px}
.msref-tab-body{padding:12px}.msref-section-title{display:flex;align-items:center;gap:6px;margin-bottom:8px}.msref-section-title .material-symbols-outlined{font-size:16px;color:#7b8794}.msref-section-title h3{font-size:12px;margin:0;color:#27313d}.msref-info-list{display:flex;flex-direction:column}.msref-info-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:7px 0;border-bottom:1px solid #edf0f2}.msref-info-row>span{display:flex;align-items:center;gap:6px;color:#7b8794;font-size:11px}.msref-info-row>span b{font-size:14px;font-weight:400}.msref-info-row>strong{font-size:11px;font-weight:650;color:#27313d;text-align:right;max-width:54%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.msref-info-row:last-child{border-bottom:0}.msref-summary{margin:-2px 0 8px;color:#7b8794;font-size:10px}.msref-empty,.msref-loading{padding:32px 15px;text-align:center;color:#7b8794;font-size:12px}.msref-empty.error{color:#ef4444}.msref-user-list{display:flex;flex-direction:column;gap:2px}.msref-user-row{display:flex;align-items:center;gap:10px;width:100%;padding:7px 5px;border:0;border-bottom:1px solid #edf0f2;background:transparent;text-align:left;color:#27313d}.msref-user-row>span:nth-child(2){min-width:0;flex:1}.msref-user-row b,.msref-user-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.msref-user-row b{font-size:11px}.msref-user-row small{font-size:9px;color:#89939f;margin-top:2px}.msref-user-row>.material-symbols-outlined{font-size:17px;color:#a4abb3}.msref-gift-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.msref-gift-grid article{position:relative;min-height:86px;border:1px solid #edf0f2;border-radius:10px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:7px;text-align:center}.msref-gift-grid img{width:42px;height:42px;object-fit:contain}.msref-gift-grid article>span{font-size:34px}.msref-gift-grid b{margin-top:3px;font-size:9px}.msref-gift-grid small{font-size:8px;color:#7b8794}
.msref-menu-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.20);pointer-events:auto}.msref-profile-menu{position:absolute;top:56px;right:4px;width:calc(100vw - 8px);max-width:320px;max-height:calc(100dvh - 72px);display:flex;flex-direction:column;gap:8px;padding:0 8px 8px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 20px 48px rgba(0,0,0,.2);overflow:hidden;color:#27313d}.msref-menu-user{margin:0 -8px;position:relative;padding:16px;display:flex;align-items:center;gap:11px;background:#f5f6f8}.msref-menu-user-avatar .ref-avatar{width:48px!important;height:48px!important;min-width:48px!important;border-radius:50%!important}.msref-menu-user-copy{min-width:0;flex:1}.msref-menu-user-copy>b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.msref-menu-user-copy>small{display:block;font-size:10px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.msref-menu-stars{display:flex;gap:1px;font-size:9px;max-height:10px;overflow:hidden;margin-top:1px}.msref-status-wrap{position:relative}.msref-status-trigger{width:32px;height:32px;border:1px solid #e2e5e9;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center}.msref-status-dot{display:inline-block;width:14px;height:14px;border-radius:50%}.msref-status-dot.online{background:#22c55e}.msref-status-dot.busy{background:#ef4444}.msref-status-dot.away{background:#eab308}.msref-status-dot.phone{background:#3b82f6}.msref-status-dot.working{background:#f97316}.msref-status-menu{position:absolute;right:0;top:38px;width:172px;padding:5px;background:#fff;border:1px solid #e5e7eb;border-radius:11px;box-shadow:0 12px 28px rgba(0,0,0,.18);z-index:30}.msref-status-menu button{width:100%;display:flex;align-items:center;gap:8px;padding:8px;border:0;border-radius:7px;background:transparent;font-size:11px;text-align:left}.msref-status-menu button:hover,.msref-status-menu button.active{background:#f4f6f8}.msref-status-menu button .msref-status-dot{width:12px;height:12px}.msref-status-menu button .material-symbols-outlined{margin-left:auto;font-size:15px;color:#3b82f6}
.msref-menu-scroll{overflow:auto;display:flex;flex-direction:column;gap:8px}.msref-menu-section>h4{margin:0 0 5px 5px;color:#89939f;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.msref-menu-section>div{overflow:hidden;background:#fff;border:1px solid #edf0f2;border-radius:12px;box-shadow:0 1px 4px rgba(0,0,0,.04)}.msref-menu-section hr{border:0;border-top:1px solid #edf0f2;margin:0 14px}.msref-menu-section button{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;border:0;background:transparent;text-align:left}.msref-menu-section button:hover{background:#f6f8fa}.msref-menu-section button>span:first-child{font-size:18px;color:#7b8794}.msref-menu-section button>b{font-size:11px;font-weight:650;flex:1}.msref-menu-section button>.arrow{font-size:16px;color:#a4abb3}.msref-menu-footer{display:flex;justify-content:space-around;padding-top:2px;border-top:1px solid #edf0f2}.msref-menu-footer button{border:0;background:transparent;color:#66717f;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 8px;font-size:9px}.msref-menu-footer .material-symbols-outlined{font-size:18px}.msref-menu-footer button.danger{color:#ef4444}.msref-x{position:absolute;right:9px;top:9px;border:0;background:transparent}
.msref-profile-edit-avatar{display:flex;flex-direction:column;align-items:center;padding:12px 0 8px}.msref-profile-edit-avatar .avatar-change .ref-avatar{width:86px!important;height:86px!important;border-radius:50%!important}.msref-profile-edit-avatar .avatar-change{position:relative}.msref-profile-edit-avatar .avatar-change>span{position:absolute;right:0;bottom:2px;width:28px;height:28px;border-radius:50%;background:#3b82f6;color:#fff;display:flex;align-items:center;justify-content:center}.msref-profile-edit-avatar .avatar-change>span .material-symbols-outlined{font-size:16px}
.friend-confirm{position:fixed;inset:0;z-index:10001;background:#0008;display:flex;align-items:center;justify-content:center;padding:16px;pointer-events:auto}.friend-confirm>div{width:100%;max-width:384px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;box-shadow:0 25px 50px #0004}.friend-confirm header,.friend-confirm footer{display:flex;align-items:center;gap:10px;padding:12px 16px}.friend-confirm header{border-bottom:1px solid #e5e7eb;font-size:14px}.friend-confirm header .material-symbols-outlined{color:#ef4444}.friend-confirm p{margin:0;padding:14px 16px;font-size:12px;line-height:1.5;color:#27313d}.friend-confirm footer{border-top:1px solid #e5e7eb}.friend-confirm button{flex:1;border:0;border-radius:8px;padding:8px;font-size:12px;cursor:pointer}.friend-confirm [data-msref="friend-remove"]{background:#ef4444;color:#fff}
@media (max-width:760px){#featureLayer:has(.msref-profile-host){z-index:9950}.msref-profile-panel{width:100vw;border-left:0;box-shadow:none}.msref-profile-head{padding-top:max(12px,env(safe-area-inset-top))}.msref-profile-menu{top:56px;right:4px;max-width:calc(100vw - 8px)}.msref-profile-scroll{padding-bottom:env(safe-area-inset-bottom)}}

.msref-avatar-zoom{display:inline-flex;padding:0;border:0;background:transparent;border-radius:50%;cursor:zoom-in}
.msref-avatar-zoom:focus-visible{outline:2px solid #3b82f6;outline-offset:3px}
.msref-avatar-lightbox{position:fixed;inset:0;z-index:10050;background:rgba(0,0,0,.9);display:flex;align-items:center;justify-content:center;padding:18px;pointer-events:auto;cursor:zoom-out}
.msref-avatar-lightbox img{display:block;max-width:min(92vw,920px);max-height:90vh;object-fit:contain;border-radius:10px;box-shadow:0 24px 70px rgba(0,0,0,.5);cursor:default}
.msref-avatar-lightbox>button{position:fixed;top:max(14px,env(safe-area-inset-top));right:14px;width:40px;height:40px;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:rgba(0,0,0,.45);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.msref-avatar-lightbox>button .material-symbols-outlined{font-size:22px}

/* TALKCHAT_NICK_DESIGN_ROOT_V1: name text only. Existing rank/star styles remain intact. */
[data-tc-nick-font="signature"]{font-family:"Segoe Script","Brush Script MT",cursive!important;font-style:italic!important;font-weight:600!important;letter-spacing:-.025em!important}
[data-tc-nick-font="handwriting"]{font-family:"Segoe Print","Comic Sans MS",cursive!important;font-style:italic!important;font-weight:600!important}
[data-tc-nick-font="brush"]{font-family:"Brush Script MT","Segoe Script",cursive!important;font-style:italic!important;font-weight:700!important}
[data-tc-nick-font="classic"]{font-family:Georgia,"Times New Roman",serif!important;font-style:italic!important;font-weight:700!important}
[data-tc-nick-font="modern"]{font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;font-weight:800!important;letter-spacing:.025em!important}
[data-tc-nick-palette="gold"]{color:#b08027!important}
[data-tc-nick-palette="silver"]{color:#798292!important}
[data-tc-nick-palette="blue"]{color:#147fbe!important}
[data-tc-nick-palette="purple"]{color:#9352c5!important}
[data-tc-nick-palette="rose"]{color:#c65183!important}
[data-tc-nick-palette="emerald"]{color:#198867!important}
[data-tc-nick-effect="glow"]{text-shadow:0 0 4px currentColor!important}
[data-tc-nick-effect="shine"]{background-image:linear-gradient(105deg,currentColor 0%,#e4c177 49%,currentColor 75%)!important;background-size:200% auto!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;animation:tc-nick-shine 7s ease-in-out infinite!important}
[data-tc-nick-effect="softpulse"]{animation:tc-nick-pulse 4s ease-in-out infinite!important}
@keyframes tc-nick-shine{0%,20%{background-position:120% center}65%,100%{background-position:-70% center}}
@keyframes tc-nick-pulse{0%,100%{opacity:1}50%{opacity:.72}}
@media(prefers-reduced-motion:reduce){[data-tc-nick-effect="shine"],[data-tc-nick-effect="softpulse"]{animation:none!important}}
.tc-nick-editor{max-width:440px!important;width:min(440px,calc(100vw - 24px))!important;overflow:hidden!important}
.tc-nick-header{display:flex;align-items:center;justify-content:space-between;padding:15px 16px;border-bottom:1px solid #e9e5f0}
.tc-nick-header strong{font-size:16px}.tc-nick-header button{border:0;background:transparent;cursor:pointer;padding:4px;color:inherit}
.tc-nick-editor-body{padding:16px;overflow-y:auto;max-height:min(70dvh,610px)}
.tc-nick-preview{text-align:center;background:#f7f3fc;border:1px solid #eee5f5;border-radius:11px;padding:22px 12px;margin-bottom:15px;overflow:hidden}
.tc-nick-preview small{display:block;font-size:10px;letter-spacing:.11em;color:#9387a4;margin-bottom:13px}
.tc-nick-preview strong{display:block;font-size:clamp(20px,5vw,27px);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;line-height:1.6;color:var(--tc-nick-role-color,#9b52c8)}
.tc-nick-editor-body>label{display:block;font-size:12px;font-weight:700;margin:15px 0 7px}
.tc-nick-choices{display:flex;flex-wrap:wrap;gap:7px}
.tc-nick-choice{padding:8px 10px;border:1px solid #e2dce9;border-radius:8px;background:#fff;color:#51475e;font-size:12px;cursor:pointer}
.tc-nick-choice.is-selected{border-color:#7a2fd6;color:#6830a9;background:#f4ebff;box-shadow:inset 0 0 0 1px #7a2fd6}
.tc-nick-hint{font-size:11px;color:#827a8d;line-height:1.5;margin-top:15px}
.tc-nick-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:15px}
.tc-nick-actions button{padding:10px 16px;border:1px solid #dfd8eb;background:#fff;border-radius:7px;cursor:pointer}
.tc-nick-actions .tc-nick-save{background:#7a2fd6;color:#fff;border-color:#7a2fd6;font-weight:700}
html.dark .tc-nick-preview{background:#202536;border-color:#31374a}
html.dark .tc-nick-choice,html.dark .tc-nick-actions button:not(.tc-nick-save){background:#242b3b;color:#e3deee;border-color:#465063}
html.dark .tc-nick-choice.is-selected{border-color:#9e79ed}
/* /TALKCHAT_NICK_DESIGN_ROOT_V1 */

/* TALKCHAT_NICK_VIDEO_V2: new allowed presets + video-like staggered glyph flipping. */
[data-tc-nick-font="signature"]{font-family:'Segoe Script','Brush Script MT',cursive!important;font-style:italic!important;}
[data-tc-nick-font="handwriting"]{font-family:'Segoe Print','Comic Sans MS',cursive!important;font-style:italic!important;}
[data-tc-nick-font="brush"]{font-family:'Brush Script MT','Segoe Script',cursive!important;font-style:italic!important;}
[data-tc-nick-font="classic"]{font-family:Georgia,'Times New Roman',serif!important;}
[data-tc-nick-font="modern"]{font-family:system-ui,-apple-system,'Segoe UI',sans-serif!important;}
[data-tc-nick-font="dancing"]{font-family:'Dancing Script','Segoe Script',cursive!important;font-style:italic!important;}
[data-tc-nick-font="calligraphy"]{font-family:'Great Vibes','Segoe Script',cursive!important;}
[data-tc-nick-font="pacific"]{font-family:'Pacifico','Brush Script MT',cursive!important;}
[data-tc-nick-font="caveat"]{font-family:'Caveat','Segoe Print',cursive!important;}
[data-tc-nick-font="royal"]{font-family:'Cinzel',Georgia,serif!important;}
[data-tc-nick-font="gothic"]{font-family:'UnifrakturCook',Georgia,serif!important;}
[data-tc-nick-font="orbitron"]{font-family:'Orbitron',Arial,sans-serif!important;}
[data-tc-nick-font="rounded"]{font-family:'Comfortaa','Trebuchet MS',sans-serif!important;}
[data-tc-nick-font="lobster"]{font-family:'Lobster','Brush Script MT',cursive!important;}
[data-tc-nick-font="editorial"]{font-family:'Playfair Display',Georgia,serif!important;font-style:italic!important;}
[data-tc-nick-palette="gold"]{color:#b08027!important}
[data-tc-nick-palette="silver"]{color:#798292!important}
[data-tc-nick-palette="blue"]{color:#147fbe!important}
[data-tc-nick-palette="purple"]{color:#9352c5!important}
[data-tc-nick-palette="rose"]{color:#c65183!important}
[data-tc-nick-palette="emerald"]{color:#198867!important}
[data-tc-nick-palette="ruby"]{color:#bd3653!important}
[data-tc-nick-palette="ice"]{color:#0e9bc2!important}
[data-tc-nick-palette="copper"]{color:#ad6733!important}
[data-tc-nick-palette="coral"]{color:#d65d65!important}
[data-tc-nick-palette="mint"]{color:#218b7b!important}
[data-tc-nick-palette="navy"]{color:#375f99!important}
[data-tc-nick-palette="amber"]{color:#b4770a!important}
[data-tc-nick-effect="letterflip"] .tc-nick-glyph,[data-tc-nick-effect="letterwave"] .tc-nick-glyph,[data-tc-nick-effect="letterroll"] .tc-nick-glyph{display:inline-block!important;white-space:pre!important;vertical-align:baseline;transform-origin:50% 55%;backface-visibility:visible;animation-play-state:running!important}
[data-tc-nick-effect="letterflip"] .tc-nick-glyph{animation:tc-nick-letterflip 6s ease-in-out infinite!important;animation-delay:var(--tc-nick-delay,0s)!important}
@keyframes tc-nick-letterflip{0%,4%,24%,100%{transform:rotateY(0deg)}9%{transform:rotateY(85deg)}14%{transform:rotateY(180deg)}19%{transform:rotateY(270deg)}}
[data-tc-nick-effect="letterwave"] .tc-nick-glyph{animation:tc-nick-letterwave 4.5s ease-in-out infinite!important;animation-delay:var(--tc-nick-delay,0s)!important}
@keyframes tc-nick-letterwave{0%,8%,25%,100%{transform:translateY(0)}13%{transform:translateY(-3px)}19%{transform:translateY(1px)}}
[data-tc-nick-effect="letterroll"] .tc-nick-glyph{animation:tc-nick-letterroll 5.5s ease-in-out infinite!important;animation-delay:var(--tc-nick-delay,0s)!important}
@keyframes tc-nick-letterroll{0%,5%,22%,100%{transform:rotateX(0deg)}10%{transform:rotateX(100deg)}16%{transform:rotateX(270deg)}}
[data-tc-nick-effect="neon"]{text-shadow:0 0 3px currentColor,0 0 9px currentColor!important;animation:tc-nick-neon 4s ease-in-out infinite!important}
@keyframes tc-nick-neon{0%,100%{filter:brightness(1)}50%{filter:brightness(1.24)}}
[data-tc-nick-effect="aurora"]{background:linear-gradient(110deg,#7041cc,#17a9b8,#23a779,#a24abd,#7041cc)!important;background-size:320% 100%!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;animation:tc-nick-flow 8s linear infinite!important}
[data-tc-nick-effect="rainbow"]{background:linear-gradient(110deg,#de4b6b,#d79a2c,#24a3a1,#6760cc,#de4b6b)!important;background-size:300% 100%!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;animation:tc-nick-flow 9s linear infinite!important}
@keyframes tc-nick-flow{0%{background-position:0 50%}100%{background-position:300% 50%}}
[data-tc-nick-effect="sparkle"]{animation:tc-nick-sparkle 6s linear infinite!important}
@keyframes tc-nick-sparkle{0%,12%,30%,100%{text-shadow:none}14%{text-shadow:0 0 5px currentColor,1px -1px 2px #fff}24%{text-shadow:0 0 3px currentColor}28%{text-shadow:0 0 7px currentColor,-1px 0 3px #fff}}
[data-tc-nick-effect="underline"]{position:relative!important;text-decoration:underline!important;text-decoration-thickness:1px!important;text-underline-offset:3px!important;animation:tc-nick-under 5.5s ease-in-out infinite!important}
@keyframes tc-nick-under{0%,100%{text-decoration-color:transparent}20%,50%{text-decoration-color:currentColor}}
[data-tc-nick-effect="flicker"]{animation:tc-nick-flicker 7s step-end infinite!important}
@keyframes tc-nick-flicker{0%,4%,9%,15%,100%{opacity:1;text-shadow:0 0 4px currentColor}5%,8%,13%{opacity:.68;text-shadow:none}}
[data-tc-nick-effect="extrude"]{text-shadow:1px 1px 0 rgba(0,0,0,.19),2px 2px 0 rgba(0,0,0,.13),3px 3px 2px rgba(0,0,0,.12)!important}
/* Only visible glyph nicknames animate in the list; editor preview is always visible. */
[data-tc-nick-effect="letterflip"][data-tc-nick-offscreen="1"] .tc-nick-glyph,[data-tc-nick-effect="letterwave"][data-tc-nick-offscreen="1"] .tc-nick-glyph,[data-tc-nick-effect="letterroll"][data-tc-nick-offscreen="1"] .tc-nick-glyph{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){[data-tc-nick-effect="letterflip"] .tc-nick-glyph,[data-tc-nick-effect="letterwave"] .tc-nick-glyph,[data-tc-nick-effect="letterroll"] .tc-nick-glyph{animation:none!important;transform:none!important}[data-tc-nick-effect="neon"],[data-tc-nick-effect="aurora"],[data-tc-nick-effect="rainbow"],[data-tc-nick-effect="sparkle"],[data-tc-nick-effect="underline"],[data-tc-nick-effect="flicker"]{animation:none!important}}
/* /TALKCHAT_NICK_VIDEO_V2 */

/* TALKCHAT_NICK_DESIGN_V3: preset palette, rotation variants and bounded sizes */
[data-tc-nick-font="satisfy"]{font-family:'Satisfy','Segoe Script',cursive!important}
[data-tc-nick-font="sacramento"]{font-family:'Sacramento','Segoe Script',cursive!important}
[data-tc-nick-font="marck"]{font-family:'Marck Script','Segoe Script',cursive!important}
[data-tc-nick-font="kalam"]{font-family:'Kalam','Segoe Print',cursive!important}
[data-tc-nick-font="cormorant"]{font-family:'Cormorant Garamond',Georgia,serif!important}
[data-tc-nick-font="josefin"]{font-family:'Josefin Sans','Segoe UI',sans-serif!important}
[data-tc-nick-palette="black"]{color:#202126!important}
[data-tc-nick-palette="brown"]{color:#81512e!important}
[data-tc-nick-palette="graphite"]{color:#474b55!important}
[data-tc-nick-palette="burgundy"]{color:#8b264c!important}
[data-tc-nick-palette="forest"]{color:#236346!important}
[data-tc-nick-palette="turquoise"]{color:#008e98!important}
[data-tc-nick-palette="orange"]{color:#c86b1f!important}
[data-tc-nick-palette="lilac"]{color:#9761c5!important}
[data-tc-nick-palette="cream"]{color:#bba16d!important}
[data-tc-nick-palette="white"]{color:#fcfcfe!important}
[data-tc-nick-palette="neongreen"]{color:#21a847!important}
[data-tc-nick-palette="darkred"]{color:#a32b35!important}
html.dark [data-tc-nick-palette="black"]{color:#bfc5d4!important}
html.dark [data-tc-nick-palette="brown"]{color:#c7a07e!important}
html.dark [data-tc-nick-palette="graphite"]{color:#c2c6d0!important}
html.dark [data-tc-nick-palette="forest"]{color:#76bc97!important}
html.dark [data-tc-nick-palette="white"]{color:#fcfcfe!important}
html:not(.dark) [data-tc-nick-palette="white"]{color:#696679!important;text-shadow:0 0 1px #eee!important}
[data-tc-nick-size="small"]{font-size:.92em!important}
[data-tc-nick-size="large"]{font-size:1.12em!important}
[data-tc-nick-size="xl"]{font-size:1.20em!important}
/* Additional animation variants use separate transforms from the original video flip. */
[data-tc-nick-effect="flipreverse"] .tc-nick-glyph,[data-tc-nick-effect="flipvertical"] .tc-nick-glyph,[data-tc-nick-effect="flipsweep"] .tc-nick-glyph,[data-tc-nick-effect="letterswing"] .tc-nick-glyph,[data-tc-nick-effect="letterspin"] .tc-nick-glyph,[data-tc-nick-effect="flipbounce"] .tc-nick-glyph{display:inline-block!important;white-space:pre!important;transform-origin:50% 55%;backface-visibility:visible}
[data-tc-nick-effect="flipreverse"] .tc-nick-glyph{animation:tc-nick-flipreverse 6s ease-in-out infinite!important;animation-delay:var(--tc-nick-delay,0s)!important}
@keyframes tc-nick-flipreverse{0%,4%,24%,100%{transform:rotateY(0)}10%{transform:rotateY(-120deg)}17%{transform:rotateY(-360deg)}}
[data-tc-nick-effect="flipvertical"] .tc-nick-glyph{animation:tc-nick-flipvertical 5.8s ease-in-out infinite!important;animation-delay:var(--tc-nick-delay,0s)!important}
@keyframes tc-nick-flipvertical{0%,5%,25%,100%{transform:rotateX(0)}12%{transform:rotateX(180deg)}20%{transform:rotateX(360deg)}}
[data-tc-nick-effect="flipsweep"] .tc-nick-glyph{animation:tc-nick-flipsweep 6.4s cubic-bezier(.4,0,.2,1) infinite!important;animation-delay:var(--tc-nick-delay,0s)!important}
@keyframes tc-nick-flipsweep{0%,7%,31%,100%{transform:rotateY(0) translateY(0)}15%{transform:rotateY(180deg) translateY(-2px)}25%{transform:rotateY(360deg)}}
[data-tc-nick-effect="letterswing"] .tc-nick-glyph{animation:tc-nick-letterswing 5s ease-in-out infinite!important;animation-delay:var(--tc-nick-delay,0s)!important}
@keyframes tc-nick-letterswing{0%,7%,28%,100%{transform:rotateZ(0)}14%{transform:rotateZ(-14deg)}21%{transform:rotateZ(10deg)}}
[data-tc-nick-effect="letterspin"] .tc-nick-glyph{animation:tc-nick-letterspin 8s ease-in-out infinite!important;animation-delay:var(--tc-nick-delay,0s)!important}
@keyframes tc-nick-letterspin{0%,5%,27%,100%{transform:rotateZ(0)}14%{transform:rotateZ(185deg)}23%{transform:rotateZ(360deg)}}
[data-tc-nick-effect="flipbounce"] .tc-nick-glyph{animation:tc-nick-flipbounce 6.5s ease-in-out infinite!important;animation-delay:var(--tc-nick-delay,0s)!important}
@keyframes tc-nick-flipbounce{0%,6%,29%,100%{transform:rotateY(0) translateY(0)}12%{transform:rotateY(155deg) translateY(-3px)}21%{transform:rotateY(360deg) translateY(1px)}}
[data-tc-nick-effect="fireflow"]{animation:tc-nick-fireflow 7s ease-in-out infinite!important}
@keyframes tc-nick-fireflow{0%,100%{text-shadow:0 0 2px #c96221;color:#c75b20}40%{text-shadow:0 -2px 6px #e5b750;color:#e08725}65%{text-shadow:0 0 5px #d54b24;color:#c9552f}}
[data-tc-nick-effect="iceglint"]{animation:tc-nick-iceglint 7.5s ease-in-out infinite!important}
@keyframes tc-nick-iceglint{0%,100%{text-shadow:0 0 1px #7da3bd;color:#448ba8}48%{text-shadow:0 0 7px #b4e4f7;color:#3a98bc}}
@media(prefers-reduced-motion:reduce){[data-tc-nick-effect="flipreverse"] .tc-nick-glyph,[data-tc-nick-effect="flipvertical"] .tc-nick-glyph,[data-tc-nick-effect="flipsweep"] .tc-nick-glyph,[data-tc-nick-effect="letterswing"] .tc-nick-glyph,[data-tc-nick-effect="letterspin"] .tc-nick-glyph,[data-tc-nick-effect="flipbounce"] .tc-nick-glyph{animation:none!important;transform:none!important}[data-tc-nick-effect="fireflow"],[data-tc-nick-effect="iceglint"]{animation:none!important}}
[data-tc-nick-offscreen="1"] .tc-nick-glyph{animation-play-state:paused!important}
/* /TALKCHAT_NICK_DESIGN_V3 */


/* TALKCHAT_NICK_EDITOR_V3: centered responsive modal in existing profile layer */
 .tc-nick-editor{position:fixed!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(980px,calc(100vw - 42px))!important;max-width:none!important;height:min(735px,calc(100dvh - 70px))!important;max-height:calc(100dvh - 70px)!important;z-index:2147482500!important;}
 .tc-nick-editor  .tc-nick-editor-body{display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important;max-height:none!important}
 .tc-nick-editor .tc-nick-layout{display:grid!important;grid-template-columns:minmax(0, 340px) minmax(0,1fr)!important;gap:0!important;min-height:0!important;flex:1!important;overflow:hidden!important}
 .tc-nick-editor .tc-nick-aside{background:linear-gradient(165deg,#fcf8ff,#f2f4fc)!important;padding:26px 20px!important;border-right:1px solid #ebe5f2!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:13px!important;min-height:0!important}
 .tc-nick-editor .tc-nick-preview{margin:0!important;min-height:190px!important;padding:34px 12px!important;background:#fff!important}
 .tc-nick-editor .tc-nick-preview strong{font-size:27px!important;max-width:100%!important;overflow:visible!important;white-space:nowrap!important;line-height:1.6!important}
 .tc-nick-editor .tc-nick-preview strong[data-tc-nick-size="small"]{font-size:24px!important}
 .tc-nick-editor .tc-nick-preview strong[data-tc-nick-size="normal"]{font-size:27px!important}
 .tc-nick-editor .tc-nick-preview strong[data-tc-nick-size="large"]{font-size:30px!important}
 .tc-nick-editor .tc-nick-preview strong[data-tc-nick-size="xl"]{font-size:32px!important}
 .tc-nick-editor .tc-nick-aside .tc-nick-explain{font:500 12px/1.65 system-ui,sans-serif!important;color:#6e677d!important;max-width:305px!important;text-align:center!important;margin:0 auto!important}
 .tc-nick-editor .tc-nick-controls{padding:17px 20px 22px!important;overflow:auto!important;overscroll-behavior:contain!important;min-height:0!important}
 .tc-nick-editor .tc-nick-controls>label{display:block!important;font-size:12px!important;font-weight:750!important;margin:15px 0 9px!important;color:#302940!important}
 .tc-nick-editor .tc-nick-controls>label:first-child{margin-top:2px!important}
 .tc-nick-editor .tc-nick-choices{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .tc-nick-editor .tc-nick-actions{display:flex!important;justify-content:flex-end!important;align-items:center!important;padding:13px 20px!important;border-top:1px solid #eee8f5!important;margin:0!important;gap:12px!important;background:#fff!important}
 .tc-nick-editor .tc-nick-actions button{min-width:112px!important;min-height:42px!important}
 .tc-nick-editor .tc-nick-actions button.tc-nick-save{min-width:160px!important}
 .tc-nick-editor .tc-nick-size .tc-nick-choice{font-size:13px!important}
 .tc-nick-editor .tc-nick-choice[data-field="palette"]{gap:7px!important}
 .tc-nick-editor .tc-nick-choice .tc-nick-swatch{width:13px!important;height:13px!important;border-radius:50%!important;flex:none!important;box-shadow:0 0 0 1px rgba(32,22,52,.16)!important}
 .tc-nick-editor .tc-nick-hint{margin:15px 0 0!important}
 .tc-nick-editor .tc-nick-preview strong[data-tc-nick-palette="white"]{color:#6d6c7b!important}
html.dark  .tc-nick-editor .tc-nick-aside{background:#222a38!important;border-color:#384455!important}
html.dark  .tc-nick-editor .tc-nick-controls>label{color:#e8e2f3!important}
html.dark  .tc-nick-editor .tc-nick-actions{background:#1d2431!important;border-color:#394254!important}
html.dark  .tc-nick-editor .tc-nick-aside .tc-nick-explain{color:#a5b1c7!important}
@media(max-width:760px){ .tc-nick-editor{width:min(610px,calc(100vw - 16px))!important;height:min(750px,calc(100dvh - 28px))!important;max-height:calc(100dvh - 28px)!important} .tc-nick-editor .tc-nick-layout{display:flex!important;flex-direction:column!important;overflow-y:auto!important} .tc-nick-editor .tc-nick-aside{padding:12px 14px!important;flex:none!important;border-right:0!important;border-bottom:1px solid #ebe5f2!important} .tc-nick-editor .tc-nick-preview{min-height:95px!important;padding:12px!important} .tc-nick-editor .tc-nick-aside .tc-nick-explain{display:none!important} .tc-nick-editor .tc-nick-controls{overflow:visible!important;padding:11px 14px 18px!important;flex:none!important} .tc-nick-editor .tc-nick-choices{grid-template-columns:repeat(3,minmax(0,1fr))!important} .tc-nick-editor .tc-nick-actions{padding:10px 14px!important} .tc-nick-editor .tc-nick-actions button{flex:1!important;min-width:0!important}}
@media(max-width:380px){ .tc-nick-editor .tc-nick-choices{grid-template-columns:repeat(2,minmax(0,1fr))!important} .tc-nick-editor .tc-nick-header{min-height:51px!important} .tc-nick-editor .tc-nick-controls{padding:10px!important}}
 .tc-nick-editor button.tc-nick-choice[data-field="font"][data-value="satisfy"]{font-family:'Satisfy','Segoe Script',cursive!important;font-size:13px!important}
 .tc-nick-editor button.tc-nick-choice[data-field="font"][data-value="sacramento"]{font-family:'Sacramento','Segoe Script',cursive!important;font-size:13px!important}
 .tc-nick-editor button.tc-nick-choice[data-field="font"][data-value="marck"]{font-family:'Marck Script','Segoe Script',cursive!important;font-size:13px!important}
 .tc-nick-editor button.tc-nick-choice[data-field="font"][data-value="kalam"]{font-family:'Kalam','Segoe Print',cursive!important;font-size:13px!important}
 .tc-nick-editor button.tc-nick-choice[data-field="font"][data-value="cormorant"]{font-family:'Cormorant Garamond',Georgia,serif!important;font-size:13px!important}
 .tc-nick-editor button.tc-nick-choice[data-field="font"][data-value="josefin"]{font-family:'Josefin Sans','Segoe UI',sans-serif!important;font-size:13px!important}









/* TC3_MOBILSOBE_PROFILE_R4_SINGLE_SOURCE_BEGIN
 * Scoped presentation only. Keep native profile actions, tabs and privacy.
 * Based on approved light/dark R0 prototype, adapted for existing msref DOM.
 */
.msref-profile-host .msref-profile-panel {
  --tcprof-bg: #f5f8fe;
  --tcprof-surface: #fff;
  --tcprof-surface-2: #f1f6ff;
  --tcprof-line: #e4ebf6;
  --tcprof-border: #d8e3f3;
  --tcprof-ink: #142646;
  --tcprof-muted: #637591;
  --tcprof-accent: #1474f4;
  --tcprof-role-bg: #fff8ee;
  --tcprof-role-edge: #e8c06a;
  --tcprof-level-bg: #fff9ea;
  --tcprof-glow: rgba(20,116,244,.17);
  background: var(--tcprof-bg) !important;
  color: var(--tcprof-ink) !important;
}
html[data-theme="dark"] .msref-profile-host .msref-profile-panel {
  --tcprof-bg: #151f2b;
  --tcprof-surface: #1c2733;
  --tcprof-surface-2: #17283a;
  --tcprof-line: #2b3745;
  --tcprof-border: #2b3745;
  --tcprof-ink: #e8eef5;
  --tcprof-muted: #9fb0c2;
  --tcprof-accent: #387ffe;
  --tcprof-role-bg: #1c2733;
  --tcprof-role-edge: #41556b;
  --tcprof-level-bg: #1c2733;
  --tcprof-glow: rgba(56,127,254,.10);
}
.msref-profile-host .msref-profile-panel .msref-profile-head,
.msref-profile-host .msref-profile-panel .msref-profile-scroll {
  background: var(--tcprof-bg) !important;
  color: var(--tcprof-ink) !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-head {
  min-height: 46px !important;
  border: 0 !important;
  box-shadow: none !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-head > button:first-child,
.msref-profile-host .msref-profile-panel .msref-more {
  background: var(--tcprof-surface) !important;
  color: var(--tcprof-ink) !important;
  border: 1px solid var(--tcprof-border) !important;
  border-radius: 50% !important;
  box-shadow: 0 3px 9px rgba(25,52,90,.09) !important;
}
/* R4r2: status markup is owned by the profile hero; the header carries only navigation. */
.msref-profile-host .msref-profile-panel,
.msref-profile-host .msref-profile-panel * { box-sizing: border-box; }
.msref-profile-host .msref-profile-panel { max-width: 100vw; min-width: 0; overflow: hidden; }
.msref-profile-host .msref-profile-panel .msref-profile-head {
  background: var(--tcprof-bg) !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 5px 12px 0 !important;
  min-height: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
}
/* Header and hero use the same canvas even when a second loaded stylesheet styles the header. */
#featureLayer .msref-profile-host .msref-profile-panel .msref-profile-head,
#featureLayer .msref-profile-host .msref-profile-panel .msref-profile-hero {
  background-color: var(--tcprof-bg) !important;
  border-top: 0 !important;
  box-shadow: none !important;
}
#featureLayer .msref-profile-host .msref-profile-panel .msref-profile-head {
  background: var(--tcprof-bg) !important;
  border-bottom: 0 !important;
}
/* One identity stack: status, mood, frame, nickname, role, stars, chips. */
.msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-identity-status {
  order: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  max-width: calc(100% - 20px) !important;
  min-height: 18px !important;
  margin: 0 auto !important;
  text-align: center !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-identity-status .msref-presence {
  max-width: 100% !important;
  min-width: 0 !important;
  line-height: 1.35 !important;
  margin: 0 auto !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: var(--tcprof-ink) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-identity-status .msref-presence.online {
  flex-direction: row !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-identity-status .msref-presence.offline {
  flex-direction: column !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-identity-status .msref-presence-status-icon {
  font-size: 14px !important;
  line-height: 1 !important;
  flex: 0 0 auto !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-identity-status .msref-presence.online > i {
  margin-right: 5px;
}

.msref-profile-host .msref-profile-panel .msref-profile-scroll {
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#featureLayer .msref-profile-host .msref-profile-panel .msref-profile-scroll {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
#featureLayer .msref-profile-host .msref-profile-panel .msref-profile-scroll::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-mood {
  order: 0 !important;
  position: static !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: calc(100% - 16px) !important;
  margin: 0 auto 3px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-avatar-wrap {
  flex: 0 0 auto;
  justify-self: center;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero > :is(.msref-name-line,.msref-role,.msref-stars,.msref-profile-chips) {
  align-self: center;
  text-align: center;
  min-width: 0;
  max-width: 100%;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero .msref-verified {
  display: inline-block;
  vertical-align: middle;
}
.msref-profile-host .msref-profile-panel .msref-profile-tabs,
.msref-profile-host .msref-profile-panel .msref-tab-body,
.msref-profile-host .msref-profile-panel .msref-info-list,
.msref-profile-host .msref-profile-panel .msref-info-row { min-width:0; max-width:100%; box-sizing:border-box; }

.msref-profile-host .msref-profile-panel .msref-profile-hero {
  isolation: isolate !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  gap: 5px !important;
  padding: 0 12px 18px !important;
  border-color: var(--tcprof-line) !important;
  background: var(--tcprof-bg) !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  text-align: center !important;
}
/* Decorative wave and light behind the frame, not over text or controls. */
.msref-profile-host .msref-profile-panel .msref-profile-hero::before {
  content: "";
  position: absolute;
  pointer-events: none;
  left: 0; right: 0; top: 50px;
  height: 182px;
  background: radial-gradient(ellipse at 50% 44%,var(--tcprof-glow),transparent 76%);
  z-index: -1;
}

.msref-profile-host .msref-profile-panel .msref-profile-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  left: 0; right: 0; top: 100px;
  height: 75px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MDAgMTI1IiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48cGF0aCBkPSJNLTIwIDk4QzkwIDYwIDE1MCAxMjIgMjU3IDgyUzQyMCA1OSA1MjAgOCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMjQ5ZWY4IiBzdHJva2Utd2lkdGg9IjIuMyIgb3BhY2l0eT0iLjg4Ii8+PHBhdGggZD0iTS0yMCAxMDRDMTIwIDQ1IDE4NyAxMTggMjkyIDg1UzQzMCA0NCA1MjAgMzEiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzM5OGNmZiIgc3Ryb2tlLXdpZHRoPSI1IiBvcGFjaXR5PSIuMzQiLz48L3N2Zz4=");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: .18;
  -webkit-mask-image: linear-gradient(to bottom,transparent,#000 18%,#000 68%,transparent);
  mask-image: linear-gradient(to bottom,transparent,#000 18%,#000 68%,transparent);
}
html[data-theme="dark"] .msref-profile-host .msref-profile-panel .msref-profile-hero::after {opacity: .24;}

.msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-avatar-wrap {
  order: 1 !important;
  position: relative !important;
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: var(--tcprof-frame-reserve, 144px) !important;
  min-height: var(--tcprof-frame-reserve, 144px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero .msref-avatar-zoom {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 auto !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-name-line {
  order: 2 !important;
  display: flex !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 3px auto 0 !important;
  padding: 0 7px !important;
  box-sizing: border-box !important;
  z-index: 1 !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-name-line h2 {
  font-size: 21px !important;
  line-height: 1.26 !important;
  font-weight: 850 !important;
  letter-spacing: .005em !important;
  margin: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
  text-overflow: clip !important;
  white-space: normal !important;
  color: var(--tcprof-ink) !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero .msref-verified {
  color: var(--tcprof-accent) !important;
  flex: 0 0 auto !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-role {
  order: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  margin: 1px auto 0 !important;
  padding: 5px 14px !important;
  border: 1px solid var(--tcprof-role-edge) !important;
  border-radius: 999px !important;
  background: var(--tcprof-role-bg) !important;
  box-shadow: 0 0 13px rgba(224,165,61,.15) !important;
  max-width: calc(100% - 16px) !important;
  font-size: 12px !important;
  font-weight: 820 !important;
  line-height: 1.3 !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-stars {
  order: 4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 2px !important;
  margin: 1px auto 2px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  max-width: 100% !important;
  color: #e4a52a !important;
  text-shadow: 0 2px 4px rgba(208,142,15,.13) !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-stars i {
  color: #e4a52a !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-profile-chips {
  order: 6 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin: 5px auto 1px !important;
  width: 100% !important;
  max-width: 100% !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-chips span {
  padding: 5px 8px !important;
  border-radius: 999px !important;
  border: 1px solid var(--tcprof-border) !important;
  background: var(--tcprof-surface-2) !important;
  color: var(--tcprof-muted) !important;
  font-size: 10px !important;
  white-space: normal !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-hero .msref-mood,
.msref-profile-host .msref-profile-panel .msref-profile-hero .msref-presence {
  color: var(--tcprof-ink) !important;
  background: var(--tcprof-surface) !important;
  border: 1px solid var(--tcprof-border) !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 7px rgba(25,50,90,.08) !important;
  padding: 5px 10px !important;
}
/* Existing action controls keep their data-msref listeners and roles. */
.msref-profile-host .msref-profile-panel .msref-profile-actions,
.msref-profile-host .msref-profile-panel .msref-self-note {
  background: var(--tcprof-bg) !important;
  border-color: var(--tcprof-line) !important;
  padding: 10px 12px 13px !important;
}
.msref-profile-host .msref-profile-panel .msref-actions-two,
.msref-profile-host .msref-profile-panel .msref-actions-four {
  display: grid !important;
  gap: 7px !important;
}
.msref-profile-host .msref-profile-panel .msref-actions-two {grid-template-columns: repeat(2,minmax(0,1fr)) !important;}
.msref-profile-host .msref-profile-panel .msref-actions-four {grid-template-columns: repeat(4,minmax(0,1fr)) !important;}
.msref-profile-host .msref-profile-panel .msref-profile-actions button {
  background: var(--tcprof-surface) !important;
  color: var(--tcprof-ink) !important;
  border: 1px solid var(--tcprof-border) !important;
  border-radius: 11px !important;
  min-height: 39px !important;
  box-shadow: 0 2px 6px rgba(26,49,87,.04) !important;
  white-space: normal !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-tabs {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 7px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  padding: 11px 10px !important;
  background: var(--tcprof-bg) !important;
  border-color: var(--tcprof-line) !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-tabs > button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 3px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 37px !important;
  height: auto !important;
  padding: 8px 3px !important;
  border: 1px solid var(--tcprof-border) !important;
  border-radius: 10px !important;
  background: var(--tcprof-surface) !important;
  color: var(--tcprof-muted) !important;
  font-size: 10.5px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-tabs > button.active {
  background: linear-gradient(135deg,#176deb,#348bf9) !important;
  color: #fff !important;
  border-color: #5aa8ff !important;
  box-shadow: 0 4px 14px rgba(24,111,239,.25) !important;
}
.msref-profile-host .msref-profile-panel .msref-profile-tabs button > small {
  flex: 0 0 auto !important;
  font-size: 10px !important;
}
.msref-profile-host .msref-profile-panel .msref-tab-body:has(.msref-info-list) {
  background: var(--tcprof-surface) !important;
  color: var(--tcprof-ink) !important;
  border: 1px solid var(--tcprof-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 12px rgba(19,58,112,.06) !important;
  margin: 9px 10px 16px !important;
  padding: 13px 12px 16px !important;
  min-width: 0 !important;
}
.msref-profile-host .msref-profile-panel .msref-section-title,
.msref-profile-host .msref-profile-panel .msref-section-title h3 {
  color: var(--tcprof-ink) !important;
  font-size: 13px !important;
}
.msref-profile-host .msref-profile-panel .msref-section-title .material-symbols-outlined,
.msref-profile-host .msref-profile-panel .msref-info-row > span b {
  color: var(--tcprof-accent) !important;
}
.msref-profile-host .msref-profile-panel .msref-info-list {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
  min-width: 0 !important;
}
.msref-profile-host .msref-profile-panel .msref-info-row {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,45%) !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 36px !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--tcprof-line) !important;
  width: 100% !important;
}
.msref-profile-host .msref-profile-panel .msref-info-row > span {
  color: var(--tcprof-muted) !important;
  min-width: 0 !important;
  white-space: normal !important;
}
.msref-profile-host .msref-profile-panel .msref-info-row > strong {
  color: var(--tcprof-ink) !important;
  font-weight: 740 !important;
  text-align: right !important;
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-overflow: clip !important;
}
.msref-profile-host .msref-profile-panel .msref-info-row:last-child {
  border-bottom: none !important;
}
/* Existing XP block uses its own logic; retheme only if its native class is present. */
.msref-profile-host .msref-profile-panel :is(.msref-level-card,.msref-level-progress,.msref-xp-card,.msref-xp-panel) {
  background: var(--tcprof-level-bg) !important;
  border-color: #e7b753 !important;
  border-radius: 13px !important;
}
.msref-profile-host .msref-profile-panel .msref-avatar-zoom:focus-visible,
.msref-profile-host .msref-profile-panel .msref-profile-tabs button:focus-visible,
.msref-profile-host .msref-profile-panel .msref-profile-actions button:focus-visible {
  outline: 2px solid var(--tcprof-accent) !important;
  outline-offset: 2px !important;
}
@media (max-width: 480px) {
  .msref-profile-host .msref-profile-panel .msref-profile-hero {padding: 0 9px 16px !important;gap: 5px !important;}
  .msref-profile-host .msref-profile-panel .msref-profile-tabs {grid-template-columns: repeat(3,minmax(0,1fr)) !important;gap: 6px !important;padding: 9px 8px !important;}
  .msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-name-line h2 {font-size: 20px !important;}
  .msref-profile-host .msref-profile-panel .msref-profile-actions {padding: 8px 9px 11px !important;}
}
@media (max-width: 345px) {
  .msref-profile-host .msref-profile-panel .msref-profile-tabs > button {font-size: 9.5px !important;padding: 6px 2px !important;}
  .msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-name-line h2 {font-size: 18px !important;}
}
html[data-theme="dark"] .msref-profile-host .msref-profile-panel .msref-profile-hero::before { opacity:.30 !important; }
html[data-theme="dark"] .msref-profile-host .msref-profile-panel .msref-profile-hero::after { opacity:.24 !important; }
html[data-theme="dark"] .msref-profile-host .msref-profile-panel .msref-profile-hero > .msref-role {
  color: var(--tcprof-ink) !important;
  text-shadow:none !important;
  box-shadow:0 2px 8px rgba(0,0,0,.12) !important;
}
html[data-theme="dark"] .msref-profile-host .msref-profile-panel .msref-profile-tabs > button.active {
  background:#387ffe !important; border-color:#387ffe !important;
  box-shadow:0 2px 8px rgba(56,127,254,.18) !important;
}
html[data-theme="dark"] .msref-profile-host .msref-profile-panel .msref-tab-body:has(.msref-info-list) { box-shadow:none !important; }

/* TC3_MOBILSOBE_PROFILE_R4_SINGLE_SOURCE_END */

