:root{
  --bg-deep:#111214;
  --bg-rail:#1e1f22;
  --bg-sidebar:#2b2d31;
  --bg-main:#313338;
  --bg-input:#383a40;
  --bg-hover:#35373c;
  --bg-active:#404249;
  --line:#1f2023;
  --text:#dbdee1;
  --muted:#949ba4;
  --accent:#5865f2;
  --brand:#5865f2;
  --brand-hover:#4752c4;
  --corner-radius:8px;
  --saturation:1;
  --green:#23a55a;
  --danger:#f23f42;
  --yellow:#f0b232;
}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;overflow:hidden;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg-main);color:var(--text)}
body{position:relative}
button,input,textarea,select{font:inherit}
button{border:0;color:inherit}
input,textarea{width:100%;background:#1e1f22;color:#f2f3f5;border:1px solid transparent;outline:0;border-radius:4px;padding:11px 12px}
input:focus,textarea:focus{border-color:#00a8fc}
textarea{resize:vertical}
label{display:block;font-size:12px;font-weight:800;color:#b5bac1;margin:16px 0 8px}
.hidden{display:none!important}
.muted{color:var(--muted)}
.global-background{position:fixed;inset:0;z-index:0;background:#0a0b10;overflow:hidden}
.global-background img,.global-background video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:var(--owner-bg-opacity,1);transition:opacity .18s ease}
.global-bg-shade{position:absolute;inset:0;background:rgba(6,8,14,.48);backdrop-filter:blur(1px)}
.bg-sound{position:fixed;right:16px;bottom:16px;z-index:30;background:rgba(17,18,20,.9);padding:10px 14px;border-radius:8px;cursor:pointer;box-shadow:0 8px 30px rgba(0,0,0,.35)}
body.has-global-bg .server-rail{background:rgba(30,31,34,.88);backdrop-filter:blur(10px)}
body.has-global-bg .channel-sidebar{background:rgba(43,45,49,.86);backdrop-filter:blur(12px)}
body.has-global-bg .chat-area{background:rgba(49,51,56,.78);backdrop-filter:blur(7px)}
body.has-global-bg .member-sidebar{background:rgba(43,45,49,.84);backdrop-filter:blur(12px)}
.auth-screen{width:100%;height:100%;display:grid;place-items:center;background:radial-gradient(circle at 20% 20%,#7289da 0,#4f5ec5 22%,#30368d 55%,#191b45 100%);position:relative;z-index:2}
.auth-screen:before,.auth-screen:after{content:"";position:absolute;width:340px;height:340px;border-radius:50%;filter:blur(40px);opacity:.28;background:#8ea1e1;pointer-events:none}
.auth-screen:before{left:-100px;bottom:-100px}.auth-screen:after{right:-80px;top:-120px}
.auth-card{width:min(480px,calc(100vw - 36px));background:rgba(49,51,56,.97);padding:32px;border-radius:8px;box-shadow:0 14px 50px rgba(0,0,0,.45);z-index:1}
.brand-mark{width:46px;height:46px;margin:0 auto 18px;border-radius:16px;background:var(--brand);display:grid;place-items:center;font-size:24px;font-weight:900}
.auth-card h1{text-align:center;font-size:24px;margin:0 0 8px}.auth-card>p{text-align:center;color:#b5bac1;margin:0 0 22px}
.primary-btn{width:100%;background:var(--brand);padding:12px 16px;border-radius:4px;font-weight:700;cursor:pointer;margin-top:18px;transition:.15s}.primary-btn:hover{background:var(--brand-hover)}.primary-btn:disabled{opacity:.55;cursor:not-allowed}
.secondary-btn{background:#4e5058;padding:10px 14px;border-radius:4px;font-weight:700;cursor:pointer;transition:.15s}.secondary-btn:hover{background:#6d6f78}
.compact-btn{width:auto;display:inline-flex;margin-top:14px}
.auth-switch{margin-top:12px;font-size:14px;color:#949ba4}.auth-switch button,.link-button{background:none;color:#00a8fc;cursor:pointer;padding:0 4px}.auth-forgot{display:block;margin:8px 0 0 auto;font-size:13px}
.auth-error,.form-error{min-height:18px;color:#fa777c;font-size:13px;margin-top:10px;overflow-wrap:anywhere}.form-error.success{color:#58d68d}
.app{position:relative;z-index:2;display:grid;grid-template-columns:72px 240px minmax(360px,1fr) 240px;width:100%;height:100%}
.server-rail{background:var(--bg-rail);padding:12px 0;display:flex;flex-direction:column;align-items:center;gap:8px;overflow:auto}
.server-item{width:48px;height:48px;border-radius:50%;background:#313338;display:grid;place-items:center;font-size:14px;font-weight:800;cursor:pointer;transition:.18s;position:relative;user-select:none;overflow:hidden;flex:0 0 auto}
.server-item img{width:100%;height:100%;object-fit:cover}.server-item:hover,.server-item.active{border-radius:16px;background:var(--brand);color:white}.server-item.home{font-size:22px}.server-item.add-server{color:#23a55a;font-size:25px}.server-item.add-server:hover{background:#23a55a;color:white}
.server-item:before{content:"";position:absolute;left:-12px;width:4px;height:0;background:#fff;border-radius:0 4px 4px 0;transition:.18s}.server-item:hover:before{height:20px}.server-item.active:before{height:40px}.server-sep{width:32px;height:2px;background:#35363c;border-radius:2px;flex:0 0 auto}
.channel-sidebar{background:var(--bg-sidebar);display:grid;grid-template-rows:48px minmax(0,1fr) auto 52px;min-width:0;min-height:0}
.guild-header{height:48px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;font-weight:700;box-shadow:0 1px 0 rgba(0,0,0,.35);cursor:pointer;min-width:0}.guild-header span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.guild-header:hover{background:rgba(53,55,60,.9)}.icon-btn{background:none;cursor:pointer;font-size:18px}
.channel-scroll{padding:12px 8px;overflow-y:auto}.category{margin:10px 0 4px}.category-title{display:flex;align-items:center;gap:4px;color:#949ba4;font-size:11px;font-weight:800;padding:3px 4px;cursor:pointer}.category-title:hover{color:#dbdee1}.category-title .category-add{margin-left:auto;background:none;color:#949ba4;cursor:pointer;font-size:17px}.category-title .category-add:hover{color:white}
.channel{height:34px;border-radius:4px;padding:0 8px;display:flex;align-items:center;gap:7px;color:#949ba4;font-size:16px;cursor:pointer;margin:1px 0}.channel:hover{background:rgba(53,55,60,.9);color:#dbdee1}.channel.active{background:rgba(64,66,73,.95);color:#fff}.channel.connected{color:#23a55a}.channel .kind{font-size:20px;color:#80848e;width:20px}.home-channel{font-weight:600}.home-channel .kind{font-size:17px}
.user-panel{background:rgba(35,36,40,.96);display:grid;grid-template-columns:36px 1fr repeat(3,30px);align-items:center;padding:6px 8px;gap:3px}.avatar-wrap{position:relative}.avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#5865f2,#eb459e);display:grid;place-items:center;color:white;font-size:12px;font-weight:800;overflow:hidden;background-size:cover;background-position:center}.avatar img{width:100%;height:100%;object-fit:cover}.online-dot{position:absolute;right:1px;bottom:0;width:11px;height:11px;background:var(--green);border:3px solid #232428;border-radius:50%}.user-meta{min-width:0;display:flex;flex-direction:column}.user-meta strong,.user-meta span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-meta strong{font-size:13px}.user-meta span{font-size:11px;color:#b5bac1}.panel-icon{height:30px;background:none;border-radius:4px;cursor:pointer;font-size:14px}.panel-icon:hover{background:#3f4147}.panel-icon.muted-mic{background:#da373c;color:white}
.chat-area{background:var(--bg-main);display:grid;grid-template-rows:48px auto minmax(0,1fr) 20px auto;min-width:0;min-height:0;overflow:hidden}.topbar{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 16px;box-shadow:0 1px 0 rgba(0,0,0,.35);min-width:0}.channel-title{display:flex;align-items:center;gap:7px}.hash{font-size:24px;color:#80848e}.top-actions{display:flex;align-items:center;gap:7px}.top-icon{background:none;font-size:18px;color:#b5bac1;cursor:pointer;padding:6px}.top-icon:hover{color:white}.search{height:24px;width:144px;background:#1e1f22;border-radius:4px;display:flex;align-items:center;padding:0 6px}.search input{width:100%;border:0;background:transparent;outline:0;color:white;font-size:12px;padding:0}.search span{color:#b5bac1}
.messages{overflow-y:auto;padding:20px 0 10px;scrollbar-color:#1a1b1e transparent}.empty-channel{padding:30px 16px}.empty-icon{width:68px;height:68px;border-radius:50%;background:#41434a;display:grid;place-items:center;font-size:40px;font-weight:800}.empty-channel h2{font-size:28px;margin:14px 0 4px}.empty-channel p{margin:0;color:#b5bac1}.message{display:grid;grid-template-columns:56px 1fr;padding:3px 16px;position:relative}.message:hover{background:rgba(46,48,53,.84)}.message-avatar{grid-row:1/3;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#5865f2,#eb459e);display:grid;place-items:center;margin-top:2px;font-size:13px;font-weight:800;overflow:hidden;background-size:cover;background-position:center;cursor:pointer}.message-avatar img{width:100%;height:100%;object-fit:cover}.message-head{display:flex;align-items:baseline;gap:8px;line-height:22px}.message-author{font-size:16px;font-weight:600;color:#f2f3f5;cursor:pointer}.message-author:hover{text-decoration:underline}.message-time{font-size:11px;color:#949ba4}.message-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:22px;color:#dbdee1}.typing{height:20px;padding:0 18px;font-size:12px;color:#b5bac1}.composer-wrap{padding:0 16px 24px}.composer{min-height:44px;border-radius:8px;background:#383a40;display:grid;grid-template-columns:44px minmax(0,1fr) repeat(6,auto);align-items:center}.composer textarea{width:100%;max-height:160px;resize:none;background:transparent;border:0;outline:0;color:#dbdee1;padding:12px 0;font-size:15px;line-height:20px}.composer textarea::placeholder{color:#949ba4}.add-btn{width:24px;height:24px;border-radius:50%;background:#b5bac1;color:#383a40;margin-left:12px;font-size:20px;line-height:20px;cursor:pointer}.compose-icon{background:none;color:#b5bac1;font-weight:800;cursor:pointer;padding:8px 7px}.compose-icon:hover{color:white}
.member-sidebar{background:#2b2d31;padding:20px 8px;overflow-y:auto}.member-group-title{font-size:11px;font-weight:800;color:#949ba4;padding:6px 8px}.member{min-height:42px;display:flex;align-items:center;gap:9px;border-radius:4px;padding:5px 8px;color:#b5bac1;cursor:pointer}.member:hover{background:rgba(53,55,60,.9);color:#dbdee1}.member .avatar{width:32px;height:32px;flex:0 0 32px}.member-copy{min-width:0;flex:1}.member-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:600}.mini-badges{display:flex;gap:2px;font-size:10px;overflow:hidden}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.67);display:grid;place-items:center;z-index:50;padding:18px}.modal-card,.voice-card{position:relative;width:min(440px,calc(100vw - 32px));background:#313338;padding:26px;border-radius:10px;box-shadow:0 18px 60px rgba(0,0,0,.5)}.modal-card h2,.voice-card h2{margin:8px 0}.modal-card p,.voice-card p{color:#b5bac1;line-height:1.5}.form-card{text-align:left}.form-card .modal-emoji{text-align:center;font-size:42px}.form-card>h2,.form-card>p{text-align:center}.modal-close,.profile-close{position:absolute;right:14px;top:10px;background:none;color:#b5bac1;font-size:28px;cursor:pointer}.modal-close:hover,.profile-close:hover{color:white}.segmented{display:flex;gap:8px;margin:8px 0}.segment{flex:1;background:#2b2d31;color:#b5bac1;padding:10px;border-radius:5px;cursor:pointer}.segment.active{background:var(--brand);color:white}.danger-outline{border:1px solid #da373c;background:transparent;color:#ff7b7e}.danger-outline:hover{background:#da373c;color:white}.button-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.button-row .primary-btn{margin-top:0}.button-row>*{flex:1}.or-line{display:flex;align-items:center;gap:10px;color:#6d6f78;font-size:11px;margin:18px 0}.or-line:before,.or-line:after{content:"";height:1px;background:#474951;flex:1}.file-input{padding:8px;background:#1e1f22}.file-input::file-selector-button{background:#4e5058;border:0;color:white;padding:7px 10px;border-radius:4px;cursor:pointer;margin-right:8px}
.settings-shell{width:min(1000px,calc(100vw - 24px));height:min(720px,calc(100vh - 24px));display:grid;grid-template-columns:230px 1fr;background:#313338;border-radius:10px;overflow:hidden;box-shadow:0 22px 80px rgba(0,0,0,.55)}.settings-nav{background:#2b2d31;padding:46px 10px 20px 28px}.settings-title{font-size:12px;font-weight:800;color:#949ba4;padding:0 10px 8px}.settings-tab{display:block;width:100%;text-align:left;background:none;color:#b5bac1;padding:8px 10px;border-radius:4px;cursor:pointer;margin:2px 0}.settings-tab:hover{background:#35373c;color:white}.settings-tab.active{background:#404249;color:white}.settings-separator{height:1px;background:#3f4147;margin:8px 10px}.danger-text{color:#f23f42}.settings-content{position:relative;overflow-y:auto;padding:42px 54px 60px}.settings-content h2{margin-top:0}.settings-content h3{margin-top:28px}.settings-x{position:absolute;right:24px;top:20px;width:36px;height:36px;border:2px solid #80848e;border-radius:50%;background:none;color:#b5bac1;font-size:23px;cursor:pointer}.settings-page{max-width:680px}.profile-editor-card{background:#1e1f22;border-radius:9px;overflow:hidden;margin:18px 0}.profile-banner{height:120px;background:linear-gradient(135deg,#5865f2,#9b59b6);background-size:cover;background-position:center}.profile-editor-body{height:100px;display:flex;align-items:center;gap:18px;padding:0 18px;position:relative}.profile-avatar{width:82px;height:82px;border:6px solid #1e1f22;margin-top:-42px;font-size:24px}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:20px}.two-cols .secondary-btn{margin-top:8px;width:100%}.account-card{background:#1e1f22;border-radius:8px;padding:8px 16px}.account-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 0;border-bottom:1px solid #303238}.account-row:last-child{border-bottom:0}.owner-callout{background:rgba(240,178,50,.12);border:1px solid rgba(240,178,50,.45);padding:14px;border-radius:8px;color:#ffd986}.badge-row{display:flex;flex-wrap:wrap;gap:6px}.badge-pill{display:inline-flex;align-items:center;gap:5px;background:#222327;border:1px solid #44464e;border-radius:999px;padding:5px 8px;font-size:12px}.badge-pill.owner{border-color:#f0b232;color:#ffe39a;background:rgba(240,178,50,.1)}.badge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.badge-card{background:#25262a;border-radius:7px;padding:10px;display:flex;gap:9px;align-items:center}.badge-card .icon{font-size:22px}.badge-card small{display:block;color:#949ba4;margin-top:2px}
.user-profile-popout{position:relative;width:min(420px,calc(100vw - 32px));background:#232428;border-radius:12px;overflow:hidden;box-shadow:0 22px 70px rgba(0,0,0,.6)}.user-profile-popout .profile-close{z-index:2;text-shadow:0 1px 3px #000}.popout-body{position:relative;padding:54px 18px 20px}.popout-avatar{position:absolute;top:-54px;left:18px;width:92px;height:92px;border:6px solid #232428;font-size:26px}.popout-body h2{margin:0 0 2px}.profile-badges{margin:12px 0}.profile-section{background:#111214;border-radius:7px;padding:12px;margin:14px 0}.profile-section strong{font-size:11px}.profile-section p{margin:6px 0 0;white-space:pre-wrap;color:#dbdee1}.badge-manager{margin-top:18px;border-top:1px solid #3f4147;padding-top:12px}.badge-checks{display:grid;grid-template-columns:1fr 1fr;gap:6px}.badge-check{display:flex;align-items:center;gap:8px;background:#2b2d31;padding:8px;border-radius:5px;font-size:13px}.badge-check input{width:auto}
.voice-card{text-align:center}.voice-icon{font-size:48px}.voice-participants{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;min-height:76px;margin:18px 0}.voice-user{width:74px;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px}.voice-user .avatar{width:48px;height:48px}.voice-actions{display:flex;gap:8px;flex-wrap:wrap}.voice-actions>*{flex:1;margin-top:0}.voice-connected-dot{width:8px;height:8px;background:#23a55a;border-radius:50%;display:inline-block;margin-right:5px}
.home-view{padding:8px 18px 28px}.home-hero{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:8px 0 18px;border-bottom:1px solid rgba(255,255,255,.08)}.home-hero h2{margin:0}.home-hero p{margin:5px 0 0;color:#949ba4}.home-hero .primary-btn{width:auto;margin-top:0}.friend-section{margin-top:22px}.friend-section h3{font-size:12px;color:#b5bac1}.friend-card{display:flex;align-items:center;gap:12px;padding:10px 8px;border-top:1px solid rgba(255,255,255,.07);cursor:pointer}.friend-card:hover{background:rgba(53,55,60,.65);border-radius:6px}.friend-card .avatar{width:40px;height:40px;flex:0 0 40px}.friend-card-copy{min-width:0;flex:1}.friend-card-copy strong{display:block}.friend-card-copy span{font-size:12px;color:#949ba4}.friend-actions{display:flex;gap:6px}.round-action{width:34px;height:34px;border-radius:50%;background:#2b2d31;cursor:pointer}.round-action.accept{color:#23a55a}.round-action.reject{color:#f23f42}.empty-state{padding:38px;text-align:center;color:#949ba4}.empty-state .big{font-size:54px}.empty-state h3{color:#dbdee1;margin-bottom:5px}
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:100;background:#111214;color:white;padding:11px 16px;border-radius:7px;box-shadow:0 8px 30px rgba(0,0,0,.45);max-width:min(520px,calc(100vw - 32px));text-align:center}
@media(max-width:1000px){.app{grid-template-columns:72px 240px minmax(0,1fr)}.member-sidebar{display:none}.settings-shell{grid-template-columns:190px 1fr}.settings-nav{padding-left:16px}.settings-content{padding-left:32px;padding-right:32px}}
@media(max-width:720px){.app{grid-template-columns:64px 200px minmax(280px,1fr)}.channel-sidebar{display:grid}.server-rail{width:64px}.top-actions .top-icon:nth-child(n+2){display:none}.search{width:94px}.composer-wrap{padding:0 8px 12px}.composer{grid-template-columns:40px minmax(0,1fr) auto auto}.compose-icon:nth-of-type(2),.compose-icon:nth-of-type(3){display:none}.message{grid-template-columns:50px 1fr;padding-left:10px;padding-right:8px}.settings-shell{grid-template-columns:1fr;height:calc(100vh - 16px)}.settings-nav{display:flex;gap:5px;padding:8px;overflow-x:auto}.settings-title,.settings-separator{display:none}.settings-tab{width:auto;white-space:nowrap}.settings-content{padding:58px 18px 40px}.two-cols{grid-template-columns:1fr}.badge-grid,.badge-checks{grid-template-columns:1fr}.home-hero{align-items:flex-start;flex-direction:column}}
@media(max-width:540px){.app{grid-template-columns:56px minmax(0,1fr)}.server-rail{width:56px}.channel-sidebar{display:none}.search{display:none}.topbar{padding-left:10px}.message{grid-template-columns:48px 1fr}.modal{padding:8px}}
.full-btn{width:100%;margin-top:8px}.invite-code-row{display:grid;grid-template-columns:1fr auto;gap:8px}.invite-code-row .secondary-btn{white-space:nowrap}
.owner-claim{margin-top:24px;padding:14px;background:#232428;border:1px solid #44464e;border-radius:8px}.owner-claim h3{margin-top:0}.owner-claim .secondary-btn{margin-top:8px}

/* Direct messages */
.home-dm-title{display:flex;align-items:center;justify-content:space-between;padding:18px 8px 7px;color:#949ba4;font-size:11px;font-weight:800}.home-dm-title button{background:none;color:#949ba4;cursor:pointer;font-size:18px}.home-dm-title button:hover{color:#fff}.dm-sidebar-item{position:relative;padding-right:8px}.dm-sidebar-item .avatar{width:30px;height:30px;flex:0 0 30px}.dm-sidebar-copy{min-width:0;flex:1}.dm-sidebar-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.dm-sidebar-copy small{display:block;color:#72767d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.unread-pill{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#f23f42;color:#fff;font-size:11px;font-weight:800;display:grid;place-items:center}.dm-profile-panel{padding:16px 10px}.dm-profile-card{background:#232428;border-radius:10px;overflow:hidden}.dm-profile-banner{height:72px;background:linear-gradient(135deg,#5865f2,#9b59b6);background-size:cover;background-position:center}.dm-profile-body{padding:40px 12px 14px;position:relative}.dm-profile-avatar{position:absolute;left:12px;top:-32px;width:64px!important;height:64px!important;border:5px solid #232428;font-size:18px}.dm-profile-body h3{margin:0 0 2px}.dm-profile-body .muted{font-size:12px}.dm-intro{padding:30px 18px 20px}.dm-intro .avatar{width:80px;height:80px;font-size:24px;margin-bottom:12px}.dm-intro h2{margin:4px 0}.dm-intro p{color:#b5bac1}.friend-message-btn{background:#2b2d31;color:#dbdee1;padding:8px 10px;border-radius:5px;cursor:pointer}.friend-message-btn:hover{background:#404249}.friend-cancel-btn{background:#2b2d31;color:#f0b232;padding:8px 10px;border-radius:5px;cursor:pointer}.friend-cancel-btn:hover{background:#404249}.friend-card.pending{cursor:default}.profile-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.profile-actions .primary-btn,.profile-actions .secondary-btn{margin-top:0;width:auto}
body.has-global-bg.dm-active .chat-area{background:rgba(24,25,30,.46);backdrop-filter:blur(2px)}
body.has-global-bg.dm-active .topbar{background:rgba(27,28,34,.38);backdrop-filter:blur(7px)}
body.has-global-bg.dm-active .messages{background:linear-gradient(to bottom,rgba(20,21,28,.10),rgba(20,21,28,.26))}
body.has-global-bg.dm-active .composer{background:rgba(40,42,49,.80);backdrop-filter:blur(8px)}
body.has-global-bg.dm-active .message:hover{background:rgba(20,21,27,.36)}

/* Profile/banner cropper */
.crop-card{width:min(560px,calc(100vw - 28px));text-align:left}.crop-card>h2,.crop-card>p{text-align:center}.crop-viewport{position:relative;margin:18px auto;background:#111214;overflow:hidden;touch-action:none;user-select:none;cursor:grab;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}.crop-viewport:active{cursor:grabbing}.crop-viewport.avatar-crop{width:min(340px,78vw);aspect-ratio:1/1;border-radius:8px}.crop-viewport.banner-crop{width:min(480px,82vw);aspect-ratio:3/1;border-radius:8px}.crop-viewport img{position:absolute;left:50%;top:50%;max-width:none;max-height:none;transform-origin:center center;pointer-events:none}.crop-mask{position:absolute;inset:0;pointer-events:none}.avatar-crop .crop-mask{border-radius:50%;box-shadow:0 0 0 9999px rgba(0,0,0,.58),inset 0 0 0 2px rgba(255,255,255,.78)}.banner-crop .crop-mask{box-shadow:inset 0 0 0 2px rgba(255,255,255,.78)}.crop-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:16px}.crop-actions .primary-btn{width:auto;margin-top:0}.crop-actions .secondary-btn{margin-top:0}
.secondary-btn:disabled,.profile-actions button:disabled{opacity:.55;cursor:not-allowed}
.dm-sidebar-item.active .dm-sidebar-copy small{color:#b5bac1}.dm-sidebar-item.active{background:#404249;color:#fff}
#activeChannelName{cursor:default}body.dm-active #activeChannelName{cursor:pointer}


/* Discord-like voice presence */
.voice-channel-members{padding:1px 0 5px 27px;display:flex;flex-direction:column;gap:1px}
.voice-channel-member{width:100%;height:30px;padding:2px 6px;background:transparent;border-radius:4px;display:flex;align-items:center;gap:7px;color:#949ba4;cursor:pointer;text-align:left;min-width:0}
.voice-channel-member:hover{background:rgba(53,55,60,.72);color:#dbdee1}
.voice-channel-member .avatar{width:22px;height:22px;flex:0 0 22px;font-size:8px}
.voice-member-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.voice-member-state{font-size:12px;color:#b5bac1}.voice-member-state.screen{color:#23a55a}
.voice-user.sharing .avatar{box-shadow:0 0 0 2px #23a55a}.voice-user-state{font-size:9px;color:#23a55a;font-weight:800}.voice-user-state.muted-state{color:#949ba4}

/* Screen sharing */
.voice-card{width:min(960px,calc(100vw - 30px));max-height:92vh;overflow:auto}
.voice-screen-stage{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;margin:14px 0 18px;text-align:left}
.screen-card{background:#111214;border:1px solid #3f4147;border-radius:9px;overflow:hidden;min-width:0}
.screen-video-wrap{position:relative;background:#050607;aspect-ratio:16/9;display:grid;place-items:center;overflow:hidden}
.screen-video-wrap video{width:100%;height:100%;object-fit:contain;background:#050607}
.screen-live{position:absolute;left:8px;top:8px;background:#da373c;color:#fff;font-size:10px;font-weight:900;padding:4px 6px;border-radius:4px;letter-spacing:.4px}
.screen-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;font-size:12px}.screen-card-footer span{color:#949ba4}
.screen-share-config select{width:100%;background:#1e1f22;color:#f2f3f5;border:1px solid #3f4147;border-radius:4px;padding:11px 12px;outline:0}.screen-share-config select:focus{border-color:#00a8fc}
.checkbox-row{display:flex;align-items:center;gap:9px;background:#232428;padding:10px;border-radius:6px;cursor:pointer}.checkbox-row input{width:auto;margin:0}.small-note{font-size:12px;line-height:1.45}
@media(max-width:720px){.voice-screen-stage{grid-template-columns:1fr}.voice-card{width:calc(100vw - 16px)}}

.screen-audio-unlock{position:absolute;right:8px;bottom:8px;background:rgba(17,18,20,.88);color:#fff;padding:7px 9px;border-radius:5px;cursor:pointer;font-size:11px;font-weight:700}


/* v5: mensagens agrupadas, anexos, vídeo, Nitro e cargos */
.message.grouped{padding-top:2px;padding-bottom:2px;min-height:22px}.message.grouped .message-avatar,.message.grouped .message-head{display:none}.message.grouped .message-content{grid-column:2}.message.grouped:hover:before{content:attr(data-short-time);grid-column:1;color:#949ba4;font-size:10px;text-align:center;align-self:center}.message.own-grouped{margin-top:0}.message-attachments{grid-column:2;display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}.message-attachment{max-width:min(520px,100%);border-radius:8px;overflow:hidden;background:#2b2d31;border:1px solid #3f4147}.message-attachment img,.message-attachment video{display:block;max-width:100%;max-height:360px}.message-attachment audio{max-width:360px}.file-attachment{display:flex;align-items:center;gap:10px;padding:12px;color:#dbdee1;text-decoration:none}.file-attachment .file-icon{font-size:26px}.file-attachment small{color:#949ba4;display:block}.attachment-tray{display:flex;gap:8px;padding:8px 12px;background:#313338;border-radius:8px 8px 0 0;overflow:auto}.attachment-chip{display:flex;align-items:center;gap:8px;background:#232428;border:1px solid #3f4147;padding:7px 9px;border-radius:7px;white-space:nowrap}.attachment-chip button{border:0;background:transparent;color:#f23f42;cursor:pointer}.emoji-picker{position:absolute;right:16px;bottom:78px;width:310px;max-height:250px;overflow:auto;background:#111214;border:1px solid #3f4147;border-radius:10px;padding:10px;display:grid;grid-template-columns:repeat(8,1fr);gap:4px;z-index:30;box-shadow:0 12px 40px #0008}.emoji-picker button{border:0;background:transparent;font-size:24px;padding:5px;border-radius:6px;cursor:pointer}.emoji-picker button:hover{background:#35373c}.composer-wrap{position:relative}.gif-card{width:min(700px,92vw)}.gif-search-row{display:flex;gap:8px}.gif-search-row input{flex:1}.gif-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;max-height:420px;overflow:auto;margin:12px 0}.gif-grid button{border:0;padding:0;background:#222;cursor:pointer;border-radius:7px;overflow:hidden;aspect-ratio:1}.gif-grid img{width:100%;height:100%;object-fit:cover}.nitro-card{padding:16px;border-radius:10px;background:linear-gradient(135deg,#8547c6,#5865f2);color:white;margin-bottom:14px}.gift-code{font-family:monospace;font-size:18px;padding:12px;background:#111214;border-radius:8px;word-break:break-all;margin-top:10px}.voice-video-stage{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin:10px 0}.call-video-card{background:#111214;border-radius:10px;overflow:hidden;position:relative;min-height:170px}.call-video-card video{width:100%;height:100%;max-height:320px;object-fit:cover;background:#090a0b}.call-video-label{position:absolute;bottom:8px;left:8px;background:#000a;padding:4px 7px;border-radius:5px;font-size:12px}.camera-test{width:min(520px,100%);max-height:300px;background:#111;border-radius:10px;margin-top:12px;object-fit:cover}.device-test-row{display:flex;align-items:center;gap:12px;margin:10px 0 18px}.mic-meter{height:9px;flex:1;background:#202225;border-radius:99px;overflow:hidden}.mic-meter span{display:block;height:100%;width:0;background:#23a55a;transition:width .08s}.roles-card{width:min(1000px,95vw)}.roles-layout{display:grid;grid-template-columns:220px 1fr 280px;gap:16px;min-height:420px}.role-list-item,.role-member-item{width:100%;border:0;background:#2b2d31;color:#dbdee1;border-radius:7px;padding:9px;text-align:left;margin-bottom:5px;cursor:pointer}.role-list-item.active{background:#404249}.role-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:7px}.role-editor-box{background:#2b2d31;padding:14px;border-radius:8px}.role-member-item label{display:flex;gap:8px;align-items:center}.role-badges{display:flex;gap:4px;flex-wrap:wrap}.member-role-pill{font-size:10px;border:1px solid currentColor;border-radius:10px;padding:1px 5px}@media(max-width:850px){.roles-layout{grid-template-columns:1fr}.gif-grid{grid-template-columns:repeat(3,1fr)}}

.incoming-call-card{text-align:center;width:min(380px,92vw)}.incoming-call-avatar{width:88px;height:88px;border-radius:50%;margin:0 auto 12px;background:#5865f2;display:flex;align-items:center;justify-content:center;font-size:30px;background-size:cover;background-position:center}.incoming-call-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}

/* v6: inline DM calls, responsive layout, menus, settings and richer media */
:root{--font-scale:1;--ui-scale:1}
html{font-size:calc(16px * var(--font-scale));}
body{min-width:280px;min-height:100dvh}
.app{height:100dvh;max-height:100dvh}
.chat-area{grid-template-rows:48px auto minmax(0,1fr) 20px auto;overflow:hidden}
.mobile-nav-btn{display:none}
.messages,.channel-scroll,.server-rail,.member-sidebar,.settings-nav,.settings-content,.emoji-picker-body,.gif-grid,.pins-list,.context-menu{scrollbar-width:thin;scrollbar-color:#1a1b1e transparent}
.messages::-webkit-scrollbar,.channel-scroll::-webkit-scrollbar,.server-rail::-webkit-scrollbar,.member-sidebar::-webkit-scrollbar,.settings-nav::-webkit-scrollbar,.settings-content::-webkit-scrollbar,.emoji-picker-body::-webkit-scrollbar,.gif-grid::-webkit-scrollbar,.pins-list::-webkit-scrollbar,.context-menu::-webkit-scrollbar{width:10px;height:10px}
.messages::-webkit-scrollbar-thumb,.channel-scroll::-webkit-scrollbar-thumb,.server-rail::-webkit-scrollbar-thumb,.member-sidebar::-webkit-scrollbar-thumb,.settings-nav::-webkit-scrollbar-thumb,.settings-content::-webkit-scrollbar-thumb,.emoji-picker-body::-webkit-scrollbar-thumb,.gif-grid::-webkit-scrollbar-thumb,.pins-list::-webkit-scrollbar-thumb,.context-menu::-webkit-scrollbar-thumb{background:#1a1b1e;border:2px solid transparent;background-clip:padding-box;border-radius:999px}
.emoji-picker-body::-webkit-scrollbar-track,.gif-grid::-webkit-scrollbar-track{background:#2b2d31;border-radius:999px}

.dm-call-dock{background:#0b0c0e;border-bottom:1px solid #202225;padding:14px 18px 10px;min-height:168px;max-height:min(58dvh,560px);overflow:auto;position:relative;box-shadow:0 8px 20px #0004}
.dm-call-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:58px}
.dm-call-heading>div:first-child{display:flex;flex-direction:column;min-width:0}.dm-call-heading strong{font-size:16px}.dm-call-heading span{font-size:12px;color:#949ba4;margin-top:3px}
.dm-call-participants{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.dm-call-person{display:flex;align-items:center;gap:6px;background:#16181c;border:1px solid #292c31;padding:5px 8px 5px 5px;border-radius:999px;font-size:12px}.dm-call-person .avatar{width:28px;height:28px;flex:0 0 28px}.dm-call-person .voice-user-state{margin-left:2px}
.dm-call-controls{display:flex;justify-content:center;gap:9px;margin:10px auto 0;position:sticky;bottom:0;padding:8px;background:linear-gradient(transparent,#0b0c0e 30%)}
.call-control{width:44px;height:40px;border-radius:8px;background:#2b2d31;color:#f2f3f5;cursor:pointer;font-size:17px;box-shadow:0 4px 12px #0005}.call-control:hover{background:#3a3d43}.call-control.active{background:#fff;color:#111}.call-control.muted{background:#da373c;color:#fff}.call-control.danger{background:#da373c;color:white;transform:rotate(135deg)}.call-control.danger:hover{background:#b9252a}
.dm-call-video-stage,.dm-call-screen-stage{margin:8px auto 4px;max-width:1200px}.dm-call-screen-stage .screen-card{min-width:0}.dm-call-video-stage .call-video-card{min-height:180px}
body.dm-call-active .messages{padding-top:10px}

.message{padding-right:52px}.message:hover .message-actions{opacity:1;pointer-events:auto}.message-actions{position:absolute;right:12px;top:-10px;display:flex;background:#2b2d31;border:1px solid #222428;border-radius:6px;box-shadow:0 4px 12px #0005;opacity:0;pointer-events:none;transition:.12s}.message-actions button{width:31px;height:28px;background:transparent;color:#b5bac1;cursor:pointer;border-radius:4px}.message-actions button:hover{background:#404249;color:white}.message.pinned:after{content:"📌";position:absolute;right:8px;bottom:3px;font-size:10px;opacity:.7}
.message-attachment video{width:min(640px,100%);max-height:420px;background:#000;object-fit:contain}.message-attachment video:focus{outline:2px solid #5865f2;outline-offset:-2px}.message-attachment img{object-fit:contain;background:#111}.message-attachment.media-hidden{padding:12px}.media-placeholder{padding:16px;color:#b5bac1}
.attachment-chip.uploading{opacity:.72}.attachment-chip.uploading:before{content:"";width:12px;height:12px;border:2px solid #949ba4;border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.attachment-chip.failed{border-color:#f23f42;color:#fa777c}@keyframes spin{to{transform:rotate(360deg)}}
.composer.drag-over{outline:2px dashed #5865f2;outline-offset:3px;background:#43464e}

.emoji-picker{display:block;width:min(420px,calc(100vw - 28px));max-height:min(520px,62dvh);padding:0;overflow:hidden;background:#111214}
.emoji-picker-header{padding:10px;border-bottom:1px solid #292b30}.emoji-picker-header input{height:34px;padding:7px 9px}.emoji-picker-categories{display:flex;gap:2px;overflow-x:auto;padding:6px 8px;border-bottom:1px solid #292b30}.emoji-category-btn{min-width:34px;height:32px;background:transparent;border-radius:5px;font-size:18px;cursor:pointer}.emoji-category-btn:hover,.emoji-category-btn.active{background:#35373c}.emoji-picker-body{max-height:370px;overflow-y:auto;padding:8px}.emoji-section-title{grid-column:1/-1;font-size:11px;font-weight:800;color:#949ba4;padding:7px 4px 3px;position:sticky;top:-8px;background:#111214;z-index:1}.emoji-grid{display:grid;grid-template-columns:repeat(9,minmax(30px,1fr));gap:2px}.emoji-grid button{border:0;background:transparent;font-size:25px;padding:5px 2px;border-radius:6px;cursor:pointer;line-height:1.2}.emoji-grid button:hover{background:#35373c;transform:scale(1.08)}

.context-menu{position:fixed;z-index:1000;width:224px;max-height:min(520px,80dvh);overflow-y:auto;background:#111214;border:1px solid #2e3035;border-radius:7px;padding:6px;box-shadow:0 12px 34px #000b}.context-menu .context-section{padding:5px 8px 3px;color:#72767d;font-size:10px;font-weight:800;text-transform:uppercase}.context-menu button{width:100%;min-height:32px;border:0;background:transparent;color:#dbdee1;border-radius:4px;padding:7px 9px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;cursor:pointer;font-size:13px}.context-menu button:hover{background:#5865f2;color:white}.context-menu button.danger{color:#fa777c}.context-menu button.danger:hover{background:#da373c;color:white}.context-menu .context-separator{height:1px;background:#2b2d31;margin:4px}

.notification-options{display:grid;gap:8px}.notification-options .secondary-btn{width:100%;text-align:left}.notification-options .secondary-btn.active{background:var(--brand);color:#fff}.compact-modal{width:min(440px,calc(100vw - 24px))}.pins-card{width:min(620px,calc(100vw - 24px));max-height:80dvh;overflow:hidden}.pins-list{display:flex;flex-direction:column;gap:8px;max-height:60dvh;overflow:auto;padding-right:4px}.pin-item{background:#2b2d31;border:1px solid #3f4147;border-radius:8px;padding:10px}.pin-item-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}.pin-item .avatar{width:28px;height:28px}.pin-item-content{white-space:pre-wrap;overflow-wrap:anywhere}.pin-item-actions{display:flex;justify-content:flex-end;margin-top:8px}.pin-item-actions button{background:#404249;border-radius:4px;padding:6px 8px;cursor:pointer}

.settings-segmented{max-width:520px}.settings-content select{width:100%;background:#1e1f22;color:#f2f3f5;border:1px solid #3f4147;border-radius:4px;padding:11px 12px;outline:0}.settings-content select:focus{border-color:#00a8fc}.settings-page>h2{margin-top:0}.settings-page .checkbox-row{margin:9px 0}.settings-nav .settings-title:not(:first-child){margin-top:10px}.settings-tab{font-size:14px}
body.theme-midnight{--bg-deep:#050506;--bg-rail:#090a0b;--bg-sidebar:#111214;--bg-main:#16171a;--bg-input:#24262b;--bg-hover:#202226;--bg-active:#2d3036}
body.theme-gray{--bg-deep:#202124;--bg-rail:#292a2e;--bg-sidebar:#34363b;--bg-main:#3d4046;--bg-input:#474a51;--bg-hover:#45484f;--bg-active:#50535b}
body.high-contrast{--text:#fff;--muted:#c9cbd0;--line:#000}.high-contrast .message:hover{background:#2228}.reduce-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
body.compact-messages .message:not(.grouped){padding-top:1px;padding-bottom:1px}.compact-messages .message-avatar{width:32px;height:32px}.compact-messages .message{grid-template-columns:46px 1fr}.compact-messages .message-content{line-height:19px}.compact-messages .message-head{line-height:19px}.hide-media-previews .message-attachment img,.hide-media-previews .message-attachment video,.hide-media-previews .message-attachment audio{display:none}.hide-media-previews .message-attachment.media-preview:before{content:"Prévia de mídia desativada";display:block;padding:12px;color:#949ba4}

.member-sidebar.user-hidden{display:none!important}.app.member-hidden{grid-template-columns:72px 240px minmax(360px,1fr)}
.mobile-backdrop{position:fixed;inset:0;z-index:80;background:#0008;backdrop-filter:blur(2px)}

@media(min-width:1600px){.app{grid-template-columns:76px 280px minmax(560px,1fr) 280px}.channel-sidebar{grid-template-rows:52px minmax(0,1fr) auto 56px}.topbar{height:52px}.chat-area{grid-template-rows:52px auto minmax(0,1fr) 20px auto}.message{padding-left:24px;padding-right:70px}.composer-wrap{padding-left:24px;padding-right:24px}.dm-call-dock{padding-left:28px;padding-right:28px}}
@media(min-width:2400px){.app{grid-template-columns:84px 320px minmax(720px,1fr) 320px}.server-item{width:52px;height:52px}.messages{font-size:1.02rem}.topbar{padding-left:22px}.dm-call-video-stage,.dm-call-screen-stage{max-width:1600px}}

@media(max-width:1050px){.app{grid-template-columns:72px 228px minmax(0,1fr)}.member-sidebar{display:none}.app.member-hidden{grid-template-columns:72px 228px minmax(0,1fr)}.members-overlay-open .member-sidebar{display:block;position:fixed;right:0;top:48px;bottom:0;width:min(320px,86vw);z-index:90;box-shadow:-10px 0 30px #0008}}
@media(max-width:760px){
  html,body{overflow:hidden}.app,.app.member-hidden{display:block;position:relative;height:100dvh;width:100vw}.chat-area{position:absolute;inset:0;grid-template-rows:48px auto minmax(0,1fr) 18px auto;width:100%;height:100%;z-index:1}.server-rail{position:fixed;left:0;top:0;bottom:0;width:64px;z-index:95;transform:translateX(-100%);transition:transform .2s ease}.channel-sidebar{position:fixed;left:64px;top:0;bottom:0;width:min(270px,calc(100vw - 64px));z-index:94;transform:translateX(calc(-100% - 64px));transition:transform .2s ease;box-shadow:10px 0 30px #0008}.mobile-sidebar-open .server-rail,.mobile-sidebar-open .channel-sidebar{transform:translateX(0)}.mobile-sidebar-open #mobileBackdrop{display:block!important}.mobile-nav-btn{display:inline-flex;align-items:center;justify-content:center}.channel-title .hash{display:none}.topbar{padding:0 6px}.top-actions{gap:1px}.top-actions .top-icon{font-size:16px;padding:6px}.top-actions #addFriendTopBtn{display:none}.search{width:min(30vw,120px)}.search input{font-size:11px}.member-sidebar{display:none}.members-overlay-open .member-sidebar{display:block;position:fixed;right:0;top:48px;bottom:0;width:min(320px,90vw);z-index:96;background:var(--bg-sidebar);box-shadow:-10px 0 30px #0008}.members-overlay-open #mobileBackdrop{display:block!important}.composer-wrap{padding:0 8px 8px}.composer{grid-template-columns:38px minmax(0,1fr) auto;min-height:42px}.compose-icon{padding:0 4px;font-size:13px}.message{grid-template-columns:46px minmax(0,1fr);padding:3px 8px;padding-right:36px}.message-avatar{width:34px;height:34px}.message-actions{right:4px}.dm-call-dock{padding:9px 8px 6px;max-height:55dvh}.dm-call-heading{align-items:flex-start;flex-direction:column;gap:7px}.dm-call-participants{justify-content:flex-start;width:100%;overflow-x:auto;flex-wrap:nowrap}.dm-call-person{flex:0 0 auto}.dm-call-controls{gap:6px}.call-control{width:40px;height:38px}.dm-call-video-stage,.dm-call-screen-stage{grid-template-columns:1fr}.emoji-picker{right:6px;bottom:62px;width:calc(100vw - 12px);max-height:62dvh}.emoji-grid{grid-template-columns:repeat(8,1fr)}.settings-shell{height:100dvh;width:100vw;border-radius:0}.settings-content{padding:60px 14px 30px}.settings-nav{padding:7px}.settings-tab{font-size:12px}.settings-title{display:none!important}.context-menu{width:min(250px,calc(100vw - 16px))}
}
@media(max-width:480px){.top-actions #notificationsBtn{display:none}.top-actions #pinsBtn{display:none}.search{width:96px}.dmVoiceCallBtn,.dmVideoCallBtn{font-size:15px}.emoji-grid{grid-template-columns:repeat(7,1fr)}.message{grid-template-columns:42px minmax(0,1fr)}.message-avatar{width:30px;height:30px}.message-head{gap:5px}.message-author{font-size:14px}.message-time{font-size:9px}.message-content{font-size:14px}.composer-wrap{padding-bottom:max(8px,env(safe-area-inset-bottom))}.dm-call-dock{max-height:48dvh}.call-control{width:38px;height:36px}.voice-screen-stage{grid-template-columns:1fr}.gif-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-height:600px){.dm-call-dock{max-height:46dvh;min-height:110px}.dm-call-heading{min-height:38px}.dm-call-controls{margin-top:2px}.call-video-card{min-height:120px}.settings-shell{height:96dvh}.modal-card{max-height:94dvh;overflow:auto}}

/* Cordia v6 final polish */
.app{font-size:calc(1rem * var(--ui-scale,1));}
.messages{font-size:calc(1rem * var(--font-scale,1));}
.message-attachment video{display:block;max-width:min(720px,100%);max-height:520px;border-radius:8px;background:#000;object-fit:contain;}
.message-attachment audio{width:min(520px,100%);}
@media (max-width:760px){
  .dm-call-dock{position:sticky;top:0;z-index:9;padding:8px 10px;min-height:84px;}
  .dm-call-dock .dm-call-video-stage,.dm-call-dock .dm-call-screen-stage{max-height:34vh;}
  .dm-call-dock-controls{gap:6px;flex-wrap:wrap;}
  .dm-call-dock-controls button{min-width:40px;min-height:40px;}
  .message-attachment video,.message-attachment img{max-width:100%;height:auto;}
  .context-menu{max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;}
}
@media (max-width:380px){.topbar-actions{gap:2px}.topbar-actions button{width:34px;height:34px}.dm-call-dock-title{font-size:13px}}
@media (min-width:2560px){.message-attachment video{max-width:960px;max-height:680px}.messages{max-width:none}.topbar{min-height:56px}}
.send-message-btn{color:#8ea1e1;font-size:17px;display:inline-flex;align-items:center;justify-content:center}.send-message-btn:hover{color:#fff}.gift-target-hint{padding:10px 12px;margin:0 0 12px;border-radius:7px;background:#232428;color:#dbdee1}.settings-list{display:grid;gap:8px;margin-top:8px}.settings-list-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;background:#2b2d31;border-radius:8px}.settings-list-row .avatar{width:38px;height:38px}.settings-list-copy{min-width:0;display:flex;flex-direction:column}.settings-list-copy span{color:#949ba4;font-size:12px;overflow:hidden;text-overflow:ellipsis}.settings-empty{padding:18px;border-radius:8px;background:#2b2d31;color:#949ba4;text-align:center}
@media(max-width:760px){
  .composer{grid-template-columns:38px minmax(56px,1fr) repeat(4,32px)!important}.composer .compose-icon{display:inline-flex!important;align-items:center;justify-content:center;min-width:30px;height:38px}.send-message-btn{font-size:16px!important}.dm-call-controls{gap:6px;flex-wrap:wrap}.dm-call-controls button{min-width:40px;min-height:40px}.settings-list-row{grid-template-columns:36px minmax(0,1fr) auto}.settings-list-row .avatar{width:34px;height:34px}
}
@media(max-width:480px){
  .top-actions #notificationsBtn,.top-actions #pinsBtn{display:inline-flex}.top-actions .search{display:none}.top-actions{max-width:70vw;overflow-x:auto;scrollbar-width:none}.top-actions::-webkit-scrollbar{display:none}.composer{grid-template-columns:34px minmax(40px,1fr) repeat(4,28px)!important}.composer .compose-icon{min-width:26px;padding:0 2px}.add-btn{margin-left:8px}.settings-list-row{grid-template-columns:34px minmax(0,1fr)}.settings-list-row>button{grid-column:1/-1;width:100%}
}
/* DM call presentation closer to the compact Discord call panel */
.dm-call-heading{min-height:38px}.dm-call-participants{justify-content:center;min-height:58px;margin:4px 0 2px}.dm-call-person{flex-direction:column;background:transparent;border:0;padding:2px 8px;border-radius:8px;gap:4px;color:#b5bac1}.dm-call-person .avatar{width:48px;height:48px;flex-basis:48px;box-shadow:0 0 0 2px #1e2024}.dm-call-person .voice-member-name{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dm-call-person .voice-user-state{position:absolute}.dm-call-controls{margin-top:5px}
@media(max-width:760px){.dm-call-person .avatar{width:42px;height:42px;flex-basis:42px}.dm-call-participants{min-height:52px;justify-content:center}.dm-call-heading{min-height:30px}.dm-call-heading strong{font-size:14px}}
@media(max-width:320px){.topbar{min-width:0}.channel-title strong{max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-actions{max-width:58vw}.composer{grid-template-columns:32px minmax(30px,1fr) repeat(4,25px)!important}.composer textarea{font-size:13px}.compose-icon{font-size:11px!important}.message{padding-left:5px;padding-right:30px;grid-template-columns:38px minmax(0,1fr)}.message-avatar{width:28px;height:28px}.emoji-grid{grid-template-columns:repeat(6,1fr)}.settings-content{padding-left:9px;padding-right:9px}}
@media(min-width:3840px){.app{grid-template-columns:96px 380px minmax(900px,1fr) 380px}.server-item{width:60px;height:60px}.topbar{min-height:64px}.chat-area{grid-template-rows:64px auto minmax(0,1fr) 24px auto}.message{grid-template-columns:72px minmax(0,1fr);padding-left:34px;padding-right:96px}.message-avatar{width:48px;height:48px}.message-content,.message-author{font-size:18px}.composer{min-height:54px}.composer textarea{font-size:17px;line-height:24px}.dm-call-dock{max-width:none}.dm-call-person .avatar{width:58px;height:58px;flex-basis:58px}}


/* Cordia v7 — presence, richer appearance, compact voice dock and motion */
.app{filter:saturate(var(--saturation,1));}
button,.channel,.server-item,.member,.composer,.context-menu,.modal-card,.voice-panel-btn,.theme-card{transition:transform .16s ease,background-color .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease,opacity .16s ease}
button:active:not(:disabled){transform:scale(.96)}
.server-item:hover{transform:translateY(-1px) scale(1.04)}
.channel:hover{transform:translateX(2px)}
.message{animation:message-in .18s ease both}
.modal:not(.hidden){animation:modal-fade .16s ease both}.modal:not(.hidden)>.modal-card,.modal:not(.hidden)>.voice-card,.modal:not(.hidden)>.settings-shell,.modal:not(.hidden)>.user-profile-popout{animation:modal-pop .2s cubic-bezier(.2,.9,.2,1.1) both}
.context-menu:not(.hidden),.mention-picker:not(.hidden){animation:menu-pop .12s ease both;transform-origin:bottom left}
@keyframes message-in{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
@keyframes modal-fade{from{opacity:0}to{opacity:1}}@keyframes modal-pop{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}@keyframes menu-pop{from{opacity:0;transform:translateY(4px) scale(.98)}to{opacity:1;transform:none}}

/* Profile media entitlement */
.nitro-media-hint{display:block;margin-top:7px;color:var(--muted);font-size:11px;line-height:1.35}.file-input:disabled,.secondary-btn:disabled{opacity:.48;cursor:not-allowed}

/* Presence */
.online-dot.online,.status-dot.online,.member-status-dot.online{background:#23a55a}.online-dot.idle,.status-dot.idle,.member-status-dot.idle{background:#f0b232}.online-dot.dnd,.status-dot.dnd,.member-status-dot.dnd{background:#f23f42}.online-dot.focused,.status-dot.focused,.member-status-dot.focused{background:#5865f2}.online-dot.invisible,.online-dot.offline,.status-dot.invisible,.status-dot.offline,.member-status-dot.invisible,.member-status-dot.offline{background:#80848e}
.online-dot.dnd:after,.member-status-dot.dnd:after{content:"";position:absolute;left:22%;right:22%;top:43%;height:2px;background:#232428;border-radius:2px}.online-dot.idle:after,.member-status-dot.idle:after{content:"";position:absolute;width:55%;height:55%;background:#232428;border-radius:50%;left:-4%;top:-4%}
.online-dot.focused:after,.member-status-dot.focused:after{content:"◆";position:absolute;inset:-2px;display:grid;place-items:center;color:#fff;font-size:6px}.member-avatar-wrap{position:relative;flex:0 0 auto}.member-status-dot{position:absolute;right:-1px;bottom:-1px;width:12px;height:12px;border-radius:50%;border:3px solid var(--bg-sidebar);box-sizing:content-box}.offline-member{opacity:.52}.offline-member:hover{opacity:.85}
.status-click-target,#userStatusBtn{cursor:pointer}.status-menu{width:286px}.status-menu button{display:grid;grid-template-columns:1fr;align-items:start;gap:2px}.status-menu button>span{display:flex;align-items:center;gap:9px}.status-menu button small{display:block;color:#949ba4;font-size:10px;padding-left:21px}.status-menu button:hover small{color:#fff}.status-menu button.selected{background:color-mix(in srgb,var(--brand) 35%,#222)}.status-dot{width:11px;height:11px;border-radius:50%;display:inline-block;position:relative;flex:0 0 auto}

/* Mention autocomplete and mention chips */
.mention-picker{position:absolute;left:16px;right:16px;bottom:74px;max-height:310px;overflow:auto;background:#111214;border:1px solid #3f4147;border-radius:var(--corner-radius);padding:6px;z-index:35;box-shadow:0 14px 38px #0009}.mention-option{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) 14px;align-items:center;gap:9px;padding:7px 9px;border-radius:6px;background:transparent;text-align:left;cursor:pointer}.mention-option:hover,.mention-option.active{background:var(--brand);color:#fff}.mention-option .avatar{width:32px;height:32px}.mention-option span{display:flex;flex-direction:column;min-width:0}.mention-option strong,.mention-option small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mention-option small{color:#949ba4}.mention-option:hover small,.mention-option.active small{color:#e9eaff}.mention{display:inline-block;padding:0 2px;border-radius:3px;background:color-mix(in srgb,var(--brand) 24%,transparent);color:#c9cdfb;font-weight:600;cursor:pointer}.mention:hover,.mention-me{background:var(--brand);color:#fff}

/* Server voice connection panel like Discord */
.guild-voice-panel{background:#232428;border-top:1px solid #1f2023;border-bottom:1px solid #1f2023;padding:8px;min-height:96px}.guild-voice-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;color:#23a55a}.guild-voice-head>div{min-width:0;display:flex;flex-direction:column}.guild-voice-head strong{font-size:12px}.guild-voice-head small{font-size:10px;color:#b5bac1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.voice-mini{width:26px;height:24px;border-radius:4px;background:transparent;color:#b5bac1;cursor:pointer}.voice-mini:hover{background:#3f4147;color:#fff}.guild-voice-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:8px}.voice-panel-btn{height:32px;border-radius:5px;background:#2b2d31;color:#dbdee1;cursor:pointer;font-size:15px}.voice-panel-btn:hover{background:#404249}.voice-panel-btn.active{background:color-mix(in srgb,var(--brand) 35%,#2b2d31);color:#fff}.voice-panel-btn.active-danger,.voice-panel-btn.danger{background:#3f2023;color:#ff9ca0}.voice-panel-btn.active-danger:hover,.voice-panel-btn.danger:hover{background:#da373c;color:#fff}.user-panel{position:relative;z-index:4}

/* Compact DM call: keep composer in the normal bottom row */
.dm-call-dock{min-height:88px;max-height:min(42dvh,420px);padding:8px 16px 7px;overflow:auto}.dm-call-heading{min-height:26px}.dm-call-participants{min-height:48px;margin:0}.dm-call-person .avatar{width:42px;height:42px;flex-basis:42px}.dm-call-controls{padding:5px;margin-top:2px}.composer-wrap{min-height:0;position:relative;z-index:12;background:linear-gradient(transparent 0,var(--bg-main) 12px);padding-bottom:max(16px,env(safe-area-inset-bottom))}.messages{min-height:0}

/* Appearance */
.appearance-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.theme-card{background:#2b2d31;border:2px solid transparent;border-radius:10px;padding:8px;display:flex;flex-direction:column;gap:7px;cursor:pointer;text-align:left}.theme-card:hover{border-color:#4e5058;transform:translateY(-1px)}.theme-card.active{border-color:var(--brand);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 18%,transparent)}.theme-preview{display:block;height:46px;border-radius:7px;border:1px solid #ffffff10;background:linear-gradient(90deg,#1e1f22 0 24%,#2b2d31 24% 48%,#313338 48%)}.theme-preview.midnight{background:linear-gradient(90deg,#050506 0 24%,#111214 24% 48%,#16171a 48%)}.theme-preview.amoled{background:linear-gradient(90deg,#000 0 24%,#050505 24% 48%,#090909 48%)}.theme-preview.gray{background:linear-gradient(90deg,#292a2e 0 24%,#34363b 24% 48%,#3d4046 48%)}.theme-preview.light{background:linear-gradient(90deg,#e3e5e8 0 24%,#f2f3f5 24% 48%,#fff 48%)}.theme-preview.ocean{background:linear-gradient(90deg,#07131d 0 24%,#0c2231 24% 48%,#0e2a3b 48%)}.accent-swatches{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.accent-swatches button{width:32px;height:32px;border-radius:50%;background:var(--swatch);border:3px solid transparent;cursor:pointer}.accent-swatches button.active{border-color:#fff;box-shadow:0 0 0 2px var(--swatch)}.accent-color-input{width:38px;height:38px;padding:2px;border-radius:50%;overflow:hidden;background:transparent;border:2px solid #4e5058}.accent-color-input::-webkit-color-swatch-wrapper{padding:0}.accent-color-input::-webkit-color-swatch{border:0;border-radius:50%}
body.theme-amoled{--bg-deep:#000;--bg-rail:#000;--bg-sidebar:#050505;--bg-main:#090909;--bg-input:#161616;--bg-hover:#171717;--bg-active:#202020;--line:#101010}
body.theme-ocean{--bg-deep:#06111a;--bg-rail:#07131d;--bg-sidebar:#0c2231;--bg-main:#0e2a3b;--bg-input:#14384e;--bg-hover:#123247;--bg-active:#19455f;--line:#071922}
body.theme-light{--bg-deep:#d8dbe0;--bg-rail:#e3e5e8;--bg-sidebar:#f2f3f5;--bg-main:#fff;--bg-input:#ebedef;--bg-hover:#e4e6e9;--bg-active:#dfe1e5;--line:#d6d9dd;--text:#2e3338;--muted:#5c6370}.theme-light .channel-sidebar,.theme-light .member-sidebar{color:#2e3338}.theme-light .topbar,.theme-light .guild-header{box-shadow:0 1px 0 #d6d9dd}.theme-light input,.theme-light textarea,.theme-light select{background:#e3e5e8;color:#202225}.theme-light .user-panel,.theme-light .guild-voice-panel{background:#e7e9ec;color:#2e3338}.theme-light .panel-icon,.theme-light .channel,.theme-light .top-icon{color:#4f5660}.theme-light .composer{background:#ebedef}.theme-light .composer textarea{color:#2e3338}.theme-light .context-menu,.theme-light .mention-picker{background:#fff;color:#2e3338;border-color:#d6d9dd}.theme-light .modal-card,.theme-light .voice-card,.theme-light .settings-shell{background:#fff;color:#2e3338}.theme-light .settings-nav{background:#f2f3f5}.theme-light .modal-card p,.theme-light .voice-card p{color:#5c6370}

/* Roundness preference */
.composer,.modal-card,.voice-card,.context-menu,.message-attachment,.profile-editor-card,.account-card,.nitro-card,.theme-card,.mention-picker{border-radius:var(--corner-radius)!important}

@media(max-width:760px){
  .channel-sidebar{grid-template-rows:48px minmax(0,1fr) auto 52px}.guild-voice-panel{min-height:90px;padding:7px}.guild-voice-actions{grid-template-columns:repeat(4,minmax(38px,1fr))}.voice-panel-btn{height:34px}.mention-picker{left:8px;right:8px;bottom:58px}.appearance-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dm-call-dock{min-height:76px;max-height:38dvh}.composer-wrap{padding-bottom:max(8px,env(safe-area-inset-bottom))}
}
@media(max-width:420px){.appearance-theme-grid{grid-template-columns:1fr 1fr}.theme-preview{height:36px}.guild-voice-head small{max-width:180px}.status-menu{width:min(286px,calc(100vw - 16px))}}

@media(max-width:540px){.channel-sidebar{display:grid!important}}


/* v8 fix: keep the chat composer in the normal Discord-like position */
.chat-area{grid-template-rows:48px auto minmax(0,1fr) 20px auto!important}
.topbar{grid-row:1}
.dm-call-dock{grid-row:2}
.messages{grid-row:3;min-height:0}
.typing{grid-row:4;display:flex;align-items:center}
.composer-wrap{grid-row:5;position:relative;z-index:12;align-self:end;margin:0;padding:0 16px 24px!important;background:transparent!important;min-height:auto!important}
.composer{margin:0;border-radius:8px}
#attachmentTray{margin-bottom:8px}
@media(max-width:720px){.composer-wrap{padding:0 8px 12px!important}}
@media(max-width:480px){.composer-wrap{padding:0 8px max(8px,env(safe-area-inset-bottom))!important}}
@media(min-width:1600px){.composer-wrap{padding-left:24px!important;padding-right:24px!important;padding-bottom:24px!important}}
@media(min-width:3840px){.chat-area{grid-template-rows:64px auto minmax(0,1fr) 24px auto!important}}


/* v9 fix: force the DM call dock to fully collapse after leaving the call */
.dm-call-dock.hidden{display:none!important;min-height:0!important;max-height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important;box-shadow:none!important}
.chat-area>.hidden{display:none!important}


/* v10 fix: pin the user panel to the last sidebar row even when voice panel is hidden */
.channel-sidebar>.guild-header{grid-row:1}
.channel-sidebar>.channel-scroll{grid-row:2;min-height:0}
.channel-sidebar>.guild-voice-panel{grid-row:3}
.channel-sidebar>.user-panel{grid-row:4;align-self:stretch;min-height:52px;height:52px;width:100%;margin:0}
@media(min-width:1600px){.channel-sidebar>.user-panel{min-height:56px;height:56px}}
@media(max-width:760px){.channel-sidebar>.user-panel{min-height:52px;height:52px}}


/* v13 voice device diagnostics */
.voice-settings-card{background:var(--bg-hover,#2b2d31);border:1px solid var(--line,#3f4147);border-radius:10px;padding:14px;margin:12px 0 16px}.device-select-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.device-status{font-size:12px;min-height:18px;margin-top:-8px;margin-bottom:8px}.device-status.ok{color:#23a55a}.device-status.error{color:#f23f42}.mic-meter{height:12px;position:relative}.mic-meter span{min-width:0;box-shadow:0 0 10px rgba(35,165,90,.35)}.mic-meter.testing:after{content:"";position:absolute;inset:0;border-radius:99px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}@media(max-width:520px){.device-select-row{grid-template-columns:1fr}.device-select-row button{width:100%}.device-test-row{align-items:stretch;flex-direction:column}.mic-meter{width:100%}}


/* v14: make active screen shares directly watchable from voice channels */
.voice-channel-member:has(.voice-member-state.screen){color:#dbdee1}
.voice-member-state.screen{margin-left:auto;display:inline-flex;align-items:center;gap:3px;color:#23a55a;font-size:9px;font-weight:800;white-space:nowrap}
.voice-member-state.screen b{font-size:8px;letter-spacing:.35px}
.voice-channel-member:has(.voice-member-state.screen):hover{background:rgba(35,165,90,.13)}
.screen-card.focused-stream{box-shadow:0 0 0 2px #23a55a,0 0 28px rgba(35,165,90,.25);transform:scale(1.004)}


/* v15: stream theater mode + fullscreen */
.screen-fullscreen-btn{position:absolute;right:10px;top:8px;width:34px;height:30px;border:0;border-radius:6px;background:rgba(17,18,20,.82);color:#fff;font-size:18px;display:grid;place-items:center;cursor:pointer;opacity:.82;z-index:4;backdrop-filter:blur(4px);transition:opacity .15s ease,transform .15s ease,background .15s ease}
.screen-fullscreen-btn:hover{opacity:1;transform:scale(1.05);background:rgba(35,37,42,.96)}
.screen-video-wrap:fullscreen,.screen-video-wrap:-webkit-full-screen{width:100vw!important;height:100vh!important;aspect-ratio:auto!important;background:#000!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.screen-video-wrap:fullscreen video,.screen-video-wrap:-webkit-full-screen video{width:100vw!important;height:100vh!important;max-width:100vw!important;max-height:100vh!important;object-fit:contain!important;background:#000!important}
.screen-video-wrap:fullscreen .screen-fullscreen-btn,.screen-video-wrap:-webkit-full-screen .screen-fullscreen-btn{display:none!important}
.screen-video-wrap:fullscreen .screen-live,.screen-video-wrap:-webkit-full-screen .screen-live{top:16px;left:16px;font-size:12px}

/* DM screen sharing must fit in the call area, never create an inner vertical scroller. */
.dm-call-dock.stream-active{overflow:hidden!important;max-height:min(72dvh,760px)!important;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;align-content:stretch;min-height:min(52dvh,560px)}
.dm-call-dock.stream-active .dm-call-heading{min-height:38px}
.dm-call-dock.stream-active .dm-call-participants{max-height:58px;overflow:hidden;flex-wrap:nowrap;justify-content:center}
.dm-call-dock.stream-active .dm-call-screen-stage{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%;height:100%;min-height:0;max-width:none!important;margin:6px 0!important;overflow:hidden!important;align-items:stretch}
.dm-call-dock.stream-active .dm-call-screen-stage .screen-card{height:100%;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden}
.dm-call-dock.stream-active .dm-call-screen-stage .screen-video-wrap{height:100%;min-height:0;aspect-ratio:auto!important;overflow:hidden;background:#050607}
.dm-call-dock.stream-active .dm-call-screen-stage .screen-video-wrap video{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain!important;background:#050607}
.dm-call-dock.stream-active .screen-card-footer{min-height:34px;padding:6px 10px}
.dm-call-dock.stream-active .dm-call-controls{position:relative;bottom:auto;margin:0 auto;padding:5px 8px;background:#0b0c0e;z-index:5}

@media(max-height:700px){.dm-call-dock.stream-active{max-height:68dvh!important;min-height:46dvh}.dm-call-dock.stream-active .dm-call-participants{max-height:42px}.dm-call-dock.stream-active .screen-card-footer{display:none}}
@media(max-width:720px){.dm-call-dock.stream-active{max-height:64dvh!important;min-height:48dvh;padding:8px!important}.dm-call-dock.stream-active .dm-call-participants{justify-content:flex-start}.screen-fullscreen-btn{opacity:1}}


/* Veyra v20: respostas, edição e exclusão de mensagens */
.message-body{grid-column:2;min-width:0}
.message.has-reply .message-avatar{grid-row:1/4}
.message-reply{grid-column:2;display:flex;align-items:center;gap:7px;min-width:0;width:max-content;max-width:100%;height:22px;padding:0;border:0;background:transparent;color:#b5bac1;font-size:12px;cursor:pointer;text-align:left;overflow:hidden}
.message-reply .reply-line{width:28px;height:11px;border-left:2px solid #4e5058;border-top:2px solid #4e5058;border-radius:7px 0 0 0;flex:0 0 28px;margin-left:-18px;margin-top:10px}
.message-reply strong{color:#dbdee1;white-space:nowrap;max-width:160px;overflow:hidden;text-overflow:ellipsis}
.message-reply>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.8}
.message-reply:hover strong{text-decoration:underline;color:#fff}
.message-reply.deleted-reply{cursor:default;opacity:.65}
.message-edited{font-size:10px;color:#949ba4;margin-left:5px;white-space:nowrap}
.message-actions .danger-action:hover{color:#f23f42;background:rgba(242,63,66,.12)}
.message-flash{animation:veyra-message-flash 1.15s ease}
@keyframes veyra-message-flash{0%,100%{background:transparent}20%,70%{background:rgba(88,101,242,.24)}}
.composer-mode-bar{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#2b2d31;border-bottom:1px solid #202225;border-radius:8px 8px 0 0;padding:7px 10px 7px 14px;color:#b5bac1;font-size:12px}
.composer-mode-bar>div{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.composer-mode-bar strong{color:#f2f3f5;margin-right:4px}
.composer-mode-bar button{border:0;background:transparent;color:#b5bac1;font-size:22px;line-height:20px;cursor:pointer;border-radius:4px;width:28px;height:26px}
.composer-mode-bar button:hover{background:#404249;color:#fff}
.composer-mode-active .composer{border-radius:0 0 8px 8px!important}
.editing-message #attachBtn,.editing-message #giftBtn,.editing-message #gifBtn{opacity:.35;pointer-events:none}
.message.grouped .message-body{grid-column:2}
@media(max-width:720px){.message-reply .reply-line{width:18px;flex-basis:18px;margin-left:-10px}.message-reply strong{max-width:100px}.message-actions button{width:29px}.composer-mode-bar{margin:0;font-size:11px}}

.profile-avatar,.profile-banner{cursor:pointer}.profile-avatar{position:relative}.profile-banner{position:relative}.file-input{min-height:44px}.settings-content{-webkit-overflow-scrolling:touch}.crop-card{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}.crop-viewport{-webkit-user-select:none;-webkit-touch-callout:none}
@media(max-width:720px){
  .settings-content{padding-bottom:max(42px,env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior-y:contain}
  .file-input{min-height:48px;font-size:16px;padding:9px 8px;overflow:hidden}
  .file-input::file-selector-button{min-height:34px;font-size:14px;padding:7px 9px}
  .two-cols .secondary-btn{min-height:46px;font-size:14px;touch-action:manipulation}
  .profile-editor-card{margin-top:12px}
  .profile-banner{height:104px;touch-action:manipulation}
  .profile-avatar{width:76px;height:76px;margin-top:-38px;touch-action:manipulation}
  .crop-card{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:18px 14px 16px}
  .crop-card>h2{padding:0 34px;font-size:20px}
  .crop-card>p{font-size:12px;margin:7px 0 10px}
  .crop-viewport{margin:12px auto}
  .crop-viewport.avatar-crop{width:min(78vw,42dvh,300px)}
  .crop-viewport.banner-crop{width:min(90vw,420px);max-height:34dvh}
  .crop-actions{position:sticky;bottom:-16px;background:#313338;padding:10px 0 max(2px,env(safe-area-inset-bottom));margin-top:10px;z-index:3}
  .crop-actions button{min-height:44px;touch-action:manipulation}
  #cropZoom{min-height:38px}
}
@media(max-width:420px){
  .crop-actions{display:grid;grid-template-columns:1fr}
  .crop-actions .primary-btn,.crop-actions .secondary-btn{width:100%}
  .crop-viewport.avatar-crop{width:min(74vw,38dvh,260px)}
  .crop-viewport.banner-crop{width:88vw}
}

/* Veyra v24 — modern Discord-inspired visual polish */
:root{
  --veyra-glass:rgba(20,21,24,.72);
  --veyra-border:rgba(255,255,255,.065);
  --veyra-border-strong:rgba(255,255,255,.11);
  --veyra-shadow:0 16px 42px rgba(0,0,0,.28);
  --veyra-shadow-soft:0 8px 24px rgba(0,0,0,.18);
  --veyra-focus:color-mix(in srgb,var(--brand) 72%,white 28%);
  --veyra-card:color-mix(in srgb,var(--bg-main) 92%,white 8%);
  --veyra-card-soft:color-mix(in srgb,var(--bg-main) 96%,white 4%);
}
html{background:var(--bg-deep)}
body{background:var(--bg-main);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
*{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--bg-deep) 78%,white 12%) transparent}
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-track{background:transparent}
*::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--bg-deep) 78%,white 12%);border:3px solid transparent;background-clip:padding-box;border-radius:999px}
*::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--bg-deep) 68%,white 18%);border:3px solid transparent;background-clip:padding-box}
button,input,textarea,select{-webkit-tap-highlight-color:transparent}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--veyra-focus);outline-offset:2px}
input,textarea,select{transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
input:focus,textarea:focus,select:focus{border-color:color-mix(in srgb,var(--brand) 72%,white 8%);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 16%,transparent)}

.auth-screen{background:radial-gradient(circle at 18% 14%,color-mix(in srgb,var(--brand) 72%,#98a7ff 28%) 0,transparent 31%),radial-gradient(circle at 82% 88%,#44255d 0,transparent 36%),linear-gradient(145deg,#151728 0,#20255a 48%,#12131b 100%)}
.auth-screen:before,.auth-screen:after{filter:blur(70px);opacity:.22}
.auth-card{border:1px solid rgba(255,255,255,.08);border-radius:18px;background:linear-gradient(180deg,rgba(49,51,56,.975),rgba(38,40,45,.975));box-shadow:0 28px 85px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.035);padding:34px}
.brand-mark{width:52px;height:52px;border-radius:18px;background:linear-gradient(145deg,color-mix(in srgb,var(--brand) 88%,white 12%),var(--brand));box-shadow:0 12px 28px color-mix(in srgb,var(--brand) 34%,transparent),inset 0 1px 0 rgba(255,255,255,.22);font-size:25px;letter-spacing:-1px}
.auth-card h1{font-size:25px;letter-spacing:-.45px}.auth-card>p{font-size:14px}
.auth-card input{min-height:44px;border-radius:8px;background:rgba(17,18,20,.82);border-color:rgba(255,255,255,.045)}
.primary-btn{border-radius:8px;min-height:42px;box-shadow:0 7px 18px color-mix(in srgb,var(--brand) 20%,transparent)}
.primary-btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px color-mix(in srgb,var(--brand) 26%,transparent)}
.secondary-btn{border-radius:8px}

.app{background:var(--bg-main)}
.server-rail{background:linear-gradient(180deg,color-mix(in srgb,var(--bg-rail) 96%,white 4%),var(--bg-rail));border-right:1px solid rgba(255,255,255,.025);padding-top:10px}
.server-item{box-shadow:inset 0 0 0 1px rgba(255,255,255,.035);transition:border-radius .2s cubic-bezier(.2,.8,.2,1),transform .16s ease,background-color .16s ease,box-shadow .16s ease}
.server-item:hover,.server-item.active{box-shadow:0 8px 18px rgba(0,0,0,.2),inset 0 0 0 1px rgba(255,255,255,.1)}
.server-item.active{transform:translateY(-1px)}
.server-sep{height:1px;background:rgba(255,255,255,.09)}

.channel-sidebar{background:linear-gradient(180deg,color-mix(in srgb,var(--bg-sidebar) 97%,white 3%),var(--bg-sidebar));border-right:1px solid rgba(255,255,255,.025)}
.guild-header{height:48px;border-bottom:1px solid var(--veyra-border);box-shadow:0 8px 18px rgba(0,0,0,.06);font-weight:750;letter-spacing:-.15px}
.guild-header:hover{background:color-mix(in srgb,var(--bg-sidebar) 86%,white 6%)}
.channel-scroll{padding:11px 8px 12px}
.category-title{padding:5px 5px 4px;letter-spacing:.35px}
.channel{height:36px;border-radius:7px;padding:0 9px;transition:background-color .14s ease,color .14s ease,transform .14s ease}
.channel:hover{background:color-mix(in srgb,var(--bg-active) 62%,transparent);transform:none}
.channel.active{background:linear-gradient(90deg,color-mix(in srgb,var(--bg-active) 90%,var(--brand) 10%),var(--bg-active));box-shadow:inset 2px 0 0 color-mix(in srgb,var(--brand) 72%,white 8%)}
.channel.active .kind{color:color-mix(in srgb,var(--brand) 68%,white 32%)}
.user-panel{background:color-mix(in srgb,var(--bg-deep) 90%,transparent);border-top:1px solid var(--veyra-border);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.user-panel .avatar{box-shadow:0 0 0 1px rgba(255,255,255,.06)}
.panel-icon{border-radius:7px;color:var(--muted)}
.panel-icon:hover{background:color-mix(in srgb,var(--bg-active) 76%,transparent);color:var(--text)}

.chat-area{background:linear-gradient(180deg,color-mix(in srgb,var(--bg-main) 98%,white 2%),var(--bg-main))}
.topbar{height:48px;border-bottom:1px solid var(--veyra-border);box-shadow:0 7px 18px rgba(0,0,0,.055);background:color-mix(in srgb,var(--bg-main) 90%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);z-index:20}
.channel-title{min-width:0}.channel-title strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.12px}
.hash{opacity:.72}
.top-actions{gap:3px}
.top-icon{min-width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;transition:background-color .14s ease,color .14s ease,transform .14s ease}
.top-icon:hover{background:color-mix(in srgb,var(--bg-active) 66%,transparent);color:#fff;transform:none}
.search{height:28px;width:168px;border-radius:8px;background:color-mix(in srgb,var(--bg-deep) 88%,transparent);border:1px solid rgba(255,255,255,.045);transition:width .18s ease,border-color .18s ease,box-shadow .18s ease}
.search:focus-within{width:210px;border-color:color-mix(in srgb,var(--brand) 38%,transparent);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 9%,transparent)}
.search input{font-size:12px}

.messages{padding-top:18px;scroll-behavior:smooth}
.message{padding-top:4px;padding-bottom:4px;transition:background-color .1s ease}
.message:hover{background:linear-gradient(90deg,rgba(255,255,255,.024),rgba(255,255,255,.012))}
.message-avatar{box-shadow:0 0 0 1px rgba(255,255,255,.045);transition:transform .15s ease,box-shadow .15s ease}
.message-avatar:hover{transform:scale(1.035);box-shadow:0 5px 14px rgba(0,0,0,.18),0 0 0 1px rgba(255,255,255,.07)}
.message-author{font-weight:650;letter-spacing:-.1px}
.message-content{line-height:1.42}
.message-time{opacity:.86}
.message-actions{border:1px solid var(--veyra-border-strong)!important;border-radius:9px!important;background:color-mix(in srgb,var(--bg-deep) 94%,transparent)!important;box-shadow:var(--veyra-shadow-soft)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);overflow:hidden}
.message-actions button{border-radius:6px!important}
.message-reply{opacity:.86}.message-reply:hover{opacity:1}
.empty-icon{background:linear-gradient(145deg,color-mix(in srgb,var(--bg-active) 88%,white 5%),var(--bg-active));box-shadow:inset 0 0 0 1px rgba(255,255,255,.055)}

.composer-wrap{filter:drop-shadow(0 -10px 18px rgba(0,0,0,.035))}
.composer{min-height:46px;border-radius:12px!important;background:color-mix(in srgb,var(--bg-input) 96%,white 4%);border:1px solid rgba(255,255,255,.045);box-shadow:0 7px 20px rgba(0,0,0,.08);transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
.composer:focus-within{border-color:color-mix(in srgb,var(--brand) 28%,rgba(255,255,255,.08));box-shadow:0 8px 24px rgba(0,0,0,.11),0 0 0 3px color-mix(in srgb,var(--brand) 6%,transparent)}
.composer textarea{font-size:15px;line-height:21px}
.add-btn{background:color-mix(in srgb,var(--muted) 85%,white 15%);transition:transform .14s ease,background-color .14s ease}
.add-btn:hover{transform:rotate(90deg) scale(1.04);background:#fff}
.compose-icon{border-radius:7px;min-width:31px}
.compose-icon:hover{background:rgba(255,255,255,.045);color:#fff}
.send-message-btn{color:color-mix(in srgb,var(--brand) 74%,#d8dcff 26%)}
.composer-mode-bar{border:1px solid rgba(255,255,255,.045);border-bottom:0;border-radius:12px 12px 0 0;background:color-mix(in srgb,var(--bg-sidebar) 94%,white 4%)}
.composer-mode-active .composer{border-radius:0 0 12px 12px!important}
.attachment-tray{background:color-mix(in srgb,var(--bg-sidebar) 94%,white 3%);border:1px solid rgba(255,255,255,.04);border-bottom:0}

.member-sidebar{background:linear-gradient(180deg,color-mix(in srgb,var(--bg-sidebar) 98%,white 2%),var(--bg-sidebar));border-left:1px solid rgba(255,255,255,.025);padding-top:16px}
.member{border-radius:8px;padding:6px 8px}
.member:hover{background:color-mix(in srgb,var(--bg-active) 62%,transparent);transform:none}
.member-name{font-weight:620}
.member-group-title{letter-spacing:.35px}

.friend-card{border-top-color:var(--veyra-border);border-radius:8px;transition:background-color .14s ease,transform .14s ease,border-color .14s ease}
.friend-card:hover{background:color-mix(in srgb,var(--bg-active) 52%,transparent);transform:translateY(-1px)}
.round-action{background:color-mix(in srgb,var(--bg-sidebar) 88%,white 5%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.035)}
.home-hero{border-bottom-color:var(--veyra-border)}

.modal{background:rgba(6,7,9,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.modal-card,.voice-card{border-radius:16px!important;border:1px solid var(--veyra-border-strong);background:linear-gradient(180deg,color-mix(in srgb,var(--bg-main) 95%,white 5%),var(--bg-main));box-shadow:0 28px 90px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.035)}
.modal-close,.profile-close{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font-size:25px}
.modal-close:hover,.profile-close:hover{background:rgba(255,255,255,.055)}
.segment{border-radius:8px;border:1px solid rgba(255,255,255,.04)}
.segment.active{box-shadow:0 6px 16px color-mix(in srgb,var(--brand) 18%,transparent)}
.context-menu,.mention-picker,.emoji-picker{border:1px solid var(--veyra-border-strong)!important;background:color-mix(in srgb,var(--bg-deep) 96%,white 4%)!important;box-shadow:0 18px 54px rgba(0,0,0,.48)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.context-menu{border-radius:11px!important;padding:6px!important}
.context-menu button{border-radius:7px!important}
.mention-picker{border-radius:12px!important}
.mention-option{border-radius:8px}

.settings-shell{border-radius:18px;border:1px solid var(--veyra-border-strong);background:var(--bg-main);box-shadow:0 32px 100px rgba(0,0,0,.58)}
.settings-nav{background:linear-gradient(180deg,color-mix(in srgb,var(--bg-sidebar) 97%,white 3%),var(--bg-sidebar));border-right:1px solid var(--veyra-border)}
.settings-tab{border-radius:8px;padding:9px 10px}
.settings-tab:hover{background:color-mix(in srgb,var(--bg-active) 56%,transparent)}
.settings-tab.active{background:linear-gradient(90deg,color-mix(in srgb,var(--brand) 16%,var(--bg-active)),var(--bg-active));box-shadow:inset 2px 0 0 var(--brand)}
.settings-x{border:1px solid var(--veyra-border-strong);background:color-mix(in srgb,var(--bg-main) 90%,transparent);box-shadow:0 6px 16px rgba(0,0,0,.12)}
.settings-x:hover{border-color:rgba(255,255,255,.2);background:var(--bg-active)}
.profile-editor-card,.account-card,.voice-settings-card,.settings-list-row,.settings-empty,.nitro-card{border:1px solid var(--veyra-border);box-shadow:inset 0 1px 0 rgba(255,255,255,.018)}
.profile-editor-card{border-radius:14px!important}
.profile-banner{background-image:linear-gradient(135deg,color-mix(in srgb,var(--brand) 88%,#7d8cff 12%),#8f56c5)}
.account-card{border-radius:12px}
.badge-pill{background:color-mix(in srgb,var(--bg-deep) 86%,white 5%);border-color:var(--veyra-border-strong)}
.theme-card{border-radius:12px!important;background:color-mix(in srgb,var(--bg-sidebar) 92%,white 4%);transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}
.theme-card:hover{transform:translateY(-2px);box-shadow:0 9px 20px rgba(0,0,0,.14)}

.dm-profile-card{border:1px solid var(--veyra-border);border-radius:14px;box-shadow:0 10px 26px rgba(0,0,0,.1)}
.dm-profile-banner{background-image:linear-gradient(135deg,color-mix(in srgb,var(--brand) 86%,#8592ff 14%),#8d55c1)}
.dm-call-dock{background:linear-gradient(180deg,color-mix(in srgb,var(--bg-deep) 82%,transparent),color-mix(in srgb,var(--bg-main) 94%,transparent));border-bottom:1px solid var(--veyra-border)}
.dm-call-person .avatar{box-shadow:0 0 0 2px color-mix(in srgb,var(--bg-main) 92%,white 7%),0 7px 18px rgba(0,0,0,.18)}
.call-control,.voice-panel-btn{border:1px solid rgba(255,255,255,.045);box-shadow:0 5px 14px rgba(0,0,0,.1)}
.guild-voice-panel{background:linear-gradient(180deg,color-mix(in srgb,var(--bg-deep) 86%,#10251b 14%),var(--bg-deep));border-color:var(--veyra-border)}

.message-attachment{border-color:var(--veyra-border-strong);background:color-mix(in srgb,var(--bg-sidebar) 92%,black 8%);box-shadow:0 7px 18px rgba(0,0,0,.1)}
.file-attachment:hover{background:rgba(255,255,255,.025)}

body.has-global-bg .server-rail,body.has-global-bg .channel-sidebar,body.has-global-bg .member-sidebar{border-color:rgba(255,255,255,.07)}
body.has-global-bg .topbar{background:rgba(31,33,38,.68);border-color:rgba(255,255,255,.07)}
body.has-global-bg .composer{background:rgba(47,49,55,.82);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}

.theme-light{--veyra-border:rgba(35,39,45,.09);--veyra-border-strong:rgba(35,39,45,.14);--veyra-shadow:0 16px 42px rgba(25,30,38,.12);--veyra-shadow-soft:0 8px 24px rgba(25,30,38,.08)}
.theme-light .server-rail,.theme-light .channel-sidebar,.theme-light .member-sidebar,.theme-light .settings-nav{border-color:rgba(35,39,45,.08)}
.theme-light .topbar{background:rgba(255,255,255,.82)}
.theme-light .message:hover{background:linear-gradient(90deg,rgba(20,25,30,.035),rgba(20,25,30,.018))}
.theme-light .composer{border-color:rgba(30,35,40,.08);box-shadow:0 7px 20px rgba(25,30,38,.07)}
.theme-light .context-menu,.theme-light .mention-picker,.theme-light .emoji-picker{background:rgba(255,255,255,.97)!important}
.theme-light .modal-card,.theme-light .voice-card{background:linear-gradient(180deg,#fff,#f8f9fa)}
.theme-light .auth-card{color:#fff}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}

@media(max-width:760px){
  .topbar{height:50px;min-height:50px;padding-inline:8px;background:color-mix(in srgb,var(--bg-main) 94%,transparent)}
  .chat-area{grid-template-rows:50px auto minmax(0,1fr) 18px auto!important}
  .top-icon{min-width:36px;height:36px}
  .channel-sidebar{box-shadow:18px 0 50px rgba(0,0,0,.34)}
  .server-rail{box-shadow:10px 0 32px rgba(0,0,0,.28)}
  .composer{min-height:46px;border-radius:13px!important}
  .composer-mode-bar{border-radius:13px 13px 0 0}
  .composer-mode-active .composer{border-radius:0 0 13px 13px!important}
  .message{padding-top:4px;padding-bottom:4px}
  .message-actions{backdrop-filter:none;-webkit-backdrop-filter:none}
  .settings-shell{border:0;border-radius:0}
  .settings-nav{border-right:0;border-bottom:1px solid var(--veyra-border);box-shadow:0 5px 14px rgba(0,0,0,.08)}
  .settings-tab{border-radius:8px}
  .modal-card,.voice-card{border-radius:15px!important}
}
@media(max-width:480px){
  .auth-card{padding:27px 20px;border-radius:16px}
  .brand-mark{width:48px;height:48px;border-radius:16px}
  .top-actions{gap:1px}
  .top-icon{min-width:34px;height:34px;padding:5px}
  .composer-wrap{padding-left:7px!important;padding-right:7px!important}
  .composer{box-shadow:0 5px 16px rgba(0,0,0,.09)}
  .message{padding-left:7px}
}

/* v25: keep the Owner DM background visible through the modern UI */
body.has-global-bg{background:transparent!important}
body.has-global-bg .global-background{background:#090a0d}
body.has-global-bg .global-bg-shade{background:rgba(6,8,14,.18);backdrop-filter:none;-webkit-backdrop-filter:none}
body.has-global-bg .app{background:transparent}
body.has-global-bg .server-rail{background:rgba(24,25,29,.58)!important;backdrop-filter:blur(10px) saturate(1.08);-webkit-backdrop-filter:blur(10px) saturate(1.08)}
body.has-global-bg .channel-sidebar{background:rgba(35,37,42,.60)!important;backdrop-filter:blur(12px) saturate(1.06);-webkit-backdrop-filter:blur(12px) saturate(1.06)}
body.has-global-bg .chat-area{background:rgba(40,42,47,.38)!important;backdrop-filter:blur(5px) saturate(1.04);-webkit-backdrop-filter:blur(5px) saturate(1.04)}
body.has-global-bg .member-sidebar{background:rgba(35,37,42,.58)!important;backdrop-filter:blur(12px) saturate(1.06);-webkit-backdrop-filter:blur(12px) saturate(1.06)}
body.has-global-bg .guild-header{background:rgba(30,32,36,.34)!important;box-shadow:0 1px 0 rgba(255,255,255,.055)}
body.has-global-bg .guild-header:hover{background:rgba(45,47,53,.52)!important}
body.has-global-bg .topbar{background:rgba(31,33,38,.48)!important;backdrop-filter:blur(12px) saturate(1.08);-webkit-backdrop-filter:blur(12px) saturate(1.08)}
body.has-global-bg .user-panel{background:rgba(26,27,31,.60)!important;backdrop-filter:blur(12px) saturate(1.08);-webkit-backdrop-filter:blur(12px) saturate(1.08)}
body.has-global-bg .composer{background:rgba(47,49,55,.62)!important;backdrop-filter:blur(14px) saturate(1.1);-webkit-backdrop-filter:blur(14px) saturate(1.1)}
body.has-global-bg .composer-mode-bar,body.has-global-bg .attachment-tray{background:rgba(38,40,45,.64)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
body.has-global-bg .dm-profile-card{background:rgba(35,37,42,.54)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
body.has-global-bg .dm-call-dock{background:rgba(18,19,22,.52)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
body.has-global-bg .message:hover{background:linear-gradient(90deg,rgba(0,0,0,.10),rgba(255,255,255,.018))}
body.has-global-bg .empty-icon{background:rgba(47,49,55,.62)}
body.has-global-bg .search{background:rgba(20,21,24,.62)}
body.has-global-bg .channel.active{background:rgba(66,69,77,.68)}
body.has-global-bg .channel:hover{background:rgba(53,55,61,.50)}
body.has-global-bg .member:hover{background:rgba(64,66,73,.38)}

@media(max-width:760px){
  body.has-global-bg .channel-sidebar{background:rgba(35,37,42,.68)!important}
  body.has-global-bg .server-rail{background:rgba(24,25,29,.66)!important}
  body.has-global-bg .chat-area{background:rgba(40,42,47,.34)!important}
  body.has-global-bg .topbar{background:rgba(31,33,38,.54)!important}
}

/* v26: mobile drawer clarity fix */
@media(max-width:760px){
  .mobile-backdrop{
    background:rgba(0,0,0,.58)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    filter:none!important;
  }
  body.mobile-sidebar-open .server-rail,
  body.mobile-sidebar-open .channel-sidebar{
    filter:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    isolation:isolate;
    transform:translate3d(0,0,0)!important;
    will-change:transform;
  }
  body.mobile-sidebar-open .server-rail{
    background:var(--bg-rail)!important;
  }
  body.mobile-sidebar-open .channel-sidebar{
    background:var(--bg-sidebar)!important;
  }
  body.mobile-sidebar-open .guild-header,
  body.mobile-sidebar-open .channel-scroll,
  body.mobile-sidebar-open .user-panel,
  body.mobile-sidebar-open .guild-voice-panel{
    filter:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  body.mobile-sidebar-open .user-panel{
    background:var(--bg-deep)!important;
  }
  body.mobile-sidebar-open .guild-header{
    background:var(--bg-sidebar)!important;
  }
  body.has-global-bg.mobile-sidebar-open .server-rail{
    background:rgba(24,25,29,.96)!important;
  }
  body.has-global-bg.mobile-sidebar-open .channel-sidebar,
  body.has-global-bg.mobile-sidebar-open .guild-header{
    background:rgba(35,37,42,.96)!important;
  }
  body.has-global-bg.mobile-sidebar-open .user-panel{
    background:rgba(26,27,31,.97)!important;
  }
  body.members-overlay-open .member-sidebar{
    filter:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    background:var(--bg-sidebar)!important;
  }
}


/* v28: navigation drawer stacking and clickability fix */
.modal{z-index:2000!important}
.toast{z-index:2200!important}
.mobile-backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;filter:none!important}
.mobile-nav-btn{display:none!important}
@media(max-width:760px){
  .mobile-nav-btn{display:inline-flex!important;align-items:center;justify-content:center}
  body.mobile-sidebar-open #mobileBackdrop{display:none!important;pointer-events:none!important;background:transparent!important}
  body.mobile-sidebar-open .server-rail{z-index:122!important;pointer-events:auto!important}
  body.mobile-sidebar-open .channel-sidebar{z-index:121!important;pointer-events:auto!important}
  body.mobile-sidebar-open .server-rail *,body.mobile-sidebar-open .channel-sidebar *{pointer-events:auto}
  body.mobile-sidebar-open .server-item,body.mobile-sidebar-open .channel{touch-action:manipulation}
}
@media(min-width:761px){
  body.mobile-sidebar-open .server-rail,body.mobile-sidebar-open .channel-sidebar{transform:none!important}
  body.mobile-sidebar-open #mobileBackdrop{display:none!important}
}

/* v35 — Owner MP3 as a purely visual Owner background */
.global-background.audio-mode{
  background:
    radial-gradient(circle at 16% 76%,color-mix(in srgb,var(--brand) 34%,transparent),transparent 32%),
    radial-gradient(circle at 78% 20%,rgba(235,69,158,.16),transparent 30%),
    linear-gradient(135deg,#090a0d 0%,#10121a 48%,#08090c 100%);
}
.owner-music-player{
  position:absolute;
  left:clamp(28px,5vw,76px);
  bottom:clamp(32px,8vh,92px);
  z-index:2;
  width:min(560px,calc(100vw - 56px));
  min-height:150px;
  display:grid;
  grid-template-columns:132px minmax(0,1fr);
  gap:24px;
  align-items:center;
  padding:18px 22px;
  pointer-events:none;
  user-select:none;
  opacity:var(--owner-bg-opacity,1);
  filter:drop-shadow(0 22px 40px rgba(0,0,0,.38));
}
.owner-vinyl{
  width:126px;
  height:126px;
  border-radius:50%;
  position:relative;
  display:grid;
  place-items:center;
  background:repeating-radial-gradient(circle at center,#070709 0 3px,#17181c 4px 6px,#09090b 7px 10px);
  box-shadow:inset 0 0 0 1px #ffffff18,0 16px 32px #0009;
  animation:ownerVinylSpin 4.8s linear infinite;
}
.owner-vinyl:before{
  content:"";
  position:absolute;
  inset:28px;
  border-radius:50%;
  background:radial-gradient(circle,#0b0c0f 0 8px,var(--brand) 9px 31px,#111218 32px);
  box-shadow:0 0 0 1px #ffffff14,0 0 28px color-mix(in srgb,var(--brand) 26%,transparent);
}
.owner-vinyl:after{
  content:"";
  position:absolute;
  inset:8px;
  border-radius:50%;
  border:1px solid #ffffff0d;
}
.owner-vinyl-label{position:relative;z-index:1;color:#fff;font-size:15px;font-weight:950;letter-spacing:.05em}
@keyframes ownerVinylSpin{to{transform:rotate(360deg)}}
.owner-music-body{min-width:0;text-shadow:0 2px 14px rgba(0,0,0,.8)}
.owner-music-kicker{font-size:10px;font-weight:950;letter-spacing:.18em;color:#c8cbd1;margin-bottom:7px;opacity:.72}
.owner-music-title{font-size:clamp(18px,2.2vw,28px);font-weight:900;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:14px}
.owner-music-controls{display:flex;align-items:center;gap:13px}
.owner-music-control{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#eef0f3;
  font-size:16px;
  opacity:.82;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.08);
}
.owner-music-control.owner-music-play{
  width:44px;
  height:44px;
  background:color-mix(in srgb,var(--brand) 82%,#111 18%);
  color:#fff;
  opacity:.95;
  box-shadow:0 7px 20px color-mix(in srgb,var(--brand) 30%,transparent);
}
.owner-music-timeline{
  position:relative;
  width:min(330px,100%);
  height:5px;
  margin-top:14px;
  background:rgba(255,255,255,.13);
  border-radius:999px;
  overflow:hidden;
}
.owner-music-timeline span{
  position:absolute;
  inset:0 auto 0 0;
  width:36%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--brand),#eb459e);
  box-shadow:0 0 12px color-mix(in srgb,var(--brand) 38%,transparent);
  animation:ownerFakeTimeline 8s ease-in-out infinite alternate;
}
@keyframes ownerFakeTimeline{
  0%{width:18%}
  50%{width:57%}
  100%{width:84%}
}
@media(max-width:760px){
  .owner-music-player{
    left:18px;
    bottom:32px;
    width:calc(100vw - 36px);
    min-height:112px;
    grid-template-columns:88px minmax(0,1fr);
    gap:15px;
    padding:12px 6px;
  }
  .owner-vinyl{width:84px;height:84px}
  .owner-vinyl:before{inset:19px}
  .owner-vinyl-label{font-size:11px}
  .owner-music-kicker{font-size:8px;letter-spacing:.13em}
  .owner-music-title{font-size:17px;margin-bottom:9px}
  .owner-music-controls{gap:8px}
  .owner-music-control{width:30px;height:30px;font-size:12px}
  .owner-music-control.owner-music-play{width:34px;height:34px}
  .owner-music-timeline{margin-top:9px;height:4px}
}


/* v37 Owner Control Center — previews locais, sem polling */
:root{
  --owner-accent:#5865f2;--owner-grad-b:#eb459e;--owner-panel-opacity:.82;--owner-ui-blur:12px;--owner-radius:10px;
  --owner-bg-blur:1px;--owner-bg-brightness:1;--owner-bg-saturation:1;--owner-bg-contrast:1;--owner-overlay:#000;--owner-overlay-opacity:.2;
  --owner-badge:#f0b232;--owner-text:#fff;--owner-vinyl-size:126px;--owner-vinyl-opacity:1;--owner-vinyl-speed:4.8s;--owner-timeline:5px;
  --owner-parallax-x:0px;--owner-parallax-y:0px;
}
body.owner-dm-special .channel-sidebar,body.owner-dm-special .member-sidebar,body.owner-dm-special .chat-area,body.owner-dm-special .server-rail{background:color-mix(in srgb,var(--bg-sidebar) calc(var(--owner-panel-opacity)*100%),transparent);backdrop-filter:blur(var(--owner-ui-blur))}
.global-background img,.global-background video{transform:translate(var(--owner-parallax-x),var(--owner-parallax-y)) scale(1.03);filter:blur(var(--owner-bg-blur)) brightness(var(--owner-bg-brightness)) saturate(var(--owner-bg-saturation)) contrast(var(--owner-bg-contrast))}
.global-bg-shade{background:color-mix(in srgb,var(--owner-overlay) calc(var(--owner-overlay-opacity)*100%),transparent);backdrop-filter:none}
body.owner-dm-special.owner-vignette .global-background:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle,transparent 48%,rgba(0,0,0,.65) 110%);z-index:5}
body.owner-dm-special.owner-grain .global-background:before{content:"";position:absolute;inset:-50%;pointer-events:none;opacity:.12;z-index:6;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");animation:ownerGrain .35s steps(2) infinite}
@keyframes ownerGrain{to{transform:translate3d(3%,2%,0)}}
body.owner-dm-special.owner-slowzoom .global-background img,body.owner-dm-special.owner-slowzoom .global-background video{animation:ownerSlowZoom 18s ease-in-out infinite alternate}
@keyframes ownerSlowZoom{to{transform:translate(var(--owner-parallax-x),var(--owner-parallax-y)) scale(1.12)}}
body.owner-dm-special.owner-hueshift .global-background{animation:ownerHue 24s linear infinite}@keyframes ownerHue{to{filter:hue-rotate(360deg)}}
body.owner-dm-special.owner-particles-stars .global-background{background-image:radial-gradient(#fff8 1px,transparent 1px);background-size:42px 42px}
body.owner-dm-special.owner-particles-snow .global-background{background-image:radial-gradient(#fff9 1.5px,transparent 2px),radial-gradient(#fff6 1px,transparent 1.5px);background-size:48px 48px,72px 72px;animation:ownerSnow 14s linear infinite}@keyframes ownerSnow{to{background-position:0 96px,0 144px}}
body.owner-dm-special.owner-particles-dust .global-background{background-image:radial-gradient(#ffdca855 1px,transparent 1px);background-size:70px 70px}
body.owner-dm-special.owner-particles-bubbles .global-background{background-image:radial-gradient(circle at 20% 80%,#ffffff12 0 8px,transparent 9px),radial-gradient(circle at 70% 40%,#ffffff10 0 14px,transparent 15px)}
.owner-vinyl{width:var(--owner-vinyl-size);height:var(--owner-vinyl-size);opacity:var(--owner-vinyl-opacity);animation-duration:var(--owner-vinyl-speed)}
.owner-music-timeline{height:var(--owner-timeline)}
.owner-music-player.owner-vinyl-center{left:50%;transform:translateX(-50%)}.owner-music-player.owner-vinyl-right{left:auto;right:clamp(28px,5vw,76px)}
.owner-album-cover{position:absolute;inset:0;border-radius:50%;object-fit:cover;width:100%;height:100%;z-index:1;opacity:.72}
.owner-music-watermark{position:absolute;right:4vw;top:8vh;font-size:clamp(40px,10vw,160px);font-weight:1000;letter-spacing:.08em;color:#fff08;z-index:1;pointer-events:none}.owner-music-subtitle{font-size:12px;color:#d3d6dc;margin-top:-8px;margin-bottom:10px}
.owner-user-glow{filter:drop-shadow(0 0 8px color-mix(in srgb,var(--owner-accent) 70%,transparent))}.owner-user-border{outline:2px solid var(--owner-accent);animation:ownerBorderHue 4s linear infinite}@keyframes ownerBorderHue{to{filter:hue-rotate(360deg)}}
.owner-author{color:var(--owner-text);font-family:var(--owner-font,inherit)}body.owner-text-gradient .owner-author{background:linear-gradient(90deg,var(--owner-accent),var(--owner-grad-b));-webkit-background-clip:text;background-clip:text;color:transparent}
.badge-pill.owner{border-color:var(--owner-badge);color:var(--owner-badge)}
.owner-global-bar,.owner-event-bar{position:fixed;left:50%;transform:translateX(-50%);top:10px;z-index:120;max-width:min(760px,calc(100vw - 24px));padding:10px 16px;border-radius:999px;background:#111d;color:#fff;backdrop-filter:blur(16px);box-shadow:0 8px 32px #0007;pointer-events:none;text-align:center;font-weight:750}.owner-event-bar{top:58px;background:linear-gradient(90deg,color-mix(in srgb,var(--owner-accent) 75%,#111),color-mix(in srgb,var(--owner-grad-b) 75%,#111))}
.maintenance-overlay{position:fixed;inset:0;z-index:9999;background:radial-gradient(circle at 30% 20%,#29326e,#0d0f18 70%);display:grid;place-items:center;text-align:center;padding:30px}.maintenance-overlay>div{max-width:560px}.maintenance-overlay h1{font-size:34px;margin:10px 0}.maintenance-overlay p{color:#c7cad1;font-size:17px}
.owner-control-page{max-width:900px}.owner-section{background:#25262b;border:1px solid #3c3e45;border-radius:12px;margin:14px 0;overflow:hidden}.owner-section summary{cursor:pointer;padding:15px 17px;font-weight:900;background:#202126}.owner-section-body{padding:16px 18px}.owner-grid{display:grid;gap:12px}.owner-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-grid label,.owner-slider-grid label{font-size:12px;font-weight:800;color:#b5bac1}.owner-grid input,.owner-grid select,.owner-section textarea,.owner-section input:not([type=checkbox]):not([type=range]):not([type=color]){margin-top:5px;width:100%}.owner-slider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.owner-slider-grid input{width:100%;margin-top:7px}.owner-toggle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.owner-toggle-grid label{background:#1e1f22;padding:9px 10px;border-radius:8px;font-size:12px}.owner-preset-row,.owner-preset-list{display:flex;flex-wrap:wrap;gap:8px}.owner-preset{background:#35373d;padding:8px 12px;border-radius:999px;cursor:pointer}.owner-preset:hover{background:var(--owner-accent)}.owner-savebar{position:sticky;bottom:-20px;z-index:5;display:flex;align-items:center;gap:10px;background:#1b1c20ee;border:1px solid #3c3e45;padding:10px;border-radius:10px;backdrop-filter:blur(12px)}.owner-savebar .primary-btn{margin:0}.owner-dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.owner-stat{background:#1e1f22;padding:12px;border-radius:9px}.owner-stat strong{display:block;font-size:20px}.owner-user-results{display:grid;gap:8px;margin-top:12px}.owner-user-card{background:#1e1f22;padding:12px;border-radius:9px}.owner-user-head{display:flex;align-items:center;gap:10px}.owner-user-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.owner-user-actions button{padding:7px 9px;border-radius:6px;background:#3a3c43;cursor:pointer}.owner-user-actions .danger{background:#6d2529}.owner-special-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:8px}.owner-badge-draft{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.owner-debug-float{position:fixed;right:10px;top:10px;z-index:300;background:#08090ddd;border:1px solid #ffffff20;padding:8px 10px;border-radius:8px;font:11px ui-monospace,monospace;pointer-events:none}
body.owner-enter-fade .chat-area{animation:ownerEnterFade .65s ease}body.owner-enter-slide .chat-area{animation:ownerEnterSlide .55s ease}body.owner-enter-zoom .chat-area{animation:ownerEnterZoom .55s ease}@keyframes ownerEnterFade{from{opacity:.25}to{opacity:1}}@keyframes ownerEnterSlide{from{transform:translateY(14px);opacity:.4}to{transform:none;opacity:1}}@keyframes ownerEnterZoom{from{transform:scale(.985);opacity:.5}to{transform:none;opacity:1}}
@media(max-width:760px){.owner-grid.two,.owner-slider-grid{grid-template-columns:1fr}.owner-toggle-grid{grid-template-columns:1fr 1fr}.owner-dashboard-grid{grid-template-columns:1fr 1fr}.owner-special-grid{grid-template-columns:1fr 1fr}.owner-control-page{max-width:none}.owner-music-watermark{top:12vh}}

.member-owner-status{font-size:10px;color:var(--owner-accent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px;margin-top:2px}

.owner-music-watermark-image{position:absolute;right:5vw;top:8vh;max-width:min(220px,28vw);max-height:150px;object-fit:contain;opacity:.2;z-index:1;pointer-events:none;filter:drop-shadow(0 10px 30px #0008)}

.owner-event-bar.owner-event-info,.owner-global-bar.owner-broadcast-info{background:linear-gradient(90deg,#3156a8dd,#223b78dd)}
.owner-event-bar.owner-event-success,.owner-global-bar.owner-broadcast-success{background:linear-gradient(90deg,#19724ddd,#12543add)}
.owner-event-bar.owner-event-warning,.owner-global-bar.owner-broadcast-warning{background:linear-gradient(90deg,#8a6518ee,#5d4310ee)}
.owner-event-bar.owner-event-danger,.owner-global-bar.owner-broadcast-danger{background:linear-gradient(90deg,#962f3bee,#651f29ee)}
.owner-event-bar.owner-event-special{background:linear-gradient(90deg,color-mix(in srgb,var(--owner-accent) 75%,#111),color-mix(in srgb,var(--owner-grad-b) 75%,#111))}


/* v38 Owner Identity Studio — somente identidade da Owner, sem polling */
:root{--owner-avatar-frame:#5865f2;--owner-avatar-frame-b:#eb459e;--owner-avatar-glow:.55;--owner-profile-accent:#5865f2;--owner-profile-tint:#000;--owner-profile-tint-opacity:.18;--owner-message-accent:#5865f2}
.owner-author{font-family:var(--owner-font);color:var(--owner-text)!important;font-weight:800!important}
body.owner-text-gradient .owner-author{background:linear-gradient(90deg,var(--owner-accent),var(--owner-grad-b),var(--owner-accent));background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent!important}
body.owner-name-shimmer .owner-author{animation:ownerNameShimmer 3s linear infinite}@keyframes ownerNameShimmer{to{background-position:200% 0}}
body.owner-name-pulse .owner-author{animation:ownerNamePulse 2s ease-in-out infinite}@keyframes ownerNamePulse{50%{filter:drop-shadow(0 0 7px var(--owner-accent));opacity:.86}}
body.owner-name-wave .owner-author{animation:ownerNameWave 3.2s ease-in-out infinite}@keyframes ownerNameWave{0%,100%{text-shadow:0 0 0 transparent}50%{text-shadow:0 0 9px var(--owner-accent),0 0 18px var(--owner-grad-b)}}
.owner-title-pill{display:inline-flex;align-items:center;vertical-align:middle;margin-left:4px;padding:2px 6px;border:1px solid color-mix(in srgb,var(--owner-accent) 55%,transparent);border-radius:999px;background:color-mix(in srgb,var(--owner-accent) 12%,transparent);color:color-mix(in srgb,var(--owner-accent) 72%,#fff 28%);font-size:9px;font-weight:950;letter-spacing:.08em;text-transform:uppercase;line-height:1.3}
.owner-name-icon{color:var(--owner-accent);filter:drop-shadow(0 0 5px color-mix(in srgb,var(--owner-accent) 70%,transparent))}
.owner-identity-avatar{position:relative!important;overflow:visible!important;isolation:isolate}
.owner-identity-avatar>img{border-radius:inherit;position:relative;z-index:2}
.owner-frame-ring{box-shadow:0 0 0 2px var(--owner-avatar-frame)!important}.owner-frame-double{box-shadow:0 0 0 2px var(--owner-avatar-frame),0 0 0 5px color-mix(in srgb,var(--owner-avatar-frame-b) 70%,transparent)!important}.owner-frame-neon{box-shadow:0 0 0 2px var(--owner-avatar-frame),0 0 12px color-mix(in srgb,var(--owner-avatar-frame) 80%,transparent),0 0 24px color-mix(in srgb,var(--owner-avatar-frame-b) 45%,transparent)!important}.owner-frame-royal{box-shadow:0 0 0 2px var(--owner-avatar-frame),0 0 0 4px #f5d77a55,0 0 16px #f0b23266!important}
.owner-avatar-glow{filter:drop-shadow(0 0 var(--owner-avatar-glow-radius,10px) color-mix(in srgb,var(--owner-avatar-frame) 75%,transparent))}
.owner-avatar-animated{animation:ownerAvatarHue 5s linear infinite}@keyframes ownerAvatarHue{to{filter:hue-rotate(360deg) drop-shadow(0 0 var(--owner-avatar-glow-radius,10px) color-mix(in srgb,var(--owner-avatar-frame) 75%,transparent))}}
.owner-avatar-float{animation:ownerAvatarFloat 3.2s ease-in-out infinite}@keyframes ownerAvatarFloat{50%{transform:translateY(-2px)}}
.owner-avatar-halo:before{content:"";position:absolute;z-index:-1;inset:-9px;border-radius:50%;background:conic-gradient(from 0deg,transparent,var(--owner-avatar-frame),var(--owner-avatar-frame-b),transparent);opacity:.32;filter:blur(6px);animation:ownerHaloSpin 7s linear infinite;pointer-events:none}@keyframes ownerHaloSpin{to{transform:rotate(360deg)}}
.owner-avatar-sparkles:after{content:"✦  ·  ✧";position:absolute;z-index:4;left:50%;top:-13px;transform:translateX(-50%);white-space:nowrap;color:#fff;font-size:9px;text-shadow:0 0 6px var(--owner-accent);animation:ownerSpark 1.8s ease-in-out infinite;pointer-events:none}@keyframes ownerSpark{50%{opacity:.35;transform:translateX(-50%) translateY(-2px) scale(.9)}}
.owner-identity-member{background:linear-gradient(90deg,color-mix(in srgb,var(--owner-accent) 10%,transparent),transparent)!important;border-left:2px solid color-mix(in srgb,var(--owner-accent) 65%,transparent);border-radius:6px}
.owner-dm-list-highlight{background:linear-gradient(90deg,color-mix(in srgb,var(--owner-accent) 12%,transparent),transparent)!important;box-shadow:inset 2px 0 var(--owner-accent)}
.owner-message{--msg-a:var(--owner-message-accent)}.owner-message-subtle{background:linear-gradient(90deg,color-mix(in srgb,var(--msg-a) 6%,transparent),transparent)}.owner-message-glass{margin:2px 10px;border:1px solid color-mix(in srgb,var(--msg-a) 20%,transparent);border-radius:8px;background:color-mix(in srgb,#232428 74%,transparent);backdrop-filter:blur(8px)}.owner-message-neon{box-shadow:inset 3px 0 var(--msg-a);background:linear-gradient(90deg,color-mix(in srgb,var(--msg-a) 10%,transparent),transparent)}.owner-message-royal{box-shadow:inset 3px 0 #f0b232;background:linear-gradient(90deg,#f0b23210,color-mix(in srgb,var(--msg-a) 7%,transparent),transparent)}.owner-message-glow{filter:drop-shadow(0 0 6px color-mix(in srgb,var(--msg-a) 18%,transparent))}.owner-timestamp-accent .message-time{color:color-mix(in srgb,var(--msg-a) 60%,#949ba4)}.owner-message-signature{margin-top:3px;color:color-mix(in srgb,var(--owner-message-accent) 62%,#b5bac1);font-size:10px;font-style:italic;letter-spacing:.03em}
body.owner-mention-glow .owner-message .mention-me{box-shadow:0 0 8px color-mix(in srgb,var(--owner-accent) 50%,transparent);border-color:var(--owner-accent)}body.owner-mention-pulse .owner-message .mention-me{animation:ownerMentionPulse 1.3s ease-in-out infinite}@keyframes ownerMentionPulse{50%{filter:brightness(1.45)}}
.owner-profile-card{border:1px solid color-mix(in srgb,var(--owner-profile-accent) 45%,transparent);box-shadow:0 20px 70px #0009,0 0 30px color-mix(in srgb,var(--owner-profile-accent) 18%,transparent)!important}.owner-profile-card .profile-banner{position:relative}.owner-profile-card .profile-banner:after{content:"";position:absolute;inset:0;background:var(--owner-profile-tint);opacity:var(--owner-profile-tint-opacity);pointer-events:none}.owner-profile-glass{background:color-mix(in srgb,#232428 82%,transparent)!important;backdrop-filter:blur(18px)}.owner-profile-neon{box-shadow:0 20px 70px #0009,0 0 24px var(--owner-profile-accent)!important}.owner-profile-royal{border-color:#f0b232aa;background:linear-gradient(160deg,#29251d,#232428 44%)!important}.owner-profile-minimal{box-shadow:0 18px 50px #0008!important;border-color:#ffffff12}.owner-profile-tagline{margin-top:5px;color:color-mix(in srgb,var(--owner-profile-accent) 70%,#fff);font-size:12px;font-weight:700}.owner-profile-signature{margin-top:9px;color:#949ba4;font-size:11px;font-style:italic}
.owner-typing{color:var(--owner-accent);font-family:var(--owner-font)}.owner-typing-sparkle{text-shadow:0 0 6px color-mix(in srgb,var(--owner-accent) 60%,transparent)}.owner-typing-crown{color:#f0b232}.owner-typing-soft{opacity:.8;font-weight:650}
.owner-voice .avatar{transition:box-shadow .2s}.owner-voice-glow .avatar{box-shadow:0 0 0 2px var(--owner-accent),0 0 14px color-mix(in srgb,var(--owner-accent) 65%,transparent)}.owner-voice-ring .avatar{box-shadow:0 0 0 3px var(--owner-accent)}.owner-voice-royal .avatar{box-shadow:0 0 0 2px #f0b232,0 0 0 5px #8b5cf644,0 0 16px #f0b23255}
.owner-dm-entrance{position:fixed;left:50%;top:68px;z-index:250;transform:translate(-50%,-10px) scale(.96);opacity:0;padding:8px 14px;border-radius:999px;border:1px solid color-mix(in srgb,var(--owner-accent) 45%,transparent);background:#111214dd;color:#fff;font-size:11px;font-weight:900;letter-spacing:.08em;pointer-events:none;transition:.25s ease;box-shadow:0 8px 30px #0007,0 0 16px color-mix(in srgb,var(--owner-accent) 25%,transparent)}.owner-dm-entrance.show{opacity:1;transform:translate(-50%,0) scale(1)}
.owner-identity-preview{display:flex;align-items:center;gap:16px;margin:14px 0 20px;padding:18px;border:1px solid color-mix(in srgb,var(--owner-accent) 25%,#3c3e45);border-radius:12px;background:linear-gradient(135deg,color-mix(in srgb,var(--owner-accent) 9%,#1e1f22),#1e1f22)}.owner-preview-avatar{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--owner-accent),var(--owner-grad-b));font-size:20px;font-weight:950;flex:0 0 auto}.owner-preview-copy{min-width:0}.owner-preview-copy>div:first-child{display:flex;align-items:center;gap:5px}.owner-preview-status{margin-top:3px;color:#b5bac1;font-size:12px}.owner-preview-message{margin-top:9px;padding:7px 9px;border-radius:7px;color:#dbdee1;font-size:12px}
@media(max-width:720px){.owner-identity-preview{padding:14px}.owner-preview-avatar{width:48px;height:48px}.owner-title-pill{font-size:8px}.owner-dm-entrance{top:56px;max-width:calc(100vw - 24px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}


/* V39 — profile spacing + Pulse profile colors + simplified Owner appearance */
.user-profile-popout{--profile-color:#232428;--profile-surface:color-mix(in srgb,var(--profile-color) 82%,#151619 18%);background:var(--profile-surface)}
#userProfileModal .user-profile-popout>.profile-banner{height:105px}
#userProfileModal .popout-body{padding:48px 14px 18px}
#userProfileModal .popout-avatar{position:absolute!important;top:-40px!important;left:14px;width:80px;height:80px;border-width:5px;border-color:var(--profile-surface)!important;font-size:23px}
#userProfileModal .popout-body h2{display:inline-block;margin:0 2px 2px 0;vertical-align:middle}
#userProfileModal #profilePopoutOwnerTitle{vertical-align:middle;margin-bottom:3px}
#userProfileModal .profile-badges{margin:10px 0}
#userProfileModal .profile-section{background:color-mix(in srgb,#090a0c 68%,var(--profile-color) 32%);margin:12px 0}
#userProfileModal .profile-actions{margin-top:10px}
.profile-editor-card{--profile-color:#1e1f22;background:color-mix(in srgb,var(--profile-color) 72%,#151619 28%)}
.profile-editor-card .profile-avatar{border-color:color-mix(in srgb,var(--profile-color) 72%,#151619 28%)}
.pulse-profile-color{margin:14px 0 16px;padding:13px 14px;border:1px solid #3f4147;border-radius:8px;background:#25262a;display:flex;align-items:center;justify-content:space-between;gap:16px}
.pulse-profile-color.hidden{display:none}
.pulse-profile-color strong{display:block;font-size:12px;margin-bottom:3px}.pulse-profile-color small{display:block;color:#949ba4;line-height:1.35}
.pulse-profile-color-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.pulse-profile-color-actions input[type=color]{width:42px;height:42px;padding:2px;border:2px solid #4e5058;border-radius:50%;background:transparent;overflow:hidden}.pulse-profile-color-actions input[type=color]::-webkit-color-swatch-wrapper{padding:0}.pulse-profile-color-actions input[type=color]::-webkit-color-swatch{border:0;border-radius:50%}
.owner-identity-avatar:not(.popout-avatar){position:relative!important}.popout-avatar.owner-identity-avatar{position:absolute!important}
.owner-identity-avatar,.owner-preview-avatar{filter:none!important;animation:none!important;box-shadow:none!important}
.owner-identity-avatar:before,.owner-identity-avatar:after{display:none!important}
.owner-identity-member,.owner-dm-list-highlight{background:transparent!important;border-left:0!important;box-shadow:none!important}
.owner-profile-card,.owner-profile-neon,.owner-profile-royal,.owner-profile-glass,.owner-profile-minimal{box-shadow:0 22px 70px rgba(0,0,0,.6)!important;border:0!important;backdrop-filter:none!important}
.owner-message,.owner-message-subtle,.owner-message-glass,.owner-message-neon,.owner-message-royal{background:transparent!important;box-shadow:none!important;filter:none!important;border:0!important;margin-left:0;margin-right:0}
.owner-voice .avatar{box-shadow:none!important}.owner-name-icon{filter:none!important}
.owner-identity-preview-simple{border-color:#3f4147;background:#1e1f22}.owner-identity-preview-simple .owner-preview-avatar{background:var(--owner-accent);box-shadow:none!important}
@media(max-width:520px){.pulse-profile-color{align-items:flex-start;flex-direction:column}.pulse-profile-color-actions{width:100%}}

/* V40: message history performance */
.message{content-visibility:auto;contain-intrinsic-size:auto 72px}
.history-top-sentinel{height:1px;min-height:1px;pointer-events:none;overflow:hidden}

/* V42 — Pulse, perfis sociais, Pulsar e painel responsivo */
:root{--pulse-grad-top:#232428;--pulse-grad-bottom:#232428}
.pulse-gradient-actions{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.pulse-gradient-actions label{display:grid;gap:4px;color:#b5bac1;font-size:10px;font-weight:800}.pulse-gradient-actions input[type=color]{width:50px;height:34px;padding:2px;border-radius:7px}.profile-editor-card{background:linear-gradient(180deg,var(--profile-top,var(--profile-color,#1e1f22)),var(--profile-bottom,var(--profile-color,#1e1f22)));transition:background .18s ease}.pulse-benefits-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0 20px}.pulse-benefits-grid>div{background:#25262a;border:1px solid #ffffff0d;border-radius:9px;padding:12px}.pulse-benefits-grid b,.pulse-benefits-grid span{display:block}.pulse-benefits-grid span{font-size:12px;color:#949ba4;margin-top:4px;line-height:1.35}
.user-profile-popout{--profile-top:#232428;--profile-bottom:#232428;background:linear-gradient(180deg,var(--profile-top) 0,var(--profile-bottom) 100%)}.user-profile-popout .popout-body{background:linear-gradient(180deg,color-mix(in srgb,var(--profile-top) 88%,transparent),color-mix(in srgb,var(--profile-bottom) 94%,#16171a))}.user-profile-popout .profile-section{background:#0d0e10b8;border:1px solid #ffffff0b}.user-profile-popout .popout-avatar{border-color:color-mix(in srgb,var(--profile-top) 78%,#17181b)}
body.dm-active .member-sidebar{padding:0;background:#17181b;overflow:hidden}.dm-profile-panel{height:100%;padding:0}.dm-profile-card{--profile-top:#232428;--profile-bottom:#232428;min-height:100%;border-radius:0;overflow:hidden;background:linear-gradient(180deg,var(--profile-top),var(--profile-bottom));display:flex;flex-direction:column;border:0}.dm-profile-banner{height:108px;flex:0 0 108px;background:linear-gradient(135deg,#5865f2,#9b59b6);background-size:cover;background-position:center}.dm-profile-body{padding:50px 14px 12px;position:relative;display:flex;flex-direction:column;min-height:0;flex:1}.dm-profile-avatar{position:absolute;left:14px;top:-40px;width:76px!important;height:76px!important;border:5px solid color-mix(in srgb,var(--profile-top) 82%,#17181b);font-size:20px}.dm-profile-body h3{margin:0 0 2px}.dm-profile-body .profile-badges{margin:11px 0 8px}.dm-profile-body .profile-section{background:#0b0c0ebf;border:1px solid #ffffff0b;margin:10px 0;padding:11px}.dm-profile-spacer{flex:1;min-height:28px}.dm-profile-full-btn{width:100%;margin-top:auto;background:#ffffff0d;border:1px solid #ffffff12;color:#fff;padding:9px 11px;border-radius:6px;cursor:pointer;font-weight:700}.dm-profile-full-btn:hover{background:#ffffff16}.dm-profile-featured{margin:10px 0}
.member-sidebar .member{min-height:46px;margin:3px 5px;padding:6px 8px}.member-sidebar .member-group-title{padding-top:9px}.member-sidebar .member-group-title:not(:first-child){margin-top:13px;padding-top:12px;border-top:1px solid #ffffff09}.friend-section #friendList,.friend-section #incomingFriends,.friend-section #outgoingFriends{display:grid;gap:7px}.friend-card{min-height:58px;margin:0;border-radius:8px;border:1px solid transparent}.friend-card:hover{border-color:#ffffff0b}.friend-card.friend-pinned{background:linear-gradient(90deg,color-mix(in srgb,var(--brand) 10%,#242529),#242529)}.friend-pin-mark{font-size:11px;color:#f0b232;margin-left:5px}.friend-nickname{color:#fff}.friend-real-name{color:#72767d;font-size:11px}.friend-actions .friend-pref-btn{width:34px;height:34px;border-radius:50%;background:#1e1f22;color:#b5bac1;cursor:pointer}.friend-actions .friend-pref-btn:hover{color:#fff;background:#111214}
.owner-featured-section{margin:14px 0}.owner-featured-section>strong{display:block;font-size:11px;margin-bottom:7px;letter-spacing:.03em}.owner-featured-cards,.owner-featured-draft{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.owner-featured-card{position:relative;height:78px;border-radius:8px;overflow:hidden;background:#111214;border:1px solid #ffffff12;pointer-events:none}.owner-featured-card.has-featured-note{height:112px}.owner-featured-card-banner{position:absolute;inset:0;background:linear-gradient(135deg,#343640,#1e1f22);background-size:cover;background-position:center}.owner-featured-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 15%,#000b 72%,#000e)}.owner-featured-card-avatar{position:absolute;left:9px;bottom:8px;width:34px;height:34px;border-radius:50%;border:3px solid #17181b;background:#313338;overflow:hidden;z-index:2;display:grid;place-items:center;font-size:10px}.owner-featured-card.has-featured-note .owner-featured-card-avatar{bottom:11px}.owner-featured-card-avatar img{width:100%;height:100%;object-fit:cover}.owner-featured-note{position:absolute;left:50px;right:7px;bottom:8px;z-index:3;min-height:36px;display:flex;gap:6px;align-items:flex-start;padding:6px 8px;border-radius:9px;background:#111214e8;border:1px solid #ffffff18;box-shadow:0 5px 16px #0006;backdrop-filter:blur(5px)}.owner-featured-note>span{flex:0 0 auto;font-size:12px;line-height:1.35;color:#c9c4ff}.owner-featured-note p{margin:0;color:#f2f3f5;font-size:10px;line-height:1.32;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.owner-featured-note-music>span{color:#76d7ff}.owner-featured-note-note>span{color:#f0d875}.owner-featured-draft-item{display:grid;gap:7px;padding:8px;background:#25262a;border-radius:7px;min-width:0}.owner-featured-draft-head{display:flex;align-items:center;gap:8px;min-width:0}.owner-featured-draft-head>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.owner-featured-draft-item .avatar{width:30px;height:30px;flex:0 0 30px}.owner-featured-draft-item .owner-featured-remove{margin-left:auto;background:none;color:#f23f42;cursor:pointer;font-size:18px}.owner-featured-message-editor{display:grid;grid-template-columns:108px minmax(0,1fr);gap:6px}.owner-featured-message-editor select,.owner-featured-message-editor input{min-width:0;margin:0;height:34px;font-size:11px}
.pulse-activation-card{position:relative;width:min(470px,calc(100vw - 28px));min-height:420px;padding:54px 38px 34px;border-radius:22px;text-align:center;overflow:hidden;background:radial-gradient(circle at 50% 10%,#7950f2 0,#3d2b86 27%,#171821 62%,#111214 100%);border:1px solid #a98aff66;box-shadow:0 30px 100px #000b,0 0 80px #7c5cff33;color:#fff}.pulse-logo{font-size:13px;letter-spacing:.28em;font-weight:1000;color:#cfc4ff}.pulse-activation-card h2{font-size:28px;margin:18px 0 8px}.pulse-activation-card p{color:#d9d4ef}.pulse-burst{position:relative;width:120px;height:120px;margin:0 auto}.pulse-burst span{position:absolute;inset:0;display:grid;place-items:center;font-size:70px;color:#e9e1ff;animation:pulseStarPop .72s cubic-bezier(.2,.9,.25,1.25)}.pulse-burst i{position:absolute;left:57px;top:4px;width:6px;height:50px;border-radius:9px;background:linear-gradient(#fff,#9e82ff00);transform-origin:3px 56px;animation:pulseRay 1.25s ease-out both}.pulse-burst i:nth-child(2){transform:rotate(72deg)}.pulse-burst i:nth-child(3){transform:rotate(144deg)}.pulse-burst i:nth-child(4){transform:rotate(216deg)}.pulse-burst i:nth-child(5){transform:rotate(288deg)}@keyframes pulseStarPop{0%{transform:scale(.1) rotate(-40deg);opacity:0}70%{transform:scale(1.16) rotate(8deg)}100%{transform:scale(1)}}@keyframes pulseRay{0%{opacity:0;scale:.2}30%{opacity:1}100%{opacity:0;scale:1.35}}.pulse-surprise{font-weight:900;color:#f7d46c!important;font-size:17px}.pulse-days{display:grid;gap:3px;margin:20px auto;padding:13px;border-radius:12px;background:#ffffff0c;border:1px solid #ffffff12}.pulse-days strong{font-size:23px}.pulse-days span{font-size:12px;color:#aeb2bd}.pulse-pulsars-bonus{margin:10px 0 17px;color:#f0d875;font-weight:900}
.server-item{position:relative}.server-pulsar-badge{position:absolute;right:-4px;bottom:-4px;min-width:19px;height:19px;padding:0 3px;border-radius:10px;display:grid;place-items:center;background:#13141a;border:2px solid #1e1f22;color:#f6d75a;font-size:9px;font-weight:950;box-shadow:0 0 8px #f0d75a44}.server-settings-shell{width:min(1080px,calc(100vw - 24px));height:min(760px,calc(100vh - 24px));display:grid;grid-template-columns:235px minmax(0,1fr);background:#111827;border-radius:14px;overflow:hidden;box-shadow:0 24px 90px #000c;border:1px solid #ffffff0b}.server-settings-nav{background:#0c1322;padding:42px 12px 20px 30px}.server-settings-title{font-size:12px;font-weight:950;color:#949ba4;padding:0 10px 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.server-settings-tab{display:block;width:100%;text-align:left;padding:9px 10px;margin:2px 0;border-radius:5px;background:none;color:#aeb4c2;cursor:pointer}.server-settings-tab:hover{background:#ffffff0a;color:#fff}.server-settings-tab.active{background:#273043;color:#fff}.server-settings-tab.pulsar-tab{color:#efd55f}.server-settings-content{position:relative;padding:42px 44px 60px;overflow-y:auto}.server-settings-page{max-width:820px}.server-profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:30px;align-items:start}.server-profile-form label{display:grid;gap:6px;margin:14px 0;color:#b5bac1;font-size:11px;font-weight:800}.server-profile-preview{min-height:190px;border-radius:12px;overflow:hidden;background:linear-gradient(180deg,var(--server-top,#111827),var(--server-bottom,#0b1020));border:1px solid #ffffff12;padding-top:78px;position:sticky;top:10px}.server-preview-banner{position:absolute;inset:0 0 auto;height:78px;background:#252a38;background-size:cover;background-position:center}.server-preview-icon{position:relative;width:58px;height:58px;border-radius:16px;margin:-27px 14px 8px;background:#202636;border:5px solid var(--server-top,#111827);overflow:hidden;display:grid;place-items:center;font-weight:950}.server-preview-icon img{width:100%;height:100%;object-fit:cover}.server-preview-copy{padding:0 15px 16px}.server-preview-copy strong{display:block}.server-preview-copy small{color:#adb3c0}.server-security-card{padding:15px;border:1px solid #ffffff10;background:#ffffff07;border-radius:9px}.pulsar-card{padding:22px;border-radius:14px;background:radial-gradient(circle at 80% 10%,#745b1730,transparent 45%),#151a27;border:1px solid #f0d75a33}.pulsar-star{font-size:55px;color:#f4da68;text-shadow:0 0 24px #f0d75a88}.pulsar-progress{height:10px;border-radius:999px;background:#0c0e13;overflow:hidden;margin:15px 0}.pulsar-progress>span{display:block;height:100%;background:linear-gradient(90deg,#897030,#f4da68);border-radius:inherit}.pulsar-levels{display:flex;justify-content:space-between;color:#949ba4;font-size:11px}.pulsar-balance{margin:12px 0;color:#e9d783}
.changelog-card{position:relative;width:min(690px,calc(100vw - 28px));max-height:min(820px,calc(100vh - 28px));overflow-y:auto;border-radius:18px;background:#17181d;border:1px solid #ffffff13;box-shadow:0 28px 100px #000c;padding:30px}.changelog-kicker{font-size:10px;font-weight:950;letter-spacing:.17em;color:var(--changelog-accent,#8b5cf6)}.changelog-card h2{font-size:28px;margin:9px 0 18px}.changelog-body{white-space:pre-wrap;line-height:1.65;color:var(--changelog-text,#fff)}.changelog-media{display:grid;gap:9px;margin:12px 0 20px}.changelog-media img,.changelog-media video{display:block;max-width:100%;max-height:420px;border-radius:10px;background:#0d0e10;object-fit:contain;margin:auto}.changelog-media video{width:100%}.changelog-actions{display:flex;gap:9px;margin-top:24px}.changelog-media-draft{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0}.changelog-media-chip{padding:7px;border-radius:7px;background:#25262a;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.screen-video-wrap{--screen-crop-top:0px;overflow:hidden}.screen-video-wrap.screen-cropped video{transform:translateY(calc(var(--screen-crop-top) * -1));height:calc(100% + var(--screen-crop-top));object-fit:cover}.screen-card.preview-paused .screen-video-wrap:after{content:"Prévia pausada para economizar recursos";position:absolute;inset:0;display:grid;place-items:center;background:#07080bc7;color:#b5bac1;font-size:12px;font-weight:700;z-index:3}.screen-card.preview-paused video{visibility:hidden}
@media(max-width:760px){.pulse-benefits-grid{grid-template-columns:1fr}.server-settings-shell{grid-template-columns:1fr;height:calc(100vh - 12px);width:calc(100vw - 12px)}.server-settings-nav{padding:8px;display:flex;overflow-x:auto;gap:4px}.server-settings-title{display:none}.server-settings-tab{width:auto;white-space:nowrap}.server-settings-content{padding:58px 16px 28px}.server-profile-layout{grid-template-columns:1fr}.server-profile-preview{position:relative;top:auto;order:-1}.changelog-card{padding:24px 17px}.owner-featured-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-featured-message-editor{grid-template-columns:1fr}.dm-profile-banner{height:92px;flex-basis:92px}.dm-profile-avatar{width:68px!important;height:68px!important;top:-35px}.dm-profile-body{padding-top:42px}}
@media(min-width:1051px) and (max-width:1599px){body.dm-active .app:not(.member-hidden){grid-template-columns:72px 240px minmax(360px,1fr) 300px}}
@media(min-width:1600px){body.dm-active .app:not(.member-hidden){grid-template-columns:76px 280px minmax(560px,1fr) 320px}}
.server-item:has(.server-pulsar-badge){overflow:visible}.server-item:has(.server-pulsar-badge)>img{border-radius:inherit}
\n\n/* V43 — troca de senha */\n.account-password-card{margin-top:22px;padding:18px;background:linear-gradient(180deg,#1e1f22,#1b1c1f);border:1px solid #303238;border-radius:10px}.account-password-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:15px}.account-password-head h3{margin:0 0 4px}.account-password-head p{margin:0;max-width:520px}.account-password-icon{font-size:24px;line-height:1}.password-field{position:relative;margin-bottom:10px}.password-field input{width:100%;padding-right:44px;margin-bottom:0}.password-visibility-btn{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:6px;background:transparent;color:#949ba4;cursor:pointer}.password-visibility-btn:hover{background:#2b2d31;color:#fff}.password-strength{height:4px;background:#2b2d31;border-radius:999px;overflow:hidden;margin:3px 0 6px}.password-strength span{display:block;width:0;height:100%;background:#949ba4;border-radius:inherit;transition:width .16s ease,background .16s ease}.password-strength[data-level="weak"] span{background:#f23f42}.password-strength[data-level="medium"] span{background:#f0b232}.password-strength[data-level="strong"] span{background:#23a55a}.account-password-card .primary-btn{margin-top:14px}.account-password-card .form-error.success{color:#23a55a}@media(max-width:720px){.account-password-card{padding:15px}.account-password-head{gap:10px}.account-password-icon{font-size:20px}}\n
/* V44 — organização de servidor e canais */
.channel-drag-grip,.category-drag-grip{margin-left:auto;color:#666b75;opacity:0;transition:opacity .14s ease,color .14s ease;cursor:grab;font-size:13px;line-height:1}.channel:hover .channel-drag-grip,.category-title:hover .category-drag-grip{opacity:1}.channel-drag-grip:active,.category-drag-grip:active{cursor:grabbing}.category-title .category-drag-grip{margin-left:auto}.category-title .category-add{margin-left:4px}.guild-dragging{opacity:.42}.guild-drop-before{box-shadow:inset 0 2px 0 var(--brand)!important}.guild-drop-after{box-shadow:inset 0 -2px 0 var(--brand)!important}.guild-drop-inside{outline:1px dashed color-mix(in srgb,var(--brand) 75%,white);outline-offset:2px;border-radius:7px}.category{position:relative}.channel{position:relative}.channel-name-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.server-danger-zone{margin-top:24px;padding:18px;border:1px solid rgba(242,63,66,.42);background:rgba(242,63,66,.07);border-radius:10px}.server-danger-zone h3{margin:0 0 6px;color:#ff8a8d}.server-danger-zone p{margin:0 0 14px;color:#b5bac1;line-height:1.45}.server-danger-zone .danger-outline{width:auto}.context-menu button span:last-child{flex:0 0 auto}.context-menu button span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:720px){.channel-drag-grip,.category-drag-grip{display:none}.server-danger-zone{padding:14px}.server-danger-zone .danger-outline{width:100%}}
.channel-pin-mark{font-size:9px;opacity:.62;margin-left:auto}.channel-pin-mark+.channel-drag-grip{margin-left:2px}


/* V45: managed invites + reliable in-app message notifications */
.invite-create-panel{background:#1e1f22;border:1px solid #35373c;border-radius:10px;padding:14px;margin:14px 0 18px}.server-invites-list{display:flex;flex-direction:column;gap:9px;margin-top:10px}.server-invite-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;background:#1e1f22;border:1px solid #35373c;border-radius:9px;padding:11px 12px}.server-invite-main{min-width:0}.server-invite-code{display:flex;align-items:center;gap:8px;font-weight:900;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#fff}.server-invite-code code{font-size:14px;color:#fff}.server-invite-meta{font-size:11px;color:#949ba4;margin-top:5px;line-height:1.45}.server-invite-actions{display:flex;gap:6px;align-items:center}.server-invite-actions button{margin:0!important;width:auto!important}.server-invite-row.expired{opacity:.62}.server-invite-state{font-size:10px;padding:2px 6px;border-radius:999px;background:#2b2d31;color:#b5bac1}.server-invite-state.active{background:#1f4f35;color:#7ee2a8}.server-invite-state.dead{background:#4a2528;color:#ff9da1}
.message-notification-stack{position:fixed;z-index:520;right:18px;top:18px;width:min(370px,calc(100vw - 30px));display:flex;flex-direction:column;gap:9px;pointer-events:none}.message-notification-card{position:relative;pointer-events:auto;display:grid;grid-template-columns:44px minmax(0,1fr) 24px;gap:10px;align-items:center;background:rgba(24,25,28,.96);border:1px solid rgba(255,255,255,.10);border-radius:12px;padding:11px 10px;box-shadow:0 14px 45px rgba(0,0,0,.48);backdrop-filter:blur(14px);transform:translateX(24px) scale(.98);opacity:0;transition:transform .2s ease,opacity .2s ease,border-color .2s ease;overflow:hidden}.message-notification-card.show{transform:translateX(0) scale(1);opacity:1}.message-notification-card:hover{border-color:color-mix(in srgb,var(--brand) 55%,#ffffff22)}.message-notification-avatar{width:42px;height:42px;border-radius:50%;overflow:hidden;background:#313338;display:grid;place-items:center;font-weight:900;color:#fff}.message-notification-avatar img{width:100%;height:100%;object-fit:cover}.message-notification-copy{min-width:0}.message-notification-title{font-size:13px;font-weight:900;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-notification-context{font-size:10px;color:#949ba4;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-notification-body{font-size:12px;color:#dbdee1;margin-top:4px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.message-notification-close{border:0;background:transparent;color:#949ba4;font-size:18px;cursor:pointer;width:24px;height:24px;padding:0;border-radius:6px}.message-notification-close:hover{color:#fff;background:#35373c}.message-notification-progress{position:absolute;left:0;bottom:0;height:2px;background:var(--brand);width:100%;transform-origin:left;animation:messageNoticeProgress 5.8s linear forwards}@keyframes messageNoticeProgress{to{transform:scaleX(0)}}
@media(max-width:720px){.message-notification-stack{left:10px;right:10px;top:10px;width:auto}.message-notification-card{grid-template-columns:40px minmax(0,1fr) 22px;padding:10px 9px;border-radius:11px}.message-notification-avatar{width:38px;height:38px}.server-invite-row{grid-template-columns:1fr}.server-invite-actions{justify-content:flex-start;flex-wrap:wrap}}

/* V47 — detected game activity */
.user-game-activity{display:flex;align-items:center;gap:6px;min-width:0;margin-top:3px;color:#b5bac1;font-size:11px;line-height:1.25}.user-game-activity .activity-dot{width:6px;height:6px;border-radius:50%;background:#23a55a;box-shadow:0 0 7px #23a55a66;flex:0 0 auto}.user-game-activity .activity-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-game-activity{display:flex;gap:10px;align-items:center;margin-top:8px;padding:10px;border-radius:8px;background:#0f1012;border:1px solid #2f3136}.profile-game-activity-icon{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;background:#1f2125;font-size:19px;flex:0 0 auto}.profile-game-activity-copy{min-width:0}.profile-game-activity-copy strong{display:block;font-size:13px}.profile-game-activity-copy small{display:block;color:#949ba4;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.desktop-only-hint{display:none}body.veyra-desktop .desktop-only-hint{display:block}

/* V48 — direct game stream, fixed crop and privacy state */
.user-panel{grid-template-columns:36px 1fr repeat(4,30px)}
.quick-game-stream{background:#da373c!important;color:#fff!important;font-weight:900}
.quick-game-stream:hover{background:#b92d31!important}
.quick-game-stream.game-stream-live{background:#23a55a!important}
.screen-card.source-not-visible .screen-video-wrap::before{content:"O usuário minimizou ou saiu do jogo/aplicativo.";position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:24px;background:#050607;color:#dbdee1;font-size:13px;font-weight:800;z-index:4}
.screen-card.source-not-visible .screen-video-wrap video{visibility:hidden!important}
@media(max-width:720px){.user-panel{grid-template-columns:34px 1fr repeat(4,29px)}}

/* V50 - modal de entrada próprio do Veyra (compatível com Electron) */
.veyra-prompt-modal{z-index:2600!important}
.veyra-prompt-card{width:min(460px,calc(100vw - 28px))}
.veyra-prompt-message{white-space:pre-line;text-align:left!important;margin:10px 0 12px!important;color:var(--text)!important}
.veyra-prompt-input{width:100%;margin:0 0 18px;box-sizing:border-box}
.veyra-prompt-card .button-row{justify-content:flex-end}
.veyra-prompt-card .button-row>*{flex:0 0 auto;min-width:112px}
.veyra-prompt-ok.danger-btn{background:#da373c}
.veyra-prompt-ok.danger-btn:hover{background:#a1282c}

.sidebar-load-more{width:calc(100% - 16px);margin:8px;border:0;border-radius:8px;padding:8px 10px;background:rgba(255,255,255,.045);color:var(--muted,#aeb3bd);font:inherit;font-size:12px;cursor:pointer}.sidebar-load-more:hover{background:rgba(255,255,255,.075);color:var(--text,#fff)}

/* V53 — perfil completo responsivo em viewports pequenas */
#userProfileModal{padding:clamp(6px,1.8vh,18px);overflow:hidden}
#userProfileModal .user-profile-popout{
  width:min(420px,calc(100vw - 20px));
  max-height:min(680px,calc(100dvh - 20px));
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  -webkit-overflow-scrolling:touch;
}
#userProfileModal .user-profile-popout>.profile-banner{height:96px;min-height:96px}
#userProfileModal .popout-body{padding:44px 14px 14px}
#userProfileModal .popout-avatar{top:-38px!important;left:14px;width:76px;height:76px;border-width:5px;font-size:21px}
#userProfileModal .popout-body h2{font-size:22px;line-height:1.15}
#userProfileModal .profile-badges{margin:9px 0;gap:5px}
#userProfileModal .badge-pill{max-width:100%;white-space:nowrap}
#userProfileModal .profile-section{padding:10px;margin:10px 0}
#userProfileModal .profile-section p{margin-top:5px;line-height:1.4}
#userProfileModal .profile-actions{gap:6px}
#userProfileModal .badge-manager{margin-top:13px;padding-top:10px}
#userProfileModal .badge-manager h3{font-size:16px;margin:8px 0 10px}
#userProfileModal .badge-checks{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#userProfileModal .badge-check{min-width:0;padding:7px;font-size:12px;line-height:1.15}
#userProfileModal .badge-check input{flex:0 0 auto}

@media(max-height:800px){
  #userProfileModal .user-profile-popout{max-height:calc(100dvh - 24px);width:min(392px,calc(100vw - 20px))}
  #userProfileModal .user-profile-popout>.profile-banner{height:82px;min-height:82px}
  #userProfileModal .popout-body{padding:38px 13px 12px}
  #userProfileModal .popout-avatar{top:-34px!important;width:68px;height:68px;font-size:19px}
  #userProfileModal .popout-body h2{font-size:20px}
  #userProfileModal .profile-badges{margin:7px 0}
  #userProfileModal .profile-section{padding:9px;margin:8px 0}
  #userProfileModal .profile-section p{font-size:13px}
  #userProfileModal .badge-manager{margin-top:10px;padding-top:8px}
  #userProfileModal .badge-manager h3{margin:6px 0 8px;font-size:15px}
  #userProfileModal .badge-check{padding:6px;font-size:11px}
}

@media(max-height:620px){
  #userProfileModal .user-profile-popout{max-height:calc(100dvh - 12px);width:min(370px,calc(100vw - 12px))}
  #userProfileModal .user-profile-popout>.profile-banner{height:68px;min-height:68px}
  #userProfileModal .popout-body{padding:33px 11px 10px}
  #userProfileModal .popout-avatar{top:-30px!important;left:11px;width:60px;height:60px;border-width:4px;font-size:17px}
  #userProfileModal .popout-body h2{font-size:18px}
  #userProfileModal .profile-badges{margin:5px 0}
  #userProfileModal .profile-section{padding:8px;margin:6px 0}
  #userProfileModal .badge-manager{margin-top:8px;padding-top:7px}
}

@media(max-width:520px){
  #userProfileModal{padding:6px;align-items:center}
  #userProfileModal .user-profile-popout{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:10px}
  #userProfileModal .user-profile-popout>.profile-banner{height:86px;min-height:86px}
  #userProfileModal .popout-body{padding:39px 12px 12px}
  #userProfileModal .popout-avatar{top:-34px!important;left:12px;width:68px;height:68px;border-width:5px;font-size:19px}
  #userProfileModal .popout-body h2{font-size:20px}
  #userProfileModal .profile-close{right:8px;top:7px}
  #userProfileModal .profile-section{margin:8px 0}
  #userProfileModal .badge-checks{grid-template-columns:repeat(2,minmax(0,1fr))}
  #userProfileModal .badge-check{padding:6px 5px;font-size:11px}
  #userProfileModal .profile-actions .primary-btn,
  #userProfileModal .profile-actions .secondary-btn{min-height:38px;padding:8px 10px}
}

@media(max-width:340px){
  #userProfileModal .popout-body{padding-left:9px;padding-right:9px}
  #userProfileModal .badge-check{font-size:10px;gap:4px}
  #userProfileModal .badge-pill{font-size:9px;padding:3px 5px}
}

/* V54 — Pulse Social */
.avatar.has-pulse-status,.message-avatar.has-pulse-status{overflow:visible;position:relative;isolation:isolate;cursor:pointer}
.avatar.has-pulse-status:before,.message-avatar.has-pulse-status:before{content:"";position:absolute;inset:-3px;border-radius:inherit;padding:2px;background:conic-gradient(from 20deg,#ff3d8d,#ffb13b,#8b5cf6,#4cc9ff,#ff3d8d);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;z-index:2}
.avatar.has-pulse-status>img,.message-avatar.has-pulse-status>img{border-radius:inherit}
.pulse-note-pill{display:inline-flex;align-items:center;max-width:100%;gap:5px;margin-top:3px;padding:3px 7px;border-radius:999px;background:rgba(88,101,242,.13);border:1px solid rgba(139,92,246,.28);color:#d9dcff;font-size:10px;line-height:14px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pulse-note-pill:hover{background:rgba(88,101,242,.23);color:#fff}.pulse-note-pill.music{background:linear-gradient(90deg,rgba(235,69,158,.14),rgba(88,101,242,.16))}.pulse-note-pill span{overflow:hidden;text-overflow:ellipsis}.pulse-social-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.pulse-social-actions .secondary-btn{margin-top:0;width:auto}.pulse-social-create-card{width:min(480px,calc(100vw - 28px))}.pulse-note-type{margin-bottom:14px}
.pulse-status-viewer-modal{background:rgba(0,0,0,.82);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.pulse-status-viewer{position:relative;width:min(430px,94vw);height:min(760px,94dvh);border-radius:18px;overflow:hidden;background:#0d0e10;box-shadow:0 24px 90px #000c;display:flex;flex-direction:column}.pulse-status-stage{position:absolute;inset:0;display:grid;place-items:center;background:#090a0c}.pulse-status-stage img,.pulse-status-stage video{width:100%;height:100%;object-fit:contain;display:block}.pulse-status-header{position:absolute;left:16px;right:54px;top:28px;z-index:5;display:flex;align-items:center;gap:9px;color:#fff;text-shadow:0 1px 4px #000}.pulse-status-header .avatar{width:34px;height:34px;flex:0 0 34px}.pulse-status-header strong{font-size:13px}.pulse-status-header small{display:block;color:#ddd;font-size:10px}.pulse-status-progress{position:absolute;z-index:6;left:10px;right:10px;top:10px;display:flex;gap:4px}.pulse-status-progress span{height:3px;flex:1;border-radius:3px;background:#ffffff40;overflow:hidden}.pulse-status-progress i{display:block;width:0;height:100%;background:#fff}.pulse-status-progress span.done i{width:100%}.pulse-status-progress span.active i{animation:pulseStatusProgress var(--status-duration,5s) linear forwards}@keyframes pulseStatusProgress{to{width:100%}}.pulse-status-close{position:absolute;right:12px;top:24px;z-index:8;width:34px;height:34px;border-radius:50%;background:#0008;color:#fff;font-size:22px;cursor:pointer}.pulse-status-nav{position:absolute;top:70px;bottom:50px;width:34%;z-index:4;background:transparent;cursor:pointer}.pulse-status-nav.prev{left:0}.pulse-status-nav.next{right:0}.pulse-status-caption{position:absolute;left:14px;right:14px;bottom:14px;z-index:6;padding:9px 12px;border-radius:10px;background:#0008;color:#fff;text-align:center;font-size:13px;backdrop-filter:blur(6px)}.pulse-status-caption:empty{display:none}
.attachment-chip{flex-wrap:wrap}.attachment-chip-main{display:flex;align-items:center;gap:7px}.attachment-chip-options{display:flex;gap:5px;width:100%}.attachment-option-btn{border:1px solid #ffffff14!important;background:#18191c!important;color:#b5bac1!important;border-radius:5px!important;padding:3px 6px!important;font-size:10px!important;cursor:pointer}.attachment-option-btn.active{border-color:var(--brand)!important;color:#fff!important;background:color-mix(in srgb,var(--brand) 28%,#18191c)!important}
.protected-media{min-width:210px;max-width:min(520px,100%);min-height:130px;border-radius:9px;border:1px solid #ffffff14;background:linear-gradient(135deg,#1f2024,#292b31);color:#fff;display:grid;place-items:center;padding:18px;cursor:pointer;text-align:center;position:relative;overflow:hidden}.protected-media:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 30%,#5865f233,transparent 38%),radial-gradient(circle at 80% 70%,#eb459e22,transparent 36%);filter:blur(12px)}.protected-media>span{position:relative;z-index:1}.protected-media strong{display:block;font-size:13px;margin-bottom:4px}.protected-media small{color:#b5bac1}.protected-media.exhausted{cursor:default;opacity:.58}.spoiler-media-revealed{max-width:min(520px,100%)}
.limited-media-modal-card{position:relative;width:min(900px,94vw);max-height:92dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:14px;background:#0b0c0e;overflow:hidden;box-shadow:0 20px 90px #000}.limited-media-body{display:grid;place-items:center;max-width:100%;max-height:84dvh}.limited-media-body img,.limited-media-body video{max-width:94vw;max-height:84dvh;object-fit:contain}.limited-media-hint{padding:9px 14px;color:#b5bac1;font-size:12px}.limited-media-modal-card .modal-close{z-index:3;background:#000a;border-radius:50%;right:10px;top:10px}
@media(max-width:600px){.pulse-status-viewer{width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0}.pulse-status-stage img,.pulse-status-stage video{object-fit:contain}.pulse-social-actions{display:grid;grid-template-columns:1fr 1fr}.protected-media{min-width:min(220px,76vw);min-height:110px}.pulse-note-pill{max-width:160px}}

.protected-media.spoiler[style*="--spoiler-preview"]:after{content:"";position:absolute;inset:-18px;background-image:var(--spoiler-preview);background-size:cover;background-position:center;filter:blur(16px) saturate(.8);transform:scale(1.3);opacity:.72;z-index:0}.protected-media.spoiler[style*="--spoiler-preview"]:before{background:rgba(8,9,11,.26);filter:none;z-index:1}.protected-media.spoiler[style*="--spoiler-preview"]>span{z-index:2;text-shadow:0 1px 4px #000}


/* V55 — Notes anchored to avatar/profile + local media cache */
.pulse-note-avatar-shell{position:relative;display:inline-flex;flex:0 0 auto;overflow:visible;align-items:center;justify-content:center}
.pulse-note-avatar-shell>.avatar{margin:0}
.pulse-note-avatar-bubble{position:absolute;z-index:8;left:50%;bottom:calc(100% - 2px);transform:translateX(-18%);max-width:132px;min-width:34px;height:24px;padding:3px 8px;border:1px solid #ffffff16;border-radius:12px;background:#242529;color:#f2f3f5;box-shadow:0 4px 14px #0008;display:flex;align-items:center;gap:4px;font-size:9px;line-height:1;white-space:nowrap;overflow:hidden;cursor:pointer;pointer-events:auto}
.pulse-note-avatar-bubble.music{background:linear-gradient(90deg,#31253d,#24273c)}
.pulse-note-avatar-bubble b{font-size:9px;flex:0 0 auto}.pulse-note-avatar-bubble span{overflow:hidden;text-overflow:ellipsis;max-width:94px}
.dm-sidebar-item,.friend-card,.member{overflow:visible}
.dm-sidebar-item .pulse-note-avatar-shell,.member-avatar-wrap .pulse-note-avatar-shell{margin-right:0}
.dm-sidebar-item .pulse-note-avatar-bubble{max-width:100px;bottom:calc(100% - 1px);transform:translateX(-16%)}
.member .pulse-note-avatar-bubble{max-width:96px;bottom:calc(100% - 2px)}
.friend-card .pulse-note-avatar-bubble{max-width:128px;bottom:calc(100% - 2px)}

#userProfileModal .user-profile-popout{position:relative;overflow:hidden}
#profilePulseNoteSlot.profile-pulse-note-slot{position:absolute;z-index:12;top:50px;left:96px;right:46px;min-height:28px;pointer-events:none}
.profile-pulse-note-bubble{display:inline-flex;align-items:center;gap:6px;max-width:min(250px,100%);padding:7px 12px;border-radius:15px 15px 15px 5px;background:rgba(26,27,31,.94);border:1px solid #ffffff1b;color:#f2f3f5;box-shadow:0 7px 22px #0007;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);font-size:12px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-pulse-note-bubble.music{background:linear-gradient(90deg,rgba(49,37,61,.97),rgba(36,39,60,.97))}.profile-pulse-note-bubble span{overflow:hidden;text-overflow:ellipsis}
.dm-profile-card{position:relative}.dm-profile-note-slot{position:absolute;z-index:7;top:42px;left:78px;right:10px;pointer-events:none}.dm-profile-note-slot .profile-pulse-note-bubble{font-size:10px;padding:5px 9px;max-width:180px}

@media(max-width:600px){
  #profilePulseNoteSlot.profile-pulse-note-slot{top:48px;left:88px;right:40px}
  .profile-pulse-note-bubble{font-size:11px;max-width:min(220px,100%);padding:6px 10px}
  .pulse-note-avatar-bubble{max-width:92px;font-size:8px;height:22px;padding:3px 7px}
}

.dm-sidebar-item:has(.pulse-note-avatar-bubble:not(.hidden)){margin-top:13px}
.member:has(.pulse-note-avatar-bubble:not(.hidden)){margin-top:8px}

.composer textarea{min-width:0}.send-message-btn{align-self:center;justify-self:center;white-space:nowrap}

/* V63 — Veyra original workspace redesign */
:root{
  --bg-deep:#071017;
  --bg-rail:#0b151f;
  --bg-sidebar:#0f1c28;
  --bg-main:#101923;
  --bg-input:#142331;
  --bg-hover:#172838;
  --bg-active:#1b3042;
  --line:#203545;
  --text:#edf5fb;
  --muted:#91a8b9;
  --accent:#61d3c4;
  --brand:#61d3c4;
  --brand-hover:#79e2d4;
  --corner-radius:12px;
}
html,body{background:#081119;color:var(--text)}
body{background:radial-gradient(circle at 72% -10%,rgba(63,143,156,.18),transparent 34%),linear-gradient(145deg,#071017 0,#0a141d 55%,#0c1822 100%)}
.global-background{background:#071017}
.global-bg-shade{background:linear-gradient(180deg,rgba(3,9,13,.22),rgba(4,10,15,.54));backdrop-filter:blur(2px)}

/* Login identity */
.auth-screen{background:linear-gradient(135deg,#07131b 0,#0e2b32 48%,#112536 100%)}
.auth-screen:before{background:#36b9aa;left:8vw;top:8vh;bottom:auto}.auth-screen:after{background:#3977aa;right:9vw;bottom:8vh;top:auto}
.auth-card{width:min(520px,calc(100vw - 32px));background:rgba(7,16,23,.90);border:1px solid rgba(136,226,214,.14);border-radius:22px;padding:36px;backdrop-filter:blur(20px);box-shadow:0 28px 80px rgba(0,0,0,.36)}
.brand-mark{border-radius:10px;transform:rotate(45deg);background:linear-gradient(145deg,#61d3c4,#55a6cb);box-shadow:0 10px 32px rgba(97,211,196,.18)}
.brand-mark>*{transform:rotate(-45deg)}
.auth-card .brand-mark{color:#062018}
.auth-card h1{font-size:28px;letter-spacing:-.03em}
.primary-btn{background:#61d3c4;color:#08201e;border-radius:11px;box-shadow:none}.primary-btn:hover{background:#79e2d4}
.secondary-btn{background:#173041;border:1px solid #24475d;border-radius:11px}
input,textarea,select{border-radius:10px;background:#0b1721;border:1px solid #203746;color:#edf5fb}
input:focus,textarea:focus,select:focus{border-color:#61d3c4;box-shadow:0 0 0 3px rgba(97,211,196,.11)}

/* Structural identity: spaces across the top, rooms left, people as a floating sheet */
.app{
  display:grid!important;
  grid-template-columns:286px minmax(0,1fr)!important;
  grid-template-rows:76px minmax(0,1fr)!important;
  grid-template-areas:"spaces spaces" "rooms conversation"!important;
  gap:0!important;
  padding:0!important;
  background:transparent!important;
}
.server-rail{
  grid-area:spaces;
  width:auto!important;
  height:76px;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start;
  gap:8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:11px 18px!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.055)!important;
  border-radius:0!important;
  background:rgba(7,15,22,.86)!important;
  box-shadow:none!important;
  backdrop-filter:blur(18px);
}
.server-rail:before{
  content:"VEYRA";
  position:relative!important;
  left:auto!important;
  width:auto!important;
  height:auto!important;
  margin-right:12px;
  padding-right:18px;
  border-right:1px solid rgba(255,255,255,.09);
  background:none!important;
  color:#dffbf6;
  font-size:13px;
  font-weight:900;
  letter-spacing:.22em;
  border-radius:0!important;
  flex:0 0 auto;
}
.server-item{
  width:50px!important;
  height:44px!important;
  flex:0 0 50px!important;
  border-radius:11px!important;
  background:#10212e!important;
  color:#bcd0dd!important;
  border:1px solid rgba(255,255,255,.045);
  box-shadow:none!important;
  transform:none!important;
}
.server-item img{border-radius:10px}
.server-item:hover{background:#173040!important;color:#fff!important;border-color:#2d5367;transform:translateY(-1px)!important}
.server-item.active{background:#163b3b!important;color:#8cf0e2!important;border-color:rgba(97,211,196,.45);box-shadow:inset 0 -2px 0 #61d3c4!important}
.server-item:after{display:none!important}.server-item:before{display:none!important}
.server-item.home{font-size:18px!important;border-radius:11px!important}
.server-item.add-server{color:#71d9a5!important;font-size:22px!important}.server-item.add-server:hover{background:#143628!important;color:#9af2be!important}
.server-sep{width:1px!important;height:30px!important;background:rgba(255,255,255,.09)!important;margin:0 4px}

.channel-sidebar{
  grid-area:rooms;
  min-width:0;
  margin:14px 0 14px 14px;
  border:1px solid rgba(255,255,255,.055)!important;
  border-radius:16px!important;
  overflow:hidden;
  background:rgba(13,27,39,.88)!important;
  box-shadow:none!important;
  backdrop-filter:blur(14px);
}
.guild-header{height:54px!important;padding:0 16px!important;background:rgba(255,255,255,.015)!important;border-bottom:1px solid rgba(255,255,255,.055);box-shadow:none!important;font-size:14px;letter-spacing:.01em}
.guild-header:hover{background:rgba(255,255,255,.035)!important}
.channel-scroll{padding:12px 10px!important}
.category-title{padding:8px 8px 5px!important;color:#6f96a6!important;font-size:10px!important;letter-spacing:.13em;text-transform:uppercase}
.channel{
  min-height:38px!important;
  height:auto!important;
  margin:2px 0!important;
  padding:0 9px!important;
  border-radius:9px!important;
  color:#a9bfcc!important;
  background:transparent!important;
  border:1px solid transparent;
  transition:background .12s ease,border-color .12s ease,color .12s ease!important;
}
.channel:hover{background:#142737!important;color:#eaf6fb!important;transform:none!important}
.channel.active{background:#102b2d!important;color:#9ce9df!important;border-color:rgba(97,211,196,.20)!important;box-shadow:none!important}
.channel .kind{width:24px!important;height:24px;display:grid;place-items:center;border-radius:7px;background:#0b1822;color:#7394a5!important;font-size:13px!important}
.channel.active .kind{background:#173d3b;color:#8eeadd!important}
.user-panel{background:#09151f!important;border-top:1px solid rgba(255,255,255,.055)!important;padding:8px 9px!important}
.user-panel .avatar,.member .avatar{border-radius:9px!important}
.online-dot{border-color:#09151f!important}
.panel-icon{border-radius:8px!important}.panel-icon:hover{background:#142737!important}

.chat-area{
  grid-area:conversation;
  position:relative;
  margin:14px;
  border:1px solid rgba(255,255,255,.055)!important;
  border-radius:16px!important;
  overflow:hidden!important;
  background:rgba(10,20,29,.76)!important;
  box-shadow:none!important;
  backdrop-filter:blur(10px);
}
.topbar{height:54px!important;padding:0 16px 0 18px!important;background:rgba(8,17,25,.70);border-bottom:1px solid rgba(255,255,255,.055);box-shadow:none!important}
.channel-title{gap:10px!important}.channel-title strong{font-size:15px;letter-spacing:.005em}
.hash{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#112532;color:#61d3c4!important;font-size:0!important}
.hash:before{content:"◆";font-size:10px!important}
.top-actions{gap:4px!important}.top-icon{width:34px;height:34px;padding:0!important;border-radius:9px!important;display:grid;place-items:center}.top-icon:hover{background:#142737!important;color:#fff!important}
.search{height:34px!important;width:170px!important;border-radius:9px!important;background:#07131c!important;border:1px solid #1d3341;padding:0 9px!important}

/* Messages: editorial stream, not speech bubbles */
.messages{padding:8px 18px 14px!important;scrollbar-color:#213847 transparent}
.message{
  grid-template-columns:42px minmax(0,1fr)!important;
  column-gap:12px;
  padding:12px 10px!important;
  margin:0!important;
  border-radius:0!important;
  border-bottom:1px solid rgba(255,255,255,.045);
  background:transparent!important;
}
.message:last-child{border-bottom-color:transparent}
.message:hover{background:linear-gradient(90deg,rgba(97,211,196,.035),transparent 72%)!important}
.message-avatar{width:36px!important;height:36px!important;border-radius:9px!important;margin-top:1px!important;background:linear-gradient(145deg,#4bc5b5,#477fa1)!important}
.message-head{line-height:20px!important;gap:9px!important;margin:0!important}.message-author{font-size:14px!important;font-weight:750!important;color:#e7f4f7!important}.message-time{font-size:10px!important;color:#6f8796!important}
.message-content{display:block!important;max-width:none!important;padding:2px 0 0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#cbdbe4!important;line-height:1.5!important}
.message:hover .message-content{background:transparent!important}
.empty-channel{padding:46px 28px!important}.empty-icon{border-radius:12px!important;background:#112a36!important;color:#65d4c5!important}.empty-channel h2{font-size:26px!important}

/* Composer as a command bar */
.typing{padding:0 24px!important;color:#7894a4!important}
.composer-wrap{padding:0 18px 16px!important;background:transparent!important}
.composer{
  min-height:50px!important;
  border-radius:12px!important;
  background:#0b1822!important;
  border:1px solid #1e3745!important;
  box-shadow:0 8px 24px rgba(0,0,0,.10)!important;
}
.composer:focus-within{border-color:rgba(97,211,196,.52)!important;box-shadow:0 0 0 3px rgba(97,211,196,.07)!important}
.composer textarea{color:#e8f2f7!important;padding:14px 4px!important}.composer textarea::placeholder{color:#66808f!important}
.add-btn{width:28px!important;height:28px!important;border-radius:8px!important;margin-left:10px!important;background:#163847!important;color:#76dfd1!important}
.compose-icon{min-width:34px;color:#7f9ba9!important}.compose-icon:hover{color:#b9eee7!important;background:#122936;border-radius:8px}
.send-message-btn{margin-right:7px;background:#163b3b!important;color:#8beadd!important;border-radius:8px!important}

/* People panel floats over the conversation instead of owning a permanent column */
.member-sidebar{
  position:absolute!important;
  z-index:45!important;
  right:24px!important;
  top:92px!important;
  bottom:24px!important;
  width:286px!important;
  padding:14px 10px!important;
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:15px!important;
  background:rgba(8,18,27,.95)!important;
  box-shadow:0 24px 70px rgba(0,0,0,.38)!important;
  backdrop-filter:blur(20px);
}
.member-sidebar.user-hidden,.app.member-hidden .member-sidebar{display:none!important}
.member-sidebar .member{min-height:46px!important;margin:2px 0!important;padding:6px 7px!important;border-radius:9px!important;background:transparent!important;border:0!important}
.member-sidebar .member:hover{background:#142737!important}
.member-group-title{color:#6f96a6!important;font-size:9px!important;letter-spacing:.14em;text-transform:uppercase}
.member .avatar{width:32px!important;height:32px!important}
.member-name{color:#cbdce5!important;font-weight:650!important}

/* Dialogs/settings */
.modal{background:rgba(2,7,11,.70)!important;backdrop-filter:blur(8px)}
.modal-card,.voice-card,.settings-shell,.profile-editor-card,.account-card,.nitro-card,.theme-card,.context-menu,.mention-picker,.emoji-picker{
  border-radius:15px!important;
  border:1px solid rgba(255,255,255,.075)!important;
  background:#0b1822!important;
  box-shadow:0 28px 80px rgba(0,0,0,.42)!important;
}
.settings-shell{overflow:hidden!important}.settings-nav{background:#0d1d29!important;border-right:1px solid rgba(255,255,255,.055)!important}.settings-tab{border-radius:8px!important}.settings-tab.active{background:#133234!important;color:#98e9df!important;box-shadow:none!important}
.context-menu button:hover{background:#17393a!important;color:#9eede3!important}

/* Background mode keeps the same Veyra silhouette */
body.has-global-bg .server-rail{background:rgba(5,13,19,.72)!important;backdrop-filter:blur(18px)}
body.has-global-bg .channel-sidebar{background:rgba(8,20,29,.72)!important;backdrop-filter:blur(18px)}
body.has-global-bg .chat-area{background:rgba(6,15,22,.56)!important;backdrop-filter:blur(12px)}
body.has-global-bg .member-sidebar{background:rgba(6,15,22,.86)!important;backdrop-filter:blur(20px)}

/* Compact layout */
@media(max-width:1050px){
  .app{grid-template-columns:248px minmax(0,1fr)!important}
  .member-sidebar{display:none!important}
  body.members-overlay-open .member-sidebar{display:block!important;position:fixed!important;right:10px!important;top:86px!important;bottom:10px!important;width:min(300px,88vw)!important}
}
@media(max-width:760px){
  .app{grid-template-columns:1fr!important;grid-template-rows:66px minmax(0,1fr)!important;grid-template-areas:"spaces" "conversation"!important}
  .server-rail{height:66px!important;padding:9px 10px!important}.server-rail:before{font-size:10px;margin-right:4px;padding-right:10px}.server-item{width:46px!important;height:40px!important;flex-basis:46px!important}
  .chat-area{margin:8px!important;border-radius:13px!important}
  .channel-sidebar{display:none!important;position:fixed!important;z-index:95!important;left:8px!important;top:74px!important;bottom:8px!important;width:min(300px,88vw)!important;margin:0!important;border-radius:13px!important;box-shadow:0 24px 70px rgba(0,0,0,.46)!important}
  body.mobile-sidebar-open .channel-sidebar{display:grid!important}
  body.members-overlay-open .member-sidebar{display:block!important;position:fixed!important;z-index:96!important;right:8px!important;top:74px!important;bottom:8px!important;width:min(300px,88vw)!important}
  .topbar{height:50px!important}.search{display:none!important}.messages{padding:6px 8px 10px!important}.message{padding:10px 6px!important;grid-template-columns:38px minmax(0,1fr)!important;column-gap:9px}.message-avatar{width:32px!important;height:32px!important}.composer-wrap{padding:0 8px max(8px,env(safe-area-inset-bottom))!important}.composer{border-radius:10px!important}
}
@media(max-width:420px){
  .server-rail:before{content:"V";font-size:13px;letter-spacing:0}.server-sep{display:none}.top-actions{gap:1px!important}.top-icon{width:30px!important;height:30px!important}.channel-title strong{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}


/* v63.1 — mobile stability + cleaner minimalism */
.server-rail,.channel-sidebar,.chat-area,.member-sidebar{border-color:rgba(255,255,255,.045)!important}
.server-rail{padding:10px 16px!important;background:rgba(7,15,22,.82)!important}
.channel-sidebar,.chat-area{background:rgba(10,19,28,.84)!important}
.guild-header,.topbar{background:rgba(8,17,25,.54)!important}
.channel-scroll{padding:10px 9px!important}
.channel{min-height:36px!important;border-radius:8px!important}
.channel .kind{border-radius:6px!important}
.message{padding:10px 8px!important}
.message-avatar{border-radius:8px!important}
.message-head{gap:7px!important}
.message-content{font-size:14px!important}
.composer{min-height:48px!important;border-radius:10px!important;box-shadow:none!important}
.top-icon,.panel-icon{opacity:.92}
.friend-card{padding:10px 9px!important;border-radius:10px!important;min-height:56px!important}
.friend-card .avatar{width:38px!important;height:38px!important;flex-basis:38px!important}
.friend-actions{gap:5px!important;flex-wrap:nowrap!important;align-items:center!important}
.friend-actions .round-action,.friend-actions .friend-pref-btn{width:30px!important;height:30px!important}
.home-view{padding:10px 14px 22px!important}.home-hero{padding:4px 0 14px!important}
.home-dm-title{padding:14px 8px 6px!important}
.dm-sidebar-item{border-radius:10px!important}
.dm-sidebar-item .avatar{width:28px!important;height:28px!important;flex-basis:28px!important}
.dm-sidebar-copy strong{font-size:13px!important}
.member-sidebar{width:300px!important;border-radius:14px!important}
.dm-profile-card{border-radius:12px!important}

@media(max-width:900px){
  .app,.app.member-hidden{grid-template-columns:1fr!important;grid-template-rows:58px minmax(0,1fr)!important;grid-template-areas:"spaces" "conversation"!important;height:100dvh!important;width:100vw!important}
  .server-rail{grid-area:spaces!important;height:58px!important;padding:7px 10px!important;gap:6px!important;overflow-x:auto!important;overflow-y:hidden!important}
  .server-rail:before{content:"V"!important;font-size:12px!important;letter-spacing:.08em!important;margin-right:6px!important;padding-right:10px!important}
  .server-item{width:40px!important;height:36px!important;flex:0 0 40px!important;border-radius:10px!important;font-size:16px!important}
  .server-item.home{font-size:16px!important}
  .server-item.add-server{font-size:20px!important}
  .server-sep{display:none!important}

  .chat-area{grid-area:conversation!important;margin:6px!important;border-radius:12px!important;min-width:0!important;min-height:0!important}
  .topbar{height:46px!important;padding:0 8px 0 10px!important}
  .channel-title{min-width:0!important;gap:8px!important}
  .channel-title strong{display:block;max-width:52vw!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .hash{width:24px!important;height:24px!important;border-radius:7px!important}
  .top-actions{gap:2px!important;flex-wrap:nowrap!important}
  .top-actions .top-icon{width:28px!important;height:28px!important;font-size:15px!important;border-radius:8px!important}
  .search,#searchBox{display:none!important}

  .channel-sidebar{display:none!important;position:fixed!important;z-index:130!important;left:6px!important;top:64px!important;bottom:6px!important;width:min(320px,calc(100vw - 12px))!important;margin:0!important;border-radius:12px!important;box-shadow:0 18px 50px rgba(0,0,0,.35)!important;background:rgba(8,17,25,.97)!important}
  body.mobile-sidebar-open .channel-sidebar{display:grid!important}
  .guild-header{height:50px!important;padding:0 14px!important}
  .channel-scroll{padding:8px!important}
  .category-title{padding:7px 7px 4px!important}
  .channel{min-height:36px!important;padding:0 8px!important}
  .user-panel{padding:7px!important;grid-template-columns:32px 1fr repeat(3,28px)!important}
  .user-panel .avatar{width:32px!important;height:32px!important}
  .panel-icon{width:28px!important;height:28px!important}

  .member-sidebar{display:none!important;position:fixed!important;z-index:131!important;right:6px!important;top:64px!important;bottom:6px!important;left:auto!important;width:min(320px,calc(100vw - 12px))!important;padding:10px 8px!important;border-radius:12px!important;background:rgba(8,17,25,.98)!important;box-shadow:0 18px 50px rgba(0,0,0,.35)!important}
  body.members-overlay-open .member-sidebar{display:block!important}

  .messages{padding:6px 6px 10px!important}
  .message{grid-template-columns:36px minmax(0,1fr)!important;column-gap:8px!important;padding:9px 4px!important}
  .message-avatar{width:30px!important;height:30px!important}
  .message-author{font-size:13px!important}.message-time{font-size:10px!important}
  .composer-wrap{padding:0 8px max(8px,env(safe-area-inset-bottom))!important}
  .composer{grid-template-columns:36px minmax(0,1fr) auto auto auto!important}
  .compose-icon{min-width:30px!important;padding:6px!important}
  .add-btn{width:24px!important;height:24px!important;margin-left:8px!important}
  .composer textarea{padding:12px 2px!important;font-size:14px!important}
  .typing{padding:0 12px!important}

  .home-view{padding:8px 10px 18px!important}
  .home-hero{padding:4px 0 12px!important;gap:10px!important;align-items:flex-start!important;flex-direction:column!important}
  .friend-section{margin-top:16px!important}
  .friend-section h3{margin:0 0 8px!important}
  .friend-card{padding:9px 7px!important;min-height:54px!important;gap:8px!important}
  .friend-card .avatar{width:34px!important;height:34px!important;flex-basis:34px!important}
  .friend-card-copy{min-width:0!important}
  .friend-card-copy strong,.friend-card-copy span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .friend-actions{gap:4px!important;flex:0 0 auto!important}
  .round-action,.friend-actions .friend-pref-btn,.friend-message-btn,.friend-cancel-btn{border-radius:8px!important}

  .dm-profile-panel{padding:10px 8px!important}
  .dm-profile-card{min-height:auto!important}
  .dm-profile-banner{height:86px!important}
  .dm-profile-avatar{width:62px!important;height:62px!important;top:-30px!important}
  .dm-profile-body{padding:38px 10px 12px!important}
}

@media(max-width:420px){
  .channel-title strong{max-width:46vw!important}
  .top-actions .top-icon{width:27px!important;height:27px!important}
  .topbar{padding-right:6px!important}
  .channel-sidebar,.member-sidebar{width:calc(100vw - 12px)!important}
  .friend-card{align-items:center!important}
  .friend-actions .round-action,.friend-actions .friend-pref-btn{width:28px!important;height:28px!important}
}

@media(max-width:340px){
  .server-item{width:36px!important;height:34px!important;flex-basis:36px!important}
  .top-actions .top-icon{width:25px!important;height:25px!important;font-size:14px!important}
  .friend-card{gap:6px!important}
  .friend-card .avatar{width:30px!important;height:30px!important;flex-basis:30px!important}
  .friend-card-copy strong{font-size:13px!important}
  .friend-card-copy span{font-size:11px!important}
  .friend-actions .round-action,.friend-actions .friend-pref-btn{width:26px!important;height:26px!important}
}


/* V64 — responsive minimal workspace */
:root{
  --v64-edge:rgba(255,255,255,.045);
  --v64-panel:#0a151e;
  --v64-panel-2:#0d1a25;
  --v64-soft:#112330;
}

/* quieter, flatter surfaces */
.server-rail,.channel-sidebar,.chat-area,.member-sidebar{box-shadow:none!important}
.channel-sidebar,.chat-area,.member-sidebar{border-color:var(--v64-edge)!important}
.guild-header,.topbar,.user-panel{box-shadow:none!important}
.top-icon,.panel-icon,.compose-icon{transition:background .12s ease,color .12s ease,opacity .12s ease!important}
.channel,.friend-card,.member{transition:background .12s ease,color .12s ease,border-color .12s ease!important}

/* friend cards: actions never collide with identity/content */
.friend-card{position:relative!important;min-width:0!important;overflow:visible!important}
.friend-card-copy{min-width:0!important}
.friend-card-copy strong,.friend-card-copy>span{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.friend-actions{position:relative!important;z-index:2!important;flex:0 0 auto!important}
.friend-actions button{flex:0 0 auto!important}
.friend-card .badge-row{flex:0 1 auto!important;min-width:0!important;overflow:hidden!important}

/* desktop / ultrawide */
@media(min-width:1400px){
  .app{grid-template-columns:300px minmax(0,1fr)!important;grid-template-rows:70px minmax(0,1fr)!important}
  .server-rail{height:70px!important;padding:9px 18px!important}
  .channel-sidebar{margin:12px 0 12px 12px!important}
  .chat-area{margin:12px!important}
  .messages{padding-left:clamp(18px,2vw,34px)!important;padding-right:clamp(18px,3vw,54px)!important}
  .composer-wrap{padding-left:clamp(18px,2vw,30px)!important;padding-right:clamp(18px,2vw,30px)!important}
}
@media(min-width:2200px){
  .app{grid-template-columns:330px minmax(0,1fr)!important;grid-template-rows:74px minmax(0,1fr)!important}
  .server-rail{height:74px!important}
  .chat-area{max-width:none!important}
  .message{max-width:1500px!important;width:100%!important;margin-left:auto!important;margin-right:auto!important}
  .composer-wrap{max-width:1560px!important;width:100%!important;margin-left:auto!important;margin-right:auto!important}
}

/* compact desktop/tablet: one conversation column, navigation becomes a drawer */
@media(max-width:900px){
  html,body{width:100%;height:100%;overscroll-behavior:none}
  .app,.app.member-hidden{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:56px minmax(0,1fr)!important;
    grid-template-areas:"spaces" "conversation"!important;
    width:100vw!important;
    height:100dvh!important;
    max-height:100dvh!important;
    overflow:hidden!important;
  }
  .mobile-nav-btn{display:inline-flex!important}
  .server-rail{
    grid-area:spaces!important;
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:56px!important;
    min-height:56px!important;
    padding:7px max(8px,env(safe-area-inset-left))!important;
    gap:6px!important;
    border:0!important;
    border-bottom:1px solid var(--v64-edge)!important;
    border-radius:0!important;
    background:#08131b!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    transform:none!important;
    z-index:40!important;
    scrollbar-width:none!important;
  }
  .server-rail::-webkit-scrollbar{display:none!important}
  .server-rail:before{content:"V"!important;font-size:12px!important;letter-spacing:.06em!important;margin:0 4px 0 2px!important;padding-right:9px!important}
  .server-item{width:38px!important;height:34px!important;flex:0 0 38px!important;border-radius:9px!important;font-size:15px!important}
  .server-item.home{font-size:15px!important}.server-item.add-server{font-size:19px!important}.server-sep{display:none!important}

  .chat-area{
    grid-area:conversation!important;
    position:relative!important;
    inset:auto!important;
    width:auto!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:rgba(8,17,25,.90)!important;
  }
  body.has-global-bg .chat-area{background:rgba(6,14,21,.62)!important;backdrop-filter:blur(9px)!important}
  .topbar{height:48px!important;min-height:48px!important;padding:0 8px 0 10px!important;border-bottom:1px solid var(--v64-edge)!important;background:rgba(8,17,25,.94)!important}
  .channel-title{min-width:0!important;gap:7px!important;overflow:hidden!important}
  .channel-title strong{max-width:min(48vw,360px)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:14px!important}
  .hash{width:23px!important;height:23px!important;flex:0 0 23px!important;border-radius:6px!important}
  .top-actions{margin-left:auto!important;gap:1px!important;min-width:0!important;flex-wrap:nowrap!important}
  .top-actions .top-icon{width:30px!important;height:30px!important;min-width:30px!important;padding:0!important;font-size:15px!important;border-radius:7px!important}
  .search{display:none!important}

  .channel-sidebar{
    display:none!important;
    position:fixed!important;
    z-index:150!important;
    left:0!important;
    top:56px!important;
    bottom:0!important;
    width:min(330px,82vw)!important;
    height:auto!important;
    margin:0!important;
    border:0!important;
    border-right:1px solid var(--v64-edge)!important;
    border-radius:0!important;
    background:#09151e!important;
    box-shadow:16px 0 38px rgba(0,0,0,.24)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    overflow:hidden!important;
  }
  body.mobile-sidebar-open .channel-sidebar{display:grid!important;transform:none!important}
  body.has-global-bg.mobile-sidebar-open .channel-sidebar,
  body.mobile-sidebar-open .channel-sidebar{background:#09151e!important}
  .guild-header{height:48px!important;min-height:48px!important;padding:0 14px!important;background:#0a1721!important;border-bottom:1px solid var(--v64-edge)!important}
  .channel-scroll{padding:7px 8px!important}
  .category-title{padding:7px 7px 4px!important;font-size:9px!important}
  .channel{min-height:35px!important;padding:0 8px!important;border-radius:7px!important;font-size:14px!important}
  .channel .kind{width:22px!important;height:22px!important;font-size:12px!important;border-radius:6px!important}
  .home-dm-title{padding:13px 7px 5px!important}
  .dm-sidebar-item{min-height:43px!important;padding-right:7px!important}
  .dm-sidebar-item .avatar{width:28px!important;height:28px!important;flex-basis:28px!important}
  .dm-sidebar-copy strong{font-size:13px!important}.dm-sidebar-copy small{font-size:11px!important}
  .user-panel{
    min-height:54px!important;
    padding:7px 8px max(7px,env(safe-area-inset-bottom))!important;
    grid-template-columns:32px minmax(0,1fr) repeat(4,30px)!important;
    gap:2px!important;
    background:#07121a!important;
    border-top:1px solid var(--v64-edge)!important;
  }
  .user-panel .avatar{width:31px!important;height:31px!important}
  .user-meta strong{font-size:12px!important}.user-meta span{font-size:10px!important}
  .panel-icon{width:30px!important;height:30px!important;font-size:13px!important;border-radius:7px!important}

  .member-sidebar{
    display:none!important;
    position:fixed!important;
    z-index:151!important;
    right:0!important;
    left:auto!important;
    top:56px!important;
    bottom:0!important;
    width:min(330px,82vw)!important;
    height:auto!important;
    padding:10px 8px!important;
    margin:0!important;
    border:0!important;
    border-left:1px solid var(--v64-edge)!important;
    border-radius:0!important;
    background:#09151e!important;
    box-shadow:-16px 0 38px rgba(0,0,0,.24)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    overflow-y:auto!important;
  }
  body.members-overlay-open .member-sidebar{display:block!important}
  body.has-global-bg.members-overlay-open .member-sidebar{background:#09151e!important}

  .mobile-backdrop{z-index:145!important;background:rgba(2,7,11,.55)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  body.mobile-sidebar-open #mobileBackdrop,body.members-overlay-open #mobileBackdrop{display:block!important;pointer-events:auto!important;background:rgba(2,7,11,.55)!important}

  .messages{padding:4px 8px 8px!important}
  .message{grid-template-columns:36px minmax(0,1fr)!important;column-gap:8px!important;padding:8px 5px!important}
  .message-avatar{width:30px!important;height:30px!important;border-radius:7px!important}
  .message-author{font-size:13px!important}.message-time{font-size:9px!important}.message-content{font-size:13px!important;line-height:1.45!important}
  .typing{height:18px!important;padding:0 10px!important;font-size:10px!important}
  .composer-wrap{padding:0 8px max(8px,env(safe-area-inset-bottom))!important}
  .composer{min-height:44px!important;grid-template-columns:34px minmax(0,1fr) auto auto auto!important;border-radius:9px!important;background:#0a1721!important}
  .composer textarea{font-size:13px!important;padding:11px 2px!important;line-height:18px!important}
  .add-btn{width:23px!important;height:23px!important;margin-left:7px!important;border-radius:6px!important;font-size:17px!important}
  .compose-icon{min-width:28px!important;padding:5px!important;font-size:13px!important;border-radius:6px!important}
  #gifBtn{font-size:10px!important;font-weight:800!important}
  .send-message-btn{margin-right:5px!important}

  .home-view{padding:10px 12px 18px!important}
  .home-hero{padding:2px 0 12px!important;gap:8px!important}
  .home-hero h2{font-size:20px!important}.home-hero p{font-size:12px!important}
  .friend-section{margin-top:15px!important}
}

/* phones: navigation is a real screen, never a translucent card over chat */
@media(max-width:600px){
  .channel-sidebar,.member-sidebar{
    width:100vw!important;
    max-width:none!important;
    left:0!important;
    right:0!important;
    top:56px!important;
    bottom:0!important;
    border-left:0!important;
    border-right:0!important;
    box-shadow:none!important;
  }
  .mobile-backdrop,body.mobile-sidebar-open #mobileBackdrop,body.members-overlay-open #mobileBackdrop{display:none!important;pointer-events:none!important}
  .topbar{padding-right:max(6px,env(safe-area-inset-right))!important;padding-left:max(7px,env(safe-area-inset-left))!important}
  .channel-title strong{max-width:42vw!important}
  #addFriendTopBtn,#notificationsBtn,#pinsBtn{display:none!important}
  .top-actions .top-icon{width:29px!important;height:29px!important;min-width:29px!important}

  .friend-card{
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr)!important;
    column-gap:9px!important;
    row-gap:7px!important;
    align-items:center!important;
    padding:9px 8px!important;
    min-height:0!important;
    border-top:1px solid rgba(255,255,255,.045)!important;
    border-radius:0!important;
    background:transparent!important;
  }
  .friend-card:hover{background:rgba(255,255,255,.025)!important}
  .friend-card> .avatar,.friend-card> .pulse-note-avatar-shell{grid-column:1!important;grid-row:1!important;width:38px!important;min-width:38px!important}
  .friend-card> .avatar{height:38px!important}
  .friend-card-copy{grid-column:2!important;grid-row:1!important;min-width:0!important}
  .friend-card-copy strong{font-size:13px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .friend-card-copy>span{display:block!important;font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .friend-card>.badge-row{grid-column:1/-1!important;grid-row:2!important;justify-content:flex-start!important;margin:0!important;max-width:100%!important}
  .friend-card>.badge-row:empty{display:none!important}
  .friend-actions{
    grid-column:1/-1!important;
    grid-row:3!important;
    width:100%!important;
    justify-content:flex-end!important;
    gap:5px!important;
    padding-top:6px!important;
    border-top:1px solid rgba(255,255,255,.035)!important;
  }
  .friend-actions:empty{display:none!important}
  .friend-actions .round-action,.friend-actions .friend-pref-btn,.friend-message-btn,.friend-cancel-btn{
    min-height:30px!important;
    height:30px!important;
    width:auto!important;
    min-width:30px!important;
    padding:0 9px!important;
    border-radius:7px!important;
    background:#0e202c!important;
    border:1px solid rgba(255,255,255,.045)!important;
    font-size:12px!important;
  }
  .friend-actions .friend-pref-btn,.friend-actions .round-action{padding:0!important;width:30px!important}
  .friend-card .pulse-note-avatar-bubble{max-width:92px!important}
}

@media(max-width:400px){
  .server-rail{height:52px!important;min-height:52px!important;padding-top:6px!important;padding-bottom:6px!important}
  .app,.app.member-hidden{grid-template-rows:52px minmax(0,1fr)!important}
  .channel-sidebar,.member-sidebar{top:52px!important}
  .server-item{width:35px!important;height:32px!important;flex-basis:35px!important}
  .server-rail:before{padding-right:7px!important;margin-right:2px!important}
  .topbar{height:45px!important;min-height:45px!important}
  .channel-title strong{max-width:39vw!important;font-size:13px!important}
  .top-actions .top-icon{width:27px!important;height:27px!important;min-width:27px!important;font-size:14px!important}
  .messages{padding-left:5px!important;padding-right:5px!important}
  .message{grid-template-columns:32px minmax(0,1fr)!important;column-gap:6px!important;padding-left:3px!important;padding-right:3px!important}
  .message-avatar{width:27px!important;height:27px!important}
  .composer{grid-template-columns:31px minmax(0,1fr) auto auto!important}
  #giftBtn{display:none!important}
  .compose-icon{min-width:26px!important;padding:4px!important}
  .friend-card{grid-template-columns:34px minmax(0,1fr)!important;padding-left:5px!important;padding-right:5px!important}
  .friend-card> .avatar,.friend-card> .pulse-note-avatar-shell{width:34px!important;min-width:34px!important}
  .friend-card> .avatar{height:34px!important}
}

/* very short landscape phones */
@media(max-height:520px) and (max-width:900px){
  .server-rail{height:48px!important;min-height:48px!important}
  .app,.app.member-hidden{grid-template-rows:48px minmax(0,1fr)!important}
  .channel-sidebar,.member-sidebar{top:48px!important}
  .guild-header{height:42px!important;min-height:42px!important}
  .user-panel{min-height:48px!important}
  .channel{min-height:32px!important}
  .topbar{height:42px!important;min-height:42px!important}
  .composer{min-height:40px!important}
}

@media(min-width:901px){.mobile-nav-btn{display:none!important}}

/* v65 — desktop layout isolation: profile never overlaps chat/top actions */
@media(min-width:1051px){
  .app,
  .app:not(.member-hidden){
    display:grid!important;
    grid-template-columns:260px minmax(0,1fr) 286px!important;
    grid-template-rows:64px minmax(0,1fr)!important;
    grid-template-areas:
      "spaces spaces spaces"
      "rooms conversation people"!important;
    gap:0!important;
    width:100vw!important;
    height:100dvh!important;
    overflow:hidden!important;
  }
  .server-rail{
    grid-area:spaces!important;
    position:relative!important;
    inset:auto!important;
    width:auto!important;
    height:64px!important;
    min-height:64px!important;
    margin:0!important;
    border-radius:0!important;
    z-index:20!important;
  }
  .channel-sidebar{
    grid-area:rooms!important;
    position:relative!important;
    inset:auto!important;
    width:auto!important;
    min-width:0!important;
    height:auto!important;
    margin:10px 0 10px 10px!important;
    z-index:2!important;
  }
  .chat-area{
    grid-area:conversation!important;
    position:relative!important;
    inset:auto!important;
    width:auto!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    margin:10px!important;
    z-index:3!important;
    overflow:hidden!important;
  }
  .member-sidebar{
    grid-area:people!important;
    position:relative!important;
    inset:auto!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    margin:10px 10px 10px 0!important;
    padding:10px 8px!important;
    z-index:2!important;
    display:block!important;
    overflow-y:auto!important;
    box-shadow:none!important;
    border-radius:12px!important;
  }
  .member-sidebar.user-hidden,
  .app.member-hidden .member-sidebar{display:none!important}
  .app.member-hidden{
    grid-template-columns:260px minmax(0,1fr)!important;
    grid-template-areas:
      "spaces spaces"
      "rooms conversation"!important;
  }
  .topbar{
    position:relative!important;
    z-index:8!important;
    width:100%!important;
    min-width:0!important;
    overflow:visible!important;
  }
  .top-actions{
    position:relative!important;
    z-index:9!important;
    flex:0 0 auto!important;
    margin-left:auto!important;
  }
  .messages,.composer-wrap,.typing,.dm-call-dock{
    position:relative!important;
    z-index:1!important;
    min-width:0!important;
  }
  body.dm-active .member-sidebar{
    padding:8px!important;
    background:rgba(8,18,27,.94)!important;
    overflow:hidden!important;
  }
  .dm-profile-panel{
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  .dm-profile-card{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-width:none!important;
    border-radius:10px!important;
    border:1px solid rgba(255,255,255,.045)!important;
    overflow:hidden!important;
  }
  .dm-profile-banner{height:92px!important;flex-basis:92px!important}
  .dm-profile-body{padding:44px 12px 10px!important;overflow-y:auto!important;min-height:0!important}
  .dm-profile-avatar{width:64px!important;height:64px!important;top:-32px!important;left:12px!important}
  .dm-profile-body h3{font-size:14px!important}
  .dm-profile-body .profile-section{padding:9px!important;margin:8px 0!important;border-radius:7px!important}
  .dm-profile-full-btn{min-height:34px!important;padding:7px 9px!important;border-radius:7px!important;font-size:12px!important}
}

/* narrower desktop/laptop: profile becomes an intentional drawer, never a permanent overlay */
@media(min-width:901px) and (max-width:1050px){
  .app,.app.member-hidden{
    display:grid!important;
    grid-template-columns:238px minmax(0,1fr)!important;
    grid-template-rows:60px minmax(0,1fr)!important;
    grid-template-areas:
      "spaces spaces"
      "rooms conversation"!important;
    width:100vw!important;
    height:100dvh!important;
    overflow:hidden!important;
  }
  .server-rail{grid-area:spaces!important;height:60px!important;min-height:60px!important}
  .channel-sidebar{grid-area:rooms!important;margin:8px 0 8px 8px!important}
  .chat-area{grid-area:conversation!important;margin:8px!important;min-width:0!important}
  .member-sidebar{display:none!important}
  body.members-overlay-open .member-sidebar{
    display:block!important;
    position:fixed!important;
    z-index:160!important;
    top:68px!important;
    right:8px!important;
    bottom:8px!important;
    left:auto!important;
    width:min(300px,36vw)!important;
    min-width:260px!important;
    margin:0!important;
    border-radius:12px!important;
    box-shadow:0 24px 70px rgba(0,0,0,.46)!important;
  }
  body.members-overlay-open #mobileBackdrop{display:block!important;z-index:155!important}
  .topbar,.top-actions{position:relative!important;z-index:10!important}
}


/* v66 — neutral graphite palette */
:root{
  --bg-deep:#0e0f11;
  --bg-rail:#131417;
  --bg-sidebar:#191a1e;
  --bg-main:#1f2025;
  --bg-input:#27292f;
  --bg-hover:#25272c;
  --bg-active:#303239;
  --line:#111216;
  --text:#e4e6ea;
  --muted:#969ca6;
  --accent:#737dff;
  --brand:#737dff;
  --brand-hover:#626ceb;
  --green:#3ba66b;
  --danger:#e85b62;
  --yellow:#d6aa50;
}
html,body{background:#111215!important;color:var(--text)!important}
.global-background{background:#0b0c0f!important}
.global-bg-shade{background:rgba(8,9,12,.46)!important;backdrop-filter:blur(2px)!important}

.auth-screen{background:radial-gradient(circle at 18% 15%,#383b45 0,#22242a 34%,#121316 72%,#0d0e10 100%)!important}
.auth-screen:before,.auth-screen:after{background:#596078!important;opacity:.18!important}
.auth-card{background:rgba(25,26,30,.95)!important;border-color:rgba(255,255,255,.065)!important;color:#eceef2!important}
.brand-mark{background:linear-gradient(145deg,#777f96,#4f5565)!important;box-shadow:none!important;color:#fff!important}
.primary-btn{background:#686f80!important;color:#fff!important;box-shadow:none!important}
.primary-btn:hover{background:#7a8294!important}
.secondary-btn{background:#2a2c32!important;border-color:#3a3d45!important;color:#e3e5e8!important}
input,textarea,select{background:#17181c!important;border-color:#30323a!important;color:#f0f1f3!important}
input:focus,textarea:focus,select:focus{border-color:#737dff!important;box-shadow:0 0 0 3px rgba(115,125,255,.10)!important}

.server-rail{background:rgba(18,19,22,.96)!important;border-bottom-color:rgba(255,255,255,.05)!important}
.server-rail:before{color:#e7e8eb!important;border-right-color:rgba(255,255,255,.08)!important}
.server-item{background:#202227!important;color:#b9bec7!important;border-color:rgba(255,255,255,.045)!important}
.server-item:hover{background:#2a2c32!important;color:#fff!important;border-color:#41444d!important}
.server-item.active{background:#30323a!important;color:#fff!important;border-color:#555a68!important;box-shadow:inset 0 -2px 0 #8c93a8!important}
.server-item.add-server{color:#aeb4c1!important}.server-item.add-server:hover{background:#292b31!important;color:#fff!important}
.server-sep{background:rgba(255,255,255,.08)!important}

.channel-sidebar{background:rgba(24,25,29,.96)!important;border-color:rgba(255,255,255,.045)!important}
.guild-header{background:#1b1c20!important;border-bottom-color:rgba(255,255,255,.045)!important}
.guild-header:hover{background:#202126!important}
.category-title{color:#8d929b!important}
.channel{color:#aaaeb7!important}
.channel:hover{background:#23252a!important;color:#e6e8ec!important}
.channel.active{background:#2d2f35!important;color:#fff!important;border-color:#3b3e46!important}
.channel .kind{background:#15161a!important;color:#868b95!important}
.channel.active .kind{background:#25272d!important;color:#dfe2e8!important}
.user-panel{background:#141519!important;border-top-color:rgba(255,255,255,.045)!important}
.online-dot{border-color:#141519!important}
.panel-icon:hover{background:#282a30!important}

.chat-area{background:rgba(30,31,36,.96)!important;border-color:rgba(255,255,255,.045)!important}
.topbar{background:#1b1c20!important;border-bottom-color:rgba(255,255,255,.045)!important}
.hash{background:#272930!important;color:#b9bec7!important}
.top-icon{color:#a7abb4!important}.top-icon:hover{background:#282a30!important;color:#fff!important}
.search{background:#141519!important;border-color:#30323a!important}
.messages{scrollbar-color:#15161a transparent!important}
.message{border-bottom-color:rgba(255,255,255,.035)!important}
.message:hover{background:linear-gradient(90deg,rgba(255,255,255,.025),transparent 72%)!important}
.message-avatar{background:linear-gradient(145deg,#616773,#3e424b)!important}
.message-author{color:#eff0f2!important}.message-time{color:#858a94!important}
.message-content{color:#d2d5da!important}
.empty-icon{background:#292b31!important;color:#c5c9d1!important}
.typing{color:#8f949d!important}

.composer{background:#25272d!important;border-color:#343740!important;box-shadow:none!important}
.composer:focus-within{border-color:#5d6372!important;box-shadow:0 0 0 3px rgba(255,255,255,.025)!important}
.composer textarea{color:#eceef1!important}.composer textarea::placeholder{color:#8e939d!important}
.add-btn{background:#3a3d45!important;color:#d9dce2!important}
.compose-icon{color:#9ca1ab!important}.compose-icon:hover{color:#fff!important;background:#303239!important}
.send-message-btn{background:#3a3d45!important;color:#fff!important}

.member-sidebar{background:rgba(20,21,25,.98)!important;border-color:rgba(255,255,255,.05)!important}
.member-sidebar .member:hover{background:#25272c!important}
.member-group-title{color:#888d97!important}
.member-name{color:#d6d9df!important}
body.dm-active .member-sidebar{background:#15161a!important}
.dm-profile-card{background:linear-gradient(180deg,var(--profile-top,#23252a),var(--profile-bottom,#1b1c20))!important;border-color:rgba(255,255,255,.045)!important}
.dm-profile-body .profile-section{background:#111216!important;border-color:rgba(255,255,255,.045)!important}
.dm-profile-full-btn{background:#292b31!important;border-color:#3a3d45!important}.dm-profile-full-btn:hover{background:#32343b!important}

.modal-card,.voice-card,.settings-shell,.profile-editor-card,.account-card,.nitro-card,.theme-card,.context-menu,.mention-picker,.emoji-picker{background:#1a1b1f!important;border-color:rgba(255,255,255,.06)!important}
.settings-nav{background:#15161a!important;border-right-color:rgba(255,255,255,.045)!important}
.settings-tab.active{background:#2d2f35!important;color:#fff!important}
.context-menu button:hover{background:#2b2d33!important;color:#fff!important}
.friend-actions .round-action,.friend-actions .friend-pref-btn,.friend-message-btn,.friend-cancel-btn{background:#282a30!important;border-color:#383b43!important;color:#d7dae0!important}

body.has-global-bg .server-rail{background:rgba(15,16,19,.80)!important}
body.has-global-bg .channel-sidebar{background:rgba(22,23,27,.82)!important}
body.has-global-bg .chat-area{background:rgba(27,28,33,.72)!important}
body.has-global-bg .member-sidebar{background:rgba(17,18,21,.90)!important}


/* v67 — DM profile avatar + compact message stream */
body.dm-active .dm-profile-card{
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
body.dm-active .dm-profile-banner{
  position:relative!important;
  z-index:1!important;
}
body.dm-active .dm-profile-body{
  overflow:visible!important;
  padding-top:0!important;
}
body.dm-active .dm-profile-avatar{
  position:relative!important;
  z-index:5!important;
  top:auto!important;
  left:auto!important;
  display:block!important;
  margin:-32px 0 10px 12px!important;
  width:64px!important;
  height:64px!important;
  flex:0 0 64px!important;
  border:4px solid var(--profile-bottom,#1b1c20)!important;
  box-shadow:0 2px 8px rgba(0,0,0,.24)!important;
}
body.dm-active .dm-profile-body>h3,
body.dm-active .dm-profile-body>.muted,
body.dm-active .dm-profile-body>.profile-badges,
body.dm-active .dm-profile-body>.profile-section,
body.dm-active .dm-profile-body>.dm-profile-featured,
body.dm-active .dm-profile-body>.dm-profile-spacer,
body.dm-active .dm-profile-body>.dm-profile-full-btn{
  margin-left:12px!important;
  margin-right:12px!important;
}

.messages{
  padding-top:8px!important;
  padding-bottom:10px!important;
}
.message{
  border-bottom:0!important;
  padding:7px 8px 2px!important;
  min-height:0!important;
}
.message:not(.grouped){
  margin-top:5px!important;
}
.message:first-child{
  margin-top:0!important;
}
.message.grouped{
  padding-top:0!important;
  padding-bottom:0!important;
  min-height:20px!important;
}
.message.grouped .message-avatar,
.message.grouped .message-head{
  display:none!important;
}
.message.grouped .message-body,
.message.grouped .message-content,
.message.grouped .message-attachments,
.message.grouped .owner-message-signature{
  grid-column:2!important;
}
.message.grouped .message-content{
  padding-top:0!important;
  line-height:1.34!important;
}
.message:not(.grouped) .message-content{
  padding-top:1px!important;
  line-height:1.38!important;
}
.message:hover{
  background:rgba(255,255,255,.018)!important;
}
.message.grouped:hover:before{
  align-self:start!important;
  padding-top:2px!important;
  opacity:.72!important;
}

@media(max-width:900px){
  body.dm-active .dm-profile-avatar{
    margin-top:-30px!important;
    width:60px!important;
    height:60px!important;
  }
  .message{padding-top:6px!important;padding-bottom:1px!important}
  .message.grouped{padding-top:0!important;padding-bottom:0!important}
}

@media(max-width:600px){
  .messages{padding-top:5px!important}
  .message:not(.grouped){margin-top:3px!important}
  .message{padding-top:5px!important;padding-bottom:1px!important}
  .message.grouped{padding-top:0!important;padding-bottom:0!important;min-height:19px!important}
}

/* v68 — tighter avatar/text alignment */
.message:not(.grouped){
  align-items:start!important;
  grid-template-rows:auto auto!important;
  row-gap:0!important;
}
.message:not(.grouped) .message-avatar{
  grid-row:1 / 3!important;
  align-self:start!important;
  margin-top:0!important;
}
.message:not(.grouped) .message-head{
  grid-column:2!important;
  grid-row:1!important;
  align-self:start!important;
  min-height:16px!important;
  line-height:16px!important;
  margin:-3px 0 0!important;
  padding:0!important;
}
.message:not(.grouped) .message-body{
  grid-column:2!important;
  grid-row:2!important;
  align-self:start!important;
  margin:-1px 0 0!important;
  padding:0!important;
}
.message:not(.grouped) .message-content{
  margin:0!important;
  padding:0!important;
  line-height:1.32!important;
}
.message:not(.grouped).has-reply .message-avatar{
  grid-row:1 / 4!important;
}
.message:not(.grouped).has-reply .message-reply{
  grid-column:2!important;
  margin-top:-2px!important;
}

@media(max-width:600px){
  .message:not(.grouped) .message-head{margin-top:-2px!important;line-height:15px!important;min-height:15px!important}
  .message:not(.grouped) .message-body{margin-top:0!important}
}

/* v69 — breathing room between message groups */
.message:not(.grouped){
  margin-top:10px!important;
}
.message:first-child,
.message.grouped{
  margin-top:0!important;
}
.message.grouped + .message.grouped{
  margin-top:0!important;
}
@media(max-width:600px){
  .message:not(.grouped){margin-top:8px!important}
  .message:first-child,.message.grouped{margin-top:0!important}
}


/* v70 — aligned, compact DM profile card */
body.dm-active .member-sidebar{
  padding:10px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  background:#15161a!important;
}
body.dm-active .dm-profile-panel{
  height:auto!important;
  padding:0!important;
  width:100%!important;
}
body.dm-active .dm-profile-card{
  min-height:0!important;
  height:auto!important;
  display:block!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.055)!important;
  border-radius:12px!important;
  background:#1d1e22!important;
  box-shadow:none!important;
}
body.dm-active .dm-profile-banner{
  height:88px!important;
  min-height:88px!important;
  flex-basis:auto!important;
  width:100%!important;
  margin:0!important;
  border-radius:0!important;
}
body.dm-active .dm-profile-body{
  display:block!important;
  flex:none!important;
  min-height:0!important;
  overflow:visible!important;
  padding:0 14px 14px!important;
}
body.dm-active .dm-profile-avatar{
  position:relative!important;
  top:auto!important;
  left:auto!important;
  width:58px!important;
  height:58px!important;
  margin:-29px 0 9px 0!important;
  border:4px solid #1d1e22!important;
  box-shadow:0 2px 8px rgba(0,0,0,.28)!important;
}
body.dm-active .dm-profile-body>h3,
body.dm-active .dm-profile-body>.muted,
body.dm-active .dm-profile-body>.profile-badges,
body.dm-active .dm-profile-body>.profile-section,
body.dm-active .dm-profile-body>.dm-profile-featured,
body.dm-active .dm-profile-body>.dm-profile-spacer,
body.dm-active .dm-profile-body>.dm-profile-full-btn{
  margin-left:0!important;
  margin-right:0!important;
}
body.dm-active .dm-profile-body>h3{
  margin-top:0!important;
  margin-bottom:1px!important;
  font-size:14px!important;
  line-height:1.2!important;
}
body.dm-active .dm-profile-body>h3 + .muted{
  margin-top:0!important;
  margin-bottom:8px!important;
  font-size:11px!important;
  line-height:1.25!important;
}
body.dm-active .dm-profile-body>.profile-badges{
  margin-top:7px!important;
  margin-bottom:7px!important;
}
body.dm-active .dm-profile-body>.profile-section{
  width:100%!important;
  margin:9px 0 0!important;
  padding:10px!important;
  border-radius:8px!important;
  background:#111216!important;
  border:1px solid rgba(255,255,255,.045)!important;
}
body.dm-active .dm-profile-body>.profile-section strong{
  display:block!important;
  margin:0 0 5px!important;
  font-size:9px!important;
  line-height:1.2!important;
  letter-spacing:.02em!important;
}
body.dm-active .dm-profile-body>.profile-section p{
  margin:0!important;
  font-size:12px!important;
  line-height:1.4!important;
}
body.dm-active .dm-profile-featured{
  margin-top:10px!important;
  margin-bottom:0!important;
}
body.dm-active .dm-profile-spacer{
  display:none!important;
  min-height:0!important;
}
body.dm-active .dm-profile-full-btn{
  display:block!important;
  width:100%!important;
  min-height:34px!important;
  margin-top:12px!important;
  padding:8px 10px!important;
  border-radius:8px!important;
  font-size:11px!important;
  background:#282a30!important;
  border:1px solid #383b43!important;
}
body.dm-active .dm-profile-note-slot{
  top:50px!important;
  left:78px!important;
  right:12px!important;
}
@media(max-width:1320px) and (min-width:901px){
  body.dm-active .member-sidebar{padding:8px!important}
  body.dm-active .dm-profile-body{padding-left:12px!important;padding-right:12px!important;padding-bottom:12px!important}
  body.dm-active .dm-profile-banner{height:78px!important;min-height:78px!important}
  body.dm-active .dm-profile-avatar{width:54px!important;height:54px!important;margin-top:-27px!important}
  body.dm-active .dm-profile-note-slot{top:44px!important;left:70px!important;right:10px!important}
}
@media(max-width:900px){
  body.dm-active .member-sidebar{padding:8px!important}
  body.dm-active .dm-profile-card{max-width:300px!important;margin:0 auto!important}
  body.dm-active .dm-profile-banner{height:82px!important;min-height:82px!important}
  body.dm-active .dm-profile-body{padding:0 13px 13px!important}
  body.dm-active .dm-profile-avatar{width:56px!important;height:56px!important;margin:-28px 0 8px 0!important}
}
@media(max-width:420px){
  body.dm-active .member-sidebar{padding:6px!important}
  body.dm-active .dm-profile-card{max-width:none!important}
  body.dm-active .dm-profile-banner{height:72px!important;min-height:72px!important}
  body.dm-active .dm-profile-body{padding:0 11px 11px!important}
  body.dm-active .dm-profile-avatar{width:52px!important;height:52px!important;margin-top:-26px!important}
  body.dm-active .dm-profile-body>.profile-section{padding:9px!important}
}


/* v71 — stronger spacing between different message groups */
.message:not(.grouped){
  margin-top:20px!important;
}
.message:first-child{
  margin-top:0!important;
}
.message.grouped{
  margin-top:0!important;
}
.message.grouped + .message.grouped{
  margin-top:0!important;
}
@media(max-width:600px){
  .message:not(.grouped){margin-top:16px!important}
  .message:first-child,.message.grouped{margin-top:0!important}
}


/* v72 — Discord-inspired DM profile layout + real user gradient */
body.dm-active .member-sidebar{
  padding:10px!important;
  background:#111216!important;
}
body.dm-active .dm-profile-panel{
  width:100%!important;
  height:auto!important;
  padding:0!important;
}
body.dm-active .dm-profile-card{
  position:relative!important;
  display:block!important;
  width:100%!important;
  max-width:340px!important;
  min-height:0!important;
  margin:0 auto!important;
  overflow:hidden!important;
  border-radius:12px!important;
  border:1px solid rgba(255,255,255,.07)!important;
  background:
    linear-gradient(180deg,
      color-mix(in srgb,var(--profile-top,#23252a) 52%,#17181c) 0%,
      color-mix(in srgb,var(--profile-bottom,#1b1c20) 44%,#17181c) 100%)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.22)!important;
}
body.dm-active .dm-profile-banner{
  position:relative!important;
  z-index:1!important;
  width:100%!important;
  height:108px!important;
  min-height:108px!important;
  margin:0!important;
  border-radius:0!important;
  background-color:var(--profile-top,#23252a)!important;
  background-image:linear-gradient(135deg,var(--profile-top,#23252a),var(--profile-bottom,#1b1c20));
  background-size:cover!important;
  background-position:center!important;
}
body.dm-active .dm-profile-banner:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.16));
}
body.dm-active .dm-profile-body{
  position:relative!important;
  z-index:2!important;
  display:block!important;
  min-height:0!important;
  overflow:visible!important;
  padding:0 16px 16px!important;
  color:#f2f3f5!important;
}
body.dm-active .dm-profile-avatar{
  position:relative!important;
  z-index:5!important;
  top:auto!important;
  left:auto!important;
  display:block!important;
  width:72px!important;
  height:72px!important;
  margin:-38px 0 12px 0!important;
  border-radius:50%!important;
  border:5px solid color-mix(in srgb,var(--profile-top,#23252a) 42%,#17181c)!important;
  background-color:#202126!important;
  box-shadow:0 3px 12px rgba(0,0,0,.35)!important;
}
body.dm-active .dm-profile-body>h3{
  margin:0 0 2px!important;
  font-size:16px!important;
  line-height:1.22!important;
  font-weight:800!important;
  color:#fff!important;
}
body.dm-active .dm-profile-body>h3 + .muted{
  margin:0 0 9px!important;
  font-size:11px!important;
  line-height:1.25!important;
  color:rgba(235,237,240,.72)!important;
}
body.dm-active .dm-profile-body>.profile-badges{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:4px!important;
  width:max-content!important;
  max-width:100%!important;
  margin:7px 0 10px!important;
  padding:4px 6px!important;
  border-radius:7px!important;
  background:rgba(10,11,13,.38)!important;
  border:1px solid rgba(255,255,255,.055)!important;
}
body.dm-active .dm-profile-body>.muted:not(:first-of-type){
  margin:7px 0 10px!important;
  color:rgba(235,237,240,.78)!important;
}
body.dm-active .dm-profile-body>.profile-section{
  width:100%!important;
  margin:10px 0 0!important;
  padding:12px!important;
  border-radius:8px!important;
  background:rgba(8,9,11,.70)!important;
  border:1px solid rgba(255,255,255,.055)!important;
  box-shadow:none!important;
}
body.dm-active .dm-profile-body>.profile-section strong{
  display:block!important;
  margin:0 0 6px!important;
  font-size:9px!important;
  line-height:1.2!important;
  letter-spacing:.045em!important;
  color:#fff!important;
}
body.dm-active .dm-profile-body>.profile-section p{
  margin:0!important;
  font-size:12px!important;
  line-height:1.45!important;
  color:#e7e9ec!important;
}
body.dm-active .dm-profile-featured{
  margin:10px 0 0!important;
}
body.dm-active .dm-profile-spacer{
  display:none!important;
}
body.dm-active .dm-profile-full-btn{
  width:100%!important;
  min-height:36px!important;
  margin:12px 0 0!important;
  padding:8px 10px!important;
  border-radius:7px!important;
  background:rgba(255,255,255,.075)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:700!important;
  box-shadow:none!important;
}
body.dm-active .dm-profile-full-btn:hover{
  background:rgba(255,255,255,.12)!important;
}
body.dm-active .dm-profile-note-slot{
  z-index:7!important;
  top:70px!important;
  left:94px!important;
  right:12px!important;
}
body.dm-active .dm-profile-note-slot .profile-pulse-note-bubble{
  background:rgba(10,11,14,.84)!important;
  border:1px solid rgba(255,255,255,.08)!important;
  backdrop-filter:blur(8px)!important;
}

@media(max-width:1320px) and (min-width:901px){
  body.dm-active .member-sidebar{padding:8px!important}
  body.dm-active .dm-profile-card{max-width:320px!important}
  body.dm-active .dm-profile-banner{height:96px!important;min-height:96px!important}
  body.dm-active .dm-profile-avatar{width:66px!important;height:66px!important;margin-top:-34px!important}
  body.dm-active .dm-profile-body{padding:0 14px 14px!important}
  body.dm-active .dm-profile-note-slot{top:61px!important;left:86px!important}
}
@media(max-width:900px){
  body.dm-active .dm-profile-card{max-width:320px!important}
  body.dm-active .dm-profile-banner{height:100px!important;min-height:100px!important}
  body.dm-active .dm-profile-avatar{width:68px!important;height:68px!important;margin-top:-35px!important}
  body.dm-active .dm-profile-body{padding:0 14px 14px!important}
  body.dm-active .dm-profile-note-slot{top:64px!important;left:88px!important}
}
@media(max-width:420px){
  body.dm-active .member-sidebar{padding:6px!important}
  body.dm-active .dm-profile-card{max-width:none!important}
  body.dm-active .dm-profile-banner{height:90px!important;min-height:90px!important}
  body.dm-active .dm-profile-avatar{width:62px!important;height:62px!important;margin-top:-32px!important;border-width:4px!important}
  body.dm-active .dm-profile-body{padding:0 12px 12px!important}
  body.dm-active .dm-profile-body>.profile-section{padding:10px!important}
  body.dm-active .dm-profile-note-slot{top:57px!important;left:80px!important;right:9px!important}
}

/* v73 — full-height DM profile card */
@media(min-width:1051px){
  body.dm-active .member-sidebar{
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  body.dm-active .dm-profile-panel{
    display:flex!important;
    flex:1 1 auto!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    padding:0!important;
  }
  body.dm-active .dm-profile-card{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    width:100%!important;
    max-width:340px!important;
    height:100%!important;
    min-height:100%!important;
    margin:0 auto!important;
    overflow:hidden!important;
  }
  body.dm-active .dm-profile-banner{
    flex:0 0 108px!important;
    height:108px!important;
    min-height:108px!important;
  }
  body.dm-active .dm-profile-body{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    padding:0 16px 16px!important;
    overflow:visible!important;
  }
  body.dm-active .dm-profile-spacer{
    display:block!important;
    flex:1 1 auto!important;
    min-height:28px!important;
  }
  body.dm-active .dm-profile-full-btn{
    flex:0 0 auto!important;
    margin-top:16px!important;
  }
}

@media(min-width:901px) and (max-width:1050px){
  body.members-overlay-open.dm-active .member-sidebar{
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  body.members-overlay-open.dm-active .dm-profile-panel{
    display:flex!important;
    flex:1 1 auto!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
  }
  body.members-overlay-open.dm-active .dm-profile-card{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    height:100%!important;
    min-height:100%!important;
  }
  body.members-overlay-open.dm-active .dm-profile-body{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
  }
  body.members-overlay-open.dm-active .dm-profile-spacer{
    display:block!important;
    flex:1 1 auto!important;
    min-height:24px!important;
  }
}

@media(max-width:900px){
  body.members-overlay-open.dm-active .member-sidebar{
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  body.members-overlay-open.dm-active .dm-profile-panel{
    display:flex!important;
    flex:1 1 auto!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
  }
  body.members-overlay-open.dm-active .dm-profile-card{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    height:100%!important;
    min-height:100%!important;
    max-width:none!important;
  }
  body.members-overlay-open.dm-active .dm-profile-body{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
  }
  body.members-overlay-open.dm-active .dm-profile-spacer{
    display:block!important;
    flex:1 1 auto!important;
    min-height:24px!important;
  }
}

/* v74 — reply ordering + tighter profile sections */
.message:not(.grouped).has-reply{
  grid-template-rows:auto auto auto!important;
}
.message:not(.grouped).has-reply .message-reply{
  grid-column:2!important;
  grid-row:1!important;
  align-self:end!important;
  margin:0 0 1px!important;
}
.message:not(.grouped).has-reply .message-head{
  grid-column:2!important;
  grid-row:2!important;
  margin:-1px 0 0!important;
}
.message:not(.grouped).has-reply .message-body{
  grid-column:2!important;
  grid-row:3!important;
  margin:-1px 0 0!important;
}
.message:not(.grouped).has-reply .message-avatar{
  grid-row:1 / 4!important;
  margin-top:1px!important;
}

body.dm-active .dm-profile-body>.profile-badges{
  margin:7px 0 3px!important;
}
body.dm-active .dm-profile-body>.profile-section{
  margin-top:5px!important;
}
body.dm-active .dm-profile-body>.profile-badges + .profile-section,
body.dm-active .dm-profile-body>.profile-badges + .profile-section.hidden + .profile-section{
  margin-top:3px!important;
}
body.dm-active .dm-profile-body>.profile-badges + .muted{
  margin:3px 0 4px!important;
}
body.dm-active .dm-profile-body>.profile-section + .profile-section{
  margin-top:5px!important;
}


/* v75 — unified profile card, invisible profile scroll and non-displacing replies */
.profile-standard-card{
  border:1px solid rgba(255,255,255,.075)!important;
  background:linear-gradient(180deg,var(--profile-top,#232428),var(--profile-bottom,#1b1c20))!important;
  box-shadow:0 14px 38px rgba(0,0,0,.28)!important;
}
body.dm-active .dm-profile-card.profile-standard-card{
  background:linear-gradient(180deg,var(--profile-top,#232428),var(--profile-bottom,#1b1c20))!important;
}
body.dm-active .dm-profile-card.profile-standard-card .dm-profile-body{
  background:linear-gradient(180deg,
    color-mix(in srgb,var(--profile-top,#232428) 86%,rgba(18,19,23,.72)),
    color-mix(in srgb,var(--profile-bottom,#1b1c20) 90%,rgba(14,15,18,.82)))!important;
}
body.dm-active .dm-profile-card.profile-standard-card .dm-profile-banner{
  background-color:var(--profile-top,#232428)!important;
  background-image:linear-gradient(135deg,var(--profile-top,#232428),var(--profile-bottom,#1b1c20));
}
body.dm-active .dm-profile-card.profile-standard-card .dm-profile-avatar{
  border-color:color-mix(in srgb,var(--profile-top,#232428) 72%,#17181b)!important;
}

/* The full profile is scrollable, but the scroll rail is invisible. */
#userProfileModal .user-profile-popout{
  max-height:calc(100dvh - 24px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
#userProfileModal .user-profile-popout::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}
#userProfileModal .popout-body{
  min-height:max-content!important;
}
#userProfileModal .badge-manager{
  padding-bottom:8px!important;
}

/* A reply reference floats above the current message instead of taking a grid row. */
.message:not(.grouped).has-reply{
  position:relative!important;
  grid-template-rows:auto auto!important;
  row-gap:0!important;
  margin-top:30px!important;
}
.message:not(.grouped).has-reply .message-reply{
  position:absolute!important;
  left:48px!important;
  right:12px!important;
  top:-23px!important;
  width:auto!important;
  max-width:calc(100% - 60px)!important;
  height:20px!important;
  margin:0!important;
  padding:0!important;
  grid-column:auto!important;
  grid-row:auto!important;
  z-index:2!important;
  align-self:auto!important;
  pointer-events:auto!important;
}
.message:not(.grouped).has-reply .message-head{
  grid-column:2!important;
  grid-row:1!important;
  margin:-3px 0 0!important;
}
.message:not(.grouped).has-reply .message-body{
  grid-column:2!important;
  grid-row:2!important;
  margin:-1px 0 0!important;
}
.message:not(.grouped).has-reply .message-avatar{
  grid-row:1 / 3!important;
  margin-top:0!important;
}
@media(max-width:600px){
  #userProfileModal .user-profile-popout{max-height:calc(100dvh - 12px)!important}
  .message:not(.grouped).has-reply{margin-top:27px!important}
  .message:not(.grouped).has-reply .message-reply{left:44px!important;right:8px!important;top:-21px!important;max-width:calc(100% - 52px)!important}
  .message:not(.grouped).has-reply .message-head{margin-top:-2px!important}
  .message:not(.grouped).has-reply .message-body{margin-top:0!important}
}


/* v76 — visible replies without displacing the current message */
.message:not(.grouped).has-reply{
  position:relative!important;
  margin-top:20px!important;
  content-visibility:visible!important;
  contain:none!important;
  grid-template-rows:auto auto!important;
  row-gap:0!important;
}
.message:first-child.has-reply{
  margin-top:20px!important;
}
.message:not(.grouped).has-reply .message-reply{
  position:absolute!important;
  left:48px!important;
  right:12px!important;
  top:-18px!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  width:auto!important;
  max-width:calc(100% - 60px)!important;
  height:17px!important;
  min-height:17px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  visibility:visible!important;
  opacity:.92!important;
  color:#aeb4bd!important;
  font-size:11px!important;
  line-height:17px!important;
  z-index:5!important;
  pointer-events:auto!important;
  background:transparent!important;
}
.message:not(.grouped).has-reply .message-reply .reply-line{
  width:20px!important;
  height:9px!important;
  flex:0 0 20px!important;
  margin-left:-8px!important;
  margin-top:7px!important;
  border-left:1.5px solid #6c727d!important;
  border-top:1.5px solid #6c727d!important;
  border-radius:6px 0 0 0!important;
}
.message:not(.grouped).has-reply .message-reply strong{
  color:#e2e5e9!important;
  font-weight:650!important;
}
.message:not(.grouped).has-reply .message-head{
  grid-column:2!important;
  grid-row:1!important;
  margin:-3px 0 0!important;
}
.message:not(.grouped).has-reply .message-body{
  grid-column:2!important;
  grid-row:2!important;
  margin:-1px 0 0!important;
}
.message:not(.grouped).has-reply .message-avatar{
  grid-row:1 / 3!important;
  margin-top:0!important;
}
@media(max-width:600px){
  .message:not(.grouped).has-reply,.message:first-child.has-reply{margin-top:16px!important}
  .message:not(.grouped).has-reply .message-reply{
    left:44px!important;
    right:8px!important;
    top:-15px!important;
    max-width:calc(100% - 52px)!important;
    height:14px!important;
    min-height:14px!important;
    line-height:14px!important;
    font-size:10px!important;
  }
  .message:not(.grouped).has-reply .message-reply .reply-line{
    width:16px!important;
    flex-basis:16px!important;
    height:7px!important;
    margin-left:-6px!important;
    margin-top:6px!important;
  }
}

/* v77 — lock profile pictures to a true 1:1 circle */
body.dm-active .dm-profile-avatar,
#userProfileModal .popout-avatar,
.profile-editor-card .profile-avatar{
  aspect-ratio:1 / 1!important;
  box-sizing:border-box!important;
  flex:0 0 auto!important;
  min-width:0!important;
  min-height:0!important;
  overflow:hidden!important;
  border-radius:50%!important;
  line-height:1!important;
}
body.dm-active .dm-profile-avatar img,
#userProfileModal .popout-avatar img,
.profile-editor-card .profile-avatar img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  aspect-ratio:1 / 1!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:inherit!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}


/* v78 — Owner global background: independent interface opacity */
:root{--owner-panel-opacity:.82}
.owner-interface-opacity-hint{display:block;margin-top:7px;line-height:1.45}
body.has-global-bg .server-rail{
  background:color-mix(in srgb,#121316 calc(var(--owner-panel-opacity)*100%),transparent)!important;
}
body.has-global-bg .channel-sidebar{
  background:color-mix(in srgb,#18191d calc(var(--owner-panel-opacity)*100%),transparent)!important;
}
body.has-global-bg .chat-area{
  background:color-mix(in srgb,#1e1f24 calc(var(--owner-panel-opacity)*100%),transparent)!important;
}
body.has-global-bg .member-sidebar{
  background:color-mix(in srgb,#18191d calc(var(--owner-panel-opacity)*100%),transparent)!important;
}
body.has-global-bg .topbar{
  background:color-mix(in srgb,#1b1c20 calc(var(--owner-panel-opacity)*100%),transparent)!important;
}
body.has-global-bg .guild-header,
body.has-global-bg .user-panel{
  background:color-mix(in srgb,#17181c calc(var(--owner-panel-opacity)*100%),transparent)!important;
}
body.has-global-bg .messages{
  background:color-mix(in srgb,#1e1f24 calc(var(--owner-panel-opacity)*92%),transparent)!important;
}
body.has-global-bg .composer-wrap{
  background:transparent!important;
}
body.has-global-bg .composer{
  background:color-mix(in srgb,#25272d calc(var(--owner-panel-opacity)*100%),transparent)!important;
}
body.has-global-bg .composer-mode-bar,
body.has-global-bg .attachment-tray{
  background:color-mix(in srgb,#202126 calc(var(--owner-panel-opacity)*100%),transparent)!important;
}
body.has-global-bg .dm-call-dock{
  background:color-mix(in srgb,#17181c calc(var(--owner-panel-opacity)*100%),transparent)!important;
}
body.has-global-bg .search{
  background:color-mix(in srgb,#17181c calc(var(--owner-panel-opacity)*100%),transparent)!important;
}
body.has-global-bg .dm-profile-card{
  --veyra-interface-layer:color-mix(in srgb,#1b1c20 calc(var(--owner-panel-opacity)*70%),transparent);
}
body.has-global-bg.owner-dm-special .server-rail,
body.has-global-bg.owner-dm-special .channel-sidebar,
body.has-global-bg.owner-dm-special .chat-area,
body.has-global-bg.owner-dm-special .member-sidebar{
  backdrop-filter:blur(var(--owner-ui-blur,12px));
  -webkit-backdrop-filter:blur(var(--owner-ui-blur,12px));
}
@media(max-width:900px){
  body.has-global-bg .channel-sidebar{background:color-mix(in srgb,#18191d calc(var(--owner-panel-opacity)*100%),transparent)!important}
  body.has-global-bg .server-rail{background:color-mix(in srgb,#121316 calc(var(--owner-panel-opacity)*100%),transparent)!important}
  body.has-global-bg .chat-area{background:color-mix(in srgb,#1e1f24 calc(var(--owner-panel-opacity)*100%),transparent)!important}
}

/* v79 — performance + raw Owner background */
:root{--owner-bg-opacity:1}

/* The media itself is now untouched: no dark overlay, no blur, no artificial zoom. */
body.has-global-bg .global-background{
  background:#000!important;
  contain:strict!important;
  isolation:isolate!important;
}
body.has-global-bg .global-background img,
body.has-global-bg .global-background video{
  width:100%!important;
  height:100%!important;
  inset:0!important;
  object-fit:cover!important;
  object-position:center center!important;
  transform:none!important;
  filter:none!important;
  animation:none!important;
  opacity:var(--owner-bg-opacity,1)!important;
  transition:none!important;
  backface-visibility:hidden!important;
}
body.has-global-bg .global-bg-shade{
  background:transparent!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  display:none!important;
}
body.has-global-bg .global-background:before,
body.has-global-bg .global-background:after{
  display:none!important;
  content:none!important;
  animation:none!important;
}

/* Video/GIF backgrounds skip expensive decorative compositing. */
body.owner-bg-performance .server-rail,
body.owner-bg-performance .channel-sidebar,
body.owner-bg-performance .chat-area,
body.owner-bg-performance .member-sidebar,
body.owner-bg-performance .topbar,
body.owner-bg-performance .guild-header,
body.owner-bg-performance .user-panel,
body.owner-bg-performance .messages,
body.owner-bg-performance .composer,
body.owner-bg-performance .composer-mode-bar,
body.owner-bg-performance .attachment-tray,
body.owner-bg-performance .dm-call-dock,
body.owner-bg-performance .search,
body.owner-bg-performance .dm-profile-card{
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  filter:none!important;
}
body.owner-bg-performance .server-rail,
body.owner-bg-performance .channel-sidebar,
body.owner-bg-performance .chat-area,
body.owner-bg-performance .member-sidebar{
  box-shadow:none!important;
}
body.owner-bg-animated.owner-dm-special.owner-vignette .global-background:after,
body.owner-bg-animated.owner-dm-special.owner-grain .global-background:before{
  display:none!important;
}
body.owner-bg-animated.owner-dm-special.owner-slowzoom .global-background img,
body.owner-bg-animated.owner-dm-special.owner-slowzoom .global-background video,
body.owner-bg-animated.owner-dm-special.owner-hueshift .global-background{
  animation:none!important;
  transform:none!important;
  filter:none!important;
}

/* Keep scrolling/rendering cheap with large histories. */
.messages{
  overscroll-behavior:contain;
  contain:layout style paint;
}
.message{
  contain:layout style;
}

/* Avoid costly opacity transitions while animated media is playing. */
body.owner-bg-animated .message,
body.owner-bg-animated .channel,
body.owner-bg-animated .member,
body.owner-bg-animated .server-item,
body.owner-bg-animated .composer,
body.owner-bg-animated .top-icon,
body.owner-bg-animated .panel-icon{
  transition:none!important;
}

@media(max-width:900px){
  body.owner-bg-performance .channel-sidebar,
  body.owner-bg-performance .server-rail,
  body.owner-bg-performance .chat-area,
  body.owner-bg-performance .member-sidebar{
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
}


/* v80 — full-bleed Owner background without artificial zoom */
body.has-global-bg .global-background img,
body.has-global-bg .global-background video{
  object-fit:cover!important;
  object-position:center center!important;
  transform:none!important;
  scale:none!important;
}



/* V82 — Owner account recovery / deletion */
.owner-account-recovery{margin-top:16px;padding:14px;border:1px solid #3a3d44;background:#17181c;border-radius:10px}
.owner-account-recovery-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.owner-account-recovery-head strong{display:block;color:#f2f3f5}
.owner-account-recovery-head small{display:block;margin-top:3px;line-height:1.35}
.owner-password-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.owner-password-grid label{margin:0;color:#b5bac1}
.owner-password-grid input{margin-top:5px!important}
.owner-recovery-actions{margin-top:10px}
.owner-recovery-actions .secondary-btn{margin:0;min-height:38px}
.owner-account-delete-zone{margin-top:12px;padding:14px;border:1px solid rgba(242,63,66,.38);background:rgba(242,63,66,.055);border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.owner-account-delete-zone>div{min-width:0}
.owner-account-delete-zone strong{display:block;color:#ff8e92;margin-bottom:4px}
.owner-account-delete-zone small{display:block;color:#aeb3bb;line-height:1.4;max-width:560px}
.owner-account-delete-zone .owner-delete-account-btn{flex:0 0 auto;padding:9px 12px;border-radius:7px;cursor:pointer}
@media(max-width:760px){.owner-password-grid{grid-template-columns:1fr}.owner-account-delete-zone{align-items:stretch;flex-direction:column}.owner-account-delete-zone .owner-delete-account-btn{width:100%}}


/* v83 — Nexus */
/* Flat workspace: removes the colored/background frame exposed by old panel margins. */
.server-rail,.channel-sidebar,.chat-area,.member-sidebar{box-shadow:none!important}
.channel-sidebar,.chat-area,.member-sidebar{border-radius:0!important}
@media(min-width:901px){
  .channel-sidebar,.chat-area,.member-sidebar{margin:0!important;border:0!important}
  .member-sidebar{padding-top:10px!important;padding-bottom:10px!important}
}
@media(max-width:900px){
  .channel-sidebar,.chat-area,.member-sidebar{margin:0!important;border-radius:0!important;box-shadow:none!important}
  body.mobile-sidebar-open .channel-sidebar{border:0!important}
  body.members-overlay-open .member-sidebar{border:0!important}
}
.home-hub-title{padding:10px 9px 5px;font-size:9px;font-weight:900;letter-spacing:.08em;color:#8f949d}
.pulse-hub-title{display:flex;align-items:center;gap:5px;color:#b9a7ff}.pulse-hub-title span{color:#8d7aff}
.pulse-home-channel small{margin-left:auto;font-size:9px;color:#9ca2ac}.pulse-home-channel.pulse-locked{opacity:.68}
.pulse-moved-notice{display:flex;flex-direction:column;gap:6px;padding:12px;margin:12px 0 16px;border:1px solid rgba(139,124,255,.25);background:rgba(139,124,255,.07);border-radius:9px}.pulse-moved-notice strong{color:#d5ccff}.pulse-moved-notice span{font-size:12px;line-height:1.45;color:#b9bdc6}
.nexus-top-btn{font-weight:900;color:#c7bcff!important}.nexus-top-btn:hover{color:#fff!important;background:rgba(124,107,255,.16)!important}
.server-folder-group{display:flex;align-items:center;gap:5px;padding:3px 5px;border-radius:11px;background:rgba(255,255,255,.035)}.server-folder-group.folder-collapsed>.server-item{display:none!important}.server-folder-label{width:25px;height:28px;flex:0 0 25px;border:0;border-radius:7px;background:rgba(132,116,255,.16);color:#cfc7ff;cursor:pointer}.server-folder-label:hover{background:rgba(132,116,255,.28)}
.nexus-dialog-card{width:min(680px,94vw);max-height:min(82vh,760px);overflow:auto}.nexus-dialog-card label{display:block;margin:12px 0 5px;font-size:10px;font-weight:800;color:#aeb3bd}.nexus-dialog-card input,.nexus-dialog-card textarea,.nexus-dialog-card select{width:100%;box-sizing:border-box}.nexus-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.new-messages-divider{display:flex;align-items:center;gap:8px;margin:10px 4px 6px;color:#ff6470;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.new-messages-divider:before,.new-messages-divider:after{content:"";height:1px;flex:1;background:rgba(255,75,90,.55)}
.session-device-row{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.055)}.session-device-row>span{color:#43b581}.session-device-row strong,.session-device-row small{display:block}.session-device-row small{margin-top:2px;color:#949ba4;font-size:10px}.account-sessions-card{margin-top:16px;padding:14px;border:1px solid rgba(255,255,255,.07);border-radius:9px;background:rgba(255,255,255,.025)}
.nexus-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.nexus-media-item{position:relative;display:block;aspect-ratio:1/1;border-radius:8px;overflow:hidden;background:#121318;border:1px solid rgba(255,255,255,.06);color:#fff;text-decoration:none}.nexus-media-item img,.nexus-media-item video{width:100%;height:100%;object-fit:cover}.nexus-media-item>span{position:absolute;left:5px;bottom:5px;padding:2px 4px;border-radius:4px;background:rgba(0,0,0,.68);font-size:8px}.nexus-file-tile{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:26px}.nexus-file-tile small{max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
.audit-list{display:flex;flex-direction:column;gap:6px;margin-top:10px}.audit-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:10px;border-radius:8px;background:rgba(255,255,255,.035)}.audit-row strong{font-size:12px}.audit-row span,.audit-row small{font-size:10px;color:#9ba1aa}.audit-row small{grid-column:1/-1}
.message-reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.reaction-pill{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.045);color:#d6d9df;border-radius:7px;padding:3px 6px;cursor:pointer}.reaction-pill.mine{border-color:rgba(120,105,255,.55);background:rgba(120,105,255,.12)}
.reaction-quick-picker{position:fixed;z-index:400;display:flex;gap:3px;padding:6px;border-radius:9px;background:#111217;border:1px solid rgba(255,255,255,.08);box-shadow:0 12px 32px rgba(0,0,0,.35)}.reaction-quick-picker button{border:0;background:transparent;border-radius:6px;padding:5px;cursor:pointer;font-size:17px}.reaction-quick-picker button:hover{background:rgba(255,255,255,.08)}
.gif-favorites-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:4px 0 7px}.gif-favorites-head small{color:#8f949d;font-size:9px}.gif-favorites{display:flex;gap:6px;overflow-x:auto;min-height:32px;margin-bottom:10px}.gif-favorites button{position:relative;flex:0 0 58px;width:58px;height:44px;padding:0;border:0;border-radius:6px;overflow:hidden;background:#15161a;cursor:pointer}.gif-favorites img{width:100%;height:100%;object-fit:cover}.gif-favorites button span{position:absolute;right:3px;top:2px;color:#ffe07a;text-shadow:0 1px 3px #000}
@media(max-width:600px){.nexus-media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.nexus-two-cols{grid-template-columns:1fr}.server-folder-group{padding:2px 4px}}

/* v84 — Status/Notas dark cards + edge cleanup */
/* Remove as bordas laterais antigas entre rail/sidebar/chat, inclusive nos drawers mobile. */
.app,
.server-rail,
.channel-sidebar,
.chat-area,
.member-sidebar,
.guild-header,
.topbar,
.user-panel{
  border-left:0!important;
  border-right:0!important;
  outline:0!important;
}
.server-rail:before{border-right:0!important}
body.has-global-bg .server-rail,
body.has-global-bg .channel-sidebar,
body.has-global-bg .chat-area,
body.has-global-bg .member-sidebar{
  border-left:0!important;
  border-right:0!important;
  box-shadow:none!important;
}
@media(max-width:900px){
  .server-rail,
  .channel-sidebar,
  .chat-area,
  .member-sidebar{
    border-left:0!important;
    border-right:0!important;
    outline:0!important;
    box-shadow:none!important;
  }
  body.mobile-sidebar-open .channel-sidebar,
  body.members-overlay-open .member-sidebar{
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
  }
}

/* Home Pulse */
.nexus-home-view{
  background:transparent!important;
  color:var(--text)!important;
}
.nexus-home-view .nexus-section{
  margin:22px 0 0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
.nexus-home-view .nexus-section + .nexus-section{margin-top:28px!important}
.nexus-home-view .nexus-section>h3{
  margin:0 0 12px!important;
  padding:0!important;
  color:#c9cdd4!important;
  font-size:11px!important;
  font-weight:900!important;
  letter-spacing:.035em!important;
}

/* Status: cards escuros separados, sem qualquer fundo branco do botão nativo. */
.pulse-story-grid{
  display:flex!important;
  align-items:stretch!important;
  gap:12px!important;
  width:100%!important;
  padding:2px 2px 8px!important;
  margin:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:thin!important;
  scrollbar-color:#343740 transparent!important;
  background:transparent!important;
}
.pulse-story-card{
  appearance:none!important;
  -webkit-appearance:none!important;
  flex:0 0 132px!important;
  min-width:132px!important;
  min-height:126px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:13px 10px 11px!important;
  margin:0!important;
  border:0!important;
  outline:0!important;
  border-radius:12px!important;
  background:#202228!important;
  color:#f1f2f4!important;
  box-shadow:none!important;
  text-align:center!important;
  cursor:pointer!important;
}
.pulse-story-card:hover{background:#282b32!important}
.pulse-story-card:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 70%,white 10%)!important}
.pulse-story-card .pulse-story-avatar,
.pulse-story-card .avatar{
  width:50px!important;
  height:50px!important;
  flex:0 0 50px!important;
  border-radius:50%!important;
}
.pulse-story-card strong{
  display:block!important;
  width:100%!important;
  color:#f2f3f5!important;
  font-size:12px!important;
  line-height:1.2!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}
.pulse-story-card>span{
  display:block!important;
  width:100%!important;
  color:#949ba4!important;
  font-size:10px!important;
  line-height:1.25!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}

/* Notas: visual próprio, lista separada e espaçada. */
.pulse-notes-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;
  gap:12px!important;
  width:100%!important;
  margin:0!important;
  padding:2px!important;
  background:transparent!important;
}
.pulse-note-card{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:100%!important;
  min-width:0!important;
  min-height:86px!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  align-items:center!important;
  gap:11px!important;
  padding:13px!important;
  margin:0!important;
  border:0!important;
  outline:0!important;
  border-radius:12px!important;
  background:#202228!important;
  color:#f1f2f4!important;
  box-shadow:none!important;
  text-align:left!important;
  cursor:pointer!important;
}
.pulse-note-card:hover{background:#282b32!important}
.pulse-note-card:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 70%,white 10%)!important}
.pulse-note-card.music{background:#22232b!important}
.pulse-note-card>.avatar{
  width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
}
.pulse-note-card>div{min-width:0!important}
.pulse-note-card strong{
  display:block!important;
  margin:0 0 4px!important;
  color:#f2f3f5!important;
  font-size:12px!important;
  line-height:1.25!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.pulse-note-card p{
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  margin:0 0 5px!important;
  color:#c5c9d0!important;
  font-size:11px!important;
  line-height:1.35!important;
  overflow-wrap:anywhere!important;
}
.pulse-note-card>div>span{
  display:block!important;
  color:#8e949e!important;
  font-size:9px!important;
  line-height:1.2!important;
}

@media(max-width:600px){
  .nexus-home-view .nexus-section{margin-top:20px!important}
  .pulse-story-grid{gap:10px!important;padding-bottom:7px!important}
  .pulse-story-card{flex-basis:116px!important;min-width:116px!important;min-height:116px!important;padding:11px 8px!important}
  .pulse-story-card .pulse-story-avatar,.pulse-story-card .avatar{width:46px!important;height:46px!important;flex-basis:46px!important}
  .pulse-notes-grid{grid-template-columns:1fr!important;gap:10px!important}
  .pulse-note-card{min-height:80px!important;padding:11px!important}
}

/* v85 — Owner-only live activity + hard dark social surfaces */
html,body{color-scheme:dark}
.nexus-home-view button.pulse-story-card,
.nexus-home-view button.pulse-note-card,
.nexus-home-view button.activity-card{
  -webkit-appearance:none!important;
  appearance:none!important;
  background-color:#202228!important;
  background-image:none!important;
  color:#f2f3f5!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  forced-color-adjust:none;
}
.nexus-home-view button.pulse-story-card *,
.nexus-home-view button.pulse-note-card *,
.nexus-home-view button.activity-card *{
  background-color:transparent!important;
}
.nexus-home-view button.pulse-story-card:hover,
.nexus-home-view button.pulse-note-card:hover,
.nexus-home-view button.activity-card:hover{
  background-color:#292c33!important;
}
.activity-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:18px;
  padding:0;
  background:transparent!important;
}
.activity-card{
  width:100%;
  min-height:78px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  gap:11px;
  padding:12px 13px;
  margin:0;
  border-radius:12px!important;
  text-align:left;
  cursor:pointer;
}
.activity-card.unread{background-color:#252936!important}
.activity-card>.avatar,.activity-card>.activity-icon{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:0 0 42px;
}
.activity-card>.activity-icon{background:#2c2f36!important;color:#c8cce0;font-weight:900}
.activity-card>div{min-width:0}
.activity-card strong{display:block;color:#f2f3f5;font-size:12px;margin-bottom:2px}
.activity-card span{display:block;color:#aab0ba;font-size:10px;margin-bottom:4px}
.activity-card p{margin:0 0 5px;color:#c7cbd2;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.activity-card small{display:block;color:#7f8691;font-size:9px}


.activity-card.owner-announcement{
  background:#20242d!important;
}
.activity-card.owner-announcement.unread{
  background:#252b39!important;
}
.activity-card.owner-announcement.no-target{
  cursor:default!important;
}
.owner-activity-announcement-composer{
  margin:18px 0 4px;
  padding:14px;
  border:0!important;
  border-radius:12px;
  background:#181a1f!important;
  box-shadow:none!important;
  outline:0!important;
}
.owner-announcement-head{
  background:transparent!important;
}
.owner-announcement-head strong{
  display:block;
  color:#f2f3f5;
  font-size:11px;
  letter-spacing:.04em;
}
.owner-announcement-head span{
  display:block;
  max-width:720px;
  margin-top:5px;
  color:#969da8;
  font-size:10px;
  line-height:1.45;
}
.owner-announcement-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
  margin-top:13px;
  background:transparent!important;
}
.owner-announcement-form label{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
  background:transparent!important;
}
.owner-announcement-form label>span{
  color:#aeb4bd;
  font-size:9px;
  font-weight:800;
  letter-spacing:.035em;
  background:transparent!important;
}
.owner-announcement-form input,
.owner-announcement-form select,
.owner-announcement-form textarea{
  width:100%;
  box-sizing:border-box;
  margin:0!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  border-radius:9px!important;
  background:#23262d!important;
  background-color:#23262d!important;
  background-image:none!important;
  color:#f2f3f5!important;
  -webkit-appearance:none;
  appearance:none;
}
.owner-announcement-form input,
.owner-announcement-form select{
  min-height:38px;
  padding:0 11px!important;
}
.owner-announcement-form textarea{
  min-height:88px;
  resize:vertical;
  padding:10px 11px!important;
  line-height:1.45;
}
.owner-announcement-form input::placeholder,
.owner-announcement-form textarea::placeholder{
  color:#737b87!important;
}
.owner-announcement-wide{
  grid-column:1/-1;
}
.owner-announcement-submit{
  grid-column:1/-1;
  display:flex;
  justify-content:flex-end;
  background:transparent!important;
}
.owner-announcement-submit button{
  width:auto!important;
  min-width:138px;
  margin:0!important;
}
@media(max-width:600px){
  .owner-announcement-form{grid-template-columns:1fr}
  .owner-announcement-wide,.owner-announcement-submit{grid-column:1}
  .owner-announcement-submit button{width:100%!important}
}

/* Remove de vez linhas/sombras laterais entre as colunas do app. */
.server-rail,.channel-sidebar,.chat-area,.member-sidebar,
body.mobile-sidebar-open .channel-sidebar,
body.members-overlay-open .member-sidebar{
  border-left-width:0!important;
  border-right-width:0!important;
  border-inline:0!important;
  outline:0!important;
  box-shadow:none!important;
}
.server-rail::before,.server-rail::after,
.channel-sidebar::before,.channel-sidebar::after,
.chat-area::before,.chat-area::after,
.member-sidebar::before,.member-sidebar::after{
  border-left:0!important;
  border-right:0!important;
  box-shadow:none!important;
}

/* v87 — Owner background true full-bleed: edge bands removed at the source */
html,body,body.has-global-bg{margin:0!important;padding:0!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important}
body.has-global-bg .global-background{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#000!important;
}
body.has-global-bg .global-background>#globalBgImage,
body.has-global-bg .global-background>#globalBgVideo,
body.has-global-bg .global-background>#ownerDmBgImage,
body.has-global-bg .global-background>#ownerDmBgVideo{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  object-position:center center!important;
  transform:none!important;
  scale:none!important;
  filter:none!important;
  background:transparent!important;
}
body.has-global-bg .app{
  position:relative!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
body.has-global-bg .server-rail,
body.has-global-bg .channel-sidebar,
body.has-global-bg .chat-area,
body.has-global-bg .member-sidebar{
  margin:0!important;
  border-left:0!important;
  border-right:0!important;
  outline:0!important;
  box-shadow:none!important;
}


/* v88 — Owner announcement manager */
.owner-announcement-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.owner-announcement-manage-btn{flex:0 0 auto;width:auto!important;margin:0!important;white-space:nowrap}
.owner-announcement-manager{margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.055);background:transparent!important}
.owner-announcement-manager-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px;background:transparent!important}
.owner-announcement-manager-head strong{display:block;color:#f2f3f5;font-size:10px;letter-spacing:.04em}
.owner-announcement-manager-head span{display:block;color:#89909b;font-size:9px;line-height:1.4;margin-top:4px}
.owner-announcement-manager-actions{display:flex;gap:7px;background:transparent!important}
.owner-announcement-list{display:grid;gap:8px;background:transparent!important}
.owner-announcement-manage-row{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;padding:11px 12px;border:0!important;border-radius:10px;background:#202228!important;background-color:#202228!important;background-image:none!important;box-shadow:none!important;outline:0!important}
.owner-announcement-manage-main{min-width:0;flex:1;background:transparent!important}
.owner-announcement-manage-meta{display:flex;align-items:center;gap:8px;margin-bottom:5px;background:transparent!important}
.owner-announcement-manage-meta span{font-size:9px;font-weight:800;color:#aeb4bd;background:transparent!important}
.owner-announcement-manage-meta small{font-size:8px;color:#747c87;background:transparent!important}
.owner-announcement-manage-row strong{display:block;color:#f2f3f5;font-size:11px;margin-bottom:4px}
.owner-announcement-manage-row p{margin:0;color:#bdc2ca;font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.owner-announcement-link{display:block;margin-top:5px;color:#8fa2c9;font-size:8px;overflow-wrap:anywhere}
.owner-announcement-delete{flex:0 0 auto;width:auto!important;margin:0!important}
.owner-announcement-manager-loading,.owner-announcement-empty{padding:12px;border-radius:9px;background:#202228!important;color:#858c97;font-size:10px}
@media(max-width:600px){.owner-announcement-head,.owner-announcement-manager-head{flex-direction:column}.owner-announcement-manage-btn,.owner-announcement-manager-actions{width:100%}.owner-announcement-manager-actions button{flex:1}.owner-announcement-manage-row{align-items:flex-start;flex-direction:column}.owner-announcement-delete{width:100%!important}}

/* v89 — status social + owner user directory */
.pulse-status-socialbar{position:absolute;z-index:9;left:14px;right:14px;bottom:12px;display:flex;align-items:center;gap:8px;pointer-events:auto}
.pulse-status-social-btn{min-height:38px;border:0!important;outline:0!important;box-shadow:none!important;border-radius:12px;background:rgba(13,14,17,.88)!important;color:#f2f3f5!important;padding:8px 12px;display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;cursor:pointer;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.pulse-status-social-btn:hover{background:rgba(33,35,41,.96)!important}
.pulse-status-social-btn.liked{color:#ff6b86!important}
.pulse-status-social-btn .pulse-status-heart{font-size:21px;line-height:1}
.pulse-status-social-btn b{font-size:11px;color:inherit}
.pulse-status-caption{bottom:62px!important;max-height:22vh;overflow:auto}
.pulse-status-nav{bottom:62px!important}
.pulse-status-comments-panel{position:absolute;inset:0;z-index:30;background:#111216!important;background-image:none!important;color:#f2f3f5!important;display:flex;flex-direction:column;border:0!important;outline:0!important;box-shadow:none!important}
.pulse-status-comments-head{height:58px;flex:0 0 58px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;background:#17191e!important;border:0!important;border-bottom:1px solid #24272e!important}
.pulse-status-comments-head strong{font-size:14px}
.pulse-status-comments-head button{width:34px;height:34px;border-radius:50%;border:0;background:#24272d!important;color:#f2f3f5;font-size:21px;cursor:pointer}
.pulse-status-comments-list{flex:1;min-height:0;overflow:auto;padding:12px;background:#111216!important}
.pulse-status-comments-empty{padding:28px 12px;text-align:center;color:#9ca1ad;font-size:12px}
.pulse-status-comment{display:flex;align-items:flex-start;gap:9px;padding:10px 8px;border-radius:10px;background:#181a1f!important;border:0!important;box-shadow:none!important;margin-bottom:8px}
.pulse-status-comment>.avatar{width:32px;height:32px;flex:0 0 32px}
.pulse-status-comment-main{min-width:0;flex:1}
.pulse-status-comment-author{display:flex;align-items:center;gap:7px;min-width:0}
.pulse-status-comment-author strong{font-size:12px;color:#f2f3f5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pulse-status-comment-author small{font-size:9px;color:#7f8592;white-space:nowrap}
.pulse-status-comment p{margin:4px 0 6px;color:#d9dce3;font-size:12px;line-height:1.4;word-break:break-word}
.pulse-status-comment-actions{display:flex;align-items:center;gap:10px}
.pulse-status-comment-actions button{border:0!important;background:transparent!important;box-shadow:none!important;color:#9fa4b0;font-size:10px;font-weight:700;padding:2px 0;cursor:pointer}
.pulse-status-comment-actions .pulse-comment-like.liked{color:#ff6b86}
.pulse-status-comment-compose{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:10px 12px;background:#17191e!important;border-top:1px solid #24272e!important}
.pulse-status-comment-compose input{flex:1;min-width:0;height:40px;border:0!important;outline:0!important;border-radius:12px;background:#22252b!important;color:#f2f3f5!important;padding:0 12px;box-shadow:none!important}
.pulse-status-comment-compose button{height:40px;border:0!important;border-radius:12px;background:var(--brand)!important;color:#fff!important;padding:0 14px;font-weight:800;cursor:pointer;box-shadow:none!important}
.pulse-status-likers{display:flex;flex-direction:column;gap:7px;max-height:55vh;overflow:auto}
.pulse-status-liker-row{width:100%;display:flex;align-items:center;gap:10px;padding:9px 10px;border:0!important;border-radius:10px;background:#202228!important;color:#f2f3f5!important;text-align:left;cursor:pointer;box-shadow:none!important}
.pulse-status-liker-row:hover{background:#292c33!important}
.pulse-status-liker-row>.avatar{width:34px;height:34px;flex:0 0 34px}
.pulse-status-liker-row>div{min-width:0;display:flex;flex-direction:column}
.pulse-status-liker-row strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pulse-status-liker-row span{font-size:10px;color:#9fa4b0}
.owner-users-directory-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:10px;margin-top:12px}
.owner-user-directory-card{display:flex;flex-direction:column;gap:10px;min-width:0;padding:12px;border:0!important;border-radius:12px;background:#1b1d22!important;background-image:none!important;color:#f2f3f5!important;box-shadow:none!important;outline:0!important}
.owner-user-directory-profile{display:flex;align-items:center;gap:10px;width:100%;padding:0;border:0!important;background:transparent!important;color:inherit;text-align:left;cursor:pointer;box-shadow:none!important}
.owner-user-directory-profile>.avatar{width:44px;height:44px;flex:0 0 44px}
.owner-user-directory-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.owner-user-directory-copy>div{display:flex;align-items:center;gap:6px;min-width:0}
.owner-user-directory-copy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.owner-user-directory-copy span{font-size:10px;color:#9fa4b0}
.owner-user-directory-copy small{font-size:10px;color:#c5c8d0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.owner-directory-badge,.pulse-directory-badge{font-size:8px!important;font-weight:900;padding:2px 5px;border-radius:5px;color:#fff!important;background:#5b5fd6!important}
.pulse-directory-badge{background:#6e52b5!important}
.owner-user-directory-social{display:flex;flex-direction:column;gap:3px;padding:8px 9px;border-radius:9px;background:#202228!important;color:#aeb2bd;font-size:10px;min-height:48px}
.owner-user-directory-social span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.owner-user-directory-actions{display:flex;gap:7px;flex-wrap:wrap}
.owner-users-load-more{display:block;margin:14px auto 0}
@media(max-width:600px){.owner-users-directory-list{grid-template-columns:1fr}.pulse-status-socialbar{left:10px;right:10px}.pulse-status-social-btn{padding:7px 10px}.pulse-status-comments-panel{border-radius:0}}
.pulse-status-social-btn.hidden,.pulse-status-comments-panel.hidden,.owner-users-load-more.hidden{display:none!important}

/* v90 — Owner anonymous comments on other users' Pulse statuses */
.pulse-status-comment-compose{background:#17191e!important;border:0!important;outline:0!important;box-shadow:none!important;padding:10px 12px!important;display:flex!important;flex-direction:column!important;gap:8px!important}
.pulse-status-comment-compose-row{display:flex;align-items:center;gap:8px;width:100%}
.pulse-status-comment-compose-row input{flex:1;min-width:0}
.pulse-status-comment-anonymous{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;color:#c8cbd2;font-size:11px;cursor:pointer;user-select:none}
.pulse-status-comment-anonymous input{accent-color:#a970ff}
.pulse-status-comment-anonymous.hidden{display:none!important}
.pulse-status-comment.anonymous{background:#15171c!important;border:0!important;outline:0!important;box-shadow:none!important}
.pulse-comment-anonymous-avatar{width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:radial-gradient(circle at 50% 38%,#4b4f5b 0 16%,#292c34 17% 44%,#17191e 45% 100%);border:1px solid #3a3d47;position:relative}
.pulse-comment-anonymous-avatar:after{content:"?";position:absolute;inset:0;display:grid;place-items:center;color:#d9dbe1;font-weight:800;font-size:15px}


/* v91 — Status controls; Anonymous is restricted to Owner comments only */
.pulse-status-owner-controls{position:absolute;z-index:10;top:66px;right:14px;display:flex;align-items:center;gap:7px;pointer-events:auto}
.pulse-status-owner-controls.hidden{display:none!important}
.pulse-status-owner-control{border:0!important;outline:0!important;box-shadow:none!important;border-radius:10px;background:rgba(20,22,27,.88)!important;color:#eef0f4!important;padding:8px 10px;font-size:10px;font-weight:800;cursor:pointer;backdrop-filter:blur(10px)}
.pulse-status-owner-control:hover{background:rgba(35,38,46,.94)!important}
.pulse-status-owner-control.danger{color:#ff9ca7!important}
.pulse-status-social-btn.comments-disabled{opacity:.62;cursor:not-allowed!important}
@media(max-width:600px){.pulse-status-owner-controls{top:62px;right:10px;gap:5px}.pulse-status-owner-control{padding:7px 8px;font-size:9px}}


/* v92 — comments are chosen when publishing a Pulse status */
.pulse-status-comments-publish-option{display:flex!important;align-items:flex-start!important;gap:11px!important;margin:2px 0 6px!important;padding:12px 13px!important;border:1px solid #2d3038!important;border-radius:12px!important;background:#1b1e24!important;color:#f2f3f5!important;cursor:pointer!important;box-shadow:none!important}
.pulse-status-comments-publish-option input{width:18px!important;height:18px!important;margin:2px 0 0!important;accent-color:var(--brand)!important;flex:0 0 auto!important}
.pulse-status-comments-publish-option span{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important}
.pulse-status-comments-publish-option strong{font-size:13px!important;line-height:1.2!important;color:#f2f3f5!important}
.pulse-status-comments-publish-option small{font-size:11px!important;line-height:1.35!important;color:#9fa4b0!important;font-weight:500!important}


/* v93 — Pulse Discovery / unseen Status & Notes; local seen-state, zero polling */
.avatar.has-pulse-status{position:relative}
.avatar.has-pulse-status:after{content:"";position:absolute;inset:-3px;border-radius:inherit;border:2px solid rgba(119,126,255,.42);pointer-events:none}
.avatar.has-unseen-pulse-status:after{border-color:#8b7cff;box-shadow:0 0 0 2px rgba(139,124,255,.16),0 0 14px rgba(139,124,255,.34)}
.pulse-unseen-pill{margin-left:auto!important;background:#6f63e9!important;color:#fff!important;min-width:19px!important;height:19px!important;display:grid!important;place-items:center!important;font-size:9px!important}
.pulse-unseen-pill.note{background:#8c5bd8!important}
.pulse-discovery-view{padding-bottom:28px}
.pulse-discovery-hero{align-items:flex-start!important}
.pulse-discovery-summary{display:grid;grid-template-columns:repeat(3,minmax(110px,1fr)) auto;gap:9px;margin:12px 0 18px}
.pulse-discovery-summary>div,.pulse-discovery-summary>button{min-height:64px;border:0!important;border-radius:13px;background:#1b1d22!important;color:#f2f3f5!important;box-shadow:none!important;outline:0!important}
.pulse-discovery-summary>div{display:flex;flex-direction:column;justify-content:center;padding:11px 13px}
.pulse-discovery-summary strong{font-size:20px;line-height:1}.pulse-discovery-summary span{font-size:10px;color:#9fa4b0;margin-top:5px}
.pulse-discovery-summary>button{padding:0 15px;font-size:11px;font-weight:800;cursor:pointer;border:1px solid #30333c!important}
.pulse-discovery-summary>button:hover:not(:disabled){background:#23262d!important}.pulse-discovery-summary>button:disabled{opacity:.45;cursor:default}
.pulse-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:10px}
.pulse-section-heading>div:first-child{display:flex;flex-direction:column;gap:3px}.pulse-section-heading h3{margin:0}.pulse-section-heading span{font-size:10px;color:#8f94a0}
.pulse-discovery-filters{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.pulse-discovery-filters button{border:0!important;border-radius:999px;background:#202228!important;color:#aeb2bd!important;padding:7px 10px;font-size:10px;font-weight:800;cursor:pointer;box-shadow:none!important}
.pulse-discovery-filters button.active{background:#625bd2!important;color:#fff!important}
.pulse-discovery-grid{gap:12px!important}
.pulse-discovery-card{position:relative!important;overflow:visible!important;min-width:150px!important;transition:transform .12s ease,background .12s ease!important}
.pulse-discovery-card:hover{transform:translateY(-2px)}
.pulse-discovery-card.unseen{background:#20232b!important;box-shadow:0 0 0 1px rgba(127,116,255,.3)!important}
.pulse-discovery-avatar-wrap{position:relative;display:inline-flex}.pulse-new-badge{position:absolute;right:-9px;bottom:-5px;font-style:normal;font-size:7px;line-height:1;padding:4px 5px;border-radius:999px;background:#7064ed;color:#fff;font-weight:900;letter-spacing:.5px;box-shadow:0 0 0 2px #20232b}
.pulse-card-note{display:block;max-width:100%;margin-top:4px;padding:5px 7px;border-radius:7px;background:#17191e;color:#aeb2bd;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pulse-card-note.new{color:#e5defe;background:#262132}
.pulse-recent-grid{display:flex;gap:9px;overflow-x:auto;padding:2px 2px 7px;scrollbar-width:none}.pulse-recent-grid::-webkit-scrollbar{display:none}
.pulse-recent-card{flex:0 0 78px;min-width:78px;border:0!important;border-radius:12px;background:#1b1d22!important;color:#e8e9ed!important;padding:10px 7px!important;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer;box-shadow:none!important}.pulse-recent-card>.avatar{width:42px;height:42px}.pulse-recent-card span{max-width:68px;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pulse-filter-empty{grid-column:1/-1;padding:18px;border-radius:12px;background:#191b20;color:#8f94a0;font-size:11px;text-align:center}
.pulse-note-card.pulse-note-unseen{box-shadow:0 0 0 1px rgba(151,100,234,.34)!important;background:#211f29!important}.pulse-inline-new{font-style:normal;font-size:7px;padding:3px 5px;border-radius:999px;background:#795fd7;color:#fff;margin-left:6px;vertical-align:2px}
@media(max-width:760px){.pulse-discovery-summary{grid-template-columns:repeat(3,1fr)}.pulse-discovery-summary>button{grid-column:1/-1;min-height:42px}.pulse-section-heading{align-items:flex-start;flex-direction:column}.pulse-discovery-filters{justify-content:flex-start;width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.pulse-discovery-filters button{flex:0 0 auto}.pulse-discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pulse-discovery-card{min-width:0!important}.pulse-card-note{max-width:120px}}
@media(max-width:430px){.pulse-discovery-summary{gap:6px}.pulse-discovery-summary>div{padding:9px}.pulse-discovery-summary strong{font-size:17px}.pulse-discovery-summary span{font-size:8px}.pulse-discovery-grid{grid-template-columns:1fr!important}.pulse-discovery-card{width:100%!important}}

/* v94 — Social Core */
:root{--v94-panel:#1b1d22;--v94-panel-2:#202228;--v94-panel-3:#252830;--v94-border:#30333c;--v94-text:#f2f3f5;--v94-muted:#9fa4b0;--v94-accent:#766df0}
#friendRequestMessage,#pulseStatusAudience,#pulseNoteDuration,#pulseNoteTheme,#channelModeCreate,
#profileLinkWebsite,#profileLinkInstagram,#profileLinkTiktok,#profileLinkYoutube,#profileLinkGithub,
.profile-extra-settings input,.profile-extra-settings select,.profile-extra-settings textarea,
.v94-search-controls input,.v94-search-controls select,.v94-forum-posts+textarea,#v94ForumReply{
  background:var(--v94-panel-2)!important;color:var(--v94-text)!important;border:1px solid var(--v94-border)!important;outline:0!important;box-shadow:none!important
}
#friendRequestMessage::placeholder,.v94-search-controls input::placeholder,#v94ForumReply::placeholder{color:#747986!important}
#friendRequestMessage{width:100%;min-height:76px;resize:vertical;border-radius:10px;padding:10px 11px;margin-top:9px}
.profile-extra-settings{display:grid;gap:10px}.profile-extra-settings .field-row{display:grid;gap:6px}.profile-extra-settings label{color:#c7cad2;font-size:11px;font-weight:700}
.profile-extra-settings input{width:100%;border-radius:9px;padding:9px 10px}
.profile-extra-settings .checkbox-row{display:flex;align-items:center;gap:9px;color:#d7d9df;font-size:11px}.profile-extra-settings input[type=checkbox]{width:16px;height:16px;accent-color:var(--v94-accent)}

/* Close friends */
.v94-close-friend-list{display:flex;flex-direction:column;gap:7px;max-height:min(56vh,520px);overflow:auto;padding-right:2px}
.v94-close-friend-row{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:11px;background:var(--v94-panel)!important;color:var(--v94-text)!important;border:0!important;box-shadow:none!important}
.v94-close-friend-row>.avatar{width:38px;height:38px;flex:0 0 38px}.v94-close-friend-row>div{min-width:0;flex:1;display:flex;flex-direction:column}.v94-close-friend-row strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v94-close-friend-row span{font-size:9px;color:var(--v94-muted)}
.v94-close-friend-row input{width:17px;height:17px;accent-color:var(--v94-accent)}

/* Notes 2.0 */
.v94-note-detail{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:14px;border-radius:15px;background:var(--v94-panel)!important;color:var(--v94-text)!important;border:0!important;box-shadow:none!important}
.v94-note-detail>.avatar{width:52px;height:52px}.v94-note-copy{min-width:0;display:flex;flex-direction:column;gap:5px}.v94-note-copy strong{font-size:13px}.v94-note-copy p{margin:0;font-size:13px;line-height:1.45;overflow-wrap:anywhere}.v94-note-copy small{color:var(--v94-muted);font-size:9px}
.v94-note-detail[data-theme="rose"]{background:linear-gradient(145deg,#2a1f27,#1d1d22)!important}.v94-note-detail[data-theme="violet"]{background:linear-gradient(145deg,#272039,#1d1d22)!important}.v94-note-detail[data-theme="ocean"]{background:linear-gradient(145deg,#1c2931,#1d1d22)!important}.v94-note-detail[data-theme="graphite"]{background:linear-gradient(145deg,#27292f,#191a1e)!important}
.v94-note-actions{grid-column:1/-1;display:flex;gap:7px;flex-wrap:wrap;margin-top:3px}.v94-note-actions button{border:0!important;border-radius:9px;background:#292c34!important;color:#e7e8ec!important;padding:8px 10px;font-size:10px;font-weight:800;cursor:pointer;box-shadow:none!important}.v94-note-actions button:hover{background:#323640!important}
.v94-profile-note-jump{cursor:pointer}

/* Profile 2.0 */
.v94-profile-details{margin-top:12px;padding:0;border:0!important;background:transparent!important;color:var(--v94-text)!important;box-shadow:none!important}
.v94-profile-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:5px;margin:0 0 10px;border-radius:15px;background:rgba(15,16,20,.72)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.035)!important;overflow:hidden}
.v94-profile-tab{min-width:0;height:38px;display:flex;align-items:center;justify-content:center;gap:6px;border:0!important;border-radius:11px;background:transparent!important;color:#9095a1!important;padding:0 8px;font-size:10px;font-weight:800;letter-spacing:.01em;cursor:pointer;box-shadow:none!important;transition:background .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease}
.v94-profile-tab:hover{background:rgba(255,255,255,.045)!important;color:#d9dce3!important}
.v94-profile-tab:active{transform:scale(.975)}
.v94-profile-tab.active{background:linear-gradient(145deg,rgba(118,109,240,.96),rgba(91,82,211,.96))!important;color:#fff!important;box-shadow:0 6px 15px rgba(83,73,199,.22),inset 0 1px 0 rgba(255,255,255,.16)!important}
.v94-profile-tab-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;border-radius:7px;background:rgba(255,255,255,.055);font-size:10px;line-height:1;color:currentColor;transition:background .16s ease,transform .16s ease}
.v94-profile-tab.active .v94-profile-tab-icon{background:rgba(255,255,255,.15);transform:translateY(-.5px)}
.v94-profile-tab span:last-child{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v94-profile-page{padding:12px;border-radius:13px;background:linear-gradient(180deg,rgba(28,30,36,.92),rgba(24,26,31,.92))!important;color:#e9eaee!important;border:0!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;animation:v965ProfilePageIn .16s ease}
.v94-profile-page p{margin:5px 0;color:#c7cad1;font-size:10px}.v94-profile-page strong{color:#f1f2f4}
@keyframes v965ProfilePageIn{from{opacity:.55;transform:translateY(2px)}to{opacity:1;transform:none}}
@media(max-width:430px){.v94-profile-tabs{gap:4px;padding:4px;border-radius:13px}.v94-profile-tab{height:36px;gap:5px;padding:0 6px;font-size:9px}.v94-profile-tab-icon{width:18px;height:18px;flex-basis:18px;border-radius:6px;font-size:9px}}
.v94-mutual-block+ .v94-mutual-block{margin-top:12px}.v94-mutual-block>strong{display:block;margin-bottom:7px;font-size:10px;color:#aeb2bd;text-transform:uppercase;letter-spacing:.5px}.v94-mutual-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:7px}.v94-mutual-grid button,.v94-mutual-grid>div{border:0!important;border-radius:10px;background:#22242a!important;color:#e8e9ed!important;padding:8px;display:flex;align-items:center;gap:8px;text-align:left;box-shadow:none!important;min-width:0}.v94-mutual-grid .avatar{width:30px;height:30px;flex:0 0 30px}.v94-mutual-grid span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}.v94-guild-chips{display:flex;gap:6px;flex-wrap:wrap}.v94-guild-chips span{padding:6px 8px;border-radius:8px;background:#24262d;color:#c9ccd3;font-size:9px}
.v94-social-links{display:flex;gap:6px;flex-wrap:wrap}.v94-social-links a{display:inline-flex;align-items:center;padding:7px 9px;border-radius:9px;background:#252830;color:#d9dbdf;text-decoration:none;font-size:9px;font-weight:800}.v94-social-links a:hover{background:#30333d}

/* Archived DMs / favorites */
.v94-archived-dms{display:flex;flex-direction:column;gap:7px}.v94-archive-row{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:11px;background:var(--v94-panel)!important;border:0!important;color:var(--v94-text)!important;box-shadow:none!important}.v94-archive-row>.avatar{width:40px;height:40px;flex:0 0 40px}.v94-archive-row>div{flex:1;min-width:0}.v94-archive-row strong,.v94-archive-row span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v94-archive-row span{font-size:9px;color:var(--v94-muted)}
.dm-favorite-mark{margin-left:auto;color:#f5cf68;font-size:10px}
.v94-mute-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.v94-mute-options button{border:0!important;border-radius:10px;background:#252830!important;color:#e6e7eb!important;padding:10px;font-size:10px;font-weight:800;cursor:pointer}.v94-mute-options button:hover{background:#30333d!important}

/* Conversation search */
.v94-search-controls{display:grid;grid-template-columns:minmax(0,1fr) repeat(2,minmax(110px,.35fr));gap:7px;margin-bottom:10px}.v94-search-controls input,.v94-search-controls select{border-radius:9px;padding:9px 10px;min-width:0}.v94-search-results{display:flex;flex-direction:column;gap:6px;max-height:55vh;overflow:auto}.v94-search-hit{border:0!important;border-radius:11px;background:#1b1d22!important;color:#e8e9ed!important;padding:10px;display:grid;grid-template-columns:auto 1fr;gap:9px;text-align:left;cursor:pointer;box-shadow:none!important}.v94-search-hit>.avatar{width:34px;height:34px}.v94-search-hit>div{min-width:0}.v94-search-hit strong{font-size:10px}.v94-search-hit p{margin:3px 0;color:#c6c9d0;font-size:10px;line-height:1.35;overflow-wrap:anywhere}.v94-search-hit small{font-size:8px;color:#858b98}

/* Threads and bulk message tools */
.v94-thread-root{padding:10px;border-radius:11px;background:#22242a!important;margin-bottom:9px}.v94-thread-replies{display:flex;flex-direction:column;gap:5px;max-height:50vh;overflow:auto}.v94-thread-replies .message{margin:0!important;border-radius:9px;background:#191b20!important;padding:8px!important}
.v94-bulk-toolbar{position:sticky;z-index:25;top:0;display:flex;align-items:center;gap:6px;padding:7px 9px;border-radius:10px;background:rgba(22,24,29,.96)!important;box-shadow:0 8px 22px rgba(0,0,0,.22)!important;margin:6px 10px}.v94-bulk-toolbar button{border:0!important;border-radius:8px;background:#292c34!important;color:#e9eaed!important;padding:7px 9px;font-size:9px;font-weight:800}.v94-bulk-toolbar .danger{color:#ff9ca7!important}
.v94-message-select{display:none;align-self:flex-start;width:17px;height:17px;accent-color:var(--v94-accent);margin:4px 7px 0 0}.v94-bulk-mode .v94-message-select{display:block}.message.v94-selected{background:rgba(107,98,228,.12)!important;box-shadow:inset 3px 0 0 #766df0!important}

/* Voice notes */
.voice-note-btn{position:relative}.voice-note-btn.recording{background:#8f3340!important;color:#fff!important;animation:v94VoicePulse 1s ease-in-out infinite}.voice-note-btn.recording:after{content:"REC";position:absolute;right:-8px;top:-7px;padding:2px 4px;border-radius:5px;background:#d94a5c;color:#fff;font-size:6px;font-weight:900}@keyframes v94VoicePulse{50%{transform:scale(.94);filter:brightness(1.12)}}
.v94-audio-speed{border:0!important;border-radius:999px;background:#2a2d35!important;color:#d9dbe1!important;padding:4px 7px;font-size:8px;font-weight:900;margin-left:5px;cursor:pointer}

/* Media gallery */
.v94-gallery-tabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:10px;scrollbar-width:none}.v94-gallery-tabs::-webkit-scrollbar{display:none}.v94-gallery-tabs button{flex:0 0 auto;border:0!important;border-radius:999px;background:#24262d!important;color:#aeb2bd!important;padding:7px 10px;font-size:9px;font-weight:850;cursor:pointer}.v94-gallery-tabs button.active{background:#625bd2!important;color:#fff!important}

/* Activity filters */
.v94-activity-filters{display:flex;gap:6px;overflow-x:auto;padding:0 0 9px;scrollbar-width:none}.v94-activity-filters::-webkit-scrollbar{display:none}.v94-activity-filters button{flex:0 0 auto;border:0!important;border-radius:999px;background:#24262d!important;color:#aeb2bd!important;padding:7px 10px;font-size:9px;font-weight:850;cursor:pointer}.v94-activity-filters button.active{background:#625bd2!important;color:#fff!important}
.activity-card,.activity-item,[data-activity-category]{background:#1b1d22!important;background-image:none!important;color:#f0f1f3!important;border-color:transparent!important;box-shadow:none!important}

/* Events / RSVP */
.v94-event-card{padding:11px;border-radius:12px;background:#1b1d22!important;color:#eef0f3!important;border:0!important;box-shadow:none!important;margin-bottom:8px}.v94-event-card h4{margin:0 0 4px}.v94-event-card p{margin:4px 0;color:#b7bbc4;font-size:10px}.v94-rsvp{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.v94-rsvp button{border:0!important;border-radius:9px;background:#282b32!important;color:#d9dbe1!important;padding:7px 9px;font-size:9px;font-weight:800}.v94-rsvp button.active{background:#625bd2!important;color:#fff!important}

/* Forums */
.v94-forum-landing{min-height:60vh;display:grid;place-items:center;align-content:center;text-align:center;padding:30px;color:#c7cad1}.v94-forum-landing .big{font-size:54px;color:#7770e6}.v94-forum-landing h2{margin:8px 0 3px;color:#f0f1f3}.v94-forum-landing p{max-width:430px;margin:0 0 14px;color:#969ba7;font-size:11px;line-height:1.5}
.v94-forum-threads,.v94-forum-posts{display:flex;flex-direction:column;gap:7px;margin-top:10px;max-height:56vh;overflow:auto}.v94-forum-thread{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;border:0!important;border-radius:11px;background:#1b1d22!important;color:#e8e9ed!important;padding:10px;text-align:left;cursor:pointer;box-shadow:none!important}.v94-forum-thread>div{min-width:0;display:flex;flex-direction:column}.v94-forum-thread strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v94-forum-thread span,.v94-forum-thread small{font-size:8px;color:#8f94a0}.v94-forum-post{display:grid;grid-template-columns:auto 1fr;gap:9px;padding:9px;border-radius:10px;background:#1b1d22!important;color:#e8e9ed!important}.v94-forum-post>.avatar{width:34px;height:34px}.v94-forum-post p{margin:3px 0;font-size:10px;line-height:1.4}.v94-forum-post small{font-size:8px;color:#858a96}

/* Moderation */
.v94-ban-list{display:flex;flex-direction:column;gap:7px}.v94-ban-row{display:flex;align-items:center;gap:9px;padding:9px;border-radius:10px;background:#1b1d22!important;color:#e8e9ed!important}.v94-ban-row>.avatar{width:36px;height:36px}.v94-ban-row>div{flex:1;min-width:0}.v94-ban-row strong,.v94-ban-row span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v94-ban-row span{font-size:8px;color:#9ba0ac}
.role-list-icon{margin-right:5px}.pulse-viewer-summary{display:flex;align-items:center;gap:6px;color:#b9bdc6;font-size:9px}

/* Strong dark-surface guard for Pulse/Social v94. This changes the actual surfaces, not an overlay. */
.pulse-story-card,.pulse-note-card,.pulse-status-comments-panel,.pulse-status-comment,.pulse-status-comment-compose,
.pulse-status-liker-row,.pulse-status-viewer-row,.owner-user-directory-card,.owner-user-directory-social,
.pulse-discovery-card,.pulse-recent-card,.pulse-filter-empty{
  background-color:#1b1d22!important;color:#f2f3f5!important;background-image:none!important;border-color:transparent!important;box-shadow:none!important
}
.pulse-story-card button,.pulse-note-card button{color:inherit}

@media(max-width:760px){
 .v94-search-controls{grid-template-columns:1fr}.v94-mutual-grid{grid-template-columns:1fr}.v94-profile-page{padding:9px}.v94-bulk-toolbar{overflow-x:auto;white-space:nowrap}.v94-mute-options{grid-template-columns:1fr}.v94-note-detail{grid-template-columns:auto 1fr}.v94-forum-thread{align-items:flex-start;flex-direction:column}
}
.v94-link-grid{display:flex!important;flex-direction:column!important;gap:7px!important}.v94-link-tile{display:flex;flex-direction:column;gap:3px;padding:10px;border-radius:10px;background:#1b1d22!important;color:#e9eaed!important;text-decoration:none!important;min-width:0}.v94-link-tile strong{font-size:10px}.v94-link-tile span{font-size:9px;color:#b8bbc4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v94-link-tile small{font-size:8px;color:#858a96}

/* Veyra v95 — mobile composer alignment + native-feeling media players */
@media(max-width:720px){
  .composer{
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr) 34px 30px 30px 36px!important;
    grid-auto-flow:column!important;
    align-items:center!important;
    min-height:44px!important;
  }
  #giftBtn{display:none!important}
  #gifBtn,#emojiBtn,#voiceNoteBtn,#sendMessageBtn{display:grid!important;place-items:center!important;align-self:center!important;justify-self:center!important;margin:0!important;min-width:28px!important;height:32px!important;padding:4px!important;line-height:1!important}
  #gifBtn{font-size:9px!important;width:32px!important}
  #sendMessageBtn{width:34px!important;min-width:34px!important;margin-right:2px!important;font-size:16px!important}
  .composer textarea{align-self:center!important;min-height:20px!important;margin:0!important}
}
@media(max-width:400px){
  .composer{grid-template-columns:32px minmax(0,1fr) 28px 28px 34px!important}
  #gifBtn{display:none!important}
  #emojiBtn,#voiceNoteBtn{min-width:26px!important;width:26px!important}
  #sendMessageBtn{width:32px!important;min-width:32px!important}
}

.v95-media-player{width:min(520px,100%);background:#17191f;color:#edf1f5;overflow:hidden;position:relative;user-select:none;-webkit-user-select:none}
.v95-video-player{background:#07090c}
.v95-video-player video{display:block;width:100%;max-width:100%;height:auto;max-height:430px;object-fit:contain;background:#050609}
.v95-media-controls{display:grid;grid-template-columns:34px minmax(90px,1fr) auto auto auto;align-items:center;gap:8px;padding:9px 10px;background:linear-gradient(180deg,#171a20,#111318);border-top:1px solid rgba(255,255,255,.055)}
.v95-media-controls button{height:30px;min-width:30px;padding:0 7px;border:0;border-radius:7px;background:#242832;color:#edf1f5;display:grid;place-items:center;cursor:pointer;font-size:12px;font-weight:800}
.v95-media-controls button:hover{background:#303642}
.v95-media-controls [data-v95-time]{font-size:10px;color:#aeb7c2;white-space:nowrap;font-variant-numeric:tabular-nums}
.v95-media-controls input[type="range"]{-webkit-appearance:none;appearance:none;width:100%;height:4px;border-radius:99px;outline:0;background:linear-gradient(90deg,var(--brand,#7c83ff) 0 var(--v95-progress,0%),#373c46 var(--v95-progress,0%) 100%);cursor:pointer}
.v95-media-controls input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:13px;height:13px;border-radius:50%;background:#fff;border:2px solid var(--brand,#7c83ff);box-shadow:0 1px 6px #0008}
.v95-media-controls input[type="range"]::-moz-range-thumb{width:11px;height:11px;border-radius:50%;background:#fff;border:2px solid var(--brand,#7c83ff)}
.v95-audio-player{min-width:min(420px,100%);padding-top:0;background:#181b21}
.v95-audio-player audio{display:none!important}
.v95-audio-head{display:flex;align-items:center;gap:10px;padding:12px 12px 7px}
.v95-audio-icon{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,color-mix(in srgb,var(--brand,#7c83ff) 72%,#19202a),#222b37);display:grid;place-items:center;font-size:20px;font-weight:900}
.v95-audio-head>div{min-width:0;display:flex;flex-direction:column}.v95-audio-head strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v95-audio-head small{font-size:10px;color:#89939f;margin-top:2px}
.v95-audio-player .v95-media-controls{grid-template-columns:34px minmax(80px,1fr) auto auto auto;border-top:0;padding-top:5px}
@media(max-width:520px){
  .v95-media-player{width:100%;max-width:100%}.v95-media-controls{grid-template-columns:32px minmax(72px,1fr) auto 30px 30px;gap:5px;padding:8px}.v95-media-controls [data-v95-time]{font-size:9px}.v95-audio-player .v95-media-controls{grid-template-columns:32px minmax(64px,1fr) auto 30px 30px}.v95-audio-head{padding:10px 9px 5px}
}

/* Limited-view media is not a normal downloadable attachment. */
.v95-limited-protected{position:relative;display:grid;place-items:center;max-width:94vw;max-height:84dvh;overflow:hidden;background:#050609;user-select:none!important;-webkit-user-select:none!important;-webkit-touch-callout:none!important}
.v95-limited-protected>img{display:block;max-width:94vw;max-height:84dvh;object-fit:contain;pointer-events:none!important;user-select:none!important;-webkit-user-drag:none!important}
.v95-limited-protected .v95-media-player{max-width:94vw}
.v95-limited-protected .v95-video-player video{max-height:76dvh}
.v95-watermark{position:absolute;z-index:8;pointer-events:none;color:rgba(255,255,255,.43);background:rgba(0,0,0,.24);border:1px solid rgba(255,255,255,.12);border-radius:6px;padding:4px 7px;font-size:10px;font-weight:800;letter-spacing:.2px;text-shadow:0 1px 2px #000;max-width:70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v95-watermark.wm-a{left:4%;top:7%;transform:rotate(-10deg)}.v95-watermark.wm-b{right:4%;top:43%;transform:rotate(8deg)}.v95-watermark.wm-c{left:24%;bottom:13%;transform:rotate(-4deg)}
.v95-limited-protected .v95-media-controls{position:relative;z-index:10}
@media print{.v95-limited-protected{visibility:hidden!important}.v95-limited-protected:after{content:"Mídia protegida";visibility:visible!important;position:fixed;inset:0;display:grid;place-items:center;background:#000;color:#fff;font-size:22px}}
/* v96.2 — real fullscreen for custom video player.
   The fullscreen element itself must own the viewport; otherwise its normal
   520px/card sizing survives and leaves the video small at the top. */
.v95-video-player:fullscreen,
.v95-video-player:-webkit-full-screen{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#000!important;
  overflow:hidden!important;
}
.v95-video-player:fullscreen video,
.v95-video-player:-webkit-full-screen video{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  object-fit:contain!important;
  background:#000!important;
}
.v95-video-player:fullscreen .v95-media-controls,
.v95-video-player:-webkit-full-screen .v95-media-controls{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:30!important;
  width:100%!important;
  box-sizing:border-box!important;
  padding:14px 18px 12px!important;
  border-top:0!important;
  background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.76) 42%,rgba(0,0,0,.92))!important;
}

.v95-limited-protected:fullscreen,
.v95-limited-protected:-webkit-full-screen{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#000!important;
  overflow:hidden!important;
  display:block!important;
}
.v95-limited-protected:fullscreen .v95-video-player,
.v95-limited-protected:-webkit-full-screen .v95-video-player{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  background:#000!important;
}
.v95-limited-protected:fullscreen .v95-video-player video,
.v95-limited-protected:-webkit-full-screen .v95-video-player video{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  object-fit:contain!important;
  background:#000!important;
}
.v95-limited-protected:fullscreen .v95-media-controls,
.v95-limited-protected:-webkit-full-screen .v95-media-controls{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:30!important;
  width:100%!important;
  box-sizing:border-box!important;
  padding:14px 18px 12px!important;
  border-top:0!important;
  background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.76) 42%,rgba(0,0,0,.92))!important;
}
.v95-limited-protected:fullscreen .v95-watermark,
.v95-limited-protected:-webkit-full-screen .v95-watermark{z-index:40!important}


/* Veyra v96 — desktop composer regression fix
   Keep every desktop composer control in one row.
   v95 added a fifth action button (voice note) while the desktop grid still
   reserved only four action columns, which forced Send onto a second row. */
@media(min-width:721px){
  .composer{
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr) repeat(6,max-content)!important;
    grid-template-rows:minmax(46px,auto)!important;
    grid-auto-flow:column!important;
    grid-auto-rows:unset!important;
    align-items:center!important;
    column-gap:0!important;
  }
  .composer > #attachBtn{grid-column:1!important;grid-row:1!important}
  .composer > #messageInput{grid-column:2!important;grid-row:1!important;min-width:0!important}
  .composer > #giftBtn{grid-column:3!important;grid-row:1!important}
  .composer > #gifBtn{grid-column:4!important;grid-row:1!important}
  .composer > #stickerBtn{grid-column:5!important;grid-row:1!important}
  .composer > #emojiBtn{grid-column:6!important;grid-row:1!important}
  .composer > #voiceNoteBtn{grid-column:7!important;grid-row:1!important}
  .composer > #sendMessageBtn{grid-column:8!important;grid-row:1!important;align-self:center!important;justify-self:center!important;margin-top:0!important;margin-bottom:0!important}
  .composer > .compose-icon{align-self:center!important}
}


/* v96.6 — Owner background no-zoom fix. Final override wins over legacy cover rules. */
:root{--owner-bg-fit:contain}
body.has-global-bg .global-background>#globalBgImage,
body.has-global-bg .global-background>#globalBgVideo,
body.has-global-bg .global-background img,
body.has-global-bg .global-background video{
  object-fit:var(--owner-bg-fit,contain)!important;
  object-position:center center!important;
  transform:none!important;
  scale:none!important;
  zoom:1!important;
  max-width:100%!important;
  max-height:100%!important;
}

/* v96.7 — fundos específicos por DM da Owner */
.owner-dm-bg-current{margin:10px 0 14px}
.owner-dm-bg-current-card{display:flex;align-items:center;gap:11px;padding:11px 12px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(20,22,28,.72);min-height:58px}
.owner-dm-bg-current-card.fallback{background:rgba(20,22,28,.46)}
.owner-dm-bg-current-card .avatar{width:38px;height:38px;flex:0 0 38px}
.owner-dm-bg-current-card>div{display:flex;flex-direction:column;min-width:0;gap:2px}
.owner-dm-bg-current-card strong{font-size:13px;color:var(--text,#f2f3f5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.owner-dm-bg-current-card span:not(.owner-dm-bg-state){font-size:11px;color:var(--muted,#949ba4)}
.owner-dm-bg-state{margin-left:auto;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.08em;background:rgba(88,101,242,.18);color:#b8bfff;border:1px solid rgba(88,101,242,.3)}
.owner-dm-bg-current-card.fallback .owner-dm-bg-state{background:rgba(255,255,255,.06);color:var(--muted,#949ba4);border-color:rgba(255,255,255,.08)}
.owner-dm-bg-types{margin:10px 0 12px}
.owner-dm-bg-actions{flex-wrap:wrap;margin-top:12px}
.owner-dm-bg-list{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.owner-dm-bg-list-title{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#949ba4);padding:0 2px}
.owner-dm-bg-list-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:9px 10px;border-radius:11px;background:rgba(20,22,28,.62);border:1px solid rgba(255,255,255,.07)}
.owner-dm-bg-list-row .avatar{width:36px;height:36px}
.owner-dm-bg-list-copy{display:flex;flex-direction:column;min-width:0;gap:2px}
.owner-dm-bg-list-copy strong,.owner-dm-bg-list-copy span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.owner-dm-bg-list-copy strong{font-size:12px;color:var(--text,#f2f3f5)}
.owner-dm-bg-list-copy span{font-size:10px;color:var(--muted,#949ba4)}
@media (max-width:760px){
  .owner-dm-bg-list-row{grid-template-columns:34px minmax(0,1fr) auto}.owner-dm-bg-list-row [data-remove]{grid-column:2/4;justify-self:stretch}.owner-dm-bg-actions>*{flex:1 1 100%}
}


/* V98 — Veyra Flicks */
.reels-home-channel .kind{font-size:13px}
.messages.reels-open{padding:0!important;overflow:hidden!important;scroll-behavior:auto!important;background:#090a0d!important;contain:layout style paint!important}
.veyra-reels-shell{position:relative;width:100%;height:100%;min-height:0;overflow:hidden;background:radial-gradient(circle at 50% 20%,#171923 0,#090a0d 46%,#050506 100%)}
.veyra-reels-feed{width:100%;height:100%;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;overscroll-behavior-y:contain;scrollbar-width:none;touch-action:pan-y;background:transparent}
.veyra-reels-feed::-webkit-scrollbar{display:none}
.veyra-reel-card{height:100%;min-height:100%;width:100%;scroll-snap-align:start;scroll-snap-stop:always;display:grid;place-items:center;position:relative;padding:0 14px;background:transparent}
.veyra-reel-stage{position:relative;height:calc(100% - 10px);max-height:900px;aspect-ratio:9/16;max-width:100%;overflow:hidden;border-radius:18px;background:#000;box-shadow:0 18px 60px rgba(0,0,0,.52),0 0 0 1px rgba(255,255,255,.055)}
.veyra-reel-player{position:absolute;inset:0;background:#000;overflow:hidden}
.veyra-reel-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000;pointer-events:none!important;user-select:none;-webkit-user-select:none}
.veyra-reel-loading{position:absolute;inset:0;z-index:1;display:grid;place-content:center;gap:8px;text-align:center;color:#777d88;background:#060607}
.veyra-reel-loading span{font-size:26px;color:#9da8ff;animation:veyraReelPulse 1.25s ease-in-out infinite}
.veyra-reel-loading small{font-size:11px}
.reel-loaded .veyra-reel-loading{display:none}.reel-error .veyra-reel-loading{display:grid;z-index:1}.reel-error .veyra-reel-player iframe{opacity:0}
.veyra-reel-blocker{position:absolute;inset:0;z-index:2;background:transparent;pointer-events:auto;cursor:default;-webkit-touch-callout:none;user-select:none;touch-action:pan-y}
.veyra-reel-card.dm-active .veyra-reel-blocker{pointer-events:none}
.veyra-reel-meta{position:absolute;z-index:4;left:18px;right:74px;bottom:20px;display:flex;flex-direction:column;gap:2px;color:#fff;text-shadow:0 2px 8px #000;pointer-events:none}
.veyra-reel-meta strong{font-size:14px;font-weight:800}.veyra-reel-meta span{font-size:11px;color:rgba(255,255,255,.78)}
.veyra-reel-like{position:absolute;z-index:5;right:16px;bottom:20px;width:50px;min-height:62px;border:0;background:rgba(10,11,14,.52);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-radius:18px;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;cursor:pointer;box-shadow:0 7px 24px rgba(0,0,0,.25);transition:transform .14s ease,background .14s ease}
.veyra-reel-like:hover{transform:scale(1.06);background:rgba(24,25,30,.72)}.veyra-reel-like:active{transform:scale(.94)}.veyra-reel-like span{font-size:30px;line-height:30px}.veyra-reel-like small{font-size:9px;font-weight:800;color:#d7dae0}.veyra-reel-like.liked span{color:#ff3158;text-shadow:0 0 18px rgba(255,49,88,.32)}
.veyra-reel-index{position:absolute;z-index:4;top:18px;right:16px;padding:4px 7px;border-radius:999px;background:rgba(0,0,0,.38);color:rgba(255,255,255,.64);font-size:9px;font-weight:700;pointer-events:none}
@keyframes veyraReelPulse{0%,100%{opacity:.45;transform:scale(.94)}50%{opacity:1;transform:scale(1.06)}}
@media(max-width:720px){.messages.reels-open{padding:0!important}.veyra-reel-card{padding:0}.veyra-reel-stage{height:100%;max-height:none;width:100%;max-width:100%;aspect-ratio:auto;border-radius:0;box-shadow:none}.veyra-reel-meta{left:14px;bottom:max(18px,env(safe-area-inset-bottom));right:68px}.veyra-reel-like{right:12px;bottom:max(18px,env(safe-area-inset-bottom))}.veyra-reel-index{top:38px;right:10px}}
@media(prefers-reduced-motion:reduce){.veyra-reel-loading span{animation:none}.veyra-reel-like{transition:none}}


/* V98 — Flicks sharing */
.veyra-reel-actions{position:absolute;z-index:9;right:14px;bottom:22px;display:flex;flex-direction:column;gap:12px;align-items:center}
.veyra-reel-actions .veyra-reel-like{position:static!important;right:auto!important;bottom:auto!important}
.veyra-reel-share{width:48px;min-height:48px;padding:7px 4px;border:0;border-radius:17px;background:rgba(20,21,27,.74);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.24);transition:transform .15s ease,background .15s ease}
.veyra-reel-share:hover{transform:translateY(-2px) scale(1.04);background:rgba(39,41,52,.92)}
.veyra-reel-share span{font-size:22px;line-height:1}.veyra-reel-share small{font-size:9px;font-weight:750;color:#d9dce5}
.veyra-flick-share-head{display:flex;align-items:center;gap:12px;padding:10px 2px 14px}.veyra-flick-share-head>div:last-child{display:flex;flex-direction:column;min-width:0}.veyra-flick-share-head strong{font-size:15px}.veyra-flick-share-head span{font-size:12px;color:var(--muted,#a7aab3)}
.veyra-flick-share-badge{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(145deg,#786cff,#b25cff);font-weight:900;box-shadow:0 10px 24px rgba(120,108,255,.22)}
.veyra-flick-friend-list{max-height:min(430px,58vh);overflow:auto;margin-top:10px}.veyra-flick-friend-option{width:100%;display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;gap:10px!important;text-align:left!important}.veyra-flick-friend-option>span{display:flex;flex-direction:column;min-width:0}.veyra-flick-friend-option small{color:var(--muted,#a7aab3);font-size:11px}.veyra-flick-friend-option i{font-style:normal;font-size:11px;font-weight:800;color:#b9b3ff}.veyra-flick-share-empty{padding:22px;text-align:center;color:var(--muted,#a7aab3);font-size:12px}
.veyra-flick-message-content{max-width:min(460px,100%)}
.veyra-flick-message-card{width:min(420px,100%);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;border:1px solid rgba(155,143,255,.22);border-radius:16px;padding:12px;background:linear-gradient(135deg,rgba(36,31,58,.94),rgba(22,23,31,.96));color:#fff;text-align:left;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.16);transition:transform .15s ease,border-color .15s ease,background .15s ease}
.veyra-flick-message-card:hover{transform:translateY(-1px);border-color:rgba(173,162,255,.5);background:linear-gradient(135deg,rgba(47,39,77,.98),rgba(25,26,36,.98))}.veyra-flick-message-icon{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#786cff,#b25cff);font-size:16px;font-weight:900}.veyra-flick-message-card>span:nth-child(2){display:flex;flex-direction:column;min-width:0}.veyra-flick-message-card small{font-size:9px;letter-spacing:.09em;color:#bcb5ff;font-weight:900}.veyra-flick-message-card strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.veyra-flick-message-card em{font-size:11px;color:#b8bbc5;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.veyra-flick-message-card>b{font-size:24px;color:#c5c0ff}
@media(max-width:720px){.veyra-reel-actions{right:12px;bottom:max(18px,env(safe-area-inset-bottom))}.veyra-reel-meta{right:76px!important}.veyra-flick-message-card{width:100%}}

/* V99 Flicks Infinite — virtual feed */
.veyra-reel-index{display:flex;flex-direction:column;align-items:flex-end;gap:1px;max-width:46%;background:rgba(0,0,0,.5)!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.veyra-reel-index b{font-size:9px;line-height:1.15;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.veyra-reel-index span{font-size:8px;line-height:1.1;color:rgba(255,255,255,.62);font-weight:750;letter-spacing:.04em}
.veyra-reel-meta strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:100%}
.veyra-reel-meta span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}

/* v104: Flicks must never leak its locked scroller into chats. */
.messages:not(.reels-open){overflow-y:auto!important;}
.veyra-flick-bootstrap{height:100%;min-height:420px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--text-muted,#a7abb4);text-align:center;scroll-snap-align:start}.veyra-flick-bootstrap span{font-size:34px;animation:veyraFlickBootPulse 1.25s ease-in-out infinite}.veyra-flick-bootstrap strong{font-size:15px;color:var(--text-normal,#f2f3f5)}.veyra-flick-bootstrap small{font-size:12px;opacity:.75}@keyframes veyraFlickBootPulse{0%,100%{opacity:.35;transform:scale(.92)}50%{opacity:1;transform:scale(1.08)}}


.dm-call-resize-handle{display:none;position:absolute;left:0;right:0;bottom:0;height:14px;z-index:30;cursor:ns-resize;touch-action:none;align-items:flex-end;justify-content:center;background:linear-gradient(180deg,transparent,rgba(0,0,0,.28))}
.dm-call-resize-handle::before{content:"";width:54px;height:4px;margin-bottom:3px;border-radius:999px;background:#5f636b;box-shadow:0 1px 4px #0008;transition:width .12s ease,background .12s ease}
.dm-call-resize-handle:hover::before,.dm-call-resize-handle.dragging::before{width:76px;background:#b5bac1}
body.dm-call-resizing,body.dm-call-resizing *{cursor:ns-resize!important;user-select:none!important}
.dm-call-dock.stream-active{height:var(--dm-call-height,min(54dvh,520px))!important;min-height:min(280px,46dvh)!important;max-height:calc(100dvh - 190px)!important;overflow:hidden!important;padding-bottom:15px!important;grid-template-rows:minmax(28px,auto) minmax(0,46px) minmax(0,1fr) auto!important;transition:none!important}
.dm-call-dock.stream-active .dm-call-resize-handle{display:flex}
.dm-call-dock.stream-active .dm-call-heading{min-height:28px!important;max-height:34px;overflow:hidden}
.dm-call-dock.stream-active .dm-call-heading span{margin-top:1px}
.dm-call-dock.stream-active .dm-call-participants{height:46px;max-height:46px!important;min-height:0;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important}
.dm-call-dock.stream-active .dm-call-screen-stage{min-height:0!important;height:100%!important;max-height:none!important;margin:4px 0!important;align-self:stretch}
.dm-call-dock.stream-active .dm-call-screen-stage .screen-card{height:100%!important;min-height:0!important;max-height:100%!important;grid-template-rows:minmax(0,1fr) 30px!important}
.dm-call-dock.stream-active .dm-call-screen-stage .screen-video-wrap{height:100%!important;min-height:0!important;max-height:100%!important;width:100%!important;aspect-ratio:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#050607!important}
.dm-call-dock.stream-active .dm-call-screen-stage .screen-video-wrap video{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;transform:none!important;background:#050607!important}
.dm-call-dock.stream-active .dm-call-screen-stage .screen-video-wrap.screen-cropped video{width:100%!important;height:100%!important;transform:none!important;object-fit:contain!important}
.dm-call-dock.stream-active .screen-card-footer{height:30px;min-height:30px!important;padding:4px 9px!important}
.dm-call-dock.stream-active .dm-call-controls{min-height:42px;margin:1px auto 0!important;padding:2px 7px 4px!important;background:#0b0c0e!important;position:relative!important;bottom:auto!important}
.dm-call-dock.stream-compact .dm-call-participants{height:38px;max-height:38px!important}
.dm-call-dock.stream-compact .screen-card-footer{display:none!important}
.dm-call-dock.stream-compact{grid-template-rows:minmax(24px,auto) minmax(0,38px) minmax(0,1fr) auto!important}
.dm-call-dock.stream-mini .dm-call-heading span{display:none!important}
.dm-call-dock.stream-mini .dm-call-participants{height:34px;max-height:34px!important}
.dm-call-dock.stream-mini{grid-template-rows:24px 34px minmax(0,1fr) auto!important}

@media(max-width:720px){
  .dm-call-dock.stream-active{height:var(--dm-call-height,min(43dvh,360px))!important;min-height:min(220px,34dvh)!important;max-height:56dvh!important;padding:6px 8px 15px!important;grid-template-rows:26px 38px minmax(0,1fr) auto!important}
  .dm-call-dock.stream-active .dm-call-heading{min-height:26px!important;max-height:26px!important;flex-direction:row!important;align-items:center!important;overflow:hidden}
  .dm-call-dock.stream-active .dm-call-heading span{display:none!important}
  .dm-call-dock.stream-active .dm-call-participants{height:38px;max-height:38px!important;justify-content:flex-start!important}
  .dm-call-dock.stream-active .dm-call-screen-stage{margin:2px 0!important}
  .dm-call-dock.stream-active .dm-call-screen-stage .screen-card{grid-template-rows:minmax(0,1fr)!important}
  .dm-call-dock.stream-active .screen-card-footer{display:none!important}
  .dm-call-dock.stream-active .dm-call-controls{min-height:36px;gap:5px!important;padding:1px 4px 2px!important;margin:1px auto 0!important}
  .dm-call-dock.stream-active .call-control{width:36px!important;height:34px!important;min-width:36px!important;min-height:34px!important;font-size:15px!important}
  .dm-call-resize-handle{height:18px}
  .dm-call-resize-handle::before{width:64px;margin-bottom:4px}
}

@media(max-width:480px){
  .dm-call-dock.stream-active{height:var(--dm-call-height,min(40dvh,320px))!important;min-height:min(205px,32dvh)!important;max-height:50dvh!important;grid-template-rows:24px 34px minmax(0,1fr) auto!important}
  .dm-call-dock.stream-active .dm-call-participants{height:34px;max-height:34px!important}
  .dm-call-dock.stream-active .dm-call-person{padding:3px 6px 3px 3px;font-size:10px}
  .dm-call-dock.stream-active .dm-call-person .avatar{width:24px;height:24px;flex-basis:24px}
  .dm-call-dock.stream-active .dm-call-controls{min-height:34px}
  .dm-call-dock.stream-active .call-control{width:34px!important;height:32px!important;min-width:34px!important;min-height:32px!important}
}


/* Veyra v111 — runtime appearance engine */
.appearance-theme-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px}
.theme-card{min-height:92px;position:relative;pointer-events:auto!important;user-select:none}
.theme-card strong{display:flex;align-items:center;gap:5px;color:var(--text)!important}
.theme-card small{display:block;color:var(--muted)!important;font-size:10px;line-height:1.25;min-height:25px}
.theme-card.active{border-color:var(--brand)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 28%,transparent)!important}
.theme-card.active:after{content:"✓";position:absolute;right:10px;top:9px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:white;font-size:11px;font-weight:950}
.theme-preview.dynamic{height:48px;background:linear-gradient(90deg,var(--theme-a) 0 26%,var(--theme-b) 26% 52%,var(--theme-c) 52%)!important;position:relative;overflow:hidden}
.theme-preview.dynamic:after{content:"";position:absolute;right:9px;bottom:8px;width:25px;height:7px;border-radius:99px;background:var(--theme-accent);box-shadow:0 0 12px color-mix(in srgb,var(--theme-accent) 60%,transparent)}
.pulse-theme-card b{color:#f2cf63}.pulse-theme-card.locked{opacity:.48;cursor:not-allowed!important}.pulse-theme-card.locked:after{content:"🔒";background:#202228;color:#fff}
.pulse-theme-lock,.pulse-custom-theme{border:1px solid color-mix(in srgb,var(--brand) 30%,var(--line));background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 10%,var(--bg-sidebar)),var(--bg-input));border-radius:14px;padding:14px;margin:2px 0 20px}
.pulse-theme-lock{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px}.pulse-theme-lock-icon{width:40px;height:40px;border-radius:12px;background:linear-gradient(145deg,#f0cf63,#8c6cff);display:grid;place-items:center;color:#fff;font-size:20px}.pulse-theme-lock strong{display:block}.pulse-theme-lock p{margin:3px 0 0;color:var(--muted);font-size:12px}.pulse-theme-lock>span{font-size:10px;font-weight:950;color:#f4d668;border:1px solid #f4d66855;border-radius:999px;padding:4px 7px}
.pulse-custom-theme-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.pulse-custom-theme-head strong{display:block;font-size:14px}.pulse-custom-theme-head span{display:block;color:var(--muted);font-size:11px;margin-top:2px}.pulse-custom-theme-head .primary-btn{margin:0;width:auto;white-space:nowrap}.pulse-custom-theme-head .primary-btn.active{box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 28%,transparent)}
.pulse-theme-colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pulse-theme-colors label{margin:0;background:color-mix(in srgb,var(--bg-input) 88%,transparent);border:1px solid var(--line);border-radius:9px;padding:8px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted)}.pulse-theme-colors input[type="color"]{width:32px;height:28px;flex:0 0 32px;padding:2px;border:1px solid var(--line);border-radius:7px;background:transparent;cursor:pointer}.pulse-theme-colors input[type="color"]::-webkit-color-swatch-wrapper{padding:0}.pulse-theme-colors input[type="color"]::-webkit-color-swatch{border:0;border-radius:5px}

body.veyra-theme-runtime{background:var(--bg-main)!important;color:var(--text)!important}
body.veyra-theme-runtime .server-rail{background:var(--bg-rail)!important}
body.veyra-theme-runtime .channel-sidebar,body.veyra-theme-runtime .member-sidebar,body.veyra-theme-runtime .settings-nav{background:var(--bg-sidebar)!important;border-color:var(--line)!important}
body.veyra-theme-runtime .chat-area,body.veyra-theme-runtime .settings-shell{background:var(--bg-main)!important;color:var(--text)!important}
body.veyra-theme-runtime .topbar{background:var(--bg-main)!important;border-color:var(--line)!important}
body.veyra-theme-runtime .guild-header{background:var(--bg-sidebar)!important;border-color:var(--line)!important}
body.veyra-theme-runtime .guild-header:hover{background:var(--bg-hover)!important}
body.veyra-theme-runtime .user-panel,body.veyra-theme-runtime .guild-voice-panel{background:var(--bg-deep)!important;color:var(--text)!important}
body.veyra-theme-runtime .channel{color:var(--muted)!important}
body.veyra-theme-runtime .channel:hover{background:var(--bg-hover)!important;color:var(--text)!important}
body.veyra-theme-runtime .channel.active,body.veyra-theme-runtime .dm-sidebar-item.active{background:var(--bg-active)!important;color:var(--text)!important}
body.veyra-theme-runtime .message{border-color:var(--line)!important}
body.veyra-theme-runtime .message:hover{background:color-mix(in srgb,var(--bg-hover) 72%,transparent)!important}
body.veyra-theme-runtime .message-content,body.veyra-theme-runtime .message-author{color:var(--text)!important}
body.veyra-theme-runtime .message-time,body.veyra-theme-runtime .typing,body.veyra-theme-runtime .member-group-title,body.veyra-theme-runtime .muted{color:var(--muted)!important}
body.veyra-theme-runtime .composer,body.veyra-theme-runtime .search,body.veyra-theme-runtime input,body.veyra-theme-runtime textarea,body.veyra-theme-runtime select{background:var(--bg-input)!important;color:var(--text)!important;border-color:var(--line)!important}
body.veyra-theme-runtime input::placeholder,body.veyra-theme-runtime textarea::placeholder{color:var(--muted)!important}
body.veyra-theme-runtime .composer textarea{background:transparent!important}
body.veyra-theme-runtime .modal-card,body.veyra-theme-runtime .voice-card,body.veyra-theme-runtime .profile-editor-card,body.veyra-theme-runtime .account-card,body.veyra-theme-runtime .nitro-card,body.veyra-theme-runtime .theme-card,body.veyra-theme-runtime .context-menu,body.veyra-theme-runtime .mention-picker,body.veyra-theme-runtime .emoji-picker{background:var(--bg-sidebar)!important;border-color:var(--line)!important;color:var(--text)!important}
body.veyra-theme-runtime .context-menu button:hover,body.veyra-theme-runtime .settings-tab:hover,body.veyra-theme-runtime .member:hover{background:var(--bg-hover)!important;color:var(--text)!important}
body.veyra-theme-runtime .settings-tab{color:var(--muted)!important}
body.veyra-theme-runtime .settings-tab.active{background:var(--bg-active)!important;color:var(--text)!important}
body.veyra-theme-runtime .secondary-btn,body.veyra-theme-runtime .friend-message-btn,body.veyra-theme-runtime .friend-cancel-btn{background:var(--bg-active)!important;color:var(--text)!important;border-color:var(--line)!important}
body.veyra-theme-runtime .secondary-btn:hover,body.veyra-theme-runtime .friend-message-btn:hover,body.veyra-theme-runtime .friend-cancel-btn:hover{background:var(--bg-hover)!important}
body.veyra-theme-runtime .server-item{background:var(--bg-main)!important;color:var(--text)!important}
body.veyra-theme-runtime .server-item:hover,body.veyra-theme-runtime .server-item.active{background:var(--brand)!important;color:#fff!important}
body.veyra-theme-runtime .member-sidebar .member{color:var(--text)!important}
body.veyra-theme-runtime .dm-profile-card{background:var(--bg-sidebar)!important;border-color:var(--line)!important}
body.veyra-theme-runtime .dm-profile-body .profile-section{background:var(--bg-deep)!important;border-color:var(--line)!important;color:var(--text)!important}
body.veyra-theme-runtime .hash,body.veyra-theme-runtime .top-icon,body.veyra-theme-runtime .panel-icon,body.veyra-theme-runtime .compose-icon{color:var(--muted)!important}
body.veyra-theme-runtime .top-icon:hover,body.veyra-theme-runtime .panel-icon:hover,body.veyra-theme-runtime .compose-icon:hover{background:var(--bg-hover)!important;color:var(--text)!important}
body.veyra-theme-runtime .checkbox-row{background:var(--bg-input)!important;border-color:var(--line)!important;color:var(--text)!important}
body.veyra-theme-runtime .empty-icon{background:var(--bg-active)!important;color:var(--text)!important}
body.veyra-theme-runtime .auth-card{background:color-mix(in srgb,var(--bg-main) 96%,transparent)!important;color:var(--text)!important}
body.veyra-theme-runtime .auth-screen{background:radial-gradient(circle at 20% 20%,color-mix(in srgb,var(--brand) 70%,#fff) 0,var(--brand) 28%,var(--bg-deep) 78%)!important}
@media(max-width:760px){.appearance-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pulse-theme-colors{grid-template-columns:repeat(2,minmax(0,1fr))}.pulse-custom-theme-head{align-items:flex-start;flex-direction:column}.pulse-custom-theme-head .primary-btn{width:100%}}
@media(max-width:380px){.appearance-theme-grid,.pulse-theme-colors{grid-template-columns:1fr 1fr}.theme-card{padding:7px}.theme-card small{font-size:9px}}


/* Veyra v112 — mobile attachment composer + Owner background autoplay polish */
@media(max-width:720px){
  .composer-wrap{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;padding-left:8px!important;padding-right:8px!important}
  .composer{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;display:grid!important;grid-template-columns:36px minmax(0,1fr) 30px 30px 30px 36px!important;grid-template-rows:minmax(44px,auto)!important;column-gap:0!important;align-items:center!important}
  .composer>#attachBtn{grid-column:1!important;grid-row:1!important;margin-left:7px!important;margin-right:0!important;justify-self:start!important}
  .composer>#messageInput{grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
  .composer>#giftBtn,.composer>#gifBtn{display:none!important}
  .composer>#stickerBtn{grid-column:3!important;grid-row:1!important;display:grid!important;place-items:center!important;width:28px!important;min-width:28px!important;padding:0!important;margin:0!important}
  .composer>#emojiBtn{grid-column:4!important;grid-row:1!important;display:grid!important;place-items:center!important;width:28px!important;min-width:28px!important;padding:0!important;margin:0!important}
  .composer>#voiceNoteBtn{grid-column:5!important;grid-row:1!important;display:grid!important;place-items:center!important;width:28px!important;min-width:28px!important;padding:0!important;margin:0!important}
  .composer>#sendMessageBtn{grid-column:6!important;grid-row:1!important;display:grid!important;place-items:center!important;width:34px!important;min-width:34px!important;max-width:34px!important;padding:0!important;margin:0 2px 0 0!important;justify-self:end!important}
  .attachment-tray{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important}
  .attachment-chip,.attachment-chip-main,.attachment-chip-options{box-sizing:border-box!important;max-width:100%!important;min-width:0!important}
  .attachment-chip{width:100%!important;overflow:hidden!important}
  .attachment-chip-main{width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) 28px!important;gap:6px!important}
  .attachment-chip-main>span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .attachment-chip-main>span small{display:inline!important}
  .attachment-chip-options{overflow-x:auto!important;scrollbar-width:none!important;padding-bottom:1px!important}
  .attachment-chip-options::-webkit-scrollbar{display:none!important}
}
@media(max-width:380px){
  .composer{grid-template-columns:34px minmax(0,1fr) 28px 28px 34px!important}
  .composer>#emojiBtn,.composer>#voiceNoteBtn{width:26px!important;min-width:26px!important}
  .composer>#sendMessageBtn{width:32px!important;min-width:32px!important;max-width:32px!important}
}
#globalBgVideo,#ownerDmBgVideo{pointer-events:none!important;user-select:none!important;-webkit-user-select:none!important;-webkit-touch-callout:none!important}
#globalBgVideo::-webkit-media-controls,#globalBgVideo::-webkit-media-controls-enclosure,#globalBgVideo::-webkit-media-controls-panel,#globalBgVideo::-webkit-media-controls-play-button,#globalBgVideo::-webkit-media-controls-overlay-play-button,#globalBgVideo::-webkit-media-controls-start-playback-button,#ownerDmBgVideo::-webkit-media-controls,#ownerDmBgVideo::-webkit-media-controls-enclosure,#ownerDmBgVideo::-webkit-media-controls-panel,#ownerDmBgVideo::-webkit-media-controls-play-button,#ownerDmBgVideo::-webkit-media-controls-overlay-play-button,#ownerDmBgVideo::-webkit-media-controls-start-playback-button{display:none!important;opacity:0!important;-webkit-appearance:none!important}
body.owner-bg-video #globalBgVideo,body.owner-bg-video #ownerDmBgVideo{opacity:0!important;visibility:hidden!important}
body.owner-bg-video.owner-bg-video-playing #globalBgVideo:not(.hidden),body.owner-bg-video.owner-bg-video-playing #ownerDmBgVideo:not(.hidden){opacity:1!important;visibility:visible!important}
.bg-sound,#bgSoundBtn{display:none!important}

/* Veyra v114 — Owner background visibility over the classic/default theme */
body.has-global-bg .server-rail{
  background:color-mix(in srgb,var(--bg-rail,#1e1f22) calc(var(--owner-panel-opacity,.82)*100%),transparent)!important;
}
body.has-global-bg .channel-sidebar,
body.has-global-bg .member-sidebar{
  background:color-mix(in srgb,var(--bg-sidebar,#2b2d31) calc(var(--owner-panel-opacity,.82)*100%),transparent)!important;
}
body.has-global-bg .chat-area{
  background:color-mix(in srgb,var(--bg-main,#313338) calc(var(--owner-panel-opacity,.82)*100%),transparent)!important;
}
body.has-global-bg .topbar{
  background:color-mix(in srgb,var(--bg-main,#313338) calc(var(--owner-panel-opacity,.82)*100%),transparent)!important;
}
body.has-global-bg .guild-header,
body.has-global-bg .user-panel,
body.has-global-bg .dm-call-dock{
  background:color-mix(in srgb,var(--bg-deep,#111214) calc(var(--owner-panel-opacity,.82)*100%),transparent)!important;
}
body.has-global-bg .messages{
  background:color-mix(in srgb,var(--bg-main,#313338) calc(var(--owner-panel-opacity,.82)*92%),transparent)!important;
}
body.has-global-bg .composer-wrap{
  background:transparent!important;
}
body.has-global-bg .composer{
  background:color-mix(in srgb,var(--bg-input,#383a40) calc(var(--owner-panel-opacity,.82)*100%),transparent)!important;
}
body.has-global-bg .composer-mode-bar,
body.has-global-bg .attachment-tray,
body.has-global-bg .search{
  background:color-mix(in srgb,var(--bg-input,#383a40) calc(var(--owner-panel-opacity,.82)*100%),transparent)!important;
}
body.has-global-bg .global-background{
  display:block!important;
  visibility:visible!important;
}
body.has-global-bg .global-background.hidden{
  display:block!important;
}
body.has-global-bg #globalBgImage:not(.hidden),
body.has-global-bg #ownerDmBgImage:not(.hidden){
  display:block!important;
  visibility:visible!important;
}
body.has-global-bg.owner-bg-video.owner-bg-video-playing #globalBgVideo:not(.hidden),
body.has-global-bg.owner-bg-video.owner-bg-video-playing #ownerDmBgVideo:not(.hidden){
  display:block!important;
  visibility:visible!important;
  opacity:var(--owner-bg-opacity,1)!important;
}

/* V115 — message hover action bar clipping fix */
.message{
  overflow:visible!important;
}
.message:hover,
.message:focus-within{
  z-index:80!important;
}
.message-actions{
  top:2px!important;
  right:10px!important;
  z-index:120!important;
  overflow:visible!important;
}
.message-actions button{
  position:relative;
  z-index:1;
}
@media(max-width:720px){
  .message-actions{
    top:2px!important;
    right:4px!important;
  }
}

/* V116 — action bar must escape message paint/stacking boundaries */
.messages:not(.reels-open){
  contain:layout style!important;
  isolation:isolate!important;
}
.message{
  contain:none!important;
  overflow:visible!important;
  position:relative!important;
  z-index:1!important;
  isolation:isolate!important;
}
.message:hover,
.message:focus-within{
  z-index:10000!important;
}
.message-actions{
  top:-12px!important;
  right:10px!important;
  z-index:10001!important;
  overflow:visible!important;
  clip:auto!important;
  clip-path:none!important;
  transform:translateZ(0)!important;
}
.message-actions,
.message-actions *{
  visibility:visible!important;
}
@media(max-width:720px){
  .message-actions{
    top:-10px!important;
    right:4px!important;
  }
}


/* V118 — performance + confirmed-send rendering + unclipped single floating message toolbar */
.messages:not(.reels-open){contain:layout style paint!important;isolation:auto!important;overscroll-behavior:contain}
.message{contain:layout style!important;isolation:auto!important;z-index:auto!important;overflow:visible!important}
.message:hover,.message:focus-within{z-index:auto!important}
.message>.message-actions{display:none!important}
.floating-message-actions{position:fixed;z-index:2147483000;display:flex;align-items:center;background:#2b2d31;border:1px solid #222428;border-radius:7px;box-shadow:0 6px 18px #0008;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(2px);transition:opacity .08s ease,transform .08s ease;padding:1px;contain:layout style}
.floating-message-actions.show{opacity:1;visibility:visible;pointer-events:auto;transform:none}
.floating-message-actions button{width:31px;height:28px;border:0;background:transparent;color:#b5bac1;cursor:pointer;border-radius:4px;padding:0}
.floating-message-actions button:hover{background:#404249;color:white}.floating-message-actions .danger-action:hover{background:#da373c;color:white}
body.owner-bg-performance .message,body.owner-bg-performance .channel,body.owner-bg-performance .member{will-change:auto!important}
@media(max-width:720px){.floating-message-actions{display:none!important}}

/* V121 — Owner background visual/audio layers + DM switch ghost fix */
body.has-global-bg .global-background.hidden{
  display:none!important;
  visibility:hidden!important;
}
body.has-global-bg.owner-bg-has-visual .global-background{
  background:transparent!important;
}
body.has-global-bg.owner-bg-has-audio:not(.owner-bg-has-visual) .global-background.audio-mode{
  background:radial-gradient(circle at 50% 25%,rgba(124,92,255,.19),transparent 42%),linear-gradient(180deg,#0b0d16,#090a0f)!important;
}
body.has-global-bg.owner-bg-has-visual #globalBgImage:not(.hidden),
body.has-global-bg.owner-bg-has-visual #globalBgVideo:not(.hidden),
body.has-global-bg.owner-bg-has-visual #ownerDmBgImage:not(.hidden),
body.has-global-bg.owner-bg-has-visual #ownerDmBgVideo:not(.hidden){
  display:block!important;
  visibility:visible!important;
}
body.has-global-bg.owner-bg-has-audio .owner-music-player:not(.hidden){
  visibility:visible!important;
}


/* V122 — keep the active Owner MP4 visible across DM switches.
   Visibility no longer depends on a fresh `playing` event when the same video is already running. */
body.has-global-bg.owner-bg-has-visual.owner-bg-video #globalBgVideo:not(.hidden),
body.has-global-bg.owner-bg-has-visual.owner-bg-video #ownerDmBgVideo:not(.hidden){
  display:block!important;
  visibility:visible!important;
  opacity:var(--owner-bg-opacity,1)!important;
}


/* V124 — MP3 player/disc is independent from the visual background layer. */
.owner-music-player-layer{
  position:fixed!important;
  z-index:1!important;
  opacity:var(--owner-vinyl-opacity,1)!important;
  visibility:visible;
  pointer-events:none!important;
}
.owner-music-player-layer.hidden{display:none!important;visibility:hidden!important}
body.owner-bg-has-audio .owner-music-player-layer:not(.hidden){
  display:grid!important;
  visibility:visible!important;
}
body.owner-dm-special.owner-vignette .owner-music-player-layer,
body.owner-dm-special.owner-grain .owner-music-player-layer{
  filter:drop-shadow(0 22px 40px rgba(0,0,0,.38))!important;
}


/* V125 — fundo Owner reativo ao MP3. */
.global-background{--owner-beat-extra:0}
body.owner-bg-beat-pulse .global-background #globalBgImage:not(.hidden),
body.owner-bg-beat-pulse .global-background #globalBgVideo:not(.hidden),
body.owner-bg-beat-pulse .global-background #ownerDmBgImage:not(.hidden),
body.owner-bg-beat-pulse .global-background #ownerDmBgVideo:not(.hidden){
  transform:translate(var(--owner-parallax-x),var(--owner-parallax-y)) scale(calc(1.03 + var(--owner-beat-extra,0)))!important;
  transform-origin:center center!important;
}
body.owner-bg-beat-pulse.owner-dm-special.owner-slowzoom .global-background #globalBgImage:not(.hidden),
body.owner-bg-beat-pulse.owner-dm-special.owner-slowzoom .global-background #globalBgVideo:not(.hidden),
body.owner-bg-beat-pulse.owner-dm-special.owner-slowzoom .global-background #ownerDmBgImage:not(.hidden),
body.owner-bg-beat-pulse.owner-dm-special.owner-slowzoom .global-background #ownerDmBgVideo:not(.hidden){animation:none!important}
.owner-beat-pulse-hint{display:block;margin-top:-4px;margin-bottom:10px}


/* V128 — disco apenas para MP3 sem visual. */
body.owner-bg-has-visual.owner-bg-has-audio .owner-music-player-layer{display:none!important;visibility:hidden!important}

/* V132 — Publicações */
.publications-view{max-width:920px;margin:0 auto;width:100%}
.publication-feed{display:grid;gap:14px;margin-top:14px;padding-bottom:28px}
.publication-composer{margin:14px 0 18px;padding:16px;border-radius:14px;background:#202228;border:1px solid rgba(255,255,255,.055)}
.publication-composer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.publication-composer-head strong{display:block;font-size:12px;color:#f2f3f5;letter-spacing:.04em}
.publication-composer-head span{display:block;color:#8d95a1;font-size:10px;margin-top:4px}
.publication-type-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
.publication-type-tabs button{border:0;border-radius:8px;padding:8px 12px;background:#2a2d33;color:#aeb4bd;cursor:pointer;font-weight:800}
.publication-type-tabs button.active{background:#4047c8;color:#fff}
.publication-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.publication-form label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#aeb4bd;font-size:10px;font-weight:800}
.publication-form label>span{display:flex;align-items:center;gap:6px}.publication-form label small{font-weight:600;color:#6f7782}
.publication-form input,.publication-form select,.publication-form textarea{width:100%;box-sizing:border-box;border:1px solid #373a42;background:#17181c;color:#f2f3f5;border-radius:8px;padding:10px;font:inherit;outline:none}
.publication-form textarea{resize:vertical;min-height:84px}
.publication-wide{grid-column:1/-1}.publication-kind-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.publication-kind-fields label:nth-child(2){grid-column:1/-1}
.publication-images-field input[type=file]{padding:8px}.publication-image-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:4px}.publication-image-preview img{width:100%;height:84px;object-fit:cover;border-radius:8px;background:#111}
.publication-submit{display:flex;align-items:center;gap:10px}.publication-submit .primary-btn{width:auto;margin:0}.publication-submit span{font-size:10px;color:#89909b;overflow-wrap:anywhere}
.publication-card{background:#202228;border:1px solid rgba(255,255,255,.055);border-radius:14px;padding:15px;color:#f2f3f5;overflow:hidden}
.publication-author-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.publication-author-btn{display:flex;align-items:center;gap:10px;min-width:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;padding:0}.publication-author-btn .avatar{width:40px;height:40px;flex:0 0 40px}.publication-author-btn>span{display:flex;flex-direction:column;min-width:0}.publication-author-btn strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.publication-author-btn small{font-size:9px;color:#929aa6;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:380px}.publication-card-meta{display:flex;flex-direction:column;align-items:flex-end;gap:2px;color:#747c87;font-size:8px;white-space:nowrap}
.publication-card h3{font-size:16px;margin:2px 0 8px}.publication-text{margin:0 0 12px;color:#d3d6dc;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.publication-media-grid{display:grid;gap:5px;margin:10px 0 12px;border-radius:10px;overflow:hidden}.publication-media-grid.count-1{grid-template-columns:1fr}.publication-media-grid.count-2,.publication-media-grid.count-4{grid-template-columns:repeat(2,1fr)}.publication-media-grid.count-3{grid-template-columns:repeat(2,1fr)}.publication-media-grid.count-3 .publication-media-item:first-child{grid-row:span 2}.publication-media-item{border:0;padding:0;background:#111;cursor:zoom-in;min-height:140px;overflow:hidden}.publication-media-item img{display:block;width:100%;height:100%;max-height:420px;min-height:140px;object-fit:cover}
.publication-poll{margin-top:10px;padding:12px;border-radius:11px;background:#181a1f}.publication-poll>strong{display:block;font-size:13px;margin-bottom:10px}.publication-poll-options{display:grid;gap:7px}.publication-poll-options button{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:40px;border:1px solid #393d46;border-radius:8px;background:#252830;color:#e6e8eb;padding:9px 11px;cursor:pointer;text-align:left}.publication-poll-options button:disabled{cursor:default}.publication-poll-options button.active{border-color:#7c83ff}.publication-poll-fill{position:absolute;z-index:-1;inset:0 auto 0 0;background:rgba(124,131,255,.16);transition:width .18s ease}.publication-poll-label{font-size:11px;font-weight:750}.publication-poll-options b{font-size:10px}.publication-poll-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:9px;color:#89909b;font-size:9px}.publication-voters-btn{border:0;background:transparent;color:#9ea7ff;font:inherit;cursor:pointer;padding:0;margin-left:auto}
.publication-event{display:flex;align-items:center;gap:12px;margin-top:10px;padding:12px;border-radius:11px;background:#181a1f}.publication-event-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:11px;background:#2b2f3c;font-size:22px}.publication-event>div:last-child{display:flex;flex-direction:column;gap:4px}.publication-event strong{font-size:13px}.publication-event span{font-size:10px;color:#c6cad0}.publication-event small{font-size:9px;color:#8e96a2}
.publication-owner-actions{display:flex;justify-content:flex-end;margin-top:10px}.publication-owner-actions .secondary-btn{width:auto;margin:0}
.publication-voters-list{display:grid;gap:12px}.publication-voter-group{background:#202228;border-radius:10px;padding:10px}.publication-voter-group>strong{display:block}.publication-voter-group>small{display:block;color:#858d98;font-size:9px;margin:3px 0 8px}.publication-voter-row{display:flex;align-items:center;gap:9px;width:100%;padding:7px 0;border:0;border-top:1px solid rgba(255,255,255,.05);background:transparent;color:#f2f3f5;text-align:left;cursor:pointer}.publication-voter-row .avatar{width:32px;height:32px}.publication-voter-row>span{display:flex;flex-direction:column}.publication-voter-row b{font-size:10px}.publication-voter-row small{font-size:8px;color:#7e8793}
@media(max-width:650px){.publication-form,.publication-kind-fields{grid-template-columns:1fr}.publication-wide,.publication-kind-fields label:nth-child(2){grid-column:1}.publication-image-preview{grid-template-columns:repeat(2,1fr)}.publication-author-row{align-items:flex-start}.publication-card-meta{font-size:7px}.publication-media-item,.publication-media-item img{min-height:110px}.publication-submit{align-items:stretch;flex-direction:column}.publication-submit .primary-btn{width:100%}}

/* V133 Owner Visual Studio — all effects gated behind owner-advanced-enabled */
.owner-art-crop-preview{--owner-preview-art:none;--owner-preview-x:50%;--owner-preview-y:50%;--owner-preview-zoom:100%;--owner-preview-opacity:0;position:relative;isolation:isolate;overflow:hidden;min-height:118px;margin:10px 0 18px;border:1px solid #ffffff18;border-radius:12px;background:#17181b;display:grid;place-items:center;color:#dbdee1}
.owner-art-crop-preview:before{content:"";position:absolute;inset:-6px;z-index:-2;background-image:var(--owner-preview-art);background-position:var(--owner-preview-x) var(--owner-preview-y);background-size:var(--owner-preview-zoom) auto;background-repeat:no-repeat;opacity:var(--owner-preview-opacity)}
.owner-art-crop-preview:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#00000010,#00000055);pointer-events:none}
.owner-art-crop-preview>span,.owner-art-crop-preview>strong{position:relative;z-index:2;text-shadow:0 2px 8px #000}
.owner-sidebar-preview{min-height:62px;justify-items:start;padding:0 18px}
.owner-note-art-preview{min-height:96px;align-content:center;gap:5px;text-align:center}
.owner-master-switch{padding:12px 14px;border-radius:10px;background:#111214;border:1px solid #ffffff12;font-weight:800}
.owner-note-preview-theme-fire{background:linear-gradient(135deg,#280b05,#8a2410,#ff7a18)}
.owner-note-preview-theme-water{background:linear-gradient(135deg,#06182f,#0f4c75,#24c6dc)}
.owner-note-preview-theme-aurora{background:linear-gradient(135deg,#101226,#4f2d7f,#1b9b8a)}
.owner-note-preview-theme-neon{background:linear-gradient(135deg,#0b0814,#49145d,#0d6b79)}
.owner-note-preview-theme-galaxy{background:radial-gradient(circle at 25% 20%,#7047d8 0 2%,transparent 22%),linear-gradient(135deg,#080716,#211542,#09152f)}
.owner-note-preview-theme-glass{background:linear-gradient(135deg,#ffffff16,#5865f226)}
.owner-note-preview-theme-sakura{background:linear-gradient(135deg,#371727,#9f476d,#f0a8c5)}
.owner-note-preview-theme-cyber{background:linear-gradient(135deg,#03100d,#06382d,#02c39a)}

body.owner-advanced-enabled.owner-v2-profile-fx .owner-v2-profile-target{position:relative!important;isolation:isolate!important;border-radius:var(--owner-profile-v2-radius)!important;box-shadow:var(--owner-profile-v2-shadow)!important;overflow:hidden!important}
body.owner-advanced-enabled.owner-v2-profile-fx .owner-v2-profile-target:before{content:none!important}
body.owner-advanced-enabled.owner-v2-profile-fx #userProfileModal .owner-v2-profile-target>.profile-banner,body.owner-advanced-enabled.owner-v2-profile-fx .dm-profile-card.owner-v2-profile-target>.dm-profile-banner{position:relative!important;z-index:4!important;isolation:isolate!important;filter:none!important;transform:none!important;opacity:1!important}
body.owner-advanced-enabled.owner-v2-profile-fx #userProfileModal .owner-v2-profile-target .popout-body,body.owner-advanced-enabled.owner-v2-profile-fx .dm-profile-card.owner-v2-profile-target .dm-profile-body{position:relative!important;z-index:2!important;backdrop-filter:blur(var(--owner-profile-v2-glass));-webkit-backdrop-filter:blur(var(--owner-profile-v2-glass))}
body.owner-advanced-enabled.owner-v2-profile-fx #userProfileModal .owner-v2-profile-target .popout-body:before,body.owner-advanced-enabled.owner-v2-profile-fx .dm-profile-card.owner-v2-profile-target .dm-profile-body:before{content:"";position:absolute;inset:0;z-index:0;background-image:var(--owner-profile-v2-art);background-position:var(--owner-profile-v2-art-x) var(--owner-profile-v2-art-y);background-size:var(--owner-profile-v2-art-zoom) auto;background-repeat:no-repeat;opacity:var(--owner-profile-v2-art-opacity);filter:blur(var(--owner-profile-v2-art-blur));pointer-events:none}
body.owner-advanced-enabled.owner-v2-profile-fx #userProfileModal .owner-v2-profile-target .popout-body>*,body.owner-advanced-enabled.owner-v2-profile-fx .dm-profile-card.owner-v2-profile-target .dm-profile-body>*{position:relative;z-index:1}
body.owner-advanced-enabled.owner-v2-profile-border .owner-v2-profile-target{border:var(--owner-profile-v2-border-width) solid var(--owner-profile-v2-border-color)!important}
body.owner-advanced-enabled.owner-v2-profile-noise #userProfileModal .owner-v2-profile-target .popout-body:after,body.owner-advanced-enabled.owner-v2-profile-noise .dm-profile-card.owner-v2-profile-target .dm-profile-body:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.17;background-image:radial-gradient(circle,#fff 0 1px,transparent 1.2px);background-size:5px 5px;mix-blend-mode:soft-light}
body.owner-advanced-enabled.owner-v2-profile-scanlines #userProfileModal .owner-v2-profile-target .popout-body:after,body.owner-advanced-enabled.owner-v2-profile-scanlines .dm-profile-card.owner-v2-profile-target .dm-profile-body:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:repeating-linear-gradient(180deg,transparent 0 3px,#00000018 3px 4px)}
body.owner-advanced-enabled.owner-v2-profile-noise.owner-v2-profile-scanlines #userProfileModal .owner-v2-profile-target .popout-body:after,body.owner-advanced-enabled.owner-v2-profile-noise.owner-v2-profile-scanlines .dm-profile-card.owner-v2-profile-target .dm-profile-body:after{background-image:radial-gradient(circle,#fff 0 1px,transparent 1.2px),repeating-linear-gradient(180deg,transparent 0 3px,#00000018 3px 4px);background-size:5px 5px,100% 4px;opacity:.18}
@keyframes ownerV2ProfileBreathe{50%{filter:brightness(1.06)}}
@keyframes ownerV2ProfileFloat{50%{transform:translateY(-3px)}}
@keyframes ownerV2ProfileShimmer{0%,100%{filter:saturate(1)}50%{filter:saturate(1.22) brightness(1.07)}}
@keyframes ownerV2ProfileChroma{0%,100%{filter:hue-rotate(0deg)}50%{filter:hue-rotate(22deg)}}
body.owner-advanced-enabled.owner-v2-profile-fx.owner-v2-profile-anim-breathe .owner-v2-profile-target{animation:ownerV2ProfileBreathe 2.6s ease-in-out infinite}
body.owner-advanced-enabled.owner-v2-profile-fx.owner-v2-profile-anim-float .owner-v2-profile-target{animation:ownerV2ProfileFloat 3s ease-in-out infinite}
body.owner-advanced-enabled.owner-v2-profile-fx.owner-v2-profile-anim-shimmer .owner-v2-profile-target{animation:ownerV2ProfileShimmer 2.4s ease-in-out infinite}
body.owner-advanced-enabled.owner-v2-profile-fx.owner-v2-profile-anim-chroma .owner-v2-profile-target{animation:ownerV2ProfileChroma 5s linear infinite}

body.owner-advanced-enabled.owner-v2-sidebar-fx .owner-v2-sidebar-target{position:relative!important;isolation:isolate!important;border-radius:var(--owner-sidebar-radius)!important;border:1px solid color-mix(in srgb,var(--owner-sidebar-border-color) var(--owner-sidebar-border-mix),transparent)!important;transition:transform .18s ease,border-color .18s ease,background .18s ease!important}
body.owner-advanced-enabled.owner-v2-sidebar-fx .owner-v2-sidebar-target:before{content:"";position:absolute;inset:0;z-index:0;border-radius:inherit;background-image:linear-gradient(#00000012,#00000012),var(--owner-sidebar-art);background-position:center,var(--owner-sidebar-x) var(--owner-sidebar-y);background-size:100% 100%,var(--owner-sidebar-zoom) auto;background-repeat:no-repeat;opacity:var(--owner-sidebar-opacity);filter:blur(var(--owner-sidebar-blur)) saturate(var(--owner-sidebar-saturation));transition:opacity .18s ease,filter .18s ease;pointer-events:none}
body.owner-advanced-enabled.owner-v2-sidebar-fx .owner-v2-sidebar-target:hover{transform:translateY(calc(0px - var(--owner-sidebar-hover-lift)))!important}
body.owner-advanced-enabled.owner-v2-sidebar-fx .owner-v2-sidebar-target:hover:before{opacity:var(--owner-sidebar-hover-opacity)}
body.owner-advanced-enabled.owner-v2-sidebar-fx .owner-v2-sidebar-target>*{position:relative;z-index:1}

body.owner-advanced-enabled.owner-v2-identity-fx .owner-author,body.owner-advanced-enabled.owner-v2-identity-fx .owner-v2-sidebar-target strong,body.owner-advanced-enabled.owner-v2-identity-fx .owner-v2-profile-target h2,body.owner-advanced-enabled.owner-v2-identity-fx .owner-v2-profile-target h3{font-family:var(--owner-identity-font)!important;color:var(--owner-identity-color)!important;letter-spacing:var(--owner-identity-spacing)!important;text-shadow:var(--owner-identity-text-shadow)!important}
body.owner-advanced-enabled.owner-v2-identity-fx.owner-v2-identity-gradient .owner-author,body.owner-advanced-enabled.owner-v2-identity-fx.owner-v2-identity-gradient .owner-v2-sidebar-target strong,body.owner-advanced-enabled.owner-v2-identity-fx.owner-v2-identity-gradient .owner-v2-profile-target h2,body.owner-advanced-enabled.owner-v2-identity-fx.owner-v2-identity-gradient .owner-v2-profile-target h3{background:linear-gradient(90deg,var(--owner-identity-color),var(--owner-identity-color-b),var(--owner-identity-color));background-size:220% 100%;-webkit-background-clip:text;background-clip:text;color:transparent!important}
body.owner-advanced-enabled.owner-v2-identity-uppercase .owner-author,body.owner-advanced-enabled.owner-v2-identity-uppercase .owner-v2-sidebar-target strong{text-transform:uppercase}
@keyframes ownerV2IdentityPulse{50%{transform:scale(1.035)}}
@keyframes ownerV2IdentityShimmer{to{background-position:-220% 0}}
@keyframes ownerV2IdentityWave{0%,100%{filter:brightness(1)}50%{filter:brightness(1.35)}}
@keyframes ownerV2IdentityType{50%{letter-spacing:calc(var(--owner-identity-spacing) + .8px)}}
@keyframes ownerV2IdentityFlicker{0%,93%,100%{opacity:1}95%{opacity:.78}97%{opacity:.94}}
body.owner-advanced-enabled.owner-v2-identity-fx.owner-v2-identity-anim-pulse .owner-author{display:inline-block;animation:ownerV2IdentityPulse 1.8s ease-in-out infinite}
body.owner-advanced-enabled.owner-v2-identity-fx.owner-v2-identity-anim-shimmer .owner-author{animation:ownerV2IdentityShimmer 3s linear infinite}
body.owner-advanced-enabled.owner-v2-identity-fx.owner-v2-identity-anim-wave .owner-author{animation:ownerV2IdentityWave 1.8s ease-in-out infinite}
body.owner-advanced-enabled.owner-v2-identity-fx.owner-v2-identity-anim-type .owner-author{animation:ownerV2IdentityType 2.4s ease-in-out infinite}
body.owner-advanced-enabled.owner-v2-identity-fx.owner-v2-identity-anim-flicker .owner-author{animation:ownerV2IdentityFlicker 3.8s linear infinite}

body.owner-advanced-enabled.owner-v2-message-fx .message.owner-message{margin-left:0!important;margin-right:0!important;border:0!important;border-radius:0!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;overflow:visible!important;isolation:auto!important;transform:none!important}
body.owner-advanced-enabled.owner-v2-message-fx.owner-v2-message-glow .message.owner-message .message-content{text-shadow:var(--owner-message-v2-text-shadow)!important}
body.owner-advanced-enabled.owner-v2-message-custom-text .message.owner-message .message-content{color:var(--owner-message-v2-text)!important}
body.owner-advanced-enabled.owner-v2-message-fx .message.owner-message:after{display:none!important;content:none!important}

body.owner-advanced-enabled.owner-v2-note-fx .owner-v2-note-target{position:relative!important;isolation:isolate!important;overflow:hidden!important;color:var(--owner-note-text)!important;border-color:var(--owner-note-border)!important;box-shadow:var(--owner-note-shadow)!important}
body.owner-advanced-enabled.owner-v2-note-fx .owner-v2-note-target:before{content:"";position:absolute;inset:-4px;z-index:0;background-image:var(--owner-note-art);background-position:var(--owner-note-art-x) var(--owner-note-art-y);background-size:var(--owner-note-art-zoom) auto;background-repeat:no-repeat;opacity:var(--owner-note-art-opacity);pointer-events:none}
body.owner-advanced-enabled.owner-v2-note-fx .owner-v2-note-target:after{content:"";position:absolute;inset:0;z-index:1;background:var(--owner-note-overlay);opacity:var(--owner-note-overlay-opacity);pointer-events:none}
body.owner-advanced-enabled.owner-v2-note-fx .owner-v2-note-target>*{position:relative;z-index:2}
body.owner-advanced-enabled.owner-v2-note-fx .owner-v2-note-target strong,body.owner-advanced-enabled.owner-v2-note-fx .owner-v2-note-target p,body.owner-advanced-enabled.owner-v2-note-fx .owner-v2-note-target span,body.owner-advanced-enabled.owner-v2-note-fx .owner-v2-note-target small{color:var(--owner-note-text)!important}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-theme-fire .owner-v2-note-target{background:linear-gradient(135deg,#290904e8,#7b1d0ee8,#e95d16d9)!important}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-theme-water .owner-v2-note-target{background:linear-gradient(135deg,#05172be8,#0b4b70e8,#1d91a9da)!important}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-theme-aurora .owner-v2-note-target{background:linear-gradient(120deg,#171226e8,#53317ce4,#167c70dc)!important}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-theme-neon .owner-v2-note-target{background:linear-gradient(120deg,#150819e8,#672176df,#087a88dc)!important}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-theme-galaxy .owner-v2-note-target{background:radial-gradient(circle at 18% 20%,#8d66ff55,transparent 28%),linear-gradient(135deg,#090717ee,#251449e8,#07172fe8)!important}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-theme-glass .owner-v2-note-target{background:#ffffff12!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-theme-sakura .owner-v2-note-target{background:linear-gradient(135deg,#361524eb,#87405fe5,#d885a8df)!important}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-theme-cyber .owner-v2-note-target{background:linear-gradient(135deg,#02110de8,#064c3be8,#008f72dc)!important}

/* v139: compact Owner note bubbles must keep their native absolute layout.
   They inherit only safe theme colors/glow; full note media/layout stays on profile/note surfaces. */
body.owner-advanced-enabled.owner-v2-note-fx .owner-v2-note-compact-target{
  color:var(--owner-note-text)!important;
  border-color:color-mix(in srgb,var(--owner-note-border) 55%,#ffffff16)!important;
  box-shadow:0 4px 14px #0008,var(--owner-note-shadow)!important;
}
body.owner-advanced-enabled.owner-v2-note-fx .owner-v2-note-compact-target>b,
body.owner-advanced-enabled.owner-v2-note-fx .owner-v2-note-compact-target>span{color:var(--owner-note-text)!important}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-theme-fire .owner-v2-note-compact-target{background:linear-gradient(90deg,#4b130be8,#7b1d0ee8)!important}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-theme-water .owner-v2-note-compact-target{background:linear-gradient(90deg,#08213be8,#0b4b70e8)!important}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-theme-aurora .owner-v2-note-compact-target{background:linear-gradient(90deg,#211833e8,#3b5276e4)!important}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-theme-neon .owner-v2-note-compact-target{background:linear-gradient(90deg,#2a102fe8,#25465ee8)!important}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-theme-galaxy .owner-v2-note-compact-target{background:linear-gradient(90deg,#15102be8,#251449e8)!important}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-theme-glass .owner-v2-note-compact-target{background:#242529dc!important;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-theme-sakura .owner-v2-note-compact-target{background:linear-gradient(90deg,#512037eb,#87405fe5)!important}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-theme-cyber .owner-v2-note-compact-target{background:linear-gradient(90deg,#063128e8,#064c3be8)!important}
/* Never let advanced note animations replace the translate used by compact avatar bubbles. */
body.owner-advanced-enabled.owner-v2-note-fx .pulse-note-avatar-bubble.owner-v2-note-compact-target{
  position:absolute!important;
  overflow:hidden!important;
  animation:none!important;
  filter:none!important;
}
@keyframes ownerV2NoteFloat{50%{transform:translateY(-3px)}}
@keyframes ownerV2NoteFlame{0%,100%{filter:brightness(1) saturate(1)}50%{filter:brightness(1.2) saturate(1.3)}}
@keyframes ownerV2NoteRipple{50%{box-shadow:0 0 0 5px color-mix(in srgb,var(--owner-note-border) 16%,transparent),var(--owner-note-shadow)}}
@keyframes ownerV2NoteShimmer{50%{filter:brightness(1.18)}}
@keyframes ownerV2NoteDrift{0%,100%{background-position:0 50%}50%{background-position:100% 50%}}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-anim-float .owner-v2-note-target{animation:ownerV2NoteFloat 2.8s ease-in-out infinite}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-anim-flame .owner-v2-note-target{animation:ownerV2NoteFlame 1.2s ease-in-out infinite}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-anim-ripple .owner-v2-note-target{animation:ownerV2NoteRipple 1.8s ease-in-out infinite}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-anim-shimmer .owner-v2-note-target{animation:ownerV2NoteShimmer 1.8s ease-in-out infinite}
body.owner-advanced-enabled.owner-v2-note-fx.owner-v2-note-anim-drift .owner-v2-note-target{background-size:180% 180%!important;animation:ownerV2NoteDrift 6s ease-in-out infinite}

@media (prefers-reduced-motion:reduce){body.owner-advanced-enabled .owner-v2-profile-target,body.owner-advanced-enabled .owner-author,body.owner-advanced-enabled .owner-v2-note-target{animation:none!important;transform:none!important}}

/* V134 - Owner Visual Studio easy interactive editor */
.owner-visual-editor-body{padding:14px!important}
.owner-visual-editor-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin-bottom:14px;border:1px solid var(--border);border-radius:14px;background:color-mix(in srgb,var(--panel) 88%,transparent)}
.owner-visual-editor-head>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.owner-visual-editor-head>div strong{font-size:15px}
.owner-visual-editor-head>div span{font-size:12px;color:var(--muted)}
.owner-visual-editor-head .owner-master-switch{margin:0;white-space:nowrap}
.owner-visual-editor-layout{display:grid;grid-template-columns:minmax(430px,1.08fr) minmax(360px,.92fr);gap:14px;align-items:start}
.owner-visual-stage-wrap,.owner-visual-inspector{border:1px solid var(--border);border-radius:16px;background:color-mix(in srgb,var(--panel) 92%,transparent);overflow:hidden}
.owner-visual-stage-wrap{position:sticky;top:10px}
.owner-visual-stage-toolbar,.owner-visual-inspector-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--panel-2,var(--panel)) 92%,transparent)}
.owner-visual-stage-toolbar>span,.owner-visual-inspector-top small{font-size:10px;font-weight:800;letter-spacing:.12em;color:var(--muted)}
.owner-visual-stage-hint{font-size:12px;color:var(--muted)}
.owner-visual-stage{display:grid;grid-template-columns:148px minmax(0,1fr);min-height:500px;background:var(--bg);overflow:hidden}
.owner-visual-stage-sidebar{padding:10px 8px;background:color-mix(in srgb,var(--panel) 97%,black 3%);border-right:1px solid var(--border)}
.owner-visual-mini-logo{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;font-weight:900;background:var(--accent);color:white;margin-bottom:18px}
.owner-visual-side-label{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:0 6px 7px}
.owner-visual-preview-dm{width:100%;min-height:52px;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:8px;position:relative;border:1px solid transparent;border-radius:var(--owner-sidebar-radius,10px);padding:7px;background:transparent;color:inherit;text-align:left;overflow:hidden;cursor:pointer;isolation:isolate}
.owner-visual-preview-dm .owner-visual-preview-art{position:absolute;inset:0;z-index:-1;background-image:var(--owner-sidebar-art);background-position:var(--owner-sidebar-x) var(--owner-sidebar-y);background-size:var(--owner-sidebar-zoom) auto;background-repeat:no-repeat;opacity:var(--owner-sidebar-opacity);filter:blur(var(--owner-sidebar-blur)) saturate(var(--owner-sidebar-saturation));transition:opacity .18s ease}
.owner-visual-preview-dm:hover .owner-visual-preview-art{opacity:var(--owner-sidebar-hover-opacity)}
.owner-visual-preview-dm:hover{transform:translateY(calc(0px - var(--owner-sidebar-hover-lift)))}
.owner-visual-stage.preview-sidebar-enabled .owner-visual-preview-dm{border-color:color-mix(in srgb,var(--owner-sidebar-border-color) var(--owner-sidebar-border-mix),transparent)}
.owner-visual-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:none;background:linear-gradient(135deg,var(--accent),var(--owner-identity-color-b,#eb459e));color:white;font-size:12px;font-weight:900;background-size:cover;background-position:center}
.owner-visual-dm-copy{display:flex;flex-direction:column;min-width:0;gap:2px}.owner-visual-dm-copy strong{font-size:12px;overflow:hidden;text-overflow:ellipsis}.owner-visual-dm-copy small{font-size:10px;color:var(--muted)}
.owner-visual-fake-dm{height:42px;display:flex;align-items:center;gap:8px;padding:6px}.owner-visual-fake-dm span{width:30px;height:30px;border-radius:50%;background:var(--hover)}.owner-visual-fake-dm i{width:64%;height:8px;border-radius:8px;background:var(--hover)}
.owner-visual-stage-main{min-width:0;background:color-mix(in srgb,var(--bg) 96%,var(--panel) 4%)}
.owner-visual-stage-topbar{height:46px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);font-size:12px}.owner-visual-stage-topbar span{font-size:10px;color:var(--muted)}
.owner-visual-preview-profile{margin:14px;min-height:154px;position:relative;border-radius:var(--owner-profile-v2-radius,12px);overflow:hidden;background:color-mix(in srgb,var(--panel) 94%,transparent);border:1px solid var(--border);isolation:isolate;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.owner-visual-preview-profile>.owner-visual-preview-art{position:absolute;inset:0;z-index:-2;background-image:var(--owner-profile-v2-art);background-position:var(--owner-profile-v2-art-x) var(--owner-profile-v2-art-y);background-size:var(--owner-profile-v2-art-zoom) auto;background-repeat:no-repeat;opacity:var(--owner-profile-v2-art-opacity);filter:blur(var(--owner-profile-v2-art-blur))}
.owner-visual-profile-banner{height:66px;background:linear-gradient(125deg,color-mix(in srgb,var(--accent) 68%,transparent),color-mix(in srgb,var(--owner-identity-color-b,#eb459e) 48%,transparent))}
.owner-visual-profile-avatar{width:54px;height:54px;margin:-27px 0 0 14px;border:4px solid var(--panel);position:relative;z-index:2}
.owner-visual-profile-copy{padding:5px 14px 14px;display:flex;flex-direction:column;gap:4px}.owner-visual-profile-copy small{font-size:11px;color:var(--muted)}
.owner-visual-stage.preview-profile-enabled .owner-visual-preview-profile{border:var(--owner-profile-v2-border-width) solid var(--owner-profile-v2-border-color);box-shadow:0 0 calc(10px + 30px * var(--owner-profile-v2-glow)) color-mix(in srgb,var(--owner-profile-v2-glow-color) calc(18% + 30% * var(--owner-profile-v2-glow)),transparent);backdrop-filter:blur(var(--owner-profile-v2-glass))}
.owner-visual-name-button{border:0;background:none;padding:0;margin:0;color:inherit;font:inherit;font-weight:800;text-align:left;cursor:pointer;width:max-content;max-width:100%}
.owner-visual-stage.preview-identity-enabled .owner-visual-name-button{font-family:var(--owner-identity-font);letter-spacing:var(--owner-identity-spacing);color:var(--owner-identity-color);text-shadow:var(--owner-identity-text-shadow)}
.owner-visual-stage.preview-identity-enabled.preview-identity-gradient .owner-visual-name-button{background:linear-gradient(90deg,var(--owner-identity-color),var(--owner-identity-color-b),var(--owner-identity-color));background-size:220% 100%;-webkit-background-clip:text;background-clip:text;color:transparent}
.owner-visual-preview-chat{padding:4px 14px 18px;display:flex;flex-direction:column;gap:18px}
.owner-visual-preview-message-row{display:flex;align-items:flex-start;gap:9px}.owner-visual-message-copy{flex:1;min-width:0}.owner-visual-message-meta{display:flex;align-items:center;gap:7px;margin-bottom:4px}.owner-visual-message-meta small{font-size:9px;color:var(--muted)}
.owner-visual-preview-message{width:100%;min-height:48px;position:relative;display:block;text-align:left;color:var(--text);border:0;border-radius:var(--owner-message-v2-radius,8px);background:transparent;padding:8px 38px 8px 9px;font:inherit;font-size:12px;cursor:pointer;overflow:hidden;transition:transform .16s ease,box-shadow .16s ease}
.owner-visual-stage.preview-message-enabled .owner-visual-preview-message{background:transparent!important;backdrop-filter:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;overflow:visible!important}.owner-visual-stage.preview-message-enabled .owner-visual-preview-message{text-shadow:var(--owner-message-v2-text-shadow)}
.owner-visual-stage.preview-message-text .owner-visual-preview-message{color:var(--owner-message-v2-text)}
.owner-visual-preview-message:hover{transform:none}
.owner-visual-preview-note{align-self:flex-start;width:min(260px,88%);min-height:82px;position:relative;overflow:hidden;border:1px solid var(--border);border-radius:14px;padding:12px 36px 12px 12px;background:var(--panel);color:var(--text);text-align:left;display:flex;flex-direction:column;gap:4px;cursor:pointer;isolation:isolate}
.owner-visual-preview-note>.owner-visual-preview-art{position:absolute;inset:-3px;z-index:-2;background-image:var(--owner-note-art);background-position:var(--owner-note-art-x) var(--owner-note-art-y);background-size:var(--owner-note-art-zoom) auto;background-repeat:no-repeat;opacity:var(--owner-note-art-opacity)}
.owner-visual-preview-note strong{font-size:12px}.owner-visual-preview-note span{font-size:11px}.owner-visual-preview-note small{font-size:9px;color:var(--muted)}
.owner-visual-stage.preview-note-enabled .owner-visual-preview-note{color:var(--owner-note-text);border-color:var(--owner-note-border);box-shadow:var(--owner-note-shadow)}
.owner-visual-stage.preview-note-enabled.preview-note-fire .owner-visual-preview-note{background:linear-gradient(135deg,#290904e8,#7b1d0ee8,#e95d16d9)}
.owner-visual-stage.preview-note-enabled.preview-note-water .owner-visual-preview-note{background:linear-gradient(135deg,#05172be8,#0b4b70e8,#1d91a9da)}
.owner-visual-stage.preview-note-enabled.preview-note-aurora .owner-visual-preview-note{background:linear-gradient(120deg,#171226e8,#53317ce4,#167c70dc)}
.owner-visual-stage.preview-note-enabled.preview-note-neon .owner-visual-preview-note{background:linear-gradient(120deg,#150819e8,#672176df,#087a88dc)}
.owner-visual-stage.preview-note-enabled.preview-note-galaxy .owner-visual-preview-note{background:radial-gradient(circle at 18% 20%,#8d66ff55,transparent 28%),linear-gradient(135deg,#090717ee,#251449e8,#07172fe8)}
.owner-visual-stage.preview-note-enabled.preview-note-glass .owner-visual-preview-note{background:#ffffff12;backdrop-filter:blur(12px)}
.owner-visual-stage.preview-note-enabled.preview-note-sakura .owner-visual-preview-note{background:linear-gradient(135deg,#361524eb,#87405fe5,#d885a8df)}
.owner-visual-stage.preview-note-enabled.preview-note-cyber .owner-visual-preview-note{background:linear-gradient(135deg,#02110de8,#064c3be8,#008f72dc)}
.owner-visual-edit-badge{position:absolute;right:6px;top:6px;font-style:normal;font-size:9px;font-weight:800;padding:3px 6px;border-radius:999px;background:#0009;color:#fff;opacity:0;transform:translateY(-2px);transition:.15s;pointer-events:none}.owner-visual-target:hover .owner-visual-edit-badge,.owner-visual-target.owner-visual-selected .owner-visual-edit-badge{opacity:1;transform:none}.owner-visual-target.owner-visual-selected{outline:2px solid var(--accent);outline-offset:2px}
.owner-visual-stage-footer{display:flex;gap:7px;padding:10px;border-top:1px solid var(--border);overflow:auto}.owner-visual-nav-chip,.owner-visual-preset-row button{border:1px solid var(--border);background:var(--hover);color:var(--text);border-radius:999px;padding:7px 10px;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}.owner-visual-nav-chip.active,.owner-visual-preset-row button:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 14%,var(--hover))}
.owner-visual-inspector{min-width:0}.owner-visual-inspector-top>div{display:flex;flex-direction:column;gap:2px}.owner-visual-inspector-top strong{font-size:14px}.owner-visual-inspector-panel{display:none;padding:14px;max-height:min(680px,75vh);overflow:auto}.owner-visual-inspector-panel.active{display:block}.owner-visual-panel-intro{display:flex;align-items:center;gap:10px;margin-bottom:12px}.owner-visual-panel-intro>span{font-size:25px}.owner-visual-panel-intro>div{display:flex;flex-direction:column;gap:2px}.owner-visual-panel-intro small{color:var(--muted);font-size:11px}
.owner-visual-preset-row{display:flex;gap:6px;overflow:auto;padding-bottom:10px}.owner-visual-main-toggle{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--border));border-radius:12px;background:color-mix(in srgb,var(--accent) 7%,var(--panel));margin-bottom:10px}.owner-visual-main-toggle input{width:18px;height:18px}.owner-visual-main-toggle span{display:flex;flex-direction:column;gap:2px}.owner-visual-main-toggle small{font-size:10px;color:var(--muted)}
.owner-visual-control-card{border:1px solid var(--border);border-radius:12px;padding:11px;margin-top:9px;background:color-mix(in srgb,var(--panel-2,var(--panel)) 78%,transparent)}.owner-visual-control-card h5{margin:0 0 9px;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.owner-visual-control-card label>b{float:right;color:var(--muted);font-size:10px;font-weight:700}
.owner-visual-inspector-savebar{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-top:1px solid var(--border);background:color-mix(in srgb,var(--panel) 96%,transparent);z-index:3}.owner-visual-inspector-savebar span{font-size:10px;color:var(--muted)}.owner-visual-reset-all{justify-content:center;margin-top:12px}
.owner-visual-editor-section .owner-art-crop-preview{min-height:90px;margin-top:9px}
.owner-visual-editor-section input[type="range"]{width:100%}
.owner-visual-editor-section .owner-grid.two{gap:9px 10px}
.owner-visual-editor-section .owner-grid.two>label,.owner-visual-editor-section .owner-visual-control-card>label{font-size:11px}
.owner-visual-editor-section select,.owner-visual-editor-section input:not([type="range"]):not([type="checkbox"]):not([type="color"]){margin-top:5px}
.owner-visual-editor-section input[type="color"]{min-height:36px;margin-top:5px}
@media(max-width:1050px){.owner-visual-editor-layout{grid-template-columns:1fr}.owner-visual-stage-wrap{position:relative;top:auto}.owner-visual-inspector-panel{max-height:none}}
@media(max-width:620px){.owner-visual-editor-body{padding:8px!important}.owner-visual-editor-head{align-items:flex-start;flex-direction:column}.owner-visual-stage{grid-template-columns:104px minmax(0,1fr);min-height:430px}.owner-visual-stage-sidebar{padding:8px 5px}.owner-visual-side-label{font-size:8px}.owner-visual-preview-dm{grid-template-columns:30px minmax(0,1fr);padding:5px}.owner-visual-preview-dm .owner-visual-avatar{width:30px;height:30px}.owner-visual-preview-dm .owner-visual-edit-badge{display:none}.owner-visual-dm-copy strong{font-size:10px}.owner-visual-dm-copy small{font-size:8px}.owner-visual-preview-profile{margin:9px}.owner-visual-preview-chat{padding:2px 9px 14px}.owner-visual-profile-copy{padding-left:10px}.owner-visual-profile-avatar{margin-left:10px}.owner-visual-inspector-panel{padding:10px}.owner-visual-editor-section .owner-grid.two{grid-template-columns:1fr}.owner-visual-inspector-savebar{align-items:stretch;flex-direction:column}.owner-visual-inspector-savebar button{width:100%}}
.owner-visual-stage.preview-profile-noise .owner-visual-preview-profile:after,.owner-visual-stage.preview-profile-scanlines .owner-visual-preview-profile:before{content:"";position:absolute;inset:0;pointer-events:none;z-index:4}
.owner-visual-stage.preview-profile-noise .owner-visual-preview-profile:after{opacity:.13;background-image:radial-gradient(circle at 20% 30%,#fff 0 .5px,transparent .7px),radial-gradient(circle at 80% 65%,#fff 0 .45px,transparent .7px);background-size:9px 9px,13px 13px}
.owner-visual-stage.preview-profile-scanlines .owner-visual-preview-profile:before{opacity:.12;background:repeating-linear-gradient(0deg,transparent 0 3px,#fff 3px 4px)}
@keyframes ownerVisualPreviewBreathe{50%{transform:scale(1.012)}}@keyframes ownerVisualPreviewFloat{50%{transform:translateY(-4px)}}@keyframes ownerVisualPreviewShimmer{50%{filter:brightness(1.13)}}@keyframes ownerVisualPreviewChroma{0%{filter:hue-rotate(0)}100%{filter:hue-rotate(360deg)}}
.owner-visual-stage.preview-profile-anim-breathe .owner-visual-preview-profile{animation:ownerVisualPreviewBreathe 2.2s ease-in-out infinite}.owner-visual-stage.preview-profile-anim-float .owner-visual-preview-profile{animation:ownerVisualPreviewFloat 2.5s ease-in-out infinite}.owner-visual-stage.preview-profile-anim-shimmer .owner-visual-preview-profile{animation:ownerVisualPreviewShimmer 1.8s ease-in-out infinite}.owner-visual-stage.preview-profile-anim-chroma .owner-visual-preview-profile{animation:ownerVisualPreviewChroma 5s linear infinite}
@keyframes ownerVisualNamePulse{50%{opacity:.7;transform:scale(1.025)}}@keyframes ownerVisualNameWave{50%{transform:translateY(-2px)}}@keyframes ownerVisualNameFlicker{0%,90%,100%{opacity:1}92%{opacity:.58}95%{opacity:.85}}
.owner-visual-stage.preview-identity-anim-pulse .owner-visual-name-button{animation:ownerVisualNamePulse 1.8s ease-in-out infinite}.owner-visual-stage.preview-identity-anim-wave .owner-visual-name-button{animation:ownerVisualNameWave 1.5s ease-in-out infinite}.owner-visual-stage.preview-identity-anim-flicker .owner-visual-name-button{animation:ownerVisualNameFlicker 3s linear infinite}.owner-visual-stage.preview-identity-anim-shimmer .owner-visual-name-button{background-size:240% 100%;animation:ownerV2IdentityShimmer 3s linear infinite}.owner-visual-stage.preview-identity-anim-type .owner-visual-name-button{animation:ownerV2IdentityType 2.4s ease-in-out infinite}
.owner-visual-preview-message:after{display:none!important;content:none!important}
.owner-visual-stage.preview-note-enabled .owner-visual-preview-note:after{content:"";position:absolute;inset:0;z-index:-1;background:var(--owner-note-overlay);opacity:var(--owner-note-overlay-opacity);pointer-events:none}
@keyframes ownerVisualNoteFloat{50%{transform:translateY(-4px)}}@keyframes ownerVisualNoteFlame{50%{filter:brightness(1.15) saturate(1.15)}}@keyframes ownerVisualNoteRipple{50%{box-shadow:0 0 0 5px color-mix(in srgb,var(--owner-note-border) 16%,transparent),var(--owner-note-shadow)}}@keyframes ownerVisualNoteShimmer{50%{filter:brightness(1.14)}}@keyframes ownerVisualNoteDrift{50%{background-position:100% 50%}}
.owner-visual-stage.preview-note-anim-float .owner-visual-preview-note{animation:ownerVisualNoteFloat 2.8s ease-in-out infinite}.owner-visual-stage.preview-note-anim-flame .owner-visual-preview-note{animation:ownerVisualNoteFlame 1.2s ease-in-out infinite}.owner-visual-stage.preview-note-anim-ripple .owner-visual-preview-note{animation:ownerVisualNoteRipple 1.8s ease-in-out infinite}.owner-visual-stage.preview-note-anim-shimmer .owner-visual-preview-note{animation:ownerVisualNoteShimmer 1.8s ease-in-out infinite}.owner-visual-stage.preview-note-anim-drift .owner-visual-preview-note{background-size:180% 180%;animation:ownerVisualNoteDrift 6s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.owner-visual-stage .owner-visual-preview-profile,.owner-visual-stage .owner-visual-name-button,.owner-visual-stage .owner-visual-preview-note{animation:none!important;transform:none!important}}
.owner-visual-stage.preview-profile-enabled .owner-visual-preview-profile{border-color:var(--border)}
.owner-visual-stage.preview-profile-enabled.preview-profile-border .owner-visual-preview-profile{border:var(--owner-profile-v2-border-width) solid var(--owner-profile-v2-border-color)}


/* V136 - Owner Visual Editor fit/scroll + text-only messages */
.owner-control-page{width:100%!important;max-width:100%!important;min-width:0!important}
.owner-control-page .owner-section,.owner-control-page .owner-section-body,.owner-visual-editor-body,.owner-visual-editor-layout,.owner-visual-stage-wrap,.owner-visual-inspector,.owner-visual-inspector-panel,.owner-visual-control-card{min-width:0!important;max-width:100%!important;box-sizing:border-box}
.owner-visual-editor-layout{grid-template-columns:minmax(0,1fr)!important;width:100%!important;overflow:visible!important}
.owner-visual-stage-wrap{position:relative!important;top:auto!important;width:100%!important}
.owner-visual-stage{width:100%!important;min-width:0!important}
.owner-visual-inspector{overflow:visible!important;width:100%!important}
.owner-visual-inspector-panel{max-height:none!important;overflow:visible!important;width:100%!important}
.owner-visual-inspector-panel.active{display:block!important}
.owner-visual-preset-row,.owner-visual-stage-footer{overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:8px}
.owner-visual-preset-row button,.owner-visual-nav-chip{flex:0 0 auto!important}
.owner-visual-control-card{overflow-x:auto!important;overscroll-behavior-x:contain}
.owner-visual-editor-section .owner-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}
.owner-visual-editor-section .owner-grid.two>label,.owner-visual-editor-section .owner-toggle-grid>label{min-width:0!important}
.owner-visual-editor-section input,.owner-visual-editor-section select,.owner-visual-editor-section .button-row{max-width:100%!important;box-sizing:border-box}
.owner-visual-editor-section .button-row>*{min-width:0!important}
.owner-visual-editor-section .file-input{width:100%!important}
@media(max-width:760px){.owner-visual-editor-section .owner-grid.two{grid-template-columns:minmax(0,1fr)!important}.owner-visual-editor-section .owner-toggle-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}}
@media(max-width:480px){.owner-visual-editor-section .owner-toggle-grid{grid-template-columns:minmax(0,1fr)!important}.owner-visual-editor-section .button-row{flex-direction:column!important;align-items:stretch!important}.owner-visual-editor-section .button-row>*{width:100%!important;flex:none!important}}


/* V138 - Owner full-card art + Discord-like crop */
body.owner-advanced-enabled.owner-v2-profile-full-art .owner-v2-profile-target{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
}
body.owner-advanced-enabled.owner-v2-profile-full-art .owner-v2-profile-target::before{
  content:""!important;
  position:absolute!important;
  inset:-1px!important;
  z-index:0!important;
  pointer-events:none!important;
  background-image:var(--owner-profile-full-art)!important;
  background-size:cover!important;
  background-position:var(--owner-profile-full-art-x) var(--owner-profile-full-art-y)!important;
  background-repeat:no-repeat!important;
  opacity:var(--owner-profile-full-art-opacity)!important;
  transform:scale(var(--owner-profile-full-art-scale))!important;
  transform-origin:var(--owner-profile-full-art-x) var(--owner-profile-full-art-y)!important;
  filter:none!important;
}
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target>.profile-banner,
body.owner-advanced-enabled.owner-v2-profile-full-art .dm-profile-card.owner-v2-profile-target>.dm-profile-banner{
  background:none!important;
  background-image:none!important;
  box-shadow:none!important;
  opacity:1!important;
}
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target .popout-body,
body.owner-advanced-enabled.owner-v2-profile-full-art .dm-profile-card.owner-v2-profile-target .dm-profile-body{
  background:transparent!important;
}
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target .popout-body:before,
body.owner-advanced-enabled.owner-v2-profile-full-art .dm-profile-card.owner-v2-profile-target .dm-profile-body:before{
  opacity:0!important;
  background:none!important;
}
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target>.profile-banner,
body.owner-advanced-enabled.owner-v2-profile-full-art .dm-profile-card.owner-v2-profile-target>.dm-profile-banner,
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target .popout-body,
body.owner-advanced-enabled.owner-v2-profile-full-art .dm-profile-card.owner-v2-profile-target .dm-profile-body,
body.owner-advanced-enabled.owner-v2-profile-full-art .owner-v2-profile-target .profile-close{
  position:relative!important;
  z-index:2!important;
}
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target .popout-avatar,
body.owner-advanced-enabled.owner-v2-profile-full-art .dm-profile-card.owner-v2-profile-target .dm-profile-avatar{
  z-index:5!important;
}
.owner-full-card-art-control .owner-visual-main-toggle.compact{margin:0 0 10px;padding:9px}
.owner-full-card-art-preview{
  min-height:180px!important;
  aspect-ratio:4/5;
  max-height:270px;
  width:min(100%,220px);
  margin-inline:auto!important;
  background-size:cover!important;
}
.owner-full-card-crop-card{
  width:min(520px,calc(100vw - 24px));
  max-height:calc(100dvh - 24px);
  overflow:auto;
}
.owner-full-card-crop-card>h2,.owner-full-card-crop-card>p{text-align:center}
.owner-full-card-crop-card>p{color:var(--muted);font-size:12px;line-height:1.45}
.owner-full-card-crop-viewport{
  width:min(340px,82vw);
  aspect-ratio:4/5;
  margin:16px auto;
  position:relative;
  overflow:hidden;
  border-radius:16px;
  background:#111214;
  border:1px solid #ffffff1f;
  touch-action:none;
  user-select:none;
  cursor:grab;
  box-shadow:inset 0 0 0 1px #0008,0 14px 40px #0007;
}
.owner-full-card-crop-viewport:active{cursor:grabbing}
.owner-full-card-crop-viewport>img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  max-width:none;
  max-height:none;
  pointer-events:none;
  will-change:transform,object-position;
}
.owner-full-card-crop-ui{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(180deg,transparent 0 24%,#00000012 24% 100%);
  box-shadow:inset 0 0 0 2px #ffffffb8;
}
.owner-full-card-crop-bannerline{
  position:absolute;
  left:0;right:0;top:24%;
  border-top:1px dashed #ffffffa8;
}
.owner-full-card-crop-bannerline:after{
  content:"fim do banner";
  position:absolute;
  right:8px;
  top:5px;
  font-size:9px;
  font-weight:800;
  color:#fff;
  background:#0009;
  padding:3px 6px;
  border-radius:999px;
}
.owner-full-card-crop-avatarghost{
  position:absolute;
  left:20px;
  top:calc(24% - 30px);
  width:60px;
  height:60px;
  border-radius:50%;
  border:5px solid #fff;
  background:#0008;
  box-shadow:0 2px 10px #0008;
}
.owner-full-card-crop-lines{
  position:absolute;
  left:20px;right:20px;
  top:calc(24% + 45px);
  display:flex;
  flex-direction:column;
  gap:12px;
}
.owner-full-card-crop-lines i{
  display:block;
  height:10px;
  width:72%;
  border-radius:999px;
  background:#ffffffb8;
  box-shadow:0 1px 5px #0008;
}
.owner-full-card-crop-lines i:nth-child(2){width:46%;opacity:.78}
.owner-full-card-crop-lines i:nth-child(3){margin-top:18px;width:88%;height:54px;border-radius:9px;opacity:.48}
.owner-full-card-crop-lines i:nth-child(4){width:66%;opacity:.5}
.owner-full-card-crop-meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:7px 0 0;
  font-size:10px;
  color:var(--muted);
}
.owner-visual-preview-profile>.owner-visual-full-card-art{
  position:absolute;
  inset:0;
  z-index:-1;
  background-image:var(--owner-profile-full-art);
  background-position:var(--owner-profile-full-art-x) var(--owner-profile-full-art-y);
  background-size:cover;
  background-repeat:no-repeat;
  opacity:var(--owner-profile-full-art-opacity);
  transform:scale(var(--owner-profile-full-art-scale));
  transform-origin:var(--owner-profile-full-art-x) var(--owner-profile-full-art-y);
  pointer-events:none;
}
.owner-visual-stage.preview-profile-full-art .owner-visual-preview-profile>.owner-visual-preview-art{opacity:0!important}
.owner-visual-stage.preview-profile-full-art .owner-visual-profile-banner{background:transparent!important}
.owner-visual-stage.preview-profile-full-art .owner-visual-preview-profile{background:color-mix(in srgb,var(--panel) 35%,transparent)}
.owner-visual-stage.preview-profile-full-art .owner-visual-profile-avatar,
.owner-visual-stage.preview-profile-full-art .owner-visual-profile-copy,
.owner-visual-stage.preview-profile-full-art .owner-visual-edit-badge{position:relative;z-index:2}
@media(max-width:520px){
  .owner-full-card-crop-card{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}
  .owner-full-card-crop-viewport{width:min(300px,84vw)}
  .owner-full-card-crop-card .crop-actions{display:grid;grid-template-columns:1fr}
  .owner-full-card-crop-card .crop-actions button{width:100%}
}


/* v140 — profile note action, visually integrated with Veyra */
.v140-profile-note-action{
  width:100%;
  min-height:48px;
  margin-top:9px;
  padding:8px 10px;
  display:flex;
  align-items:center;
  gap:9px;
  text-align:left;
  border:1px solid rgba(255,255,255,.055)!important;
  border-radius:11px!important;
  background:rgba(255,255,255,.035)!important;
  color:var(--v94-text,#f2f3f5)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
  transition:background .15s ease,border-color .15s ease,transform .15s ease!important;
}
.v140-profile-note-action:hover{
  background:rgba(255,255,255,.065)!important;
  border-color:rgba(118,109,240,.24)!important;
}
.v140-profile-note-action:active{transform:scale(.988)}
.v140-profile-note-icon{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:linear-gradient(145deg,rgba(118,109,240,.23),rgba(139,91,216,.13));
  color:#b9b3ff;
  font-size:12px;
  box-shadow:inset 0 0 0 1px rgba(143,133,255,.13);
}
.v140-profile-note-copy{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.v140-profile-note-copy strong{
  color:#eceef2!important;
  font-size:10px!important;
  font-weight:800;
  letter-spacing:.01em;
}
.v140-profile-note-copy small{
  color:#8f94a0;
  font-size:9px;
  font-weight:650;
}
.v140-profile-note-arrow{
  width:22px;
  height:22px;
  flex:0 0 22px;
  display:grid;
  place-items:center;
  border-radius:7px;
  color:#7f8490;
  font-size:18px;
  line-height:1;
  transition:transform .15s ease,color .15s ease,background .15s ease;
}
.v140-profile-note-action:hover .v140-profile-note-arrow{
  transform:translateX(2px);
  color:#d7d9df;
  background:rgba(255,255,255,.045);
}


/* V141 - Owner full-card art: real layer, no banner layout displacement */
body.owner-advanced-enabled.owner-v2-profile-full-art .owner-v2-profile-target::before{content:none!important;display:none!important}
.owner-v2-profile-target>.owner-full-card-art-layer{
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  pointer-events:none!important;
  opacity:0;
  background-image:var(--owner-profile-full-art);
  background-size:cover;
  background-position:var(--owner-profile-full-art-x) var(--owner-profile-full-art-y);
  background-repeat:no-repeat;
  transform:scale(var(--owner-profile-full-art-scale));
  transform-origin:var(--owner-profile-full-art-x) var(--owner-profile-full-art-y);
  will-change:transform,opacity;
}
body.owner-advanced-enabled.owner-v2-profile-full-art .owner-v2-profile-target>.owner-full-card-art-layer{
  opacity:var(--owner-profile-full-art-opacity)!important;
}
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target>.profile-banner,
body.owner-advanced-enabled.owner-v2-profile-full-art .dm-profile-card.owner-v2-profile-target>.dm-profile-banner{
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  opacity:1!important;
  transform:none!important;
  filter:none!important;
}
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target .popout-body,
body.owner-advanced-enabled.owner-v2-profile-full-art .dm-profile-card.owner-v2-profile-target .dm-profile-body{
  background:transparent!important;
}
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target>.profile-banner,
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target>.popout-body,
body.owner-advanced-enabled.owner-v2-profile-full-art .dm-profile-card.owner-v2-profile-target>.dm-profile-banner,
body.owner-advanced-enabled.owner-v2-profile-full-art .dm-profile-card.owner-v2-profile-target>.dm-profile-note-slot,
body.owner-advanced-enabled.owner-v2-profile-full-art .dm-profile-card.owner-v2-profile-target>.dm-profile-body{
  z-index:2!important;
}
/* Preserve the site's own banner/body geometry; full-card art changes paint only. */
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target>.profile-banner,
body.owner-advanced-enabled.owner-v2-profile-full-art .dm-profile-card.owner-v2-profile-target>.dm-profile-banner{
  top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  margin-top:0!important;
}
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target>.profile-close{
  position:absolute!important;
  right:14px!important;
  top:10px!important;
  z-index:20!important;
}
@media(max-width:520px){body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target>.profile-close{right:8px!important;top:7px!important}}

/* V142 adaptive full-card image contrast retired in V143: Pulse gradient is now the source of truth. */
/* V143 - Pulse profile controls adapt to the user's gradient, not full-card artwork */
.profile-gradient-adaptive{
  --profile-adaptive-surface:color-mix(in srgb,var(--profile-bottom,#232428) 84%,#fff 16%);
  --profile-adaptive-surface-strong:color-mix(in srgb,var(--profile-bottom,#232428) 72%,#fff 28%);
  --profile-adaptive-hover:color-mix(in srgb,var(--profile-bottom,#232428) 64%,#fff 36%);
  --profile-adaptive-text:#f3f4f6;
  --profile-adaptive-muted:#b7bbc4;
  --profile-adaptive-line:rgba(255,255,255,.11);
  --profile-adaptive-icon:rgba(255,255,255,.08);
}
.profile-gradient-adaptive.profile-gradient-tone-light{
  --profile-adaptive-text:#17191e;
  --profile-adaptive-muted:#42464e;
  --profile-adaptive-line:rgba(10,11,14,.16);
  --profile-adaptive-icon:rgba(10,11,14,.10);
}
.profile-gradient-adaptive .popout-body,
.dm-profile-card.profile-gradient-adaptive .dm-profile-body,
.profile-editor-card.profile-gradient-adaptive .profile-editor-body{
  color:var(--profile-adaptive-text)!important;
}
.user-profile-popout.profile-gradient-adaptive #profilePopoutHandle,
.user-profile-popout.profile-gradient-adaptive .popout-body>.muted,
.dm-profile-card.profile-gradient-adaptive .dm-profile-body>.muted{
  color:var(--profile-adaptive-muted)!important;
}
.user-profile-popout.profile-gradient-adaptive .popout-body>.profile-section,
.user-profile-popout.profile-gradient-adaptive .v94-profile-page,
.user-profile-popout.profile-gradient-adaptive .v94-profile-page>.profile-section,
.dm-profile-card.profile-gradient-adaptive .dm-profile-body>.profile-section{
  background:var(--profile-adaptive-surface-strong-bg,var(--profile-adaptive-surface-strong))!important;
  border:1px solid var(--profile-adaptive-line)!important;
  color:var(--profile-adaptive-text)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--profile-adaptive-text) 4%,transparent)!important;
}
.user-profile-popout.profile-gradient-adaptive .profile-section strong,
.user-profile-popout.profile-gradient-adaptive .profile-section p,
.user-profile-popout.profile-gradient-adaptive .v94-profile-page strong,
.user-profile-popout.profile-gradient-adaptive .v94-profile-page p,
.dm-profile-card.profile-gradient-adaptive .profile-section strong,
.dm-profile-card.profile-gradient-adaptive .profile-section p{
  color:var(--profile-adaptive-text)!important;
}
.user-profile-popout.profile-gradient-adaptive .v94-profile-tabs{
  background:var(--profile-adaptive-surface-strong-bg,var(--profile-adaptive-surface-strong))!important;
  box-shadow:inset 0 0 0 1px var(--profile-adaptive-line)!important;
}
.user-profile-popout.profile-gradient-adaptive .v94-profile-tab:not(.active){color:var(--profile-adaptive-muted)!important}
.user-profile-popout.profile-gradient-adaptive .v94-profile-tab:not(.active):hover{
  background:var(--profile-adaptive-hover-bg,var(--profile-adaptive-hover))!important;
  color:var(--profile-adaptive-text)!important;
}
.user-profile-popout.profile-gradient-adaptive .v94-profile-tab:not(.active) .v94-profile-tab-icon{background:var(--profile-adaptive-icon)!important}
.user-profile-popout.profile-gradient-adaptive .profile-badges .badge-pill,
.dm-profile-card.profile-gradient-adaptive .profile-badges .badge-pill{
  background:var(--profile-adaptive-surface-strong-bg,var(--profile-adaptive-surface-strong))!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--profile-adaptive-text) 4%,transparent)!important;
}
.user-profile-popout.profile-gradient-adaptive .profile-actions .secondary-btn,
.user-profile-popout.profile-gradient-adaptive .v94-profile-note-jump,
.dm-profile-card.profile-gradient-adaptive .dm-profile-full-btn{
  background:var(--profile-adaptive-surface-bg,var(--profile-adaptive-surface))!important;
  border-color:var(--profile-adaptive-line)!important;
  color:var(--profile-adaptive-text)!important;
}
.user-profile-popout.profile-gradient-adaptive .profile-actions .secondary-btn:hover,
.user-profile-popout.profile-gradient-adaptive .v94-profile-note-jump:hover,
.dm-profile-card.profile-gradient-adaptive .dm-profile-full-btn:hover{
  background:var(--profile-adaptive-hover-bg,var(--profile-adaptive-hover))!important;
}
.user-profile-popout.profile-gradient-adaptive .v140-profile-note-action{
  background:var(--profile-adaptive-surface-bg,var(--profile-adaptive-surface))!important;
  border-color:var(--profile-adaptive-line)!important;
  color:var(--profile-adaptive-text)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--profile-adaptive-text) 4%,transparent)!important;
}
.user-profile-popout.profile-gradient-adaptive .v140-profile-note-action:hover{background:var(--profile-adaptive-hover-bg,var(--profile-adaptive-hover))!important}
.user-profile-popout.profile-gradient-adaptive .v140-profile-note-copy strong{color:var(--profile-adaptive-text)!important}
.user-profile-popout.profile-gradient-adaptive .v140-profile-note-copy small,
.user-profile-popout.profile-gradient-adaptive .v140-profile-note-arrow{color:var(--profile-adaptive-muted)!important}
.user-profile-popout.profile-gradient-adaptive .v140-profile-note-icon{
  background:var(--profile-adaptive-active)!important;
}
.user-profile-popout.profile-gradient-adaptive .v94-mutual-block,
.user-profile-popout.profile-gradient-adaptive .v94-mutual-grid button,
.user-profile-popout.profile-gradient-adaptive .v94-mutual-grid>div,
.user-profile-popout.profile-gradient-adaptive .v94-guild-chips span,
.user-profile-popout.profile-gradient-adaptive .v94-social-links a{
  background:var(--profile-adaptive-surface-bg,var(--profile-adaptive-surface))!important;
  color:var(--profile-adaptive-text)!important;
  border-color:var(--profile-adaptive-line)!important;
}
.user-profile-popout.profile-gradient-adaptive .v94-mutual-grid button:hover,
.user-profile-popout.profile-gradient-adaptive .v94-social-links a:hover{background:var(--profile-adaptive-hover-bg,var(--profile-adaptive-hover))!important}

/* V144/V145 - keep controls in the Pulse hue family; V145 surfaces are solid tones, never gradients. */
.user-profile-popout.profile-gradient-adaptive .v94-profile-tab.active{
  background:var(--profile-adaptive-active-bg,var(--profile-adaptive-active))!important;
  color:var(--profile-adaptive-text)!important;
  box-shadow:0 6px 15px color-mix(in srgb,var(--profile-adaptive-active) 32%,transparent),inset 0 1px 0 color-mix(in srgb,var(--profile-adaptive-text) 14%,transparent)!important;
}
.user-profile-popout.profile-gradient-adaptive .v94-profile-tab.active .v94-profile-tab-icon{
  background:color-mix(in srgb,var(--profile-adaptive-text) 14%,transparent)!important;
  color:var(--profile-adaptive-text)!important;
}
.user-profile-popout.profile-gradient-adaptive .badge-pill.owner,
.user-profile-popout.profile-gradient-adaptive .badge-pill.staff,
.user-profile-popout.profile-gradient-adaptive .badge-pill,
.dm-profile-card.profile-gradient-adaptive .badge-pill{
  backdrop-filter:saturate(1.12);
}

/* Keep featured users/cards visually independent from adaptive surfaces. */
.user-profile-popout.profile-gradient-adaptive .owner-featured-section,
.dm-profile-card.profile-gradient-adaptive .dm-profile-featured{
  color:inherit;
}

/* V146 — Discord-like Pulse surface hierarchy. Gradient stays on the profile; controls are solid sibling tones. */
.profile-gradient-adaptive{
  --profile-adaptive-soft:var(--profile-adaptive-surface);
  --profile-adaptive-tag:var(--profile-adaptive-surface-strong);
}
.user-profile-popout.profile-gradient-adaptive .popout-body>.profile-section,
.user-profile-popout.profile-gradient-adaptive .v94-profile-page,
.user-profile-popout.profile-gradient-adaptive .v94-profile-page>.profile-section,
.dm-profile-card.profile-gradient-adaptive .dm-profile-body>.profile-section{
  background:var(--profile-adaptive-soft-bg,var(--profile-adaptive-soft))!important;
  border-color:var(--profile-adaptive-line)!important;
  box-shadow:none!important;
}
.user-profile-popout.profile-gradient-adaptive .v94-profile-tabs{
  background:var(--profile-adaptive-soft-bg,var(--profile-adaptive-soft))!important;
  box-shadow:inset 0 0 0 1px var(--profile-adaptive-line)!important;
}
.user-profile-popout.profile-gradient-adaptive .profile-badges .badge-pill,
.dm-profile-card.profile-gradient-adaptive .profile-badges .badge-pill{
  background:var(--profile-adaptive-tag-bg,var(--profile-adaptive-tag))!important;
  border-color:var(--profile-adaptive-line)!important;
  box-shadow:none!important;
}
.user-profile-popout.profile-gradient-adaptive .profile-actions .secondary-btn,
.user-profile-popout.profile-gradient-adaptive .v94-profile-note-jump,
.user-profile-popout.profile-gradient-adaptive .v140-profile-note-action,
.dm-profile-card.profile-gradient-adaptive .dm-profile-full-btn,
.user-profile-popout.profile-gradient-adaptive .v94-mutual-block,
.user-profile-popout.profile-gradient-adaptive .v94-mutual-grid button,
.user-profile-popout.profile-gradient-adaptive .v94-mutual-grid>div,
.user-profile-popout.profile-gradient-adaptive .v94-guild-chips span,
.user-profile-popout.profile-gradient-adaptive .v94-social-links a{
  background:var(--profile-adaptive-surface-bg,var(--profile-adaptive-surface))!important;
  border-color:var(--profile-adaptive-line)!important;
  box-shadow:none!important;
}
.user-profile-popout.profile-gradient-adaptive .profile-actions .secondary-btn:hover,
.user-profile-popout.profile-gradient-adaptive .v94-profile-note-jump:hover,
.user-profile-popout.profile-gradient-adaptive .v140-profile-note-action:hover,
.dm-profile-card.profile-gradient-adaptive .dm-profile-full-btn:hover,
.user-profile-popout.profile-gradient-adaptive .v94-mutual-grid button:hover,
.user-profile-popout.profile-gradient-adaptive .v94-social-links a:hover{
  background:var(--profile-adaptive-hover-bg,var(--profile-adaptive-hover))!important;
}
.user-profile-popout.profile-gradient-adaptive .v94-profile-tab.active{
  background:var(--profile-adaptive-active-bg,var(--profile-adaptive-active))!important;
  color:var(--profile-adaptive-text)!important;
  box-shadow:inset 0 0 0 1px var(--profile-adaptive-line)!important;
}
.user-profile-popout.profile-gradient-adaptive .v94-profile-tab.active .v94-profile-tab-icon{
  background:color-mix(in srgb,var(--profile-adaptive-text) 11%,transparent)!important;
  color:var(--profile-adaptive-text)!important;
}
.user-profile-popout.profile-gradient-adaptive .v140-profile-note-icon{
  background:var(--profile-adaptive-tag-bg,var(--profile-adaptive-tag))!important;
  color:var(--profile-adaptive-text)!important;
}
.user-profile-popout.profile-gradient-adaptive .profile-actions .primary-btn{
  background:var(--profile-adaptive-active-bg,var(--profile-adaptive-active))!important;
  color:var(--profile-adaptive-text)!important;
  border-color:var(--profile-adaptive-line)!important;
  box-shadow:none!important;
}
.user-profile-popout.profile-gradient-adaptive .profile-actions .primary-btn:hover{
  background:var(--profile-adaptive-hover-bg,var(--profile-adaptive-hover))!important;
  filter:brightness(1.035);
}
.user-profile-popout.profile-gradient-adaptive .profile-badges .badge-pill.owner,
.user-profile-popout.profile-gradient-adaptive .profile-badges .badge-pill.staff,
.dm-profile-card.profile-gradient-adaptive .profile-badges .badge-pill.owner,
.dm-profile-card.profile-gradient-adaptive .profile-badges .badge-pill.staff{
  background:var(--profile-adaptive-tag-bg,var(--profile-adaptive-tag))!important;
}


/* V147 — Discord-like neutral adaptive overlays. Surfaces no longer inherit a sampled Pulse hue.
   Transparent neutral layers let the local Pulse gradient show through naturally. */
.user-profile-popout.profile-gradient-adaptive .popout-body>.profile-section,
.user-profile-popout.profile-gradient-adaptive .v94-profile-page,
.user-profile-popout.profile-gradient-adaptive .v94-profile-page>.profile-section,
.user-profile-popout.profile-gradient-adaptive .v94-profile-tabs,
.user-profile-popout.profile-gradient-adaptive .profile-badges .badge-pill,
.user-profile-popout.profile-gradient-adaptive .profile-actions .secondary-btn,
.user-profile-popout.profile-gradient-adaptive .v94-profile-note-jump,
.user-profile-popout.profile-gradient-adaptive .v140-profile-note-action,
.user-profile-popout.profile-gradient-adaptive .v94-mutual-block,
.user-profile-popout.profile-gradient-adaptive .v94-mutual-grid button,
.user-profile-popout.profile-gradient-adaptive .v94-mutual-grid>div,
.user-profile-popout.profile-gradient-adaptive .v94-guild-chips span,
.user-profile-popout.profile-gradient-adaptive .v94-social-links a,
.dm-profile-card.profile-gradient-adaptive .dm-profile-body>.profile-section,
.dm-profile-card.profile-gradient-adaptive .profile-badges .badge-pill,
.dm-profile-card.profile-gradient-adaptive .dm-profile-full-btn{
  background-image:none!important;
  backdrop-filter:none!important;
}
.user-profile-popout.profile-gradient-adaptive .v94-profile-tab.active,
.user-profile-popout.profile-gradient-adaptive .profile-actions .primary-btn{
  background-image:none!important;
}
.user-profile-popout.profile-gradient-adaptive .profile-badges .badge-pill.owner,
.user-profile-popout.profile-gradient-adaptive .profile-badges .badge-pill.staff,
.dm-profile-card.profile-gradient-adaptive .profile-badges .badge-pill.owner,
.dm-profile-card.profile-gradient-adaptive .profile-badges .badge-pill.staff{
  backdrop-filter:none!important;
}

/* V148 — Owner background message hover: keep the background visible instead of painting a dark block. */
body.has-global-bg .message,
body.has-global-bg.veyra-theme-runtime .message{
  background-color:transparent!important;
}
body.has-global-bg .message:hover,
body.has-global-bg .message:focus-within,
body.has-global-bg.veyra-theme-runtime .message:hover,
body.has-global-bg.veyra-theme-runtime .message:focus-within{
  background:linear-gradient(90deg,
    color-mix(in srgb,var(--text,#f2f3f5) 4%,transparent),
    color-mix(in srgb,var(--text,#f2f3f5) 1.6%,transparent) 72%,
    transparent 100%)!important;
  box-shadow:none!important;
}
body.has-global-bg .message.grouped:hover,
body.has-global-bg.veyra-theme-runtime .message.grouped:hover{
  background:linear-gradient(90deg,
    color-mix(in srgb,var(--text,#f2f3f5) 3.2%,transparent),
    color-mix(in srgb,var(--text,#f2f3f5) 1.2%,transparent) 72%,
    transparent 100%)!important;
}


/* Veyra v149 — Evolve / Massive Social Update */
.channel-title-copy{display:flex;flex-direction:column;min-width:0;line-height:1.05}.channel-title-copy>strong{line-height:1.15}.dm-header-presence{font-size:10px;font-weight:600;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px}.dm-header-presence.online,.dm-header-presence.focused{color:#6fd39b}.dm-header-presence.idle{color:#d8bd72}.dm-header-presence.dnd{color:#ee7474}.dm-header-presence.offline{color:var(--muted)}
.dm-sidebar-avatar-wrap{position:relative;flex:0 0 auto}.dm-presence-dot{position:absolute;right:-1px;bottom:-1px;width:9px;height:9px;border-radius:50%;border:2px solid var(--bg-sidebar,#17181c);background:#747f8d;box-sizing:content-box;z-index:3}.dm-presence-dot.online{background:#23a55a}.dm-presence-dot.focused{background:#4ea67a}.dm-presence-dot.idle{background:#f0b232}.dm-presence-dot.dnd{background:#f23f43}.dm-presence-dot.offline,.dm-presence-dot.invisible{background:#80848e}.dm-sidebar-copy{min-width:0}.dm-sidebar-copy .dm-presence-copy{display:block;font-size:9px;color:var(--muted);line-height:1.15;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm-sidebar-copy small{font-size:9px;opacity:.72}
.global-search-shell{display:flex;flex-direction:column;gap:12px;min-height:280px;max-height:min(72vh,720px)}.global-search-bar{display:flex;align-items:center;gap:9px;background:rgba(0,0,0,.2);border:1px solid var(--border);border-radius:12px;padding:0 12px}.global-search-bar input{width:100%;background:transparent!important;border:0!important;outline:0!important;padding:13px 0;color:var(--text);font:inherit}.global-search-results{overflow:auto;display:flex;flex-direction:column;gap:14px;padding-right:3px}.global-search-loading{padding:30px;text-align:center;color:var(--muted)}.global-search-section>h3{display:flex;align-items:center;gap:7px;margin:0 0 7px;font-size:11px;text-transform:uppercase;color:var(--muted)}.global-search-section>h3 small{font-size:9px;opacity:.7}.global-search-section>div{display:flex;flex-direction:column;gap:3px}.global-search-hit{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:0;border-radius:9px;background:transparent;color:var(--text);padding:8px;cursor:pointer}.global-search-hit:hover{background:rgba(255,255,255,.07)}.global-search-hit>.avatar{flex:0 0 auto}.global-search-hit>i{font-size:20px;color:var(--muted);font-style:normal;width:30px;text-align:center}.global-search-hit>span{display:flex;flex-direction:column;min-width:0;gap:2px}.global-search-hit strong{font-size:12px}.global-search-hit small,.global-search-hit p{margin:0;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:560px}.global-search-hit.message-hit p{color:var(--text);font-size:11px}
.v149-now{padding-bottom:50px}.now-hero .eyebrow{font-size:9px;letter-spacing:.12em;color:var(--accent);font-weight:800}.now-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 18px}.now-stat-grid button{border:1px solid var(--border);background:rgba(255,255,255,.04);border-radius:12px;padding:13px;text-align:left;color:var(--text);cursor:pointer}.now-stat-grid button:hover{background:rgba(255,255,255,.07)}.now-stat-grid strong{display:block;font-size:22px}.now-stat-grid span{font-size:10px;color:var(--muted)}.now-section{margin:18px 0}.now-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.now-section-head h3{font-size:11px;text-transform:uppercase;color:var(--muted);margin:0}.now-section-head>span{font-size:10px;color:var(--muted)}.now-section-head button{border:0;background:transparent;color:var(--accent);font-size:10px;cursor:pointer}.now-online-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}.now-person{border:1px solid var(--border);background:rgba(255,255,255,.035);border-radius:12px;padding:12px;color:var(--text);text-align:left;cursor:pointer;min-width:0}.now-person:hover{background:rgba(255,255,255,.065)}.now-person .now-avatar{position:relative;width:max-content}.now-person strong,.now-person span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.now-person strong{margin-top:7px;font-size:11px}.now-person span{font-size:9px;color:var(--muted);margin-top:2px}.now-dm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:7px}.now-dm-card,.now-info-card{display:flex;align-items:center;gap:10px;border:1px solid var(--border);background:rgba(255,255,255,.035);border-radius:11px;padding:10px;color:var(--text);text-align:left;cursor:pointer;min-width:0}.now-dm-card:hover,.now-info-card:hover{background:rgba(255,255,255,.065)}.now-dm-card>span,.now-info-card>div{min-width:0;flex:1}.now-dm-card strong,.now-dm-card small,.now-info-card strong,.now-info-card p,.now-info-card small{display:block;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.now-dm-card strong,.now-info-card strong{font-size:11px}.now-dm-card small,.now-info-card p,.now-info-card small{font-size:9px;color:var(--muted)}.now-dm-card>b{font-size:9px;min-width:18px;height:18px;border-radius:9px;background:var(--accent);display:grid;place-items:center}.now-card-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:7px}.now-card-icon{width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.06);display:grid;place-items:center;flex:0 0 auto}
@media(max-width:760px){.now-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.now-dm-grid,.now-card-list{grid-template-columns:1fr}.dm-header-presence{max-width:180px}.channel-title-copy{max-width:190px}}

.error-center-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.error-center-list{max-height:62vh;overflow:auto;display:flex;flex-direction:column;gap:7px}.error-center-card{border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.03);overflow:hidden}.error-center-card summary{display:flex;flex-direction:column;gap:3px;padding:10px;cursor:pointer}.error-center-card summary strong{font-size:11px}.error-center-card summary span{font-size:9px;color:var(--muted)}.error-center-card>div{padding:0 10px 10px}.error-center-card p{font-size:9px;color:var(--muted)}.error-center-card pre{white-space:pre-wrap;word-break:break-word;font-size:9px;max-height:240px;overflow:auto;background:rgba(0,0,0,.2);padding:8px;border-radius:8px}.labs-grid{display:grid;gap:8px}.labs-grid label{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--border);border-radius:10px;padding:11px}.labs-grid label>span{display:flex;flex-direction:column;gap:2px}.labs-grid strong{font-size:11px}.labs-grid small{font-size:9px;color:var(--muted)}body.lab-compact-now .v149-now .now-section{margin:11px 0}body.lab-compact-now .v149-now .now-dm-card,body.lab-compact-now .v149-now .now-info-card{padding:7px}body.lab-micro-motion .publication-card,body.lab-micro-motion .now-info-card,body.lab-micro-motion .now-dm-card{transition:transform .15s ease,background .15s ease}body.lab-micro-motion .publication-card:hover,body.lab-micro-motion .now-info-card:hover,body.lab-micro-motion .now-dm-card:hover{transform:translateY(-1px)}


/* V151 — Evolve completion: searchable settings, Labs/rollouts and live feature access. */
.settings-search-wrap{display:flex;align-items:center;gap:7px;margin:0 8px 12px;padding:7px 8px;border-radius:8px;background:rgba(0,0,0,.18);border:1px solid transparent;color:#949ba4}
.settings-search-wrap:focus-within{border-color:color-mix(in srgb,var(--accent,#5865f2) 65%,transparent);background:rgba(0,0,0,.25)}
.settings-search-wrap input{min-width:0;width:100%;border:0!important;background:transparent!important;color:var(--text,#f2f3f5)!important;padding:0!important;outline:0!important;font-size:11px}
.settings-search-wrap button{display:none;border:0;background:transparent;color:var(--muted,#949ba4);cursor:pointer;font-size:16px;line-height:1;padding:0 2px}.settings-search-wrap button.visible{display:block}
.settings-tab.settings-search-hidden,.settings-tab.feature-hidden,.settings-page.feature-hidden{display:none!important}
.settings-labs-grid{max-width:620px}.settings-labs-actions{margin-top:12px}.owner-rollout-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0}.owner-rollout-grid label{display:flex;flex-direction:column;gap:5px}.owner-rollout-grid label>span{font-size:10px;font-weight:800;color:var(--muted)}
.owner-release-section .form-error.success{color:#6fd39b}.owner-health-tools .button-row{margin-top:4px}
@media(max-width:720px){.settings-search-wrap{position:sticky;left:0;min-width:180px;margin:0 4px 0 0;flex:0 0 auto}.owner-rollout-grid{grid-template-columns:1fr}}

.realtime-state-banner{position:fixed;left:50%;top:10px;z-index:5000;transform:translateX(-50%);display:flex;align-items:center;gap:8px;max-width:min(620px,calc(100vw - 24px));padding:8px 12px;border-radius:10px;background:rgba(17,18,20,.94);border:1px solid rgba(255,255,255,.1);box-shadow:0 10px 34px rgba(0,0,0,.35);backdrop-filter:blur(10px);color:#f2f3f5}.realtime-state-banner.hidden{display:none}.realtime-state-banner>span{font-size:12px;color:#f0b232}.realtime-state-banner.offline>span{color:#f23f43}.realtime-state-banner strong{font-size:11px}.realtime-state-banner small{font-size:9px;color:#b5bac1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.realtime-state-banner .spin{display:inline-block;animation:veyraReconnectSpin 1s linear infinite}@keyframes veyraReconnectSpin{to{transform:rotate(360deg)}}@media(max-width:600px){.realtime-state-banner{top:6px;width:calc(100vw - 16px);box-sizing:border-box}.realtime-state-banner small{display:none}}


/* Veyra v162 — Account Security */
.sanctuary-nav-tab{position:relative}.sanctuary-nav-tab::after{content:"162";font-size:9px;font-weight:800;opacity:.65;margin-left:auto}.sanctuary-page{padding-bottom:96px}.sanctuary-hero{display:flex;align-items:center;gap:16px;padding:20px;border:1px solid color-mix(in srgb,var(--accent,#5865f2) 34%,var(--line));border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--accent,#5865f2) 14%,var(--bg-main)),color-mix(in srgb,var(--bg-main) 92%,#000));margin-bottom:16px}.sanctuary-hero h2{margin:0 0 5px;font-size:24px}.sanctuary-hero p{margin:0;color:var(--muted);line-height:1.45}.sanctuary-shield{font-size:34px;width:56px;height:56px;border-radius:15px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent,#5865f2) 18%,var(--bg-input));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent,#5865f2) 30%,transparent)}.sanctuary-version{margin-left:auto;align-self:flex-start;font-size:11px;font-weight:900;letter-spacing:.12em;padding:6px 9px;border-radius:999px;background:var(--bg-input);color:var(--muted)}.sanctuary-card{padding:17px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--bg-sidebar) 56%,var(--bg-main));margin:12px 0}.sanctuary-card-emphasis{border-color:color-mix(in srgb,var(--accent,#5865f2) 42%,var(--line));box-shadow:0 12px 34px rgba(0,0,0,.12)}.sanctuary-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.sanctuary-card-head>div{display:flex;flex-direction:column;gap:4px}.sanctuary-card-head strong{font-size:16px}.sanctuary-card-head small{color:var(--muted);line-height:1.35}.sanctuary-chip{font-size:9px;font-weight:900;letter-spacing:.09em;padding:5px 8px;border-radius:999px;background:var(--bg-input);color:var(--muted);white-space:nowrap}.sanctuary-chip.active{background:color-mix(in srgb,#37d67a 18%,var(--bg-input));color:#65e69a}.sanctuary-field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:8px 0 12px}.sanctuary-field-grid.compact{grid-template-columns:minmax(220px,1fr);max-width:330px}.sanctuary-field-grid label{display:flex;flex-direction:column;gap:6px;font-size:10px;font-weight:800;color:var(--muted);letter-spacing:.04em}.sanctuary-field-grid select,.sanctuary-lock-grid input{width:100%;box-sizing:border-box;background:var(--bg-input);border:1px solid var(--line);color:var(--text);border-radius:8px;padding:10px}.sanctuary-note{padding:10px 12px;border-left:3px solid var(--accent,#5865f2);background:color-mix(in srgb,var(--accent,#5865f2) 8%,transparent);border-radius:0 8px 8px 0;color:var(--muted);font-size:12px;line-height:1.45}.sanctuary-lock-grid{display:grid;grid-template-columns:1fr 1fr auto auto;gap:8px;margin-bottom:10px}.security-events-list{display:grid;gap:5px;margin-top:12px;max-height:300px;overflow:auto}.security-event-row{display:grid;grid-template-columns:24px 1fr;gap:8px;align-items:center;padding:9px;border-radius:8px;background:var(--bg-input)}.security-event-row>div{display:flex;flex-direction:column}.security-event-row small{color:var(--muted)}.sanctuary-savebar{position:sticky;bottom:-1px;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin-top:14px;border:1px solid color-mix(in srgb,var(--accent,#5865f2) 36%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--bg-main) 91%,transparent);backdrop-filter:blur(16px);box-shadow:0 -10px 30px rgba(0,0,0,.18)}.sanctuary-savebar>div{display:flex;flex-direction:column;gap:2px}.sanctuary-savebar small{color:var(--muted)}.sanctuary-current-session{font-size:8px;margin-left:7px;padding:3px 5px;border-radius:999px;background:color-mix(in srgb,#37d67a 18%,transparent);color:#65e69a}.sanctuary-session{gap:10px}.session-device-copy{flex:1;min-width:0}.veyra-lock-overlay{position:fixed;inset:0;z-index:999999;background:rgba(5,6,10,.92);backdrop-filter:blur(30px);display:grid;place-items:center;padding:20px}.veyra-lock-card{width:min(390px,100%);box-sizing:border-box;text-align:center;padding:28px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:#11141c;box-shadow:0 30px 90px rgba(0,0,0,.5)}.veyra-lock-logo{font-size:44px}.veyra-lock-card h2{margin:12px 0 4px}.veyra-lock-card p,.veyra-lock-card small{color:#9da5b4}.veyra-lock-card input{width:100%;box-sizing:border-box;margin:16px 0 10px;background:#1c202b;border:1px solid #303746;color:#fff;padding:12px;border-radius:9px;text-align:center;font-size:18px;letter-spacing:.12em}.veyra-lock-card button{width:100%}.veyra-locked #app,.veyra-locked #auth{pointer-events:none;user-select:none}.sanctuary-unfocused.sanctuary-blur-enabled #app{filter:blur(18px);transition:filter .12s ease}.sanctuary-unfocused.sanctuary-blur-enabled::after{content:"Veyra protegido pelo Veyra Lock";position:fixed;inset:0;z-index:99990;background:rgba(8,10,14,.54);display:grid;place-items:center;color:#fff;font-weight:800;letter-spacing:.03em;pointer-events:none}@media(max-width:760px){.sanctuary-field-grid{grid-template-columns:1fr}.sanctuary-lock-grid{grid-template-columns:1fr}.sanctuary-hero{align-items:flex-start}.sanctuary-version{display:none}.sanctuary-savebar{flex-direction:column;align-items:stretch}}

.sanctuary-2fa-box{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid var(--line);border-radius:12px;background:rgba(0,0,0,.12);margin-bottom:12px}.sanctuary-2fa-box>div:first-child{display:flex;flex-direction:column;gap:4px}.sanctuary-2fa-box small{color:var(--muted);font-weight:700;letter-spacing:.05em}.sanctuary-2fa-setup,.sanctuary-recovery-codes{padding:14px;border:1px solid var(--line);border-radius:12px;background:rgba(0,0,0,.16);margin-bottom:12px}.sanctuary-2fa-setup{display:flex;flex-direction:column;gap:8px}.sanctuary-2fa-setup code{display:block;overflow-wrap:anywhere;padding:10px;border-radius:8px;background:rgba(0,0,0,.22);font-size:14px;letter-spacing:.08em}.sanctuary-recovery-codes pre{white-space:pre-wrap;columns:2;column-gap:24px;padding:12px;border-radius:8px;background:rgba(0,0,0,.24);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.8}@media(max-width:720px){.sanctuary-2fa-box{align-items:flex-start;flex-direction:column}.sanctuary-recovery-codes pre{columns:1}}

.dm-system-message{padding:5px 16px;margin:3px 0;background:transparent!important;min-height:0!important;display:block!important}
.dm-system-message:hover{background:transparent!important}
.dm-system-notice{display:flex;align-items:center;gap:8px;min-height:28px;color:var(--text-muted,#949ba4);font-size:12px;line-height:1.35;padding:3px 8px}
.dm-system-notice-icon{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;font-weight:800;font-size:11px;background:rgba(255,255,255,.08);color:var(--text-normal,#dbdee1);flex:0 0 auto}
.dm-system-notice-text{min-width:0}
.dm-system-notice time{margin-left:auto;opacity:.55;font-size:10px;white-space:nowrap}
.owner-dm-profile-current{margin:8px 0 12px}
.owner-dm-profile-preview{overflow:hidden;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(0,0,0,.13)}
.owner-dm-profile-banner{height:78px;background-position:center;background-size:cover;background-repeat:no-repeat;background-color:rgba(255,255,255,.035)}
.owner-dm-profile-preview-body{display:flex;align-items:center;gap:10px;padding:10px 12px}
.owner-dm-profile-preview-body>.avatar{width:46px;height:46px;margin-top:-30px;border:4px solid var(--modal-bg,#18191c);flex:0 0 auto}
.owner-dm-profile-preview-body>div{display:flex;flex-direction:column;min-width:0;flex:1}
.owner-dm-profile-preview-body>div strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.owner-dm-profile-preview-body>div span{font-size:12px;color:var(--text-muted,#949ba4)}
.owner-dm-profile-preview-body>b{font-size:10px;letter-spacing:.08em;color:var(--text-muted,#949ba4)}
.owner-dm-profile-files{align-items:end}
.owner-dm-profile-actions{margin-top:10px;flex-wrap:wrap}
.owner-dm-profile-list{display:grid;gap:7px;margin-top:12px}
.owner-dm-profile-list-row{display:flex;align-items:center;gap:9px;padding:8px 10px;border:1px solid rgba(255,255,255,.07);border-radius:10px;background:rgba(255,255,255,.025)}
.owner-dm-profile-list-row>.avatar{width:34px;height:34px;flex:0 0 auto}
.owner-dm-profile-list-row>div{display:flex;flex-direction:column;min-width:0;flex:1}
.owner-dm-profile-list-row>div span{font-size:11px;color:var(--text-muted,#949ba4)}


/* v164: preview real antes de publicar */
.profile-editor-card.profile-editor-preview-live{
  background:linear-gradient(180deg,var(--profile-top,#232428),var(--profile-bottom,#232428))!important;
}
.profile-editor-card.profile-editor-preview-live .profile-editor-body{
  background:linear-gradient(180deg,color-mix(in srgb,var(--profile-top,#232428) 90%,transparent),color-mix(in srgb,var(--profile-bottom,#232428) 96%,#151619))!important;
}
.profile-preview-save-hint{display:block;margin:-8px 0 16px;line-height:1.4}
.owner-dm-profile-preview{background:linear-gradient(180deg,var(--profile-top,#232428),var(--profile-bottom,#232428));border-radius:12px;overflow:hidden}
.owner-dm-profile-preview .owner-dm-profile-preview-body{background:linear-gradient(180deg,color-mix(in srgb,var(--profile-top,#232428) 88%,transparent),color-mix(in srgb,var(--profile-bottom,#232428) 94%,#16171a))}
.owner-dm-profile-colors input[type=color]{width:100%;height:40px;padding:3px;border:1px solid #4e5058;border-radius:8px;background:transparent}

.avatar img,.message-avatar img,.message-notification-avatar img,.owner-featured-card-avatar img{ -webkit-user-drag:none; user-drag:none; user-select:none; -webkit-user-select:none }
.profile-banner,.dm-profile-banner,.owner-featured-card-banner,.owner-dm-profile-banner{ user-select:none; -webkit-user-select:none }


/* v168 — previews de anexos + visualizador de imagens dentro do app */
.attachment-chip.has-image-preview{width:190px;min-width:190px;padding:0;overflow:hidden;display:block}.attachment-draft-preview{display:block;width:100%;height:118px;padding:0;border:0;background:#17181b;cursor:zoom-in;overflow:hidden}.attachment-draft-preview img{display:block;width:100%;height:100%;object-fit:cover}.attachment-chip.has-image-preview .attachment-chip-main{padding:8px 9px 5px;gap:6px}.attachment-chip.has-image-preview .attachment-chip-main>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.attachment-chip.has-image-preview .attachment-chip-main small{display:block;overflow:hidden;text-overflow:ellipsis}.attachment-chip.has-image-preview .attachment-chip-options{padding:0 8px 8px}.message-image-open{display:block;border:0;padding:0;margin:0;background:transparent;cursor:zoom-in;max-width:100%;text-align:left}.message-image-open img{display:block;max-width:100%;max-height:360px}.image-attachment-preview{background:transparent;border:0}.image-viewer-modal{z-index:1200;background:rgba(0,0,0,.88);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.image-viewer-shell{position:absolute;inset:0;display:flex;flex-direction:column;min-width:0}.image-viewer-topbar{height:58px;min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 18px;color:#f2f3f5;background:linear-gradient(to bottom,rgba(0,0,0,.62),transparent);position:relative;z-index:2}.image-viewer-topbar strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600}.image-viewer-close{width:38px;height:38px;border:0;border-radius:50%;background:rgba(32,34,37,.86);color:#fff;font-size:26px;line-height:1;cursor:pointer}.image-viewer-close:hover{background:#35373c}.image-viewer-stage{flex:1;min-height:0;display:grid;place-items:center;padding:12px 28px 28px}.image-viewer-stage img{display:block;max-width:min(94vw,1600px);max-height:calc(100dvh - 98px);width:auto;height:auto;object-fit:contain;border-radius:4px;box-shadow:0 12px 50px rgba(0,0,0,.35);user-select:none;-webkit-user-drag:none}@media(max-width:600px){.attachment-chip.has-image-preview{width:156px;min-width:156px}.attachment-draft-preview{height:104px}.image-viewer-stage{padding:8px 10px 18px}.image-viewer-stage img{max-width:96vw;max-height:calc(100dvh - 82px)}.image-viewer-topbar{height:52px;min-height:52px;padding:0 12px}}


/* V172 — Android/iOS virtual keyboard viewport fix.
   visualViewport is the source of truth so IMEs that overlay instead of resize
   cannot cover the typing indicator/composer. */
@media(max-width:900px){
  html,body{overflow:hidden!important}
  .app,.app.member-hidden{
    height:var(--veyra-visual-height,100dvh)!important;
    max-height:var(--veyra-visual-height,100dvh)!important;
  }
  body.veyra-keyboard-open .app,
  body.veyra-keyboard-open .app.member-hidden{
    transform:translateY(var(--veyra-visual-offset-top,0px))!important;
    transform-origin:top left!important;
  }
  body.veyra-keyboard-open .composer-wrap{
    padding-bottom:max(var(--veyra-keyboard-safe-gap,12px),env(safe-area-inset-bottom))!important;
  }
  body.veyra-keyboard-open .typing{
    min-height:18px!important;
  }
  body.veyra-keyboard-open .messages{
    overscroll-behavior:contain!important;
  }
}


/* V173 — small IME safety gap. Some Android keyboards visually overlap a few
   pixels beyond visualViewport; reserve the gap inside the composer only. */


/* V174 — native Android APK owns IME insets. Avoid double keyboard compensation
   when the WebView advertises NativeImeResize in its user agent. */
@media(max-width:900px){
  html.veyra-native-ime-managed,
  html.veyra-native-ime-managed body{
    height:100%!important;
    max-height:100%!important;
  }
  html.veyra-native-ime-managed .app,
  html.veyra-native-ime-managed .app.member-hidden{
    height:100%!important;
    max-height:100%!important;
    transform:none!important;
  }
  html.veyra-native-ime-managed body .composer-wrap{
    padding-bottom:0!important;
    margin-bottom:0!important;
  }
}

/* v177: status em celular usa silhueta de smartphone, preservando a cor do status */
.online-dot.mobile-device,.status-dot.mobile-device,.member-status-dot.mobile-device,.dm-presence-dot.mobile-device{
  border-radius:2px!important;
  border:0!important;
  box-sizing:border-box!important;
  background:currentColor!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 1.75h10A2.25 2.25 0 0 1 19.25 4v16A2.25 2.25 0 0 1 17 22.25H7A2.25 2.25 0 0 1 4.75 20V4A2.25 2.25 0 0 1 7 1.75Zm0 2A.25.25 0 0 0 6.75 4v16c0 .138.112.25.25.25h10a.25.25 0 0 0 .25-.25V4a.25.25 0 0 0-.25-.25H7ZM10 18.5h4v1.25h-4V18.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 1.75h10A2.25 2.25 0 0 1 19.25 4v16A2.25 2.25 0 0 1 17 22.25H7A2.25 2.25 0 0 1 4.75 20V4A2.25 2.25 0 0 1 7 1.75Zm0 2A.25.25 0 0 0 6.75 4v16c0 .138.112.25.25.25h10a.25.25 0 0 0 .25-.25V4a.25.25 0 0 0-.25-.25H7ZM10 18.5h4v1.25h-4V18.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.online-dot.mobile-device.online,.status-dot.mobile-device.online,.member-status-dot.mobile-device.online,.dm-presence-dot.mobile-device.online{color:#23a55a}
.online-dot.mobile-device.idle,.status-dot.mobile-device.idle,.member-status-dot.mobile-device.idle,.dm-presence-dot.mobile-device.idle{color:#f0b232}
.online-dot.mobile-device.dnd,.status-dot.mobile-device.dnd,.member-status-dot.mobile-device.dnd,.dm-presence-dot.mobile-device.dnd{color:#f23f42}
.online-dot.mobile-device.focused,.status-dot.mobile-device.focused,.member-status-dot.mobile-device.focused,.dm-presence-dot.mobile-device.focused{color:#5865f2}
.online-dot.mobile-device.invisible,.status-dot.mobile-device.invisible,.member-status-dot.mobile-device.invisible,.dm-presence-dot.mobile-device.invisible{color:#80848e}
.online-dot.mobile-device:after,.status-dot.mobile-device:after,.member-status-dot.mobile-device:after,.dm-presence-dot.mobile-device:after{content:none!important}
.member-status-dot.mobile-device{width:11px;height:15px;right:-1px;bottom:-2px}
.dm-presence-dot.mobile-device{width:9px;height:13px;right:-1px;bottom:-2px}
.online-dot.mobile-device{width:10px;height:14px}


/* V178 — instant large-video attachment appearance */
.message.upload-pending{opacity:.88}
.message.upload-pending .message-time::after{content:" • enviando…";font-size:11px;opacity:.75}
.message.upload-failed{opacity:.8}
.attachment-upload-failed{margin-top:6px;font-size:12px;color:#f0b3b3}
.attachment-draft-video{position:relative;overflow:hidden;background:#111}
.attachment-draft-video video{display:block;width:100%;height:100%;object-fit:cover}
.attachment-draft-video>span{position:absolute;inset:0;display:grid;place-items:center;font-size:18px;text-shadow:0 1px 5px #000}


/* V179 — persistent dual background slots. Global media stays loaded while a DM-specific background is active. */
.global-background .owner-bg-visual{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:var(--owner-bg-fit,contain)!important;object-position:center center!important;pointer-events:none!important}
.global-background .owner-bg-visual.hidden{display:none!important;visibility:hidden!important;opacity:0!important}
body.has-global-bg.owner-bg-has-visual .global-background .owner-bg-visual:not(.hidden){display:block!important;visibility:visible!important;opacity:var(--owner-bg-opacity,1)!important}
body.owner-bg-video .global-background video.owner-bg-visual:not(.hidden){opacity:0!important;visibility:hidden!important}
body.owner-bg-video.owner-bg-video-playing .global-background video.owner-bg-visual:not(.hidden){opacity:var(--owner-bg-opacity,1)!important;visibility:visible!important}

/* Veyra v182 — Constellation */
.v182-privacy-card{background:color-mix(in srgb,var(--bg-input,#383a40) 78%,transparent);border:1px solid color-mix(in srgb,var(--line,#1f2023) 70%,transparent);border-radius:14px;padding:16px;margin:0 0 16px;display:grid;gap:12px}.privacy-first-card{border-color:color-mix(in srgb,var(--accent,#5865f2) 55%,transparent)}.v182-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.v182-card-head>div{display:grid;gap:4px}.v182-card-head small{color:var(--muted,#949ba4);line-height:1.4}.privacy-default-off{font-size:10px;font-weight:900;letter-spacing:.08em;padding:5px 8px;border-radius:999px;background:#1d2027;color:#c4c9d2;white-space:nowrap}.v182-master-toggle{font-weight:800}.v182-context-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;padding:10px;border-radius:10px;background:rgba(0,0,0,.12);transition:.18s}.v182-context-options.disabled{opacity:.45;filter:saturate(.6)}.v182-privacy-preview{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;background:rgba(0,0,0,.14)}.v182-privacy-preview span{font-size:11px;color:var(--muted,#949ba4);text-transform:uppercase;font-weight:800}.v182-privacy-preview strong{font-size:13px}.dm-folder-heading{width:100%;display:flex;align-items:center;justify-content:space-between;border:0;background:transparent;color:var(--muted,#949ba4);font-size:11px;font-weight:900;padding:10px 9px 5px;cursor:pointer;text-align:left}.dm-folder-heading:hover{color:var(--text,#dbdee1)}.dm-folder-heading.loose{cursor:default}.v182-inbox section{margin:18px 0}.v182-inbox h3{display:flex;gap:8px;align-items:center}.v182-inbox h3 small{color:var(--muted,#949ba4)}.v182-inbox-grid,.v182-inbox-list,.v182-welcome-feed{display:grid;gap:8px}.v182-inbox-card,.v182-welcome-row,.v182-task-row{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border:1px solid rgba(255,255,255,.06);border-radius:12px;background:rgba(0,0,0,.14);color:inherit;text-align:left}.v182-inbox-card{cursor:pointer}.v182-inbox-card:hover,.v182-welcome-row:hover{background:rgba(255,255,255,.055)}.v182-inbox-card>.avatar,.v182-welcome-row>.avatar{width:38px;height:38px;flex:0 0 auto}.v182-inbox-card>span,.v182-task-row>div,.v182-welcome-row>div{min-width:0;display:grid;gap:3px;flex:1}.v182-inbox-card small,.v182-task-row small,.v182-welcome-row p{margin:0;color:var(--muted,#949ba4);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v182-task-row time,.v182-welcome-row>span{font-size:11px;color:var(--muted,#949ba4);white-space:nowrap}.v182-task-row.failed{border-color:rgba(242,63,67,.35)}.v182-big-icon{font-size:26px}.v182-circles,.v182-folder-list{display:grid;gap:10px;margin-top:12px}.v182-circle-card,.v182-folder-row{padding:12px;border-radius:12px;background:rgba(0,0,0,.14);border:1px solid rgba(255,255,255,.06)}.v182-circle-card header,.v182-folder-row{display:flex;align-items:center;gap:10px}.v182-circle-card header strong,.v182-folder-row strong{flex:1}.v182-circle-card header button{border:0;background:transparent;color:var(--muted,#949ba4);font-size:18px}.v182-circle-members{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.v182-circle-members span{display:flex;align-items:center;gap:5px;padding:4px 7px;border-radius:999px;background:rgba(255,255,255,.06);font-size:12px}.v182-circle-members .avatar{width:20px;height:20px}.v182-circle-picker{display:grid;gap:6px;max-height:55vh;overflow:auto}.v182-circle-picker button{display:flex;align-items:center;gap:9px;border:0;border-radius:9px;padding:8px;background:rgba(255,255,255,.04);color:inherit}.v182-circle-picker button span{flex:1;text-align:left}.v182-circle-picker .avatar{width:32px;height:32px}.v182-circle-picker button.active{background:color-mix(in srgb,var(--accent,#5865f2) 20%,transparent)}.v182-reminder-presets{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.v182-reminder-presets button{padding:10px;border:0;border-radius:9px;background:rgba(255,255,255,.07);color:inherit;cursor:pointer}.context-call .activity-dot,.context-stream .activity-dot{background:#23a55a}.context-mobile .activity-dot{background:#23a55a}.context-music .activity-dot{background:#e879f9}.offline-cache-note{position:sticky;top:0;z-index:4;margin:8px auto;padding:6px 10px;border-radius:999px;background:#2b2d31;color:#b5bac1;font-size:11px;width:max-content;max-width:90%}#v182WatchPlayer{display:grid;gap:8px}#v182WatchPlayer video{width:100%;max-height:60vh;background:#000;border-radius:12px}.send-message-btn[data-delivery-mode="silent"]{outline:1px solid #949ba4}.send-message-btn[data-delivery-mode="urgent"]{outline:1px solid #f23f43;box-shadow:0 0 0 2px rgba(242,63,67,.12)}@media(max-width:720px){.v182-context-options{grid-template-columns:1fr}.v182-card-head{flex-direction:column}.v182-task-row time{display:none}}

/* v182 Constellation — delivery modes */
.message-delivery-mode{font-size:10px;font-weight:700;letter-spacing:.02em;border-radius:999px;padding:2px 6px;margin-left:2px;vertical-align:middle;opacity:.9}
.message-delivery-mode.silent{background:color-mix(in srgb,var(--bg-active) 82%,transparent);color:var(--muted)}
.message-delivery-mode.urgent{background:color-mix(in srgb,#f23f42 18%,transparent);color:#ff8a8d}

/* v183 — compact home/DM navigation */
.home-nav-group{margin-top:3px}
.home-nav-group-toggle{width:100%;height:28px;border:0;background:transparent;color:#8f949d;display:flex;align-items:center;justify-content:space-between;padding:0 9px;font-size:9px;font-weight:900;letter-spacing:.08em;cursor:pointer;border-radius:5px;text-align:left}
.home-nav-group-toggle:hover{background:rgba(53,55,60,.48);color:#c7ccd3}
.home-nav-chevron{font-size:13px;line-height:1;transition:transform .16s ease;opacity:.72}
.home-nav-group.open .home-nav-chevron{transform:rotate(180deg)}
.home-nav-group-body{display:none;padding:1px 0 2px}
.home-nav-group.open>.home-nav-group-body{display:block}
.home-nav-subitem{height:31px;margin-left:5px;width:calc(100% - 5px);font-size:14px;font-weight:600}
.home-nav-subitem .kind{font-size:15px;width:18px}
.home-nav-subitem small{margin-left:auto;font-size:9px;color:#7f858f}
.pulse-home-toggle{color:#a99cff}.pulse-home-toggle b{color:#8d7aff;font-size:10px}
.home-channel-inline-action{margin-left:auto;width:24px;height:24px;display:grid;place-items:center;border:0;border-radius:5px;background:transparent;color:#949ba4;font-size:18px;line-height:1;cursor:pointer;opacity:0;transition:.12s}
#friendsHomeItem:hover .home-channel-inline-action,#friendsHomeItem.active .home-channel-inline-action{opacity:1}
.home-channel-inline-action:hover{background:rgba(255,255,255,.08);color:#fff}
.home-dm-title-actions{display:flex;align-items:center;gap:2px}.home-dm-title-actions button{width:24px;height:24px;display:grid;place-items:center;border-radius:5px;font-size:16px!important}.home-dm-title-actions button:hover{background:rgba(255,255,255,.06)}
@media(max-width:720px){.home-channel-inline-action{opacity:1}.home-nav-subitem{height:34px}.home-nav-group-toggle{height:30px}}

/* V184 — DM call activities */
.dm-call-apps-tray{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:1120px;margin:6px auto 2px;padding:8px;border:1px solid var(--veyra-border,#2a2d32);border-radius:14px;background:rgba(8,10,13,.82);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.dm-call-apps-tray.hidden{display:none!important}.dm-call-apps-tray button{min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;column-gap:9px;align-items:center;text-align:left;border:1px solid #2b2e34;background:#15171b;color:#f4f5f6;border-radius:11px;padding:9px 11px;cursor:pointer}.dm-call-apps-tray button:hover{background:#1d2025;border-color:#3b4048}.dm-call-apps-tray button>span{grid-row:1/3;font-size:23px;text-align:center}.dm-call-apps-tray strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm-call-apps-tray small{font-size:10px;color:#949ba4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-call-activity-stage{max-width:1120px;width:100%;margin:8px auto 3px;border:1px solid #292d33;border-radius:14px;background:#07090c;overflow:hidden;position:relative;min-height:180px}.dm-call-activity-stage.hidden{display:none!important}.dm-call-activity-shell{display:grid;grid-template-rows:minmax(0,1fr) auto auto;height:min(44dvh,520px);min-height:240px}.dm-call-activity-media{min-height:0;display:flex;align-items:center;justify-content:center;background:#030405;position:relative;overflow:hidden}.dm-call-activity-media video{width:100%;height:100%;object-fit:contain;background:#000}.dm-call-activity-audio{width:min(760px,94%);display:grid;grid-template-columns:90px minmax(0,1fr);gap:18px;align-items:center;padding:26px}.dm-call-activity-cover{width:90px;height:90px;border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:42px;background:linear-gradient(145deg,#20242b,#0c0e12);border:1px solid #333943;box-shadow:0 14px 36px #0007}.dm-call-activity-audio-copy{min-width:0}.dm-call-activity-audio-copy strong{display:block;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:9px}.dm-call-activity-audio audio{width:100%;height:38px}.dm-call-activity-footer{display:flex;align-items:center;gap:10px;padding:8px 10px;background:#111318;border-top:1px solid #25282e;min-height:46px}.dm-call-activity-footer>span{font-size:18px}.dm-call-activity-footer>div{min-width:0;display:flex;flex-direction:column;flex:1}.dm-call-activity-footer strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm-call-activity-footer small{font-size:10px;color:#949ba4}.dm-call-activity-footer button{border:0;border-radius:8px;padding:7px 10px;background:#23262c;color:#e7e9eb;cursor:pointer}.dm-call-activity-footer button:hover{background:#30343c}.dm-call-activity-footer button.danger{background:#382024;color:#ffb7bc}.dm-call-activity-empty{min-height:180px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#949ba4;text-align:center;padding:22px}.dm-call-activity-empty b{color:#f2f3f5;font-size:15px}.dm-call-activity-start{display:grid;gap:10px;padding:18px;max-width:680px;margin:auto}.dm-call-activity-start h3{margin:0}.dm-call-activity-start p{margin:0;color:#949ba4;font-size:12px}.dm-call-activity-start label{display:grid;gap:5px;font-size:11px;color:#b5bac1}.dm-call-activity-start input{width:100%;box-sizing:border-box;border:1px solid #323740;background:#0c0e12;color:#fff;border-radius:9px;padding:10px 11px;outline:none}.dm-call-activity-start input:focus{border-color:#5865f2}.dm-call-activity-start .button-row{display:flex;justify-content:flex-end;gap:8px}.dm-call-activity-control.active{background:#343b73!important;color:#fff!important;box-shadow:0 0 0 1px #6674ff inset}.dm-call-dock.activity-active{max-height:min(72dvh,760px)}
body.has-global-bg .dm-call-apps-tray{background:rgba(10,11,14,.58)}body.has-global-bg .dm-call-activity-stage{background:rgba(3,4,6,.84);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
@media(max-width:720px){.dm-call-apps-tray{grid-template-columns:1fr;padding:6px;margin:4px 0}.dm-call-apps-tray button{padding:7px 9px}.dm-call-activity-stage{margin:5px 0 2px;min-height:145px}.dm-call-activity-shell{height:min(46dvh,420px);min-height:250px}.dm-call-activity-audio{grid-template-columns:62px minmax(0,1fr);gap:11px;padding:14px}.dm-call-activity-cover{width:62px;height:62px;border-radius:13px;font-size:30px}.dm-call-activity-footer{padding:6px 7px}.dm-call-activity-footer small{display:none}.dm-call-dock.activity-active{max-height:70dvh}}

.dm-call-media-picker{display:grid;gap:7px;padding:12px;max-height:min(42dvh,430px);overflow:auto}.dm-call-media-picker>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 2px 7px}.dm-call-media-picker>header h3{margin:0;font-size:14px}.dm-call-media-picker>header button{border:0;background:#22262c;color:#fff;border-radius:8px;padding:6px 9px;cursor:pointer}.dm-call-media-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid #292d34;background:#111318;color:#fff;border-radius:10px;padding:8px 9px;cursor:pointer;text-align:left}.dm-call-media-item:hover{background:#1a1d22}.dm-call-media-item>span:first-child{font-size:22px;text-align:center}.dm-call-media-item>span:nth-child(2){min-width:0;display:flex;flex-direction:column}.dm-call-media-item strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm-call-media-item small{font-size:10px;color:#949ba4}.dm-call-media-item>b{font-size:10px;color:#b5bac1;font-weight:600}.dm-call-media-picker-empty{padding:24px;text-align:center;color:#949ba4}

.dm-call-activity-invite{min-height:180px;display:grid;grid-template-columns:82px minmax(0,1fr);gap:16px;align-items:center;padding:22px;max-width:760px;margin:auto}.dm-call-activity-invite>div:nth-child(2){min-width:0}.dm-call-activity-invite small{display:block;color:#8d96ff;font-weight:800;font-size:10px;letter-spacing:.08em;margin-bottom:4px}.dm-call-activity-invite strong{display:block;font-size:16px;color:#f4f5f6}.dm-call-activity-invite p{font-size:12px;color:#949ba4;line-height:1.4;margin:7px 0 13px}.dm-call-activity-invite .button-row{display:flex;gap:8px}.call-activity-control.available{box-shadow:0 0 0 2px #d9a441 inset!important;position:relative}.call-activity-control.available::after{content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:#f0b94d;right:3px;top:3px;box-shadow:0 0 8px #f0b94d99}@media(max-width:520px){.dm-call-activity-invite{grid-template-columns:54px minmax(0,1fr);gap:10px;padding:14px}.dm-call-activity-invite .dm-call-activity-cover{width:54px;height:54px;font-size:26px}}
.dm-call-dock.stream-active.activity-active .dm-call-screen-stage{display:none!important}
.dm-call-dock.stream-active.activity-active .dm-call-activity-stage{display:block!important;min-height:0!important;height:100%!important;max-width:none!important;margin:4px 0!important;align-self:stretch;overflow:hidden}
.dm-call-dock.stream-active.activity-active .dm-call-activity-shell{height:100%!important;min-height:0!important}
.dm-call-dock.stream-active .dm-call-apps-tray{position:absolute;left:12px;right:12px;bottom:58px;z-index:24;margin:0;box-shadow:0 18px 46px #000a}
@media(max-width:720px){.dm-call-dock.stream-active .dm-call-apps-tray{left:7px;right:7px;bottom:48px}}

/* v185: YouTube Watch Together inside DM call Apps */
.dm-call-youtube-wrap{min-height:0}
.dm-call-youtube-player{width:100%;height:100%;min-height:220px;background:#000}
.dm-call-youtube-player iframe{display:block;width:100%!important;height:100%!important;border:0}
.dm-call-apps-tray button.active{background:#252b55;border-color:#5967df;box-shadow:0 0 0 1px #5967df55 inset}
.dm-call-apps-tray button.available{border-color:#4c5680}
#dmDockAppsBtn.available{box-shadow:0 0 0 2px #5865f255 inset}
@media(max-width:720px){.dm-call-youtube-player{min-height:0}}

/* v186: long press do botão Enviar usa menu próprio no mobile; evita callout/contextmenu nativo concorrente */
#sendMessageBtn{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:none;-webkit-tap-highlight-color:transparent}


/* V188 — Custom icon pack with emoji fallback */
.veyra-icon-slot{display:inline-grid;grid-template:1fr/1fr;place-items:center;width:1.15em;height:1.15em;min-width:1.15em;line-height:1;vertical-align:middle;overflow:visible}
.veyra-icon-slot>.veyra-icon-fallback,.veyra-icon-slot>.veyra-icon-image{grid-area:1/1}
.veyra-icon-slot>.veyra-icon-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;pointer-events:none;user-select:none;background-color:var(--veyra-icon-color,var(--muted,#949ba4));-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;transition:background-color .16s ease,opacity .16s ease,transform .16s ease}
.veyra-icon-slot.has-custom-icon>.veyra-icon-fallback{display:none!important}
:is(button,.channel,.server-item,.category-title,.top-icon,.compose-icon,.panel-icon,.context-menu,.command-palette-results) :is(.veyra-icon-image){transition:background-color .16s ease,opacity .16s ease,transform .16s ease}
:is(button,.channel,.server-item,.category-title,.top-icon,.compose-icon,.panel-icon):hover .veyra-icon-image,.context-menu button:hover .veyra-icon-image,.command-palette-results button:hover .veyra-icon-image{background-color:var(--veyra-icon-hover,var(--text,#dbdee1))}
:is(.active,[aria-pressed="true"],[aria-selected="true"]) .veyra-icon-image,.channel.active .veyra-icon-image,.dm-call-apps-tray button.active .veyra-icon-image{background-color:var(--veyra-icon-active,var(--accent,#5865f2))}
:is(button,.channel)[disabled] .veyra-icon-image,.veyra-icon-slot[aria-disabled="true"]>.veyra-icon-image{background-color:var(--veyra-icon-disabled,var(--muted,#949ba4));opacity:.72}
.channel .veyra-icon-slot.kind{font-size:17px}
.channel .veyra-icon-slot.kind>.veyra-icon-image{width:16px;height:16px}
.call-control .veyra-icon-slot{width:20px;height:20px;min-width:20px}
.dm-call-apps-tray .veyra-icon-slot{width:26px;height:26px;min-width:26px}
.context-menu-icon,.command-palette-icon{width:18px;height:18px;min-width:18px}
.search>.veyra-icon-slot{width:16px;height:16px;min-width:16px}
#channelSymbol .veyra-icon-slot{width:22px;height:22px;min-width:22px}

/* V193 — topbar custom icon coverage */
.top-actions .top-icon>.veyra-icon-slot,.mobile-nav-btn>.veyra-icon-slot{width:18px;height:18px;min-width:18px}
@media(max-width:480px){.top-actions .top-icon>.veyra-icon-slot{width:17px;height:17px;min-width:17px}}

/* V194 — deterministic mobile send-button gesture */
#sendMessageBtn{overscroll-behavior:contain}

/* v195: mobile-friendly local volume control for Watch Together / Listen Together */
.watch-together-volume{display:flex;align-items:center;gap:9px;min-height:46px;padding:6px 10px;box-sizing:border-box;background:color-mix(in srgb,var(--bg-main,#111318) 92%,#000);border-top:1px solid var(--line,#25282e);color:var(--muted,#949ba4)}
.watch-together-volume-btn{width:38px;height:38px;min-width:38px;padding:0;border:0;border-radius:10px;background:color-mix(in srgb,var(--bg-hover,#23262c) 88%,transparent);color:var(--text,#e7e9eb);display:grid;place-items:center;cursor:pointer;touch-action:manipulation}
.watch-together-volume-btn:active{transform:scale(.96)}
.watch-together-volume-btn .veyra-icon-slot{width:19px;height:19px;display:inline-grid;place-items:center}
.watch-together-volume-range{appearance:none;-webkit-appearance:none;flex:1;min-width:90px;height:32px;margin:0;background:transparent;cursor:pointer;touch-action:none}
.watch-together-volume-range::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:linear-gradient(90deg,var(--brand,var(--accent,#5865f2)) 0 var(--watch-volume-pct,70%),color-mix(in srgb,var(--muted,#949ba4) 26%,transparent) var(--watch-volume-pct,70%) 100%)}
.watch-together-volume-range::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border-radius:50%;border:3px solid color-mix(in srgb,var(--bg-main,#111318) 82%,#000);background:var(--brand,var(--accent,#5865f2));margin-top:-8px;box-shadow:0 1px 6px #0007}
.watch-together-volume-range::-moz-range-track{height:6px;border-radius:999px;background:linear-gradient(90deg,var(--brand,var(--accent,#5865f2)) 0 var(--watch-volume-pct,70%),color-mix(in srgb,var(--muted,#949ba4) 26%,transparent) var(--watch-volume-pct,70%) 100%)}
.watch-together-volume-range::-moz-range-thumb{width:18px;height:18px;border-radius:50%;border:3px solid color-mix(in srgb,var(--bg-main,#111318) 82%,#000);background:var(--brand,var(--accent,#5865f2));box-shadow:0 1px 6px #0007}
.watch-together-volume-value{width:38px;flex:0 0 38px;text-align:right;font-size:11px;font-weight:800;color:var(--muted,#949ba4);font-variant-numeric:tabular-nums}
#v182WatchPlayer>.watch-together-volume{margin:7px 0;border:1px solid var(--line,#25282e);border-radius:11px}
@media(max-width:720px){.watch-together-volume{min-height:52px;padding:7px 9px;gap:8px}.watch-together-volume-btn{width:42px;height:42px;min-width:42px;border-radius:11px}.watch-together-volume-range{height:38px;min-width:0}.watch-together-volume-range::-webkit-slider-runnable-track{height:8px}.watch-together-volume-range::-webkit-slider-thumb{width:26px;height:26px;margin-top:-9px}.watch-together-volume-range::-moz-range-track{height:8px}.watch-together-volume-range::-moz-range-thumb{width:22px;height:22px}.watch-together-volume-value{width:42px;flex-basis:42px;font-size:12px}}

.watch-together-volume.muted .watch-together-volume-range{opacity:.68}.watch-together-volume.muted .watch-together-volume-value{opacity:.72}

/* v196 — DM call lobby / rejoin */
.dm-call-dock.call-available{min-height:72px!important;max-height:150px!important;overflow:hidden!important;padding:10px 16px!important}
.dm-call-dock.call-available .dm-call-heading{min-height:50px;flex-direction:row!important;align-items:center!important}
.dm-call-dock.call-available .dm-call-participants,
.dm-call-dock.call-available .dm-call-video-stage,
.dm-call-dock.call-available .dm-call-screen-stage,
.dm-call-dock.call-available .dm-call-activity-stage,
.dm-call-dock.call-available .dm-call-apps-tray,
.dm-call-dock.call-available .dm-call-controls,
.dm-call-dock.call-available .dm-call-resize-handle{display:none!important}
.dm-call-dock.call-available #dmCallJoinBtn{display:inline-flex!important;align-items:center;justify-content:center;min-width:116px;min-height:38px;flex:0 0 auto}
@media(max-width:720px){.dm-call-dock.call-available{min-height:68px!important;max-height:110px!important;padding:8px 10px!important}.dm-call-dock.call-available .dm-call-heading{gap:10px!important}.dm-call-dock.call-available #dmCallJoinBtn{min-width:104px;min-height:40px;font-size:13px}}

/* v202 admin permissions */
.admin-title-pill{display:inline-flex;align-items:center;vertical-align:middle;margin-left:5px;padding:2px 7px;border:1px solid color-mix(in srgb,var(--accent,#5865f2) 48%,transparent);border-radius:999px;background:color-mix(in srgb,var(--accent,#5865f2) 13%,transparent);color:var(--text,#f2f3f5);font-size:9px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;line-height:1.3}
.admin-permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;margin:10px 0 12px}.admin-permission-grid label{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid var(--border,rgba(255,255,255,.08));border-radius:10px;background:rgba(255,255,255,.025)}.admin-permission-grid.summary{display:flex;flex-wrap:wrap}.admin-permission-chip{display:inline-flex;align-items:center;padding:7px 10px;border:1px solid var(--border,rgba(255,255,255,.08));border-radius:999px;background:rgba(255,255,255,.035);font-size:12px;font-weight:700}.owner-admin-access,.admin-badge-manager{margin:12px 0;padding:12px;border:1px solid var(--border,rgba(255,255,255,.08));border-radius:12px;background:rgba(0,0,0,.08)}.admin-control-page .owner-user-card{margin-top:12px}.admin-control-page .button-row{margin-bottom:10px}

.publication-author-static{cursor:default!important;pointer-events:none!important}


/* ===== V205 DOMINION — SERVER CENTER / ROLES 2.0 ===== */
.dominion-server-settings{grid-template-columns:248px minmax(0,1fr);width:min(1180px,calc(100vw - 20px));height:min(820px,calc(100dvh - 20px));background:var(--bg-main,#111214)}
.dominion-server-settings .server-settings-nav{padding:28px 10px 18px 28px;overflow-y:auto}
.server-settings-group-label{font-size:10px;font-weight:900;letter-spacing:.08em;color:var(--muted,#8b8f98);padding:16px 10px 5px}
.dominion-server-settings .server-settings-tab{display:flex;align-items:center;gap:9px;min-height:36px;padding:8px 10px;border-radius:6px;font-size:13px;font-weight:650}
.dominion-server-settings .server-settings-tab>span{width:17px;text-align:center;opacity:.82}
.dominion-server-settings .server-settings-content{padding:38px 46px 64px}
.dominion-server-settings .server-settings-page{max-width:900px;margin:0 auto}
.server-settings-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.server-settings-page-head h2{margin:0 0 4px}
.server-settings-page-head p{margin:0}
.server-settings-badge{padding:4px 8px;border:1px solid var(--line,#3f4147);border-radius:999px;color:var(--muted,#949ba4);font-size:10px;font-weight:900}
.server-overview-hero{position:relative;min-height:138px;border-radius:14px;border:1px solid var(--line,#34363c);overflow:hidden;background:linear-gradient(135deg,color-mix(in srgb,var(--bg-sidebar,#1e1f22) 90%,#5865f2 10%),var(--bg-main,#111214));margin:0 0 16px}
.server-overview-hero-banner{height:70px;background:#202225 center/cover no-repeat;opacity:.78}
.server-overview-hero-inner{display:flex;align-items:flex-end;gap:14px;padding:0 18px 16px;margin-top:-22px;position:relative}
.server-overview-hero-icon{width:64px;height:64px;border-radius:18px;background:var(--bg-sidebar,#1e1f22);border:5px solid var(--bg-main,#111214);display:grid;place-items:center;overflow:hidden;font-size:18px;font-weight:900;flex:0 0 auto}
.server-overview-hero-icon img{width:100%;height:100%;object-fit:cover}
.server-overview-hero-copy{min-width:0}.server-overview-hero-copy strong{display:block;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.server-overview-hero-copy small{color:var(--muted,#949ba4)}
.server-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 18px}
.server-stat-card{padding:14px;border:1px solid var(--line,#34363c);border-radius:10px;background:color-mix(in srgb,var(--bg-sidebar,#1e1f22) 76%,transparent);min-width:0}
.server-stat-card span{display:block;color:var(--muted,#949ba4);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.server-stat-card strong{display:block;font-size:21px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.server-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.server-overview-card{padding:15px;border:1px solid var(--line,#34363c);border-radius:10px;background:var(--bg-sidebar,#1e1f22)}
.server-overview-card h3{margin:0 0 6px;font-size:14px}.server-overview-card p{margin:0;color:var(--muted,#949ba4);font-size:12px;line-height:1.45}
.server-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:10px;margin:14px 0}
.server-toolbar input,.server-toolbar select{width:100%}
.server-members-manager,.server-audit-list{display:grid;gap:5px}
.server-member-manager-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:9px 10px;border-radius:7px;border:1px solid transparent}
.server-member-manager-row:hover{background:var(--bg-hover,#2b2d31);border-color:var(--line,#34363c)}
.server-member-main{display:flex;align-items:center;gap:10px;min-width:0}.server-member-main .avatar{width:34px;height:34px;flex:0 0 auto}.server-member-copy{min-width:0}.server-member-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.server-member-copy small{display:block;color:var(--muted,#949ba4);font-size:11px}
.server-member-roleline{display:flex;gap:4px;flex-wrap:wrap;margin-top:3px}.server-member-roleline span{padding:1px 6px;border:1px solid currentColor;border-radius:999px;font-size:9px}
.server-member-actions{display:flex;gap:5px}.server-member-actions button{width:31px;height:31px;border-radius:7px;border:0;background:var(--bg-input,#202225);color:var(--text,#dbdee1);cursor:pointer}
.server-member-actions button:hover{background:var(--bg-active,#3a3c43)}
.server-subsection{margin:22px 0}.server-subsection>h3{font-size:12px;text-transform:uppercase;color:var(--muted,#949ba4);letter-spacing:.04em}
.server-config-card{padding:16px;border-radius:11px;border:1px solid var(--line,#34363c);background:color-mix(in srgb,var(--bg-sidebar,#1e1f22) 82%,transparent)}
.server-config-card>label:not(.server-toggle-row){display:grid;gap:6px;margin:13px 0;color:var(--muted,#b5bac1);font-size:11px;font-weight:800}
.server-config-card input,.server-config-card textarea,.server-config-card select{width:100%}
.server-toggle-row{display:flex!important;align-items:center;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid var(--line,#34363c);cursor:pointer}
.server-toggle-row span{min-width:0}.server-toggle-row strong{display:block;color:var(--text,#dbdee1);font-size:13px}.server-toggle-row small{display:block;color:var(--muted,#949ba4);font-size:11px;margin-top:2px}.server-toggle-row input{width:auto!important;flex:0 0 auto}
.server-default-roles{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 14px}.server-default-role{display:flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid var(--line,#3f4147);border-radius:8px;background:var(--bg-input,#202225);font-size:11px}.server-default-role input{width:auto}
.server-security-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.server-security-card strong{display:block;margin-bottom:5px}.server-security-card p{margin:0;color:var(--muted,#949ba4);font-size:11px;line-height:1.45}
.server-settings-list-row,.server-moderation-row,.server-audit-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 11px;border-radius:8px;background:var(--bg-sidebar,#1e1f22);border:1px solid var(--line,#34363c);margin:5px 0}
.server-settings-list-row strong,.server-moderation-row strong,.server-audit-row strong{display:block}.server-settings-list-row small,.server-moderation-row small,.server-audit-row small{color:var(--muted,#949ba4);font-size:10px;line-height:1.35}
.server-audit-action{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;color:var(--muted,#949ba4)}
.server-roles-summary{display:grid;gap:5px;margin-top:16px}.server-role-summary-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 28px;align-items:center;gap:10px;padding:9px 10px;border-radius:7px;background:var(--bg-sidebar,#1e1f22);border:1px solid var(--line,#34363c)}
.server-role-summary-main{display:flex;align-items:center;gap:8px;min-width:0}.server-role-summary-main strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.server-role-summary-row small{text-align:right;color:var(--muted,#949ba4)}
.server-status-pill{display:inline-flex;align-items:center;gap:5px;padding:2px 7px;border-radius:999px;font-size:9px;font-weight:850;background:var(--bg-input,#202225);color:var(--muted,#949ba4)}
.server-status-pill.online{color:#52c77a}.server-status-pill.idle{color:#e0b45a}.server-status-pill.dnd{color:#ef6262}.server-status-pill.focused{color:#b58cff}
.server-danger-zone{margin-top:28px}

/* Roles 2.0 */
.roles-v205{width:min(980px,calc(100vw - 24px));height:min(760px,calc(100dvh - 24px));max-height:none!important;padding:26px 28px!important;overflow:hidden!important;display:flex;flex-direction:column}
.roles-v205-head h2{margin:0}.roles-v205-head p{margin:4px 0 16px;color:var(--muted,#949ba4);font-size:12px}
.default-role-permissions-card{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) 20px;align-items:center;gap:10px;text-align:left;border:1px solid var(--line,#34363c);border-radius:9px;background:var(--bg-sidebar,#1e1f22);color:var(--text,#dbdee1);padding:10px 12px;cursor:pointer}
.default-role-permissions-card:hover{background:var(--bg-hover,#2b2d31)}.default-role-permissions-card>span:nth-child(2) strong{display:block}.default-role-permissions-card small{display:block;color:var(--muted,#949ba4);font-size:10px;margin-top:2px}.default-role-icon{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--bg-input,#202225)}
.roles-v205-toolbar{display:flex;gap:9px;margin:16px 0 9px}.roles-search-wrap{flex:1;display:flex;align-items:center;gap:7px;background:var(--bg-input,#202225);border:1px solid var(--line,#34363c);border-radius:7px;padding:0 9px}.roles-search-wrap input{border:0!important;background:transparent!important;box-shadow:none!important;width:100%}
.roles-manager-body{display:grid;grid-template-columns:minmax(330px,44%) minmax(0,1fr);gap:14px;min-height:0;flex:1}
.roles-list-pane,.roles-editor-pane{min-height:0;overflow:auto}.roles-list-pane{padding-right:4px}
.roles-table-head{display:grid;grid-template-columns:minmax(0,1fr) 82px 72px;gap:8px;align-items:center;color:var(--muted,#949ba4);font-size:9px;font-weight:900;padding:7px 8px;border-bottom:1px solid var(--line,#34363c)}.roles-table-head span:nth-child(2){text-align:center}.roles-table-head b{font-weight:800}
.roles-manager-list{display:grid;gap:2px;margin-top:3px}.role-manager-row{display:grid;grid-template-columns:minmax(0,1fr) 82px 72px;align-items:center;gap:8px;padding:7px 7px;border-radius:6px;border:1px solid transparent;cursor:pointer;user-select:none}.role-manager-row:hover,.role-manager-row.active{background:var(--bg-hover,#2b2d31)}.role-manager-row.active{border-color:var(--line,#3f4147)}.role-manager-row.dragging{opacity:.45}.role-manager-row.drag-over{box-shadow:inset 0 2px 0 var(--accent,#5865f2)}
.role-manager-name{display:flex;align-items:center;gap:8px;min-width:0}.role-manager-name .role-dot{flex:0 0 auto}.role-manager-name strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.role-manager-count{text-align:center;color:var(--muted,#949ba4);font-size:11px}.role-manager-buttons{display:flex;justify-content:flex-end;gap:5px}.role-manager-buttons button{width:28px;height:28px;border:0;border-radius:6px;background:var(--bg-input,#202225);color:var(--text,#dbdee1);cursor:pointer}.role-manager-buttons button:hover{background:var(--bg-active,#3a3c43)}
.roles-drag-hint{color:var(--muted,#949ba4);font-size:9px;margin:10px 7px}
.roles-editor-pane{border-left:1px solid var(--line,#34363c);padding-left:16px}
.role-editor-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.role-editor-title{display:flex;align-items:center;gap:8px;min-width:0}.role-editor-title h3{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.role-editor-tabs{display:flex;gap:3px;border-bottom:1px solid var(--line,#34363c);margin:13px 0}.role-editor-tabs button{border:0;background:transparent;color:var(--muted,#949ba4);padding:8px 9px;cursor:pointer;border-bottom:2px solid transparent;font-size:11px}.role-editor-tabs button.active{color:var(--text,#fff);border-bottom-color:var(--accent,#5865f2)}
.role-editor-section label{display:grid;gap:5px;margin:11px 0;color:var(--muted,#b5bac1);font-size:10px;font-weight:850}.role-editor-section input,.role-editor-section select{width:100%}
.role-toggle-card{display:flex!important;align-items:center!important;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line,#34363c);cursor:pointer}.role-toggle-card input{width:auto!important}.role-toggle-card span strong{display:block;color:var(--text,#dbdee1);font-size:12px}.role-toggle-card span small{display:block;color:var(--muted,#949ba4);font-size:9px;margin-top:2px}
.role-permission-group{margin:14px 0}.role-permission-group>h4{margin:0 0 4px;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted,#949ba4)}.role-permission-item{display:flex!important;align-items:center!important;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid color-mix(in srgb,var(--line,#34363c) 70%,transparent)}.role-permission-item input{width:auto!important}.role-permission-copy strong{display:block;color:var(--text,#dbdee1);font-size:11px}.role-permission-copy small{display:block;color:var(--muted,#949ba4);font-size:9px;line-height:1.35;margin-top:2px}
.role-editor-actions{display:flex;gap:7px;position:sticky;bottom:0;padding:10px 0 2px;background:linear-gradient(transparent,var(--bg-main,#1a1b1f) 18%)}
.role-members-search{margin:8px 0}.role-member-v205{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 3px;border-bottom:1px solid var(--line,#34363c)}.role-member-v205-main{display:flex;align-items:center;gap:8px;min-width:0}.role-member-v205-main .avatar{width:30px;height:30px}.role-member-v205-main strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.role-member-v205 input{width:auto}
.role-security-warning{padding:11px;border-radius:8px;border:1px solid rgba(242,63,66,.25);background:rgba(242,63,66,.07);font-size:11px;color:var(--muted,#b5bac1)}
.theme-light .server-config-card,.theme-light .server-stat-card,.theme-light .server-overview-card,.theme-light .server-settings-list-row,.theme-light .server-moderation-row,.theme-light .server-audit-row,.theme-light .server-role-summary-row,.theme-light .default-role-permissions-card{background:#f2f3f5}
.theme-light .roles-editor-actions{background:linear-gradient(transparent,#fff 18%)}

@media(max-width:900px){
  .dominion-server-settings{grid-template-columns:1fr;height:100dvh;width:100vw;border-radius:0}
  .dominion-server-settings .server-settings-nav{padding:7px 8px;display:flex;overflow-x:auto;overflow-y:hidden;gap:3px;border-bottom:1px solid var(--line,#34363c)}
  .dominion-server-settings .server-settings-title,.dominion-server-settings .server-settings-group-label,.dominion-server-settings .settings-separator{display:none}
  .dominion-server-settings .server-settings-tab{width:auto;white-space:nowrap;min-height:34px}
  .dominion-server-settings .server-settings-content{padding:54px 14px 30px}
  .server-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .server-security-grid,.server-overview-grid{grid-template-columns:1fr}
  .server-toolbar{grid-template-columns:1fr}
  .roles-v205{width:100vw;height:100dvh;border-radius:0!important;padding:20px 12px!important}
  .roles-manager-body{grid-template-columns:1fr}.roles-editor-pane{border-left:0;border-top:1px solid var(--line,#34363c);padding:14px 0 0;max-height:52dvh}
}
@media(max-width:560px){
  .server-stat-grid{grid-template-columns:1fr 1fr}.server-stat-card strong{font-size:17px}
  .roles-table-head,.role-manager-row{grid-template-columns:minmax(0,1fr) 54px 64px}
  .roles-v205-toolbar{align-items:stretch}.roles-v205-toolbar .primary-btn{padding-inline:10px}
}

/* V205 Dominion — JS component bindings */
.server-overview-hero{position:relative;overflow:hidden;border:1px solid var(--line,#34363c);border-radius:12px;background:linear-gradient(145deg,var(--server-top,#111827),var(--server-bottom,#0b1020));min-height:176px;margin:14px 0 12px}
.server-overview-hero-banner{height:98px;background-position:center;background-size:cover;background-repeat:no-repeat;opacity:.78}
.server-overview-identity{display:flex;align-items:flex-end;gap:12px;padding:0 16px 15px;margin-top:-27px;position:relative}.server-overview-icon{width:62px;height:62px;border-radius:18px;background:var(--bg-main,#1a1b1f);border:4px solid var(--bg-main,#1a1b1f);display:grid;place-items:center;font-size:24px;font-weight:900;overflow:hidden;flex:0 0 auto}.server-overview-icon img{width:100%;height:100%;object-fit:cover}.server-overview-identity h3{margin:0 0 3px;color:#fff}.server-overview-identity p{margin:0;color:#d4d7dc;font-size:11px}
.server-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.server-overview-action{display:grid;grid-template-columns:32px minmax(0,1fr) 18px;align-items:center;gap:10px;border:1px solid var(--line,#34363c);border-radius:9px;background:var(--bg-sidebar,#1e1f22);color:var(--text,#dbdee1);padding:11px;text-align:left;cursor:pointer}.server-overview-action:hover{background:var(--bg-hover,#2b2d31)}.server-overview-action>span{font-size:18px;text-align:center}.server-overview-action strong,.server-overview-action small{display:block}.server-overview-action small{color:var(--muted,#949ba4);margin-top:2px;font-size:10px}.server-overview-action>b{color:var(--muted,#949ba4);font-size:18px}
.server-role-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 2px 10px}.server-role-summary-head strong,.server-role-summary-head small{display:block}.server-role-summary-head small{color:var(--muted,#949ba4);font-size:10px}.server-role-summary-head>span{font-size:10px;color:var(--muted,#949ba4)}.server-role-summary-row{width:100%;grid-template-columns:12px minmax(0,1fr) 70px 18px;text-align:left;color:var(--text,#dbdee1);cursor:pointer}.server-role-summary-row:hover{background:var(--bg-hover,#2b2d31)}.server-role-summary-row>strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.server-role-summary-row>span:nth-last-child(2){text-align:right;color:var(--muted,#949ba4);font-size:10px}.server-role-summary-row>b{color:var(--muted,#949ba4)}
.server-members-manager{display:grid;gap:5px;margin-top:12px}.server-member-manager-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 11px;border:1px solid var(--line,#34363c);border-radius:9px;background:var(--bg-sidebar,#1e1f22)}.server-member-manager-person{display:flex;align-items:center;gap:9px;min-width:0;position:relative}.server-member-manager-person>.avatar{width:38px;height:38px;flex:0 0 auto}.server-member-manager-person>.member-status-dot{position:absolute;left:28px;top:28px}.server-member-manager-person>div{min-width:0}.server-member-manager-person strong,.server-member-manager-person small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.server-member-manager-person small{color:var(--muted,#949ba4);font-size:10px;margin-top:2px}.server-member-role-chips{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}.server-member-role-chips span{padding:2px 6px;border:1px solid;border-radius:999px;font-size:9px;background:rgba(0,0,0,.12)}.server-member-manager-side{display:flex;align-items:center;gap:6px;flex:0 0 auto}.status-pill{display:inline-flex;padding:3px 7px;border-radius:999px;font-size:9px;background:var(--bg-input,#202225);color:var(--muted,#949ba4)}.status-pill.online{color:#52c77a}.status-pill.idle{color:#e0b45a}.status-pill.dnd{color:#ef6262}.status-pill.focused{color:#b58cff}.status-pill.warning{color:#f0b232}
.server-moderation-row>div{display:flex;align-items:center;gap:9px;min-width:0}.server-moderation-row .avatar{width:34px;height:34px;flex:0 0 auto}.server-moderation-row>div>span{min-width:0}.server-moderation-row>div>span strong,.server-moderation-row>div>span small{display:block}.server-audit-row{grid-template-columns:34px minmax(0,1fr);gap:9px}.server-audit-icon{width:30px;height:30px;border-radius:8px;background:var(--bg-input,#202225);display:grid;place-items:center}.server-audit-row p{margin:2px 0;color:var(--muted,#949ba4);font-size:10px}.server-audit-row small{display:block}
.server-default-roles>label{display:flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid var(--line,#3f4147);border-radius:8px;background:var(--bg-input,#202225);font-size:10px;color:var(--text,#dbdee1);cursor:pointer}.server-default-roles>label input{width:auto!important;margin:0}
.member-moderation-sheet{display:grid;gap:14px}.member-moderation-profile{display:flex;align-items:center;gap:10px}.member-moderation-profile .avatar{width:46px;height:46px}.member-moderation-profile strong,.member-moderation-profile small{display:block}.member-moderation-profile small{color:var(--muted,#949ba4)}.member-moderation-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.member-moderation-actions button{border:0;border-radius:8px;padding:10px;background:var(--bg-input,#202225);color:var(--text,#dbdee1);text-align:left;cursor:pointer}.member-moderation-actions button:hover{background:var(--bg-hover,#2b2d31)}.member-moderation-actions button.danger{color:#ff7779}.server-mod-notes{display:grid;gap:6px;max-height:300px;overflow:auto;margin-bottom:10px}.server-mod-note{display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:8px;padding:9px;border:1px solid var(--line,#34363c);border-radius:8px;background:var(--bg-sidebar,#1e1f22)}.server-mod-note strong,.server-mod-note small{display:block}.server-mod-note small{color:var(--muted,#949ba4);font-size:9px}.server-mod-note p{margin:5px 0 0;white-space:pre-wrap}.server-mod-note button{border:0;background:transparent;color:var(--muted,#949ba4);cursor:pointer}
.owner-admin-duration-label{display:grid;gap:5px;margin:10px 0;color:var(--muted,#949ba4);font-size:10px;font-weight:800}.owner-admin-duration-label input{max-width:180px}.owner-admin-duration-label small{font-weight:500}

/* Roles v205 — rows and editor generated by app.js */
.role-main-button{display:flex;align-items:center;gap:7px;min-width:0;border:0;background:transparent;color:var(--text,#dbdee1);padding:0;text-align:left;cursor:pointer}.role-main-button strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.role-drag-handle{color:var(--muted,#949ba4);font-size:12px;cursor:grab;display:inline-flex;align-items:center;justify-content:center;width:18px;height:24px;touch-action:none}.role-manager-row.dragging .role-drag-handle{cursor:grabbing}.role-manager-row.drag-over{background:color-mix(in srgb,var(--accent,#5865f2) 10%,var(--bg-hover,#2b2d31));box-shadow:inset 0 2px 0 var(--accent,#5865f2),inset 0 -2px 0 var(--accent,#5865f2)}.role-main-button .role-dot{flex:0 0 auto}.role-admin-pill{font-size:8px;font-weight:900;letter-spacing:.04em;padding:2px 5px;border-radius:999px;background:rgba(242,63,66,.12);color:#ff7779}.role-member-count{display:flex;justify-content:center;align-items:center;gap:4px;color:var(--muted,#949ba4);font-size:10px}.role-row-actions{display:flex;justify-content:flex-end;gap:5px}.role-row-actions button{width:28px;height:28px;border:0;border-radius:6px;background:var(--bg-input,#202225);color:var(--text,#dbdee1);cursor:pointer}.role-row-actions button:hover{background:var(--bg-active,#3a3c43)}.role-editor-header{position:sticky;top:0;z-index:2;background:var(--bg-main,#1a1b1f);padding-bottom:1px}.role-editor-role-title{display:flex;align-items:center;gap:8px;min-width:0}.role-editor-role-title strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.role-permission-group-title{margin:0 0 4px;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted,#949ba4);font-weight:900}.role-permission-row{display:flex!important;align-items:center!important;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid color-mix(in srgb,var(--line,#34363c) 70%,transparent);cursor:pointer}.role-permission-row>span{min-width:0}.role-permission-row strong{display:block;color:var(--text,#dbdee1);font-size:11px}.role-permission-row small{display:block;color:var(--muted,#949ba4);font-size:9px;line-height:1.35;margin-top:2px}.role-permission-row input{width:auto!important;flex:0 0 auto}.role-member-search{margin:9px 0}.role-member-assignments{display:grid}.role-member-assignment{display:flex!important;align-items:center!important;justify-content:space-between;gap:10px;padding:8px 2px!important;margin:0!important;border-bottom:1px solid var(--line,#34363c);cursor:pointer}.role-member-assignment>input{width:auto!important}.role-member-person{display:flex;align-items:center;gap:8px;min-width:0}.role-member-person>.avatar{width:31px;height:31px}.role-member-person>span{min-width:0}.role-member-person strong,.role-member-person small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.role-member-person small{color:var(--muted,#949ba4);font-size:9px}.role-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.role-security-warning p{margin:5px 0 0}
.theme-light .role-editor-header{background:#fff}.theme-light .server-overview-action,.theme-light .server-member-manager-row,.theme-light .server-mod-note{background:#f2f3f5}
@media(max-width:700px){.server-member-manager-row{align-items:flex-start;flex-direction:column}.server-member-manager-side{width:100%;flex-wrap:wrap}.member-moderation-actions{grid-template-columns:1fr}.server-overview-grid{grid-template-columns:1fr}.role-row-actions button{width:32px;height:32px}}
.server-onboarding-welcome{text-align:center;padding:12px 4px 4px}.server-onboarding-symbol{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 12px;border-radius:18px;background:color-mix(in srgb,var(--accent,#5865f2) 18%,transparent);color:var(--accent,#5865f2);font-size:28px}.server-onboarding-welcome p{line-height:1.55;white-space:normal;margin:0 0 16px;color:var(--text,#dbdee1)}

/* Veyra v206 — Continuum */
.call-reconnect-bar{position:fixed;left:50%;top:54px;transform:translateX(-50%);z-index:10050;padding:8px 14px;border-radius:999px;background:rgba(18,20,26,.94);border:1px solid rgba(255,255,255,.12);box-shadow:0 10px 35px rgba(0,0,0,.3);font-size:13px;font-weight:700;backdrop-filter:blur(12px)}
.member-status-dot.multi-device::after{content:"";position:absolute;width:5px;height:5px;border-radius:50%;right:-2px;bottom:-2px;background:currentColor;border:2px solid var(--bg-primary,#15171c)}
.publication-queue-manager{margin-top:8px;border-top:1px solid rgba(255,255,255,.08);padding-top:12px}.publication-manager-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:8px}.publication-manager-head small{opacity:.62}.publication-manager-list{display:grid;gap:7px}.publication-manager-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:9px 10px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(255,255,255,.025)}.publication-manager-item span{display:flex;min-width:0;flex-direction:column;gap:2px}.publication-manager-item small{opacity:.66;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.publication-manager-item>div{display:flex;gap:6px}.publication-manager-item button{border:0;border-radius:7px;padding:6px 9px;background:rgba(255,255,255,.08);color:inherit;cursor:pointer}.publication-manager-item.failed{border-color:rgba(255,90,90,.25)}.publication-schedule-row label{max-width:320px}
.message,.publication-card,.now-info-card{content-visibility:auto;contain-intrinsic-size:auto 96px}
@media(max-width:700px){.publication-manager-head,.publication-manager-item{align-items:flex-start;flex-direction:column}.publication-manager-item>div{width:100%}.publication-manager-item button{flex:1}.publication-schedule-row label{max-width:none}.call-reconnect-bar{top:12px;max-width:calc(100vw - 24px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(prefers-reduced-motion:reduce){.publication-card,.message,.call-reconnect-bar{animation:none!important;transition:none!important}}


/* V209 — Owner full profile art continuity + avatar/banner stacking fix */
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target{
  background:transparent!important;
  background-image:none!important;
}
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target>.owner-full-card-art-layer{
  inset:0 auto auto 0!important;
  min-width:100%!important;
  min-height:100%!important;
  border-radius:inherit!important;
  background-size:cover!important;
  background-position:var(--owner-profile-full-art-x) var(--owner-profile-full-art-y)!important;
}
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target>.profile-banner,
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target>.popout-body{
  background:transparent!important;
  background-image:none!important;
}
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target>.popout-body:before{
  content:none!important;
  display:none!important;
}
/* In full-card mode the avatar belongs to the body, not on top of the banner artwork. */
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target>.popout-body{
  padding-top:104px!important;
}
body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target .popout-avatar{
  top:14px!important;
  left:14px!important;
  z-index:4!important;
}
@media(max-height:800px){
  body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target>.popout-body{padding-top:94px!important}
  body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target .popout-avatar{top:12px!important}
}
@media(max-height:620px){
  body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target>.popout-body{padding-top:84px!important}
  body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target .popout-avatar{top:10px!important;left:11px!important}
}
@media(max-width:520px){
  body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target>.popout-body{padding-top:94px!important}
  body.owner-advanced-enabled.owner-v2-profile-full-art #userProfileModal .owner-v2-profile-target .popout-avatar{top:12px!important;left:12px!important}
}

/* V210 — stable DM/chat alignment at browser zoom-out and ultrawide CSS viewports */
@media (min-width:901px){
  :root{--v210-chat-gutter:clamp(14px,1.55vw,30px)}

  /* Browser zoom-out increases the CSS viewport and used to trigger the old
     fixed 1500/1560px "ultrawide" rails. Keep one fluid conversation rail. */
  .messages:not(.reels-open){
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    padding-left:var(--v210-chat-gutter)!important;
    padding-right:var(--v210-chat-gutter)!important;
  }
  .messages:not(.reels-open) > .message,
  body.owner-advanced-enabled.owner-v2-message-fx .messages:not(.reels-open) > .message.owner-message{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  .messages:not(.reels-open) > .new-messages-divider{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  .typing{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:var(--v210-chat-gutter)!important;
    padding-right:var(--v210-chat-gutter)!important;
  }
  .composer-wrap{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:var(--v210-chat-gutter)!important;
    padding-right:var(--v210-chat-gutter)!important;
  }
  .composer-wrap > .composer,
  .composer-wrap > .composer-mode-bar,
  .composer-wrap > .attachment-tray{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }
}


/* V211 — Performance rescue: low idle CPU/GPU and lightweight DMs */
/* These surfaces are opaque in the normal app. Blurring them only forces extra GPU compositing. */
.server-rail,.channel-sidebar,.chat-area,.member-sidebar,.topbar,.guild-header,.user-panel,.composer,.composer-mode-bar,.attachment-tray{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
.owner-full-card-art-layer{will-change:auto!important}

/* Low-end clients are detected from hardwareConcurrency/deviceMemory/save-data.
   Functional motion remains; continuous decorative GPU effects are removed. */
body.veyra-low-power .message,
body.veyra-low-power .channel,
body.veyra-low-power .member,
body.veyra-low-power .dm-row,
body.veyra-low-power .server-item{
  transition:none!important;
}
body.veyra-low-power .owner-author,
body.veyra-low-power .owner-identity-avatar,
body.veyra-low-power .owner-user-border,
body.veyra-low-power .owner-avatar-animated,
body.veyra-low-power .owner-avatar-float,
body.veyra-low-power .owner-avatar-halo:before,
body.veyra-low-power .owner-avatar-sparkles:after,
body.veyra-low-power .owner-message .mention-me,
body.veyra-low-power .global-background,
body.veyra-low-power .global-background:before,
body.veyra-low-power .global-background:after{
  animation:none!important;
}
body.veyra-low-power .owner-author,
body.veyra-low-power .owner-identity-avatar,
body.veyra-low-power .owner-full-card-art-layer{
  filter:none!important;
}
body.veyra-low-power .profile-pulse-note-bubble,
body.veyra-low-power .message-notification-card,
body.veyra-low-power .pulse-status-viewer-modal,
body.veyra-low-power .pulse-status-caption,
body.veyra-low-power .modal,
body.veyra-low-power .popout,
body.veyra-low-power .context-menu{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body.veyra-low-power .message{
  content-visibility:auto!important;
  contain:layout style paint!important;
  contain-intrinsic-size:auto 76px!important;
}
body.veyra-low-power .messages{scroll-behavior:auto!important}

/* v212 — typing indicator spacing and stability */
.typing .typing-copy{margin-left:4px;min-width:0}

/* v217 Owner-only private message review */
.owner-private-review-user,.owner-private-review-dm{width:100%;text-align:left;cursor:pointer}
.owner-private-review-messages{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.owner-private-review-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0}
.owner-private-review-message{padding:12px 14px;border:1px solid var(--border-color,rgba(255,255,255,.08));border-radius:10px;background:rgba(255,255,255,.025)}
.owner-private-review-message>div{display:flex;align-items:center;gap:10px}
.owner-private-review-message p{margin:7px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}

/* V218 — beat detector 2.0 + edit-style impact FX. */
.global-background{--owner-beat-sat:1;--owner-beat-bright:1;--owner-beat-zoom:1;--owner-beat-vignette:0}
body.owner-bg-beat-pulse .global-background #globalBgImage:not(.hidden),
body.owner-bg-beat-pulse .global-background #globalBgVideo:not(.hidden),
body.owner-bg-beat-pulse .global-background #ownerDmBgImage:not(.hidden),
body.owner-bg-beat-pulse .global-background #ownerDmBgVideo:not(.hidden){
  filter:saturate(var(--owner-beat-sat,1)) brightness(var(--owner-beat-bright,1))!important;
  transform:translate(var(--owner-parallax-x),var(--owner-parallax-y)) scale(calc((1.03 + var(--owner-beat-extra,0))*var(--owner-beat-zoom,1)))!important;
}
body.owner-bg-beat-hit .global-background::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:5;
  background:radial-gradient(circle at center,transparent 48%,rgba(0,0,0,calc(var(--owner-beat-vignette,0)*.7)) 100%);
  mix-blend-mode:multiply;
  opacity:1;
}
.owner-beat-advanced{margin:8px 0;border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:0 10px;background:rgba(255,255,255,.025)}
.owner-beat-advanced>summary{cursor:pointer;padding:9px 2px;font-weight:700;list-style:none}
.owner-beat-advanced>summary::-webkit-details-marker{display:none}
.owner-beat-advanced-body{padding:2px 0 10px}
.owner-check-row{display:flex!important;align-items:center;gap:8px;margin:8px 0!important}

/* V219 — sticker system */
.sticker-picker{position:absolute;right:12px;bottom:calc(100% + 8px);width:min(390px,calc(100vw - 24px));max-height:430px;z-index:80;border:1px solid var(--border-color,rgba(255,255,255,.1));border-radius:14px;background:var(--surface-solid,#17191f);box-shadow:0 18px 50px rgba(0,0,0,.35);padding:12px}
.sticker-picker-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}.sticker-picker-head span{margin-left:auto;font-size:12px;opacity:.65}.sticker-picker-head button{border:0;background:transparent;color:inherit;cursor:pointer;font-size:12px}
.sticker-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;max-height:290px;overflow:auto}.sticker-picker-item{position:relative;aspect-ratio:1;border:1px solid transparent;border-radius:10px;background:rgba(255,255,255,.04);cursor:pointer;padding:6px}.sticker-picker-item:hover{border-color:var(--accent,#5865f2);background:rgba(255,255,255,.08)}.sticker-picker-item img{width:100%;height:100%;object-fit:contain}.sticker-picker-item span{position:absolute;right:4px;bottom:3px;font-size:14px}.sticker-picker-empty{grid-column:1/-1;padding:28px 8px;text-align:center;opacity:.6}.sticker-picker-footer{display:flex;align-items:center;gap:10px;margin-top:10px}.sticker-picker-footer small{margin-left:auto;opacity:.6;font-size:11px}.sticker-manager-list{display:flex;flex-direction:column;gap:8px;max-height:55vh;overflow:auto}.sticker-manager-row{display:grid;grid-template-columns:58px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:8px;border:1px solid var(--border-color,rgba(255,255,255,.08));border-radius:10px}.sticker-manager-row img{width:58px;height:58px;object-fit:contain;border-radius:8px;background:rgba(255,255,255,.035)}.sticker-manager-row>div{min-width:0;display:flex;flex-direction:column;gap:3px}.sticker-manager-row small{opacity:.65}.sticker-manager-row button{border:0;border-radius:7px;padding:7px 9px;background:rgba(255,255,255,.06);color:inherit;cursor:pointer}.sticker-manager-row button:last-child{background:rgba(220,70,70,.12)}
.sticker-message-attachment{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.message-sticker-image{width:min(190px,45vw);height:min(190px,45vw);max-width:100%;max-height:190px;object-fit:contain;display:block;border:0;background:transparent;font-size:0;color:transparent}.sticker-picker-item img,.sticker-manager-row img{display:block;max-width:100%;max-height:100%;object-fit:contain;font-size:0;color:transparent}.sticker-message-name{font-size:10px;opacity:.45}.sticker-btn{font-size:16px}
@media(max-width:650px){.sticker-picker{right:6px;width:min(360px,calc(100vw - 12px));bottom:calc(100% + 6px)}.sticker-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sticker-manager-row{grid-template-columns:50px minmax(0,1fr) auto}.sticker-manager-row img{width:50px;height:50px}.sticker-manager-row button{grid-column:3}.sticker-manager-row button:last-child{grid-row:1}.sticker-manager-row button[data-edit-sticker]{grid-row:2}}

/* V223 — send action is the first control after the message field */
@media(min-width:721px){
  .composer > #attachBtn{grid-column:1!important;grid-row:1!important}
  .composer > #messageInput{grid-column:2!important;grid-row:1!important}
  .composer > #sendMessageBtn{grid-column:3!important;grid-row:1!important;align-self:center!important;justify-self:center!important}
  .composer > #giftBtn{grid-column:4!important;grid-row:1!important}
  .composer > #gifBtn{grid-column:5!important;grid-row:1!important}
  .composer > #stickerBtn{grid-column:6!important;grid-row:1!important}
  .composer > #emojiBtn{grid-column:7!important;grid-row:1!important}
  .composer > #voiceNoteBtn{grid-column:8!important;grid-row:1!important}
}
@media(max-width:720px){
  .composer > #attachBtn{grid-column:1!important;grid-row:1!important}
  .composer > #messageInput{grid-column:2!important;grid-row:1!important}
  .composer > #sendMessageBtn{grid-column:3!important;grid-row:1!important;display:grid!important;place-items:center!important;justify-self:center!important}
  .composer > #stickerBtn{grid-column:4!important;grid-row:1!important}
  .composer > #emojiBtn{grid-column:5!important;grid-row:1!important}
  .composer > #voiceNoteBtn{grid-column:6!important;grid-row:1!important}
}

/* V224 — keep the send action anchored at the far right of the composer */
.composer{
  position:relative!important;
  grid-template-columns:44px minmax(0,1fr) repeat(5,auto) auto!important;
  grid-auto-flow:column!important;
}
.composer > #attachBtn{grid-column:1!important;grid-row:1!important}
.composer > #messageInput{grid-column:2!important;grid-row:1!important;min-width:0!important}
.composer > #giftBtn{grid-column:3!important;grid-row:1!important}
.composer > #gifBtn{grid-column:4!important;grid-row:1!important}
.composer > #stickerBtn{grid-column:5!important;grid-row:1!important}
.composer > #emojiBtn{grid-column:6!important;grid-row:1!important}
.composer > #voiceNoteBtn{grid-column:7!important;grid-row:1!important}
.composer > #sendMessageBtn{grid-column:8!important;grid-row:1!important;justify-self:end!important;align-self:center!important;margin-right:5px!important;z-index:2!important}
@media(max-width:760px){
  .composer{grid-template-columns:34px minmax(0,1fr) 28px 28px 28px 28px 28px 34px!important}
  .composer > #sendMessageBtn{grid-column:8!important;justify-self:end!important;margin-right:3px!important}
  .composer > #messageInput{padding-right:2px!important}
}
@media(max-width:380px){
  .composer{grid-template-columns:32px minmax(0,1fr) 25px 25px 25px 25px 25px 31px!important}
  .composer > #sendMessageBtn{margin-right:2px!important}
}

/* V225 — Cápsula do Tempo */
.time-capsule-card{width:min(560px,calc(100vw - 24px));max-height:85dvh;overflow:hidden;display:flex;flex-direction:column}
.time-capsule-list{display:flex;flex-direction:column;gap:10px;max-height:46dvh;overflow:auto;padding-right:4px;margin:10px 0}
.time-capsule-list:empty::after{content:"Nenhuma cápsula por aqui ainda.";color:#96979e;font-size:13px}
.tc-card{border-radius:12px;padding:14px;position:relative;overflow:hidden}
.tc-card.sealed{background:linear-gradient(135deg,#2b2d31,#1f2023);border:1px dashed #4a4d55}
.tc-card.sealed::before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.07) 45%,transparent 60%);animation:tcShimmer 3.2s linear infinite;pointer-events:none}
@keyframes tcShimmer{0%{transform:translateX(-120%)}100%{transform:translateX(120%)}}
.tc-card.revealed{background:#2b2d31;border:1px solid #3f4147;animation:tcUnwrap .45s ease}
@keyframes tcUnwrap{0%{transform:scale(.92);opacity:0}100%{transform:scale(1);opacity:1}}
.tc-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.tc-head .avatar{width:26px;height:26px}
.tc-head strong{font-size:13px}
.tc-lock-icon{font-size:22px;line-height:1}
.tc-countdown{font-variant-numeric:tabular-nums;font-weight:600;color:#f2c94c;font-size:13px;margin-top:2px}
.tc-media img,.tc-media video{max-width:100%;border-radius:8px;display:block;margin-top:6px}
.tc-media audio{width:100%;margin-top:6px}
.tc-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
.tc-caption{margin-top:6px;color:#c9cbd1;font-size:13px}
.tc-meta{color:#83858c;font-size:11px;margin-top:6px}
.tc-cancel{position:absolute;top:10px;right:10px;background:#404249;border:none;border-radius:6px;padding:4px 8px;font-size:12px;cursor:pointer;color:#e3e4e8}
.tc-cancel:hover{background:#4a4d55}
.time-capsule-form{display:flex;flex-direction:column;gap:8px;margin-top:10px;border-top:1px solid #3f4147;padding-top:10px}
.time-capsule-type-tabs{display:flex;gap:6px;flex-wrap:wrap}
.tc-type-tab{background:#2b2d31;border:1px solid #3f4147;border-radius:999px;padding:6px 12px;cursor:pointer;font-size:13px;color:#dcdde1}
.tc-type-tab.active{background:var(--brand);color:#fff;border-color:var(--brand)}

/* V226 — Streak de conversa */
.dm-streak-badge{background:#2b2d31;border:1px solid #3f4147;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:600;color:#f2c94c;cursor:pointer;white-space:nowrap;margin-left:2px}
.dm-streak-badge:hover{background:#35373d}

/* V226 — Efeitos de mensagem */
.msg-effect-layer{position:fixed;inset:0;pointer-events:none;z-index:9999;overflow:hidden}
.msg-effect-particle{position:absolute;top:-40px;font-size:var(--size,20px);animation:msgEffectFall var(--dur,2s) ease-in var(--delay,0s) forwards;will-change:transform,opacity}
@keyframes msgEffectFall{0%{transform:translateY(-10vh) translateX(0) rotate(0deg);opacity:0}10%{opacity:1}100%{transform:translateY(110vh) translateX(var(--drift,0px)) rotate(360deg);opacity:.9}}

/* V227 — Mural Compartilhado */
.moodboard-card{width:min(680px,calc(100vw - 24px));max-height:88dvh;overflow:hidden;display:flex;flex-direction:column}
.moodboard-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;max-height:52dvh;overflow:auto;padding:2px;margin:10px 0}
.moodboard-grid:empty::after{content:"Ainda não tem nada fixado aqui.";color:#96979e;font-size:13px;grid-column:1/-1}
.mb-item{background:#2b2d31;border:1px solid #3f4147;border-radius:10px;overflow:hidden;position:relative;display:flex;flex-direction:column;animation:tcUnwrap .35s ease}
.mb-item img,.mb-item video{width:100%;height:120px;object-fit:cover;display:block}
.mb-item .mb-note-body{padding:10px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;min-height:80px}
.mb-item .mb-link-body{padding:10px;font-size:13px;display:flex;flex-direction:column;gap:4px}
.mb-item .mb-link-body a{color:#7dabff;word-break:break-all}
.mb-item .mb-foot{padding:6px 8px;font-size:11px;color:#83858c;display:flex;justify-content:space-between;align-items:center;gap:6px;border-top:1px solid #3a3c42}
.mb-item .mb-title{font-weight:600;font-size:12px;padding:6px 8px 0}
.mb-remove{background:#404249;border:none;border-radius:6px;padding:2px 6px;font-size:11px;cursor:pointer;color:#e3e4e8}
.mb-remove:hover{background:#4a4d55}
.mb-type-tab{background:#2b2d31;border:1px solid #3f4147;border-radius:999px;padding:6px 12px;cursor:pointer;font-size:13px;color:#dcdde1}
.mb-type-tab.active{background:var(--brand);color:#fff;border-color:var(--brand)}
