/* WHALE — Discord DM viewer. Layout/metrics follow research/layout.md + research/theme.md
   (values read from Discord's shipped CSS, build 634304). Colour tokens live in css/themes.css
   (generated from research/raw/resolved.json by tools/gen_assets.py). */

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0;height:100%;overflow:hidden}
html{font-size:16px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
body{font-family:var(--font-primary);background:var(--background-base-lowest);color:var(--text-default);line-height:1.375}
button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer}
input,textarea{font:inherit;color:inherit}
a{color:var(--text-link);text-decoration:none}
a:hover{text-decoration:underline}
img{-webkit-user-drag:none}
svg.icon{display:block;flex:0 0 auto}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
[hidden]{display:none!important}

/* ---------- scrollbars ---------- */
.thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thin-thumb) transparent}
.thin::-webkit-scrollbar{width:8px;height:8px}
.thin::-webkit-scrollbar-thumb{background:var(--scrollbar-thin-thumb);border:2px solid transparent;background-clip:padding-box;border-radius:4px;min-height:40px}
.thin::-webkit-scrollbar-track{background:transparent}
.thin:not(:hover)::-webkit-scrollbar-thumb{background:transparent}
.auto::-webkit-scrollbar{width:16px;height:16px}
.auto::-webkit-scrollbar-thumb{background:var(--scrollbar-auto-thumb);border:4px solid transparent;background-clip:padding-box;border-radius:8px;min-height:40px}
.auto::-webkit-scrollbar-track{background:transparent;margin-bottom:36px}
.auto::-webkit-scrollbar-corner{background:transparent}
.none{scrollbar-width:none}.none::-webkit-scrollbar{display:none}

/* ---------- app frame ---------- */
#app{position:fixed;inset:0;display:grid;grid-template-rows:var(--custom-app-top-bar-height,32px) 1fr;grid-template-columns:375px 1fr;grid-template-areas:"bar bar" "side page";background:var(--background-base-lowest)}
.titleBar{grid-area:bar;display:flex;align-items:center;justify-content:space-between;min-height:32px;padding-right:12px;position:relative;-webkit-app-region:drag;user-select:none}
.titleBar .tbTitle{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;align-items:center;justify-content:center;gap:8px;pointer-events:none;color:var(--text-default);font-size:14px;font-weight:500;line-height:18px}
.titleBar .tbTitle svg{width:18px;height:18px}
.titleBar .tbTrailing{margin-left:auto;display:flex;align-items:center;gap:12px;position:relative;z-index:1}
.tbBtn{width:24px;height:24px;border-radius:6px;display:flex;align-items:center;justify-content:center;color:var(--icon-muted)}
.tbBtn svg{width:20px;height:20px}
.tbBtn:hover{background:var(--background-mod-normal);color:var(--interactive-icon-hover)}

.sidebar{grid-area:side;position:relative;display:flex;min-height:0;overflow:hidden}
.sidebar::after{content:"";position:absolute;left:0;right:0;bottom:0;height:8px;background:var(--background-base-lowest);z-index:5}

/* server rail */
.guilds{width:72px;flex:0 0 72px;display:flex;flex-direction:column;align-items:center;padding-bottom:24px;margin-bottom:50px;overflow:hidden;
  -webkit-mask:linear-gradient(180deg,#000,transparent) bottom/100% 16px no-repeat,linear-gradient(#000,#000) top/100% calc(100% - 15px) no-repeat;
          mask:linear-gradient(180deg,#000,transparent) bottom/100% 16px no-repeat,linear-gradient(#000,#000) top/100% calc(100% - 15px) no-repeat}
.listItem{position:relative;width:72px;display:flex;justify-content:center;margin-bottom:8px}
.listItem .pill{position:absolute;left:0;top:0;bottom:0;width:8px;display:flex;align-items:center;overflow:hidden;pointer-events:none}
.listItem .pill span{width:8px;height:8px;margin-left:-4px;border-radius:0 4px 4px 0;background:var(--text-strong);opacity:0;transition:height .2s ease-out,opacity .2s}
.listItem:hover .pill span{opacity:1;height:20px}
.listItem.selected .pill span{opacity:1;height:40px}
.guildIcon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;clip-path:url(#svg-clip-squircle);background:var(--background-mod-subtle);color:var(--text-default);transition:background-color .15s ease-out,color .15s ease-out;cursor:pointer}
.guildIcon svg{width:24px;height:24px}
.guildIcon.circle svg{width:20px;height:20px}
.listItem:hover .guildIcon,.listItem.selected .guildIcon{background:var(--background-brand);color:#fff}
.listItem.green:hover .guildIcon{background:#3d9e60}
.guildSep{width:32px;height:1px;border-radius:1px;background:var(--app-frame-border);margin:0 auto 8px}
.listItem.first{margin-top:0}

/* DM list */
.sidebarList{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;background:var(--background-base-lowest);border-left:1px solid var(--app-frame-border);border-top:1px solid var(--app-frame-border);border-top-left-radius:12px;margin-bottom:50px;overflow:hidden;position:relative;
  -webkit-mask:linear-gradient(180deg,#000,transparent) bottom/100% 16px no-repeat,linear-gradient(#000,#000) top/100% calc(100% - 15px) no-repeat;
          mask:linear-gradient(180deg,#000,transparent) bottom/100% 16px no-repeat,linear-gradient(#000,#000) top/100% calc(100% - 15px) no-repeat}
.dmSearchBar{height:49px;flex:0 0 49px;padding:0 8px;border-bottom:1px solid var(--border-subtle);display:flex;align-items:center}
.findBtn{width:100%;height:32px;border-radius:8px;border:1px solid var(--control-secondary-border-default);background:var(--control-secondary-background-default);color:var(--control-secondary-text-default);font-size:14px;font-weight:500;line-height:18px;padding:3px 11px;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.findBtn:hover{background:var(--control-secondary-background-hover)}
.dmScroller{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:8px 8px 16px 0}
.navRow{position:relative;margin-left:8px;border-radius:8px;padding:1px 0;color:var(--channels-default);cursor:pointer}
.navRow+.navRow{margin-top:2px}
.navRow .rowInner{position:relative;display:flex;align-items:center;height:42px;padding:0 8px;border-radius:inherit;z-index:1}
.navRow:hover{background:var(--interactive-background-hover);color:var(--interactive-text-hover)}
.navRow.selected{background:var(--interactive-background-selected);color:var(--interactive-text-active)}
.navRow .rowIcon{width:32px;height:32px;flex:0 0 32px;margin-right:12px;display:flex;align-items:center;justify-content:center}
.navRow .rowIcon svg{width:20px;height:20px}
.navRow .rowName{font-size:16px;font-weight:500;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1 1 auto;min-width:0}
.navRow .rowClose{opacity:0;margin-right:0;color:var(--interactive-text-default);width:16px;height:16px;flex:0 0 16px}
.navRow .rowClose svg,.dmHeader .plus svg{width:16px;height:16px}
.navRow:hover .rowClose{opacity:.7}
.navRow .rowClose:hover{opacity:1;color:var(--interactive-text-hover)}
.sectionDivider{height:1px;margin:12px 8px 12px 16px;background:var(--border-subtle)}
.dmHeader{height:24px;padding:0 8px 4px 16px;display:flex;align-items:center;justify-content:space-between;color:var(--channels-default);font-size:14px;font-weight:500;line-height:18px;margin-top:4px}
.dmHeader:hover{color:var(--interactive-text-hover)}
.dmHeader .plus{width:16px;height:16px;display:flex;color:var(--channels-default);cursor:pointer}
.dmHeader .plus:hover{color:var(--interactive-text-hover)}
.dmRow .rowName{line-height:20px}
.dmRow .avatarWrap{margin-right:12px}
.dmRow.nameplated .rowInner{padding-right:32px}
.np{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none;opacity:0;animation:npIn .12s ease-in forwards;background:var(--np-bg-sel)}
.np img,.np video{position:absolute;right:0;top:0;height:100%;width:auto;object-fit:cover;object-position:right;opacity:.9;transition:opacity .3s ease;
  -webkit-mask-image:linear-gradient(to right,rgba(0,0,0,.3) var(--np-w,60px),#000 calc(var(--np-w,60px) + 50px));mask-image:linear-gradient(to right,rgba(0,0,0,.3) var(--np-w,60px),#000 calc(var(--np-w,60px) + 50px))}
.dmRow:not(.selected):not(:hover) .np{display:none}
.dmRow:hover:not(.selected) .np{background:var(--np-bg)}
.dmRow:hover:not(.selected) .np img,.dmRow:hover:not(.selected) .np video{opacity:.4}
@keyframes npIn{to{opacity:1}}

/* avatars */
.avatarWrap{position:relative;flex:0 0 auto;border-radius:50%}
.avatarWrap svg.av{display:block;overflow:visible}
.avatarWrap .avStatus{position:absolute;left:0;top:0;z-index:2;pointer-events:none;overflow:visible}
.avatarWrap .deco{position:absolute;top:-10%;left:-10%;width:120%;height:120%;pointer-events:none;z-index:1}
.avatarImg{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block;background:var(--background-mod-subtle)}

/* user panel */
.panels{position:absolute;left:8px;bottom:8px;width:calc(100% - 16px);border:1px solid var(--border-muted);border-radius:8px;background:var(--background-base-low);z-index:10}
.accountRow{height:56px;padding:12px;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;margin-left:-1px}
.accountBtn{flex:1 1 auto;min-width:112px;display:flex;align-items:center;gap:8px;padding:5px 4px;margin-left:-4px;border-radius:4px;cursor:pointer;overflow:hidden}
.accountBtn:hover{background:var(--background-mod-normal)}
.accountNames{min-width:0;display:flex;flex-direction:column;line-height:18px}
.accountNames .an{font-size:14px;font-weight:600;color:var(--text-strong);line-height:22px;white-space:nowrap;margin-top:-3px;margin-bottom:-2px}
.accountNames .as{font-size:12px;color:var(--text-muted);line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accountNames .as .hoverSwap{display:block;height:16px;overflow:hidden}
.accountNames .as .hoverSwap span{display:block;transition:transform .2s ease}
.accountBtn:hover .hoverSwap span{transform:translateY(-16px)}
.panelButtons{display:flex;gap:8px;flex:0 0 auto}
.pBtn{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--icon-subtle)}
.pBtn svg{width:20px;height:20px}
.pBtn:hover,.splitBtn:hover .pBtn{background:var(--control-secondary-background-hover);color:var(--interactive-text-hover)}
.splitBtn{display:flex}
.splitBtn .pBtn:first-child{border-radius:8px 0 0 8px}
.splitBtn .pBtn.chev{width:16px;border-radius:0 8px 8px 0;margin-left:1px}
.splitBtn .pBtn.chev svg{width:16px;height:16px}
.pBtn.muted{color:var(--status-danger)}

/* ---------- page / chat ---------- */
.page{grid-area:page;min-width:0;min-height:0;display:flex;flex-direction:column}
.chat{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;background:var(--background-base-lowest);border-top:1px solid var(--app-frame-border);position:relative}
.chatHeader{height:49px;flex:0 0 49px;padding:8px 8px 8px 16px;border-bottom:1px solid var(--border-subtle);display:flex;align-items:center;background:var(--background-base-lower);font-size:16px;line-height:20px;container-type:inline-size;position:relative;z-index:3}
.chatHeader .hdTitle{flex:1 1 0;min-width:0;display:flex;align-items:center;overflow:hidden}
.chatHeader .hdTitle .avatarWrap{margin-right:8px}
.chatHeader .hdName{font-size:16px;font-weight:500;line-height:20px;color:var(--text-strong);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.toolbar{display:flex;align-items:center;gap:8px;padding-left:8px;flex:0 0 auto}
.iconBtn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:var(--icon-muted);border-radius:8px;position:relative}
.iconBtn svg{width:20px;height:20px}
.iconBtn:hover{color:var(--icon-subtle)}
.iconBtn.selected{color:var(--icon-strong)}
.hdSearch{flex:0 1 244px;width:clamp(64px,calc(100cqi - 320px),244px);max-width:244px;margin-left:4px;transition:width .25s ease}
.searchBar{height:32px;border-radius:8px;border:1px solid var(--input-border-default);background:var(--input-background-default);display:flex;align-items:center;padding:0 4px 0 8px;cursor:text;position:relative}
.searchBar:focus-within{border-color:var(--border-focus,#6aa8f4)}
.searchBar input{flex:1 1 auto;min-width:0;border:0;outline:0;background:transparent;color:var(--text-default);font-size:14px;line-height:18px;padding:0;height:100%}
.searchBar input::placeholder{color:var(--text-muted)}
.searchBar .sIcon{width:16px;height:16px;color:var(--text-muted);margin:0 4px;flex:0 0 16px;display:flex;align-items:center;justify-content:center}
.searchBar .sIcon svg{width:16px;height:16px}
.searchBar .sClear{cursor:pointer}
.searchBar .sClear:hover{color:var(--interactive-text-hover)}

.chatBody{flex:1 1 auto;min-height:0;display:flex}
.chatContent{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;background:var(--background-base-lower);position:relative}
.messagesWrapper{position:relative;flex:1 1 auto;min-height:0}
.scroller{position:absolute;inset:0;overflow-y:scroll;overflow-x:hidden;overflow-anchor:none;outline:0}
.scroller:not(:hover)::-webkit-scrollbar-thumb{background:transparent}
.scrollerContent{display:flex;flex-direction:column;justify-content:flex-end;min-height:100%}
#list{list-style:none;margin:0;padding:0}
.scrollerSpacer{height:40px;flex:0 0 40px}
.loadingMore{height:64px;display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:14px}

/* jump bar: floating pill (jumpToPresentBar + bottomBar + barButtonAlt, module 0f481) */
.jumpBar{position:absolute;left:0;right:0;bottom:calc(100% + 12px);margin-inline:auto;width:max-content;max-width:calc(100% - 16px);min-width:284px;min-height:44px;z-index:3;display:flex;align-items:center;padding:8px 8px 8px 16px;background:var(--background-surface-highest);border:1px solid var(--border-normal);border-radius:16px;box-shadow:var(--shadow-medium);color:var(--text-default);font-size:14px;font-weight:500;line-height:18px;cursor:pointer;animation:jbIn .2s ease-out}
@keyframes jbIn{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
.jumpBar .jbText{flex:1 1 auto;min-width:0;padding-right:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jumpBar .jb{display:flex;align-items:center;flex:0 0 auto;padding:4px 8px;border-radius:8px;font-weight:600;white-space:nowrap}
.jumpBar .jb:hover{background:var(--control-secondary-background-hover)}
.jumpBar .jb svg{width:16px;height:16px;margin-left:8px}

/* ---------- welcome block ---------- */
.welcome{display:flex;flex-direction:column;justify-content:flex-end;margin:16px;padding-top:24px}
.welcome .avatarWrap{margin-bottom:0}
.welcome h3{font-size:32px;font-weight:800;line-height:40px;margin:8px 0;color:var(--text-strong)}
.welcome .wDesc{color:var(--text-default);font-size:16px;line-height:20px}
.welcome .wUser{font-size:24px;font-weight:500;line-height:30px;color:var(--text-strong);margin-bottom:20px}
.welcome .wDesc strong{font-weight:600}
.welcome .wRow{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:8px}
.welcome .wMutual{display:flex;align-items:center;gap:8px}
.welcome .wMutualText{font-size:14px;line-height:18px;color:var(--interactive-text-default)}
.welcome .wDot{width:4px;height:4px;margin:0 4px;border-radius:50%;background:var(--border-strong)}
.btn{height:32px;min-width:52px;padding:2px 16px;border-radius:8px;font-size:14px;font-weight:500;line-height:16px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--control-secondary-border-default);background:var(--control-secondary-background-default);color:var(--control-secondary-text-default)}
.btn:hover{background:var(--control-secondary-background-hover)}
.btn.primary{background:var(--background-brand);border-color:transparent;color:#fff}
.btn.primary:hover{background:var(--brand-560,#4654c0)}
.btn.danger{background:var(--status-danger,#da3e44);border-color:transparent;color:#fff}
.btn.danger:hover{filter:brightness(.9)}
.btn.link{background:transparent;border-color:transparent;color:var(--text-default)}
.btn.link:hover{text-decoration:underline;background:transparent}

/* ---------- date divider ---------- */
.divider{display:flex;align-items:center;justify-content:center;height:0;border-top:1px solid var(--border-subtle);margin:24px 14px 8px 16px;position:relative;pointer-events:none}
.divider span{background:var(--background-base-lower);border-radius:8px;color:var(--text-muted);font-size:12px;font-weight:600;line-height:13px;padding:2px 4px;margin-top:-1px}

/* ---------- messages ---------- */
.msgLi{position:relative;outline:0}
.message{position:relative;padding:2px 24px 2px 72px;min-height:1.375rem;border-radius:0 4px 4px 0;word-wrap:break-word;user-select:text;flex:0 0 auto}
.message.groupStart{margin-top:1.0625rem;min-height:2.75rem}
.message:hover,.message.menuOpen{background:var(--message-background-hover)}
.message.mentioned{background:var(--message-mentioned-background-default)}
.message.mentioned:hover{background:var(--message-mentioned-background-hover)}
.message.mentioned::before,.message.replying::before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--icon-feedback-warning,#ea9800);pointer-events:none}
.message.replying{background:var(--message-highlight-background-default)}
.message.replying::before{background:var(--brand-500,#5865f2)}
.message.flash{animation:flash 2s ease-out}
@keyframes flash{0%,40%{background:var(--message-highlight-background-default)}100%{background:transparent}}
.message.sending .messageContent{color:var(--text-muted)}
.contents{position:static}
.message .avatar{position:absolute;left:16px;margin-top:2px;width:40px;height:40px;border-radius:50%;overflow:hidden;cursor:pointer;user-select:none;z-index:1;background:var(--background-mod-subtle);object-fit:cover}
.message .avatar:active{transform:translateY(1px)}
.message .avatarDecoration{position:absolute;left:12px;margin-top:-2px;width:48px;height:48px;pointer-events:none;z-index:2}
.message .header{display:block;margin:0;line-height:1.375rem;min-height:1.375rem;color:var(--text-muted);white-space:break-spaces;font-size:1rem;font-weight:400;overflow:visible;position:relative}
.username{font-size:1rem;font-weight:500;line-height:1.375rem;color:var(--text-strong);cursor:pointer;display:inline;vertical-align:baseline;position:relative;overflow:visible}
.username:hover .dns-inner,.username.plain:hover{text-decoration:underline}
.timestamp{margin-left:.25rem;font-size:.75rem;line-height:1.375rem;color:var(--chat-text-muted);font-weight:500;vertical-align:baseline;display:inline-block;height:1.25rem;cursor:default}
.timestamp.alt{position:absolute;left:0;width:56px;text-align:right;height:1.375rem;line-height:1.375rem;font-size:.6875rem;color:var(--text-muted);margin:0;padding-right:0;opacity:0;user-select:none;z-index:1;font-weight:500}
.message:hover .timestamp.alt{opacity:1}
.messageContent{color:var(--text-default);font-size:1rem;line-height:1.375rem;white-space:break-spaces;word-wrap:break-word;overflow:hidden;text-indent:0;user-select:text;margin-left:-72px;padding-left:72px}
.edited{font-size:.625rem;font-weight:400;line-height:1;color:var(--chat-text-muted);user-select:none;display:inline-block;cursor:default;vertical-align:baseline}
.botTag{display:inline-flex;align-items:center;height:15px;padding:0 4px;margin-left:4px;border-radius:4px;background:var(--background-brand);color:#fff;font-size:10px;font-weight:600;line-height:15px;vertical-align:top;margin-top:4px;text-transform:uppercase}

/* guild tag chip */
.tagChip{display:inline;background:var(--background-mod-strong);border-radius:4px;padding:0 4px;line-height:2px;vertical-align:middle;position:relative;font-size:.72rem;margin-left:6px;overflow:hidden;user-select:none;cursor:pointer;white-space:nowrap}
.tagChip:hover{background:var(--background-mod-muted)}
.tagChip img{width:14px;height:14px;margin-right:2px;vertical-align:middle;margin-top:-6px;margin-bottom:-3px}
.tagChip .tagText{display:inline;line-height:2px;vertical-align:middle;font-size:12px;font-weight:600;color:var(--text-default)}
.tagPill{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 8px;border-radius:8px;background:var(--background-mod-subtle);border:1px solid var(--border-muted);font-size:14px;font-weight:600;color:var(--text-default);line-height:16px}
.tagPill img{width:16px;height:16px}

/* reply preview */
.repliedMessage{--reply-spacing:4px;display:flex;align-items:center;font-size:.875rem;line-height:1.125rem;color:var(--text-default);white-space:pre;margin-bottom:4px;position:relative;user-select:none;min-width:0}
.repliedMessage .spine{--spine-width:2px;position:absolute;top:50%;left:-36px;right:100%;bottom:0;border-style:solid;border-color:var(--spine-default);border-width:2px 0 0 2px;border-top-left-radius:6px;margin:-1px 4px calc(.125rem - 4px) -1px;cursor:pointer;transition:border 50ms}
.repliedMessage .spine:hover,.repliedMessage.prevHover .spine{border-color:var(--interactive-text-default)}
.repliedMessage .replyAvatar,.repliedMessage .replyBadge{width:16px;height:16px;border-radius:50%;flex:0 0 auto;margin-right:.25rem;object-fit:cover}
.repliedMessage .replyBadge{background:var(--background-base-lowest);color:var(--text-default);display:flex;align-items:center;justify-content:center}
.repliedMessage .replyBadge svg{width:12px;height:12px}
.repliedMessage .username{font-size:inherit;line-height:inherit;opacity:.64;flex-shrink:0;margin-right:.25rem}
.repliedMessage .tagChip{opacity:.64;margin-left:2px;margin-right:.25rem;display:inline-flex;align-items:center;line-height:16px;height:16px;flex:0 0 auto}
.repliedMessage .tagChip .tagText{line-height:16px}
.repliedMessage .tagChip img{margin:0 2px 0 0;width:12px;height:12px}
.repliedTextPreview{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-height:1.25em;cursor:pointer;display:flex;align-items:center}
.repliedTextPreview .rtc{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}
.repliedTextPreview:hover,.repliedMessage.spineHover .repliedTextPreview{color:var(--text-strong)}
.repliedTextPreview .emoji{width:1.25em;height:1.25em;vertical-align:-.3em}
.repliedTextPreview .placeholder{font-style:italic;padding-right:2px}
.repliedTextPreview .rIcon{width:20px;height:20px;margin-left:4px;flex:0 0 auto}
.repliedTextPreview code{font-size:.85em}
.repliedMessage .deletedText{font-style:italic;color:var(--text-default)}
.repliedMessage.deleted .spine,.repliedMessage.deleted .repliedTextPreview{cursor:default}
.repliedMessage.deleted .repliedTextPreview:hover{color:inherit}
.renderError{color:var(--text-muted);font-style:italic}

/* system messages */
.message.system{min-height:0}
.message.system.groupStart{min-height:1.375rem}
.sysContainer{display:flex;align-items:flex-start;padding:2px 0;color:var(--channels-default);position:relative}
.sysIcon{position:absolute;right:100%;width:4.5rem;height:1.375rem;display:flex;align-items:center;justify-content:center}
.sysIcon svg{width:16px;height:16px}
.sysIcon.pin svg{width:18px;height:18px;color:var(--text-muted)}
.sysContent{font-size:1rem;line-height:1.375rem;font-weight:400}
.sysContent a{font-weight:500;cursor:pointer}
.sysContent a.user{color:var(--interactive-text-active)}
.sysContent a.link{color:var(--interactive-text-active)}
.sysContent a.action{color:var(--text-link)}
.sysContent .timestamp{margin-left:6px;font-weight:400;color:var(--text-muted)}

/* forwarded */
.forward{display:flex;width:100%;margin-top:2px}
.forward .quote{width:4px;flex:0 0 4px;border-radius:2px;background:var(--border-subtle);margin-right:12px}
.forward .fwdBody{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}
.forward .fwdHead{display:flex;align-items:center;gap:4px;margin:2px 0 4px;color:var(--text-muted);font-size:14px;font-weight:600;font-style:italic;line-height:18px}
.forward .fwdHead svg{width:16px;height:16px}
.forward .fwdMissing{color:var(--text-muted);font-style:italic;font-size:14px;line-height:18px}
.forward .fwdFoot{display:flex;align-items:center;gap:4px;margin-top:4px;color:var(--text-muted);font-size:14px;font-weight:500;line-height:18px;border-radius:4px;align-self:flex-start;cursor:pointer;padding:1px 0}
.forward .fwdFoot:hover{background:var(--interactive-background-hover);color:var(--interactive-text-hover)}

/* ---------- markup ---------- */
.markup{font-size:1rem;line-height:1.375rem;white-space:break-spaces;word-wrap:break-word;user-select:text}
.markup strong{font-weight:700}
.markup em{font-style:italic}
.markup u{text-decoration:underline}
.markup s{text-decoration:line-through}
.markup a{color:var(--text-link);word-break:break-word}
.markup a:hover{text-decoration:underline}
.markup code.inline{font-family:var(--font-code);font-size:85%;padding:0 .2em;margin:-.2em 0;border-radius:4px;background:var(--background-code);border:1px solid var(--border-normal);text-indent:0;white-space:pre-wrap;line-height:1.125rem}
.markup pre{margin:6px 0 0;padding:0;border-radius:4px;max-width:90%;font-family:var(--font-code);font-size:.75rem;line-height:1rem;white-space:pre-wrap;box-sizing:border-box;background:transparent;border:0}
.markup pre code{display:block;padding:.5em;border-radius:4px;font-size:.875rem;line-height:1.125rem;background:var(--background-code);border:1px solid var(--border-normal);color:var(--text-code);white-space:pre-wrap;overflow-x:auto;text-indent:0;font-family:var(--font-code);-webkit-text-size-adjust:none}
.markup blockquote{display:flex;margin:4px 0;max-width:90%}
.markup blockquote .bqBar{width:4px;border-radius:4px;background:var(--spine-default);flex:0 0 4px}
.markup blockquote .bqText{padding:0 8px 0 12px;min-width:0;flex:1 1 auto;color:var(--text-subtle);white-space:break-spaces}
.markup h1,.markup h2,.markup h3{font-weight:700;line-height:1.375em;margin:16px 0 8px;color:var(--text-strong)}
.markup h1{font-size:1.5rem}.markup h2{font-size:1.25rem}.markup h3{font-size:1rem}
.markup>h1:first-child,.markup>h2:first-child,.markup>h3:first-child{margin-top:8px}
.markup small.subtext{display:block;font-size:.8125rem;line-height:1.11rem;color:var(--text-muted)}
.markup ul,.markup ol{margin:4px 0 0 16px;padding:0;list-style-position:outside;white-space:normal}
.markup ul{list-style-type:disc}
.markup ul ul{list-style-type:circle}
.markup li{margin-bottom:4px;white-space:break-spaces}
.markup li::marker{color:var(--text-default)}
.emoji{width:1.375em;height:1.375em;object-fit:contain;vertical-align:bottom;display:inline-block}
.emoji.jumbo{width:3rem;height:3rem;min-height:3rem;vertical-align:bottom}
.emojiText{font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",var(--font-primary)}
.mention{background:var(--mention-background);color:var(--mention-foreground);font-weight:500;border-radius:3px;padding:0 2px;cursor:pointer;unicode-bidi:plaintext;transition:background-color 50ms ease-out,color 50ms ease-out}
.mention:hover{background:var(--background-brand);color:#fff}
.timestampMd{background:var(--background-mod-normal);border-radius:3px;padding:0 2px}
.spoilerText{border-radius:4px;background:var(--background-mod-subtle);transition:background-color .2s ease;padding:0 2px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.spoilerText.hidden{background:var(--spoiler-hidden-background);cursor:pointer;color:transparent!important;user-select:none}
.spoilerText.hidden:hover{background:var(--spoiler-hidden-background-hover)}
.spoilerText.hidden *{visibility:hidden}
.searchHit{background:var(--background-mod-strong);color:var(--text-strong);border-radius:2px;box-shadow:0 0 0 1px var(--background-mod-strong)}

/* ---------- accessories / media ---------- */
.accessories{display:grid;grid-auto-flow:row;grid-template-columns:minmax(0,1fr);row-gap:.25rem;padding:.125rem 0;text-indent:0;min-height:0;min-width:0}
.accessories:empty{display:none}
.mosaic{display:flex;flex-direction:column;max-width:550px;width:100%;border-radius:8px;overflow:hidden;gap:4px}
.mosaic.single{width:auto;display:inline-flex;justify-self:start;max-width:100%}
.mRow{display:flex;gap:4px}
.mGrid3{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.mGrid2x2{display:grid;grid-template-columns:repeat(2,1fr);gap:4px}
.mItem{container-type:inline-size;position:relative;overflow:hidden;background:var(--background-base-low);cursor:pointer;min-width:0}
.mItem img,.mItem video{display:block;width:100%;height:100%;object-fit:cover}
.mItem>img,.mItem>video,.mItem>.obscure{position:absolute;inset:0}
.mosaic.single .mItem{border-radius:8px}
.mosaic.single .mItem img{object-fit:contain}
.mItem.vid{cursor:default;background:#000}
.mItem.vid video{object-fit:contain}
.mItem .gifTag{position:absolute;top:8px;left:8px;background:rgba(0,0,0,.6);color:#fff;border-radius:4px;font-size:12px;font-weight:700;line-height:16px;padding:0 4px;pointer-events:none;opacity:.9}
.mItem:hover .gifTag{opacity:0}
.mItem.broken,.embedMedia.broken,.gifvWrap.broken{display:flex;align-items:center;justify-content:center;background:var(--background-surface-high);color:var(--text-muted);border:1px solid var(--border-subtle)}
/* broken media keeps its reserved box so the scroll position never jumps */
.mItem.broken,.inlineMedia.broken,.embedMedia.broken,.gifvWrap.broken,.embedVideo.broken{border-radius:8px;cursor:default;min-height:72px}
.brokenInner{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;padding:8px;text-align:center}
.brokenInner svg{width:24px;height:24px}
.obscure{position:relative;overflow:hidden;cursor:pointer}
.obscure.hidden img,.obscure.hidden video{filter:blur(44px) brightness(.55);transform:scale(1.1)}
.obscure .obsPill{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:var(--opacity-black-60,rgba(0,0,0,.6));color:var(--primary-200,#e4e4e6);border-radius:20px;padding:8px 12px;font-size:15px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;line-height:18px;z-index:2;display:flex;align-items:center;gap:6px;white-space:nowrap;pointer-events:none}
.obscure .obsPill svg{width:18px;height:18px}
.obscure:hover .obsPill{background:var(--opacity-black-88,rgba(0,0,0,.88));color:#fff}
.obscure:not(.hidden) .obsPill{display:none}
@container (max-width:240px){.obscure .obsPill{padding:8px;font-size:0;letter-spacing:0;gap:0}.obscure .obsPill svg{width:20px;height:20px}}
.mItem.vid .obscure,.mItem .obscure{width:100%;height:100%}
/* video attachment player (Discord cf09d8): first frame + round play button, then a 32px control bar */
.vPlayer{position:relative;width:100%;height:100%;background:#000;color:#fff;overflow:hidden}
.mItem>.vPlayer{position:absolute;inset:0}
.vPlayer video{cursor:pointer}
.vBigPlay{position:absolute;left:50%;top:50%;width:48px;height:48px;margin:-24px 0 0 -24px;border-radius:50%;background:var(--opacity-black-60,rgba(0,0,0,.6));color:#fff;display:flex;align-items:center;justify-content:center;opacity:.9;transition:opacity .1s,background-color .1s;z-index:1}
.vBigPlay svg{width:24px;height:24px;margin-left:2px}
.vBigPlay:hover{opacity:1;background:var(--opacity-black-88,rgba(0,0,0,.88))}
.vPlayer.started .vBigPlay{display:none}
.vControls{position:absolute;left:0;right:0;bottom:0;height:32px;display:flex;align-items:center;gap:4px;padding:0 4px;background:var(--opacity-black-60,rgba(0,0,0,.6));font-size:12px;font-weight:500;line-height:16px;cursor:default;transform:translateY(100%);transition:transform .2s ease-out;z-index:1}
.vPlayer.started:hover .vControls,.vPlayer.started:not(.playing) .vControls,.vPlayer:fullscreen .vControls{transform:none}
.vBtn{width:32px;height:32px;flex:0 0 32px;display:flex;align-items:center;justify-content:center;color:#fff;opacity:.6;transition:opacity .1s}
.vBtn:hover{opacity:1}
.vBtn svg{width:20px;height:20px}
.vTime{font-variant-numeric:tabular-nums;white-space:nowrap;padding:0 4px;flex:0 0 auto}
.vSeek{flex:1 1 auto;height:32px;display:flex;align-items:center;cursor:pointer;padding:0 6px;min-width:24px}
.vTrack{position:relative;flex:1 1 auto;height:6px;border-radius:3px;background:rgba(255,255,255,.3);overflow:hidden}
.vSeek:hover .vTrack{height:8px;border-radius:4px}
.vBuf{position:absolute;left:0;top:0;bottom:0;width:0;background:rgba(255,255,255,.3)}
.vFill{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--brand-500,#5865f2)}
.vPlayer:fullscreen{background:#000}
.vPlayer:fullscreen video{object-fit:contain}

/* file card */
.fileWrap{width:432px;max-width:100%}
.fileCard{display:flex;align-items:center;padding:16px;background:var(--background-surface-high);border:1px solid var(--border-subtle);border-radius:8px;box-shadow:var(--shadow-low)}
.fileCard .fIcon{width:30px;height:40px;margin-right:8px;flex:0 0 30px}
.fileCard .fInner{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.fileCard .fName{font-size:16px;line-height:1.25;color:var(--text-link);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}
.fileCard .fName.nolink{color:var(--text-default)}
.fileCard .fSize{font-size:12px;line-height:16px;color:var(--text-muted);margin-top:2px}
.fileCard .fDl{width:24px;height:24px;color:var(--interactive-text-default);margin-left:8px;flex:0 0 24px;display:flex}
.fileCard .fDl:hover{color:var(--interactive-text-hover)}
.fileCard .fDl svg{width:24px;height:24px}

/* embeds */
.embed{display:grid;max-width:100%;border-radius:4px;justify-self:start;min-width:0}
:is(.pinCard,.searchResult,.mPreview) .embedFull{width:100%;grid-template-columns:minmax(0,1fr)}
:is(.pinCard,.searchResult,.mPreview) .embedGrid{grid-template-columns:minmax(0,1fr)}
:is(.pinCard,.searchResult,.mPreview) .embedGrid.hasThumb{grid-template-columns:minmax(0,1fr) min-content}
:is(.pinCard,.searchResult,.mPreview) :is(.embedVideo,.embedMedia){width:100%!important;max-width:var(--w,100%)!important}
.embedFull{background:var(--background-surface-high);border:1px solid var(--border-subtle);border-left:4px solid var(--border-normal);margin-top:4px}
.embedGrid{display:grid;grid-template-columns:auto;padding:.125rem 1rem 1rem .75rem;max-width:516px;min-width:0}
.embedGrid.hasThumb{grid-template-columns:minmax(0,1fr) min-content}
.embedGrid>*{grid-column:1/2;min-width:0}
.embedProvider{margin-top:8px;font-size:12px;line-height:16px;color:var(--interactive-text-default);white-space:break-spaces}
.embedProvider a{color:var(--interactive-text-default)}
.embedProvider a:hover{color:var(--interactive-text-hover)}
.embedAuthor{margin-top:8px;display:flex;align-items:center;font-size:14px;font-weight:600;line-height:18px;color:var(--text-strong)}
.embedAuthor a{color:var(--text-strong)}
.embedTitle{margin-top:8px;font-size:1rem;font-weight:600;line-height:1.375rem;color:var(--text-strong);display:inline-block;white-space:break-spaces}
.embedTitle a{color:var(--text-link)}
.embedDescription{margin-top:8px;font-size:.875rem;line-height:1.125rem;color:var(--text-default);white-space:pre-line}
.embedDescription .emoji{width:1.125rem;height:1.125rem}
.embedThumb{grid-column:2/3!important;grid-row:1/8;justify-self:end;margin-left:16px;margin-top:8px;flex-shrink:0;border-radius:4px;overflow:hidden;cursor:pointer}
.embedThumb img{display:block;max-width:80px;max-height:80px;border-radius:4px;object-fit:contain}
.embedMedia{margin-top:16px;border-radius:4px;overflow:hidden;cursor:pointer;position:relative;background:var(--background-base-low);grid-column:1/-1!important;justify-self:start}
.embedMedia img{display:block;width:100%;height:100%;object-fit:cover}
.embedVideo{position:relative;margin-top:16px;border-radius:4px;overflow:hidden;background:#000;grid-column:1/-1!important}
.embedVideo img.thumb{display:block;width:100%;height:100%;object-fit:cover}
.embedVideo iframe{display:block;width:100%;height:100%;border:0}
.playPill{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;height:48px;padding:12px;border-radius:24px;background:var(--opacity-black-60,rgba(0,0,0,.6));color:#fff;pointer-events:none}
.playPill .pp{display:flex;align-items:center;opacity:.6;pointer-events:auto;cursor:pointer;transition:opacity .25s;color:#fff}
.playPill .pp:hover{opacity:1;text-decoration:none}
.playPill .pp svg{width:24px;height:24px}
.playPill .pp.play{margin:0 -1px 0 1px}
.playPill .pp.ext{margin:0 4px 0 2px}
.playPill .sep{width:0}
.inlineMedia{max-width:520px;border-radius:4px;overflow:hidden;position:relative;justify-self:start;background:var(--background-base-low);cursor:pointer}
.inlineMedia img,.inlineMedia video{display:block;width:100%;height:100%;object-fit:contain}
.gifvWrap{position:relative;border-radius:4px;overflow:hidden;justify-self:start;background:var(--background-base-low);cursor:pointer}
.gifvWrap video{display:block;width:100%;height:100%;object-fit:cover}
.gifvWrap .gifTag{position:absolute;top:8px;left:8px;background:rgba(0,0,0,.6);color:#fff;border-radius:4px;font-size:12px;font-weight:700;line-height:16px;padding:0 4px;pointer-events:none;opacity:0;transition:opacity .2s}
.gifvWrap.paused .gifTag{opacity:.9}

/* sticker */
.sticker{width:160px;height:160px;position:relative;justify-self:start;cursor:pointer}
.sticker img{width:160px;height:160px;object-fit:contain;display:block}
.sticker.fallback{width:auto;height:auto;color:var(--text-muted);font-style:italic;font-size:14px;cursor:default}

/* reactions */
.reactions{display:flex;flex-wrap:wrap;gap:4px;padding-top:4px}
.reaction{display:flex;align-items:center;gap:6px;height:28px;padding:2px 6px;border-radius:8px;background:var(--reaction-background-default);border:1px solid var(--reaction-border-default);cursor:pointer;color:var(--reaction-text-default);font-size:14px;font-weight:600;transition:background .1s}
.reaction:hover{background:var(--reaction-background-hover);border-color:var(--border-strong)}
.reaction.me{background:var(--reaction-background-reacted-default);border-color:var(--reaction-border-reacted-default);color:var(--reaction-text-reacted-default)}
.reaction .emoji{width:1.25rem;height:1.25rem}
.reaction .rCount{min-width:9px;text-align:center}

/* inline edit */
.editWrap{margin:4px 0 0}
.editBox{background:var(--chat-background-default);border:1px solid var(--border-muted);border-radius:8px;padding:11px 16px}
.editBox textarea{width:100%;resize:none;border:0;outline:0;background:transparent;color:var(--text-default);font-size:1rem;line-height:1.375rem;padding:0;display:block;max-height:50vh;overflow-y:auto}
.editHint{font-size:12px;line-height:16px;color:var(--text-default);padding:4px 0 2px}
.editHint a{cursor:pointer}

/* ---------- hover action bar ---------- */
.hoverBar{position:absolute;right:0;top:-25px;padding:0 14px 0 32px;z-index:3;opacity:0;pointer-events:none}
.message:hover>.hoverBar,.message.menuOpen>.hoverBar{opacity:1;pointer-events:auto}
.message.groupStart:not(.hasReply)>.hoverBar{top:-16px}
.hbPopover{display:grid;grid-auto-flow:column;align-items:center;background:var(--background-surface-high);border:1px solid var(--border-muted);border-radius:8px;padding:2px;box-shadow:var(--shadow-low);user-select:none}
.hbPopover:hover{border-color:var(--border-subtle);box-shadow:var(--shadow-medium)}
.hbBtn{height:28px;min-width:28px;padding:2px;border-radius:6px;display:flex;align-items:center;justify-content:center;color:var(--interactive-text-default)}
.hbBtn svg,.hbBtn img{width:20px;height:20px;transition:transform .4s cubic-bezier(.16,1,.3,1)}
.hbBtn:hover{background:var(--interactive-background-hover);color:var(--interactive-text-hover)}
.hbBtn:hover svg,.hbBtn:hover img{transform:scale(1.1)}
.hbBtn:active{background:var(--interactive-background-active)}
.hbBtn.danger{color:var(--status-danger,#da3e44)}
.hbSep{width:1px;height:24px;margin:2px 4px;border-radius:100px;background:var(--border-subtle)}

/* ---------- composer ---------- */
.form{flex:0 0 auto;position:relative;padding:0 8px;margin-top:-16px;z-index:2}
.form::before{content:"";position:absolute;left:0;right:16px;top:-8px;height:24px;background:linear-gradient(transparent,var(--background-base-lower));pointer-events:none}
.typingRow{height:24px}
.composerWrap{position:relative;margin-bottom:8px}
.replyBar{position:relative;z-index:1;display:grid;grid-template-columns:1fr auto;align-items:center;background:var(--background-surface-higher);border-bottom:1px solid var(--border-subtle);border-radius:7px 7px 0 0;cursor:pointer;min-height:34px}
.replyBar .rbText{margin-left:16px;font-size:14px;line-height:18px;color:var(--text-default);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.replyBar .rbText b{font-weight:600}
.replyBar .rbActions{display:flex;align-items:center;margin-right:4px}
.replyBar .mentionBtn{display:flex;align-items:center;gap:4px;padding:8px 12px;font-size:14px;font-weight:700;text-transform:uppercase;line-height:18px;color:var(--text-link)}
.replyBar .mentionBtn.off{color:var(--text-muted)}
.replyBar .mentionBtn svg{width:16px;height:16px}
.replyBar .rbSep{width:1px;height:20px;background:var(--border-subtle)}
.replyBar .rbClose{padding:8px 12px;color:var(--interactive-text-default);display:flex}
.replyBar .rbClose:hover{color:var(--interactive-text-hover)}
.replyBar .rbClose svg{width:16px;height:16px}
.channelTextArea{z-index:1;width:100%;border:1px solid var(--border-muted);border-radius:8px;background:var(--chat-background-default);transition:border-color .2s;position:relative}
.channelTextArea.focused{border-color:var(--border-subtle)}
.replyBar:not([hidden])+.ctaScroll{border-top-left-radius:0;border-top-right-radius:0}
.ctaScroll{border-radius:8px;max-height:50vh;overflow-y:auto;overflow-x:hidden}
.ctaInner{display:flex;padding-left:15px;align-items:flex-start}
.attachWrap{position:sticky;top:0;padding:12px 10px;align-self:stretch;flex:0 0 auto}
.attachBtn{margin:0 10px 0 -14px;height:32px;width:32px;padding:6px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--interactive-text-default)}
.attachBtn svg{width:20px;height:20px}
.attachBtn:hover{color:var(--icon-strong);background:var(--interactive-background-selected)}
.textArea{flex:1 1 auto;min-width:0;position:relative}
.textArea textarea{display:block;width:100%;resize:none;border:0;outline:0;background:transparent;color:var(--text-default);font-size:1rem;line-height:1.375rem;padding:17px 10px 17px 0;min-height:56px;height:56px;overflow:hidden;white-space:pre-wrap;word-wrap:break-word}
.textArea textarea::placeholder{color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctaButtons{display:flex;align-items:center;gap:8px;height:56px;margin-right:6px;position:sticky;top:0;flex:0 0 auto}
.ctaBtn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:var(--interactive-text-default);border-radius:8px}
.ctaBtn svg{width:20px;height:20px}
.ctaBtn:hover{color:var(--interactive-text-hover)}
.ctaBtn.active{color:var(--interactive-text-active)}
.emojiBtn{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center}
.emojiBtn .sprite{width:20px;height:20px;}
.emojiBtn .sprite.mono{background-color:var(--interactive-text-default);-webkit-mask-position:var(--sp);mask-position:var(--sp);-webkit-mask-size:400px 80px;mask-size:400px 80px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.emojiBtn .sprite.color{background:url(../img/emoji-sprite-color.png) no-repeat;background-size:400px 80px;background-position:var(--sp);display:none;transition:transform .1s}
.emojiBtn:hover .sprite.mono,.emojiBtn.active .sprite.mono{display:none}
.emojiBtn:hover .sprite.color,.emojiBtn.active .sprite.color{display:block;transform:scale(1.14)}
.emojiBtn:hover,.emojiBtn.active{background:var(--interactive-background-selected)}

/* ---------- right panels ---------- */
.profilePanel{width:340px;flex:0 0 340px;background:var(--background-surface-high);border-left:1px solid var(--border-subtle);display:flex;flex-direction:column;overflow:hidden;position:relative}
.ppScroll{flex:1 1 auto;overflow-y:auto;overflow-x:hidden}
.ppBanner{height:120px;width:100%;background:var(--background-surface-higher);position:relative}
.ppHeader{position:relative;min-height:155px}
.ppAvatar{position:absolute;left:16px;top:72px;border-radius:50%;padding:6px;background:var(--background-surface-high);margin:-6px 0 0 -6px}
.ppAvatar .avatarWrap{cursor:pointer}
.ppBody{display:flex;flex-direction:column;gap:12px;padding:4px 16px 8px}
.acctPop .ppBody{padding-bottom:8px}
.ppEdit{gap:8px;width:100%;height:32px}
.ppEdit svg{width:16px;height:16px}
.ppMsg{margin-top:4px}
.ppMsgInput{width:100%;height:40px;padding:0 12px;border-radius:8px;border:1px solid var(--input-border-default);background:var(--input-background-default);color:var(--text-default);font-size:14px;line-height:18px;outline:0}
.ppMsgInput::placeholder{color:var(--text-muted)}
.ppMsgInput:focus{border-color:var(--border-focus,#6aa8f4)}
.ppName{font-size:20px;font-weight:700;line-height:24px;color:var(--text-strong);display:flex;min-width:0}
.ppUserRow{display:flex;align-items:center;flex-wrap:wrap;column-gap:8px;row-gap:4px;font-size:14px;line-height:18px;color:var(--text-strong);margin-top:2px}
.ppUserRow .dot{width:4px;height:4px;border-radius:50%;background:var(--text-muted)}
.ppOverlay{display:flex;flex-direction:column;gap:12px;padding:12px;background:var(--user-profile-overlay-background);border-radius:8px}
.ppSection h2{margin:0 0 6px;font-size:12px;font-weight:600;line-height:16px;color:var(--text-strong)}
.ppSection .ppText{font-size:14px;line-height:18px;color:var(--text-default);display:flex;align-items:center;gap:8px}
.ppSection .ppText svg{width:16px;height:16px;color:var(--text-muted)}
.ppStats{font-size:14px;line-height:18px;color:var(--text-default)}
.ppStats div{display:flex;justify-content:space-between;padding:2px 0}
.ppStats span:last-child{color:var(--text-strong);font-weight:600}
.ppFooter{padding:12px 16px;border-top:1px solid var(--border-subtle);text-align:center}
.ppFooter a{font-size:14px;color:var(--text-strong);cursor:pointer}
.ppActivity{display:flex;align-items:center;gap:8px}

.searchPanel{width:418px;flex:0 0 418px;background:var(--background-base-lowest);border-left:1px solid var(--app-frame-border);display:flex;flex-direction:column;min-height:0}
.spHeader{display:flex;align-items:center;gap:8px;padding:12px 16px;min-height:56px;border-bottom:1px solid var(--border-subtle);flex-wrap:wrap}
.spCount{font-size:16px;font-weight:600;line-height:20px;color:var(--text-strong);flex:1 1 auto}
.spTabs{display:flex;gap:4px}
.spTab{height:28px;padding:0 10px;border-radius:8px;font-size:14px;font-weight:500;color:var(--interactive-text-default)}
.spTab:hover{background:var(--interactive-background-hover);color:var(--interactive-text-hover)}
.spTab.selected{background:var(--interactive-background-selected);color:var(--interactive-text-active)}
.spClose{width:24px;height:24px;color:var(--interactive-text-default);display:flex;align-items:center;justify-content:center;border-radius:6px}
.spClose:hover{color:var(--interactive-text-hover);background:var(--interactive-background-hover)}
.spClose svg{width:20px;height:20px}
.spScroll{flex:1 1 auto;overflow-y:auto;padding:16px 8px 0 16px}
.spGroupHead{display:flex;align-items:center;gap:6px;margin-bottom:8px;font-size:14px;font-weight:600;color:var(--text-strong);line-height:18px}
.spGroupHead svg{width:16px;height:16px;color:var(--text-muted)}
.searchResult{position:relative;background:var(--background-base-lower);border:1px solid var(--border-subtle);border-radius:8px;margin-bottom:8px;overflow:hidden;cursor:pointer}
.searchResult .message{padding-top:6px;padding-bottom:6px;margin-top:0!important;padding-right:16px!important}
.searchResult .message:hover{background:transparent}
.searchResult .hoverBar{display:none}
.searchResult .resDate{position:absolute;right:8px;top:8px}
.jumpBtn{position:absolute;right:8px;top:8px;height:24px;padding:4px 8px;border-radius:4px;background:var(--background-surface-high);border:1px solid var(--border-subtle);color:var(--text-default);font-size:12px;font-weight:500;line-height:14px;display:none;z-index:4;backdrop-filter:blur(8px)}
.jumpBtn:hover{color:var(--interactive-text-hover);background:var(--background-surface-higher)}
.searchResult:hover .jumpBtn,.pinCard:hover .jumpBtn{display:block}
.spEmpty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--text-muted);font-size:14px;line-height:18px;padding:48px 24px;gap:12px}
.spEmpty svg{width:64px;height:64px;opacity:.6}
.pagination{border-top:1px solid var(--border-subtle);padding:10px 16px;box-shadow:var(--shadow-medium);display:flex;align-items:center;justify-content:center;gap:4px;flex:0 0 auto}
.pgBtn{min-width:28px;height:28px;padding:0 6px;border-radius:6px;font-size:14px;font-weight:500;color:var(--interactive-text-default);display:flex;align-items:center;justify-content:center}
.pgBtn:hover:not([disabled]){background:var(--interactive-background-hover);color:var(--interactive-text-hover)}
.pgBtn.cur{background:var(--background-brand);color:#fff}
.pgBtn[disabled]{opacity:.4;cursor:default}
.pgBtn svg{width:16px;height:16px}
.pgGap{color:var(--text-muted);padding:0 4px}

/* ---------- popouts / menus / tooltip / modal ---------- */
#layers{position:fixed;inset:0;pointer-events:none;z-index:100}
#layers>*{pointer-events:auto}
.popout{position:fixed;background:var(--background-surface-high);border-radius:8px;box-shadow:var(--shadow-border),var(--shadow-high);color:var(--text-default);z-index:110;animation:popIn .1s ease-out}
@keyframes popIn{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:none}}
.menu{min-width:188px;max-width:320px;padding:6px 8px;background:var(--background-surface-higher);border:1px solid var(--border-subtle)}
.menuItem{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px;padding:6px 8px;margin:2px 0;border-radius:4px;font-size:14px;font-weight:500;line-height:18px;color:var(--interactive-text-default,#abacb2);cursor:pointer;color:var(--text-default)}
.menuItem:hover{background:var(--background-mod-subtle);color:var(--interactive-text-hover)}
.menuItem svg{width:18px;height:18px;flex:0 0 18px}
.menuItem.danger{color:var(--text-feedback-critical)}
.menuItem.danger:hover{background:var(--status-danger,#da3e44);color:#fff}
.menuItem .radio{width:18px;height:18px;border-radius:50%;border:2px solid currentColor;display:flex;align-items:center;justify-content:center}
.menuItem .radio.on::after{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.menuItem.on{color:var(--text-strong)}
.menuSep{height:1px;margin:8px;background:var(--border-subtle)}
.menuQuick{display:flex;gap:8px;padding:2px 0}
.mqBtn{width:36px;height:36px;flex:1 1 0;border-radius:8px;display:flex;align-items:center;justify-content:center;background:var(--background-mod-subtle)}
.mqBtn:hover{background:var(--background-mod-strong)}
.mqBtn img{width:20px;height:20px;transition:transform .2s}
.mqBtn:hover img{transform:scale(1.15)}
.msgMenu{width:220px}
.msgMenu .menuSep{margin:4px 8px}
.flyout{position:fixed;min-width:200px}
.apDot{width:10px;height:10px;border-radius:50%;background:#45a366;flex:0 0 10px;margin-right:-2px}
.menuItem .apDot+span{flex:1 1 auto}
.menuHead{padding:6px 8px 2px;font-size:12px;font-weight:600;color:var(--text-muted);line-height:16px}
.swatch{width:18px;height:18px;border-radius:50%;border:1px solid var(--border-strong)}

.tooltip{position:fixed;z-index:200;pointer-events:none;background:var(--background-surface-high);color:var(--text-default);border:1px solid var(--border-subtle);border-radius:8px;box-shadow:var(--shadow-high);padding:8px 12px;font-size:14px;font-weight:500;line-height:16px;max-width:190px;word-wrap:break-word;white-space:normal;text-align:center}
.tooltip.wide{max-width:none;white-space:nowrap}
.tooltip::after{content:"";position:absolute;width:0;height:0;border:5px solid transparent;left:calc(50% - 5px + var(--shift,0px))}
.tooltip.top::after{top:100%;border-top-color:var(--background-surface-high)}
.tooltip.bottom::after{bottom:100%;border-bottom-color:var(--background-surface-high)}
.tooltip.right::after{right:100%;left:auto;top:calc(50% - 5px);border-right-color:var(--background-surface-high)}
.tooltip.left::after{left:100%;top:calc(50% - 5px);border-left-color:var(--background-surface-high)}
.tooltip .tipSub{display:block;font-size:12px;color:var(--text-muted);font-weight:500}

/* pins popout */
.pinsPop{width:420px;max-height:80vh;min-height:200px;display:flex;flex-direction:column;overflow:hidden}
.pinsHead{display:flex;align-items:center;gap:8px;padding:16px;border-bottom:1px solid var(--border-subtle)}
.pinsHead svg{width:24px;height:24px;color:var(--interactive-text-default)}
.pinsHead h1{margin:0;font-size:20px;font-weight:600;line-height:24px;color:var(--interactive-text-active)}
.pinsList{overflow-y:auto;padding:8px 0 0 8px;flex:1 1 auto}
.pinCard{position:relative;background:var(--background-surface-higher);border:1px solid var(--border-subtle);border-radius:8px;margin:0 4px 8px 0;overflow:hidden;cursor:pointer}
.pinCard .message{padding-top:12px;padding-bottom:12px;margin-top:0!important;padding-right:16px!important}
.pinCard .message:hover{background:transparent}
.pinCard .hoverBar{display:none}

/* search options popout */
.searchPop{width:340px;padding:8px 0}
.spoSection{padding:4px 8px}
.spoHead{padding:8px 8px 4px;font-size:12px;font-weight:600;color:var(--text-muted);line-height:16px}
.spoItem{display:flex;align-items:center;gap:8px;padding:8px;border-radius:6px;cursor:pointer;font-size:14px;line-height:18px;color:var(--text-default)}
.spoItem:hover,.spoItem.sel{background:var(--interactive-background-hover)}
.spoItem b{font-weight:600;color:var(--text-strong)}
.spoItem .hint{color:var(--text-muted)}
.spoItem svg{width:16px;height:16px;color:var(--text-muted)}
.spoDate{display:flex;align-items:center;gap:8px;padding:8px}
.spoDate input{flex:1;background:var(--input-background-default);border:1px solid var(--input-border-default);border-radius:8px;height:32px;padding:0 8px;color:var(--text-default);color-scheme:dark;font-size:14px}
.theme-light .spoDate input{color-scheme:light}

/* account popout */
.acctPop{width:300px;overflow:hidden;padding-bottom:8px}
.acctPop .apBanner{height:60px}
.acctPop .apAv{margin:-36px 0 0 12px;width:max-content;border-radius:50%;padding:4px;background:var(--background-surface-high);position:relative}
.acctPop .apName{padding:8px 16px 0;font-size:20px;font-weight:700;color:var(--text-strong);line-height:24px}
.acctPop .apUser{padding:0 16px 8px;font-size:14px;color:var(--text-strong)}
.acctPop .apMenu{margin:8px 8px 0;background:var(--background-surface-higher);border-radius:8px;padding:4px 8px}

/* emoji picker */
.emojiPicker{width:440px;height:440px;display:flex;flex-direction:column;overflow:hidden;background:var(--background-surface-high)}
.emojiPicker.withNav{height:486px;padding-top:16px}
.epNav{display:flex;gap:8px;padding:0 16px;height:30px;flex:0 0 30px;align-items:center}
.epTab{border-radius:8px;color:var(--text-default);font-size:14px;font-weight:600;line-height:14px;padding:8px 12px;transition:background-color .1s ease-in-out,color .1s ease-in-out}
.epTab:hover{background:var(--control-secondary-background-hover);color:var(--interactive-text-hover)}
.epTab.sel{background:var(--background-mod-normal);color:var(--text-strong)}
.epTab.sel:hover{background:var(--background-mod-strong);color:var(--interactive-text-active)}
.withNav .epHead{padding-top:12px}
.epUnavailable{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center;color:var(--text-muted);font-size:14px;line-height:18px}
.epUnavailable svg{width:48px;height:48px;opacity:.6}
.epUnavailable .epUnTitle{font-size:16px;font-weight:600;color:var(--text-strong)}
.epHead input:disabled{cursor:not-allowed}
.epHead{padding:12px 12px 8px;display:flex;gap:8px;border-bottom:1px solid var(--border-subtle);box-shadow:var(--shadow-low)}
.epHead .searchBar{flex:1 1 auto;height:30px}
.emojiPicker .searchBar:focus-within{border-color:var(--input-border-default)}
.epTone{width:30px;height:30px;flex:0 0 30px;border-radius:6px;display:flex;align-items:center;justify-content:center}
.epTone:hover{background:var(--interactive-background-hover)}
.epTone img{width:24px;height:24px}
.epMain{flex:1 1 auto;display:flex;min-height:0}
.epRail{width:48px;flex:0 0 48px;background:var(--background-base-lowest);display:flex;flex-direction:column;align-items:center;padding:8px 0;gap:8px}
.epRail .epCat{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--interactive-text-default);cursor:pointer}
.epRail .epCat.sel{background:var(--interactive-background-selected);color:var(--interactive-text-active)}
.epRail .epCat svg{width:20px;height:20px}
.epRail .epCat img{width:24px;height:24px;border-radius:50%}
.epGridWrap{flex:1 1 auto;overflow-y:auto;padding:0 0 8px 8px}
.epCatHead{position:sticky;top:0;background:var(--background-surface-high);font-size:12px;font-weight:600;color:var(--text-muted);line-height:16px;padding:12px 4px 4px;text-transform:uppercase;display:flex;align-items:center;gap:6px;z-index:1}
.epGrid{display:grid;grid-template-columns:repeat(auto-fill,48px);gap:0}
.epEmoji{width:48px;height:48px;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:4px}
.epEmoji img{width:40px;height:40px;object-fit:contain}
.epEmoji:hover,.epEmoji.sel{background:var(--background-mod-normal)}
.epEmoji.uni img{width:32px;height:32px}
.epFoot{height:48px;flex:0 0 48px;display:flex;align-items:center;gap:8px;padding:0 16px;background:var(--background-base-lowest);font-size:16px;font-weight:600;color:var(--text-strong);overflow:hidden;white-space:nowrap}
.epFoot img{width:28px;height:28px;object-fit:contain}
.epEmpty{padding:40px 16px;text-align:center;color:var(--text-muted);font-size:14px}

/* lightbox */
.lightbox{position:fixed;inset:0;z-index:150;background:var(--background-scrim-lightbox,rgba(0,0,0,.92));display:flex;flex-direction:column;animation:fadeIn .15s ease-out;user-select:none}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.lbTop{height:64px;flex:0 0 64px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;color:#fff;position:relative;z-index:2}
.lbAuthor{display:flex;align-items:center;gap:10px;min-width:0}
.lbAuthor img{width:32px;height:32px;border-radius:50%}
.lbAuthor .lbName{font-size:14px;font-weight:600;line-height:18px;color:#fff}
.lbAuthor .lbTime{font-size:12px;line-height:16px;color:rgba(255,255,255,.7)}
.lbActions{display:flex;align-items:center;gap:8px}
.lbBtn{width:40px;height:40px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.8);background:rgba(0,0,0,.3)}
.lbBtn:hover{background:rgba(255,255,255,.12);color:#fff;text-decoration:none}
.lbBtn svg{width:24px;height:24px}
.lbStage{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;position:relative;padding:0 80px 32px}
.lbStage img,.lbStage video{max-width:100%;max-height:100%;object-fit:contain;display:block;border-radius:4px;box-shadow:var(--shadow-high)}
.lbNav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;display:flex;align-items:center;justify-content:center}
.lbNav:hover{background:rgba(0,0,0,.8)}
.lbNav svg{width:24px;height:24px}
.lbNav.prev{left:16px}.lbNav.next{right:16px}
.lbBottom{height:72px;flex:0 0 72px;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px}
.lbThumb{width:48px;height:48px;border-radius:6px;overflow:hidden;opacity:.5;cursor:pointer;border:2px solid transparent}
.lbThumb.sel{opacity:1;border-color:#fff}
.lbThumb img{width:100%;height:100%;object-fit:cover}
.lbOpen{color:#fff;font-size:14px;font-weight:500;opacity:.8;position:absolute;left:50%;bottom:6px;transform:translateX(-50%)}
.lbOpen:hover{opacity:1}

/* modal */
.modalBack{position:fixed;inset:0;background:var(--background-scrim,rgba(0,0,0,.72));z-index:160;display:flex;align-items:center;justify-content:center;animation:fadeIn .1s ease-out}
.modal{width:440px;max-width:calc(100vw - 32px);background:var(--modal-background,var(--background-surface-high));border-radius:12px;box-shadow:var(--shadow-border),var(--shadow-high);overflow:hidden;border:1px solid var(--border-subtle)}
.modal h2{margin:0;padding:24px 24px 0;font-size:20px;font-weight:600;line-height:24px;color:var(--text-strong)}
.modal .mBody{padding:16px 24px 20px;color:var(--text-default);font-size:16px;line-height:20px}
.modal .mPreview{margin-top:16px;border-radius:8px;border:1px solid var(--border-subtle);background:var(--background-base-lower);box-shadow:var(--shadow-low);padding:4px 0;max-height:240px;overflow:hidden;pointer-events:none}
.modal .mPreview .message{margin-top:0!important;padding-right:16px}
.modal .mPreview .hoverBar{display:none}
.modal .mFoot{display:flex;justify-content:flex-end;gap:8px;padding:16px 24px;background:var(--background-base-low)}
.modal .mProtip{font-size:12px;color:var(--text-muted);margin-top:12px}
.modal .mProtip b{color:var(--text-feedback-positive);text-transform:uppercase;font-weight:700}

/* quick switcher (Ctrl+K) */
.qsBack{align-items:flex-start;padding-top:calc(50vh - 220px)}
.quickSwitcher{width:570px;max-width:calc(100vw - 32px);background:var(--modal-background,var(--background-surface-high));border:1px solid var(--border-subtle);border-radius:12px;box-shadow:var(--shadow-border),var(--shadow-high);padding:32px 16px 0;display:flex;flex-direction:column;animation:popIn .12s ease-out}
.qsInput{height:70px;padding:0 32px;font-size:20px;line-height:24px;border-radius:8px;border:1px solid var(--input-border-default);background:var(--input-background-default);color:var(--text-default);outline:0;margin:0 0 12px}
.qsInput::placeholder{color:var(--text-muted)}
.qsList{max-height:300px;overflow-y:auto;padding-bottom:8px}
.qsHead{font-size:12px;font-weight:600;line-height:16px;color:var(--text-default);text-transform:uppercase;padding:8px 12px 4px}
.qsRow{display:flex;align-items:center;gap:8px;height:34px;padding:0 12px;border-radius:6px;cursor:pointer;color:var(--interactive-text-default);font-size:16px;font-weight:500;line-height:20px}
.qsRow.sel{background:var(--background-mod-subtle);color:var(--interactive-text-active)}
.qsRow .qsUser{color:var(--text-muted);font-size:14px;font-weight:400}
.qsEmpty{padding:16px 12px;color:var(--text-muted);font-size:14px;text-align:center}
.qsProtip{border-top:1px solid var(--border-subtle);margin:0 -16px;padding:12px 16px;font-size:12px;line-height:16px;color:var(--text-muted);background:var(--background-base-low);border-radius:0 0 12px 12px}
.qsPro{color:var(--text-feedback-positive);font-weight:700;text-transform:uppercase}

/* toast */
.toast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);background:var(--background-surface-highest);color:var(--text-strong);border:1px solid var(--border-subtle);border-radius:8px;padding:10px 16px;font-size:14px;font-weight:500;box-shadow:var(--shadow-high);z-index:180;animation:fadeIn .15s}

/* ---------- display name styles (ported from Discord 163466.css; see research/discord_display_name_styles.css) ---------- */
.dns{display:inline-flex;max-width:100%;min-width:0;opacity:var(--custom-display-name-styles-font-opacity,1);perspective:1px;position:relative;text-indent:0;z-index:0;vertical-align:top}
.dns-inner{flex:1 1 0%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:var(--custom-display-name-styles-wrap,nowrap)}
.dns.show .dns-inner.solid{color:var(--custom-display-name-styles-main-color)}
.dns.show .pop{--custom-pop-stroke-width:calc(1.2px + 0.04em);--custom-pop-bottom-translate_3d:0.08em;color:var(--white,#fff);display:inline-block;paint-order:stroke fill;position:relative;vertical-align:top;-webkit-text-stroke-width:var(--custom-pop-stroke-width);-webkit-text-stroke-color:var(--custom-display-name-styles-dark-2-color);margin-bottom:calc(var(--custom-pop-stroke-width)*-1 - var(--custom-pop-bottom-translate_3d));margin-inline-start:calc(var(--custom-pop-stroke-width)*-1);padding-bottom:calc(var(--custom-pop-stroke-width) + var(--custom-pop-bottom-translate_3d));padding-inline-start:var(--custom-pop-stroke-width);overflow:visible}
.dns.show .pop:before{bottom:calc(var(--custom-pop-bottom-translate_3d)*-1 - var(--custom-pop-stroke-width));color:var(--custom-display-name-styles-main-color);content:attr(data-username-with-effects);inset-inline-start:var(--custom-pop-stroke-width);margin-inline-start:calc(var(--custom-pop-stroke-width)*-1);padding-inline-start:var(--custom-pop-stroke-width);position:absolute;top:0;width:calc(100% - var(--custom-pop-stroke-width));z-index:-1;-webkit-text-stroke-width:var(--custom-pop-stroke-width);-webkit-text-stroke-color:transparent;background:linear-gradient(to bottom left,var(--custom-display-name-styles-light-1-color) 0,var(--custom-display-name-styles-light-1-color) 6%,var(--custom-display-name-styles-main-color) 20%,var(--custom-display-name-styles-main-color) 50%,var(--custom-display-name-styles-light-1-color) 56%,var(--custom-display-name-styles-main-color) 70%,var(--custom-display-name-styles-main-color) 100%);background-clip:text;-webkit-background-clip:text;background-position:100% 0;background-size:200% 200%;transform:translate3d(0,var(--custom-pop-bottom-translate_3d),0);-webkit-text-fill-color:transparent;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:var(--custom-display-name-styles-wrap,nowrap)}
.username:hover .dns.show .pop{text-decoration:none}
.username:hover .dns.show .pop:before{text-decoration:underline;text-decoration-color:var(--custom-display-name-styles-main-color);text-underline-offset:var(--custom-pop-bottom-translate_3d)}
.dns.animated .pop{animation:dns-pop-main 4s cubic-bezier(.44,.29,.48,1) forwards}
.dns.animated .pop:before{animation:dns-pop-shadow 4s cubic-bezier(.44,.29,.48,1) forwards}
.dns.animated.loop>*,.dns.animated.loop>:before,.dns.animated.loop .pop:before{animation-iteration-count:infinite}
@keyframes dns-pop-main{0%{transform:translateZ(0)}18%{perspective:1px;transform:translate3d(0,-.05em,0)}35%{perspective:1px;transform:translate3d(0,.08em,0)}50%,to{perspective:1px;transform:translateZ(0)}}
@keyframes dns-pop-shadow{0%{background-position:100% 0;perspective:1px;transform:translate3d(0,.08em,0)}18%{perspective:1px;transform:translate3d(0,.13em,0)}35%{perspective:1px;transform:translateZ(0)}50%,to{background-position:0 100%;perspective:1px;transform:translate3d(0,.08em,0)}}
.theme-light .dns.show .pop{color:var(--white,#fff)}

/* light theme tweaks: Discord light keeps semantic tokens; only a few fixed-colour bits need it */
.theme-light .ppOverlay,.theme-light .acctPop .apMenu{border:1px solid var(--border-muted)}
.theme-light .lightbox{color:#fff}

/* narrow windows */
@media (max-width:1131px){.profilePanel{display:none!important}#profBtn{display:none}}
@media (max-width:900px){#app{grid-template-columns:72px 1fr}.sidebarList{display:none}.panels{width:56px}.accountRow{padding:12px 4px}.accountNames,.panelButtons{display:none}}
/* narrow video tiles: drop the volume button so the seek bar keeps usable width */
@container (max-width:260px){.vPlayer .vBtn.vVol{display:none}}

/* ---------- SMS / multi-source layout ---------- */
.dmRow.nameplated .rowInner{padding-right:8px}
.rowName.withSub{display:flex;flex-direction:column;justify-content:center;gap:1px;line-height:16px}
.dmNameTop{display:flex;align-items:center;gap:6px;min-width:0}
.dmNameTop>.dns,.dmNameTop>.nameText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dmSourcePill{margin-left:auto;padding:1px 6px;border-radius:6px;font-size:10px;font-weight:700;line-height:14px;text-transform:uppercase;letter-spacing:.03em;flex:0 0 auto;background:var(--background-mod-normal);color:var(--text-muted)}
.dmSourcePill.discord{background:rgba(88,101,242,.18);color:#8ea1e1}
.dmSourcePill.sms{background:rgba(45,157,108,.18);color:#45a366}
.dmSourcePill.combined{background:rgba(155,89,182,.2);color:#c38fff}
.theme-light .dmSourcePill.discord{color:#4752c4}
.theme-light .dmSourcePill.sms{color:#1f8b4c}
.theme-light .dmSourcePill.combined{color:#71368a}
.dmSub{font-size:11px;font-weight:400;line-height:14px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dmRow.selected .dmSub{color:var(--interactive-text-default)}
.dmAvBadge{position:absolute;left:-3px;bottom:-2px;width:16px;height:16px;border-radius:50%;background:var(--background-base-lowest);display:flex;align-items:center;justify-content:center;z-index:3;color:var(--text-strong);box-shadow:0 0 0 1.5px var(--background-base-lowest)}
.dmAvBadge svg{width:11px;height:11px}
.dmAvBadge.sms{color:#45a366}
.dmAvBadge.combined{color:#c38fff}

.hdPhonePill{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;margin-left:8px;border-radius:6px;background:rgba(45,157,108,.15);color:#45a366;font-size:12px;font-weight:600;line-height:16px;white-space:nowrap;flex:0 0 auto}
.theme-light .hdPhonePill{color:#1f8b4c}
.hdPhonePill svg{width:13px;height:13px}
.chanTabs{display:inline-flex;align-items:center;gap:2px;margin-left:12px;padding:2px;border-radius:8px;background:var(--background-base-lowest);border:1px solid var(--border-subtle);flex:0 0 auto}
.chanTab{height:26px;padding:0 8px;border-radius:6px;font-size:12px;font-weight:600;line-height:16px;color:var(--interactive-text-default);display:inline-flex;align-items:center;gap:5px;white-space:nowrap;transition:background .1s,color .1s}
.chanTab svg{width:14px;height:14px;opacity:.8}
.chanTab:hover{background:var(--interactive-background-hover);color:var(--interactive-text-hover)}
.chanTab.selected{background:var(--interactive-background-selected);color:var(--interactive-text-active)}
.chanTab.selected svg{opacity:1}
.chanTab.sms.selected svg{color:#45a366}
.chanTab.discord.selected svg{color:#5865f2}
.chanTab.combined.selected svg{color:#c38fff}
.chanTab .ctCount{font-size:11px;font-weight:600;color:var(--text-muted);font-variant-numeric:tabular-nums}
@container (max-width:760px){.chanTab .ctCount,.hdPhonePill{display:none}}
@container (max-width:540px){.chanTabs{display:none}}

.smsTag{display:inline-flex;align-items:center;height:15px;padding:0 5px;margin-left:6px;border-radius:4px;background:rgba(45,157,108,.18);border:1px solid rgba(45,157,108,.35);color:#45a366;font-size:10px;font-weight:700;line-height:13px;vertical-align:middle;text-transform:uppercase;letter-spacing:.03em;user-select:none;cursor:default}
.theme-light .smsTag{color:#1f8b4c}
.ppUserRow .muted{color:var(--text-muted)}
.ppLogLinks{display:flex;flex-direction:column;gap:2px}
.ppLogRow{display:flex;justify-content:space-between;align-items:center;padding:4px 8px!important;margin:0 -6px;border-radius:6px;cursor:pointer;font-size:13px;line-height:18px;transition:background .1s}
.ppLogRow:hover{background:var(--interactive-background-hover)}
.ppLogRow.active{background:var(--interactive-background-selected);color:var(--interactive-text-active)}
.qsRow svg.icon{width:20px;height:20px;flex:0 0 20px;color:var(--icon-muted)}
