@charset "UTF-8";
.connection-loading{min-height:100dvh;display:grid;place-items:center;color:#7964d8}
.history-more{display:block;margin:0 auto 12px}
:root{
  font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color:#302f40;
  background:#edeef5;
  font-synthesis:none;
  --accent:#7964d6;
  --accent-dark:#6650c3;
  --accent-soft:#f0ecfb;
  --surface:#fff;
  --canvas:#f8f9fc;
  --line:#ececf3;
  --text:#302f40;
  --muted:#9292a4;
  --secondary:#747486;
  --bubble:#fff;
  --shadow:0 16px 65px #26223b12;
  color-scheme:light
}
*{
  box-sizing:border-box
}
body{
  margin:0
}
button,input,textarea{
  font:inherit
}
button,a,input,textarea{
  -webkit-tap-highlight-color:transparent
}
button{
  cursor:pointer
}
button{
  color:inherit;
  border:0;
  background:none
}
button:disabled{
  cursor:not-allowed;
  opacity:.4
}
button:focus-visible,a:focus-visible{
  outline:3px solid #a28bdf;
  outline-offset:3px
}
input:focus,textarea:focus{
  outline:none
}
input:focus-visible,textarea:focus-visible{
  box-shadow:0 0 0 3px #7964d62b
}
button{
  touch-action:manipulation
}
svg{
  display:block
}
button svg{
  flex:none
}
img{
  display:block;
  max-width:100%
}
h1,h2,h3,p{
  margin:0
}
a{
  color:var(--accent)
}
[hidden]{
  display:none!important
}
.icon{
  width:21px;
  height:21px;
  stroke:currentColor;
  stroke-width:1.7;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:none
}
.icon-btn{
  width:38px;
  height:38px;
  border-radius:11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--secondary);
  flex:none;
  transition:background .15s,color .15s
}
.icon-btn:hover{
  background:var(--accent-soft);
  color:var(--accent)
}
.icon-btn.active{
  background:var(--accent-soft);
  color:var(--accent)
}
.subtle{
  color:var(--muted);
  font-size:13px
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.primary,.secondary,.danger{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:11px 21px;
  font-size:14px;
  font-weight:600;
  border-radius:11px
}
.primary{
  background:var(--accent);
  color:#fff;
  box-shadow:0 4px 10px #7964d620
}
.primary:hover{
  background:var(--accent-dark)
}
.secondary{
  background:var(--accent-soft);
  color:var(--accent)
}
.danger{
  background:#fff1f2;
  color:#c55c6d
}
.text-btn{
  color:var(--accent);
  font-size:14px;
  padding:7px
}
.wide{
  width:100%
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:12px;
  padding:4px 9px;
  border:1px solid var(--line);
  border-radius:6px;
  color:var(--secondary);
  white-space:nowrap
}
.app-frame{
  max-width:1600px;
  margin:24px auto;
  width:calc(100% - 48px);
  height:calc(100dvh - 48px);
  min-height:540px;
  display:flex;
  background:var(--surface);
  border:1px solid #ffffff8c;
  border-radius:20px;
  box-shadow:var(--shadow);
  overflow:hidden
}
.rail{
  width:86px;
  flex:none;
  display:flex;
  align-items:center;
  flex-direction:column;
  background:#282639;
  color:#aaa5c0;
  padding:27px 13px 20px;
  gap:20px
}
.brand-mark{
  width:43px;
  height:43px;
  filter:drop-shadow(0 3px 6px #0002)
}
.rail-brand{
  display:grid;
  gap:9px;
  justify-items:center;
  margin-bottom:19px
}
.rail-brand span{
  font-weight:600;
  letter-spacing:1px;
  font-size:12px;
  color:#eae7f6;
  white-space:nowrap
}
.rail-nav{
  display:flex;
  flex-direction:column;
  gap:15px;
  width:100%
}
.nav-btn{
  min-height:66px;
  width:100%;
  border-radius:12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:7px;
  font-size:14px;
  position:relative
}
.nav-btn .icon{
  width:24px;
  height:24px
}
.nav-btn:hover{
  background:#ffffff0a;
  color:white
}
.nav-btn.active{
  background:#7964d633;
  color:#c4b3ff
}
.nav-btn.active:before{
  content:"";
  position:absolute;
  left:-13px;
  top:20px;
  height:25px;
  width:3px;
  background:#b6a2fc;
  border-radius:0 3px 3px 0
}
.rail-bottom{
  margin-top:auto;
  display:grid;
  justify-items:center;
  gap:23px
}
.rail-bottom>.icon-btn{
  color:#a9a5ba
}
.self-button{
  padding:0;
  border:3px solid #51495f;
  border-radius:16px
}
.self-button .avatar{
  width:39px;
  height:39px;
  border-radius:12px
}
.workspace{
  flex:1;
  min-width:0;
  display:flex
}
.inbox{
  width:310px;
  flex:none;
  display:flex;
  flex-direction:column;
  border-right:1px solid var(--line);
  background:var(--surface)
}
.inbox-header{
  padding:30px 24px 0
}
.title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:22px
}
.title-row h1{
  font-size:25px;
  letter-spacing:1px;
  font-weight:650;
  display:flex;
  align-items:center;
  gap:12px
}
.count-label{
  font-size:13px;
  letter-spacing:0;
  color:var(--accent);
  background:var(--accent-soft);
  padding:3px 7px;
  border-radius:6px;
  font-weight:500
}
.add-btn{
  background:var(--accent-soft);
  color:var(--accent);
  width:31px;
  height:31px;
  border-radius:9px
}
.search-box{
  display:flex;
  align-items:center;
  gap:9px;
  background:var(--canvas);
  border:1px solid var(--line);
  padding:0 11px;
  border-radius:10px;
  height:41px;
  color:var(--muted)
}
.search-box .icon{
  width:17px;
  height:17px
}
.search-box input{
  width:100%;
  min-width:0;
  background:none;
  border:0;
  font-size:14px;
  color:var(--text);
  height:100%
}
.search-box input::placeholder{
  color:var(--muted)
}
.search-box:focus-within{
  border-color:#b8a9eb
}
.search-box input:focus-visible{
  box-shadow:none
}
.filters{
  display:flex;
  gap:18px;
  padding:21px 0 0;
  border-bottom:1px solid var(--line);
  margin-bottom:12px
}
.filter{
  position:relative;
  color:var(--secondary);
  font-size:14px;
  padding:0 2px 13px
}
.filter.active{
  color:var(--accent);
  font-weight:650
}
.filter.active:after{
  content:"";
  position:absolute;
  bottom:-1px;
  height:3px;
  left:0;
  right:0;
  background:var(--accent);
  border-radius:3px
}
.chat-list{
  padding:3px 11px;
  overflow:auto;
  flex:1
}
.chat-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  padding:15px 12px;
  border-radius:11px;
  position:relative;
  margin:2px 0
}
.chat-item:hover{
  background:var(--canvas)
}
.chat-item.selected{
  background:var(--accent-soft)
}
.chat-item .avatar{
  width:47px;
  height:47px;
  border-radius:15px;
  flex:none
}
.avatar{
  display:inline-flex;
  width:44px;
  height:44px;
  overflow:hidden;
  border-radius:14px;
  flex:none;
  vertical-align:middle
}
.avatar svg{
  width:100%;
  height:100%
}
.group-avatar{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px;
  padding:4px;
  background:#e8e2f1;
  border-radius:14px;
  overflow:hidden
}
.group-avatar .avatar{
  width:100%;
  height:100%;
  border-radius:4px
}
.chat-item .group-avatar .avatar{
  width:100%;
  height:100%;
  border-radius:4px
}
.chat-info{
  min-width:0;
  flex:1
}
.chat-top{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:7px
}
.chat-name{
  font-size:15px;
  font-weight:600;
  flex:1;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis
}
.chat-time{
  font-size:12px;
  font-weight:400;
  color:var(--muted);
  flex:none
}
.chat-bottom{
  display:flex;
  align-items:center;
  gap:5px
}
.chat-preview{
  font-size:13px;
  line-height:1.4;
  color:var(--secondary);
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  flex:1
}
.unread-badge{
  background:#8d78dd;
  color:#fff;
  font-size:12px;
  border-radius:6px;
  min-width:17px;
  height:17px;
  display:grid;
  place-items:center;
  padding:0 4px
}
.mini-icon{
  width:13px;
  height:13px;
  color:#aaa3bb
}
.pin-caption{
  color:#b6aacb;
  font-size:12px;
  padding:10px 13px 3px;
  display:flex;
  align-items:center;
  gap:6px
}
.pin-caption .icon{
  width:12px;
  height:12px
}
.inbox-footer{
  padding:18px 23px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:12px
}
.inbox-footer .icon{
  width:15px;
  height:15px
}
.demo-tag{
  margin-left:auto;
  color:var(--accent);
  font-size:12px;
  border-radius:5px;
  padding:3px 6px;
  background:var(--accent-soft)
}
.conversation-area{
  display:flex;
  flex:1;
  min-width:0
}
.conversation{
  display:flex;
  flex-direction:column;
  min-width:0;
  flex:1;
  background:var(--canvas)
}
.conversation-header{
  height:91px;
  padding:0 27px;
  display:flex;
  align-items:center;
  gap:12px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
  flex:none
}
.conversation-header .avatar{
  width:42px;
  height:42px
}
.conversation-heading{
  flex:1;
  min-width:0
}
.conversation-heading h2{
  font-size:17px;
  font-weight:650;
  display:flex;
  align-items:center;
  gap:8px
}
.conversation-heading p{
  font-size:12px;
  color:var(--muted);
  margin-top:6px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis
}
.presence{
  display:inline-block;
  width:6px;
  height:6px;
  background:#81ae9e;
  border-radius:50%;
  margin-right:5px;
  vertical-align:1px
}
.header-actions{
  display:flex;
  gap:6px
}
.mobile-back{
  display:none
}
.message-search{
  display:flex;
  gap:8px;
  padding:12px 22px;
  background:var(--surface);
  border-bottom:1px solid var(--line);
  align-items:center
}
.message-search .search-box{
  flex:1
}
.search-result-label{
  font-size:12px;
  white-space:nowrap;
  color:var(--muted)
}
.messages{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:21px 28px 17px;
  scroll-behavior:smooth;
  overscroll-behavior:contain
}
.day-divider{
  text-align:center;
  font-size:12px;
  color:#a5a3b3;
  margin:1px 0 23px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:15px
}
.day-divider:before,.day-divider:after{
  content:"";
  height:1px;
  width:35px;
  background:var(--line)
}
.message-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:0 0 18px;
  position:relative
}
.message-row>.avatar{
  width:34px;
  height:34px;
  border-radius:11px;
  margin-top:3px
}
.message-row.mine{
  flex-direction:row-reverse
}
.message-body{
  max-width:min(83%,460px);
  position:relative;
  min-width:0
}
.sender-name{
  font-size:12px;
  color:var(--muted);
  margin:0 0 6px 2px
}
.bubble{
  background:var(--bubble);
  padding:12px 16px;
  border:1px solid var(--line);
  border-radius:3px 14px 14px 14px;
  font-size:16px;
  line-height:1.75;
  overflow-wrap:anywhere;
  white-space:pre-wrap;
  box-shadow:0 2px 3px #25233802
}
.mine .bubble{
  background:#eae3fc;
  border-color:#eae3fc;
  border-radius:14px 3px 14px 14px;
  color:#44335f
}
.message-meta{
  font-size:12px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:5px;
  margin:7px 3px 0
}
.mine .message-meta{
  justify-content:flex-end
}
.message-meta .icon{
  width:14px;
  height:14px;
  color:#b6a7d7
}
.image-bubble{
  display:block;
  padding:0;
  background:none;
  border:none;
  width:287px;
  max-width:100%;
  text-align:left;
  border-radius:12px;
  overflow:hidden
}
.image-bubble img{
  width:100%;
  max-height:250px;
  object-fit:cover;
  border-radius:12px
}
.image-caption{
  font-size:12px;
  color:var(--muted);
  margin-top:6px
}
.bubble-tools{
  display:flex;
  gap:3px;
  position:absolute;
  top:0;
  left:calc(100% + 5px);
  opacity:0;
  transition:opacity .1s
}
.bubble-tools button{
  width:26px;
  height:26px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:8px
}
.bubble-tools .icon{
  width:14px;
  height:14px
}
.mine .bubble-tools{
  left:auto;
  right:calc(100% + 5px)
}
.message-row:hover .bubble-tools,.message-row:focus-within .bubble-tools{
  opacity:1
}
.quote-snippet{
  font-size:12px;
  color:var(--secondary);
  background:#00000004;
  border-left:2px solid #aa98d7;
  padding:6px 9px;
  margin-bottom:8px;
  white-space:pre-wrap
}
.system-message{
  text-align:center;
  font-size:12px;
  color:var(--muted);
  margin:20px 0
}
.attachment{
  display:flex;
  align-items:center;
  gap:11px;
  max-width:275px;
  text-align:left
}
.file-icon{
  width:39px;
  height:44px;
  background:#eee9fa;
  color:var(--accent);
  border-radius:8px;
  display:grid;
  place-items:center;
  flex:none
}
.file-description{
  min-width:0
}
.file-description strong{
  font-size:13px;
  font-weight:550;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:170px
}
.file-description small{
  font-size:12px;
  color:var(--secondary);
  display:block;
  margin-top:4px
}
.composer{
  background:var(--surface);
  border-top:1px solid var(--line);
  padding:12px 24px 19px;
  position:relative;
  flex:none
}
.composer-toolbar{
  display:flex;
  align-items:center;
  gap:4px;
  margin-bottom:5px
}
.composer-toolbar .icon-btn{
  width:33px;
  height:32px
}
.composer-hint{
  font-size:12px;
  color:var(--muted);
  margin-left:auto
}
.composer textarea{
  width:100%;
  min-height:54px;
  max-height:140px;
  resize:none;
  background:none;
  border:none;
  color:var(--text);
  padding:8px 3px;
  font-size:16px;
  line-height:1.6;
  display:block
}
.composer textarea::placeholder{
  color:#b1adbd
}
.composer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:6px;
  gap:10px
}
.composer-bottom>span{
  font-size:12px;
  color:#aaa6b7
}
.send-btn{
  min-height:36px;
  border-radius:9px;
  padding:8px 18px;
  font-size:13px
}
.send-btn .icon{
  width:16px;
  height:16px
}
.quote-preview{
  background:var(--canvas);
  border-left:3px solid var(--accent);
  border-radius:4px;
  padding:4px 8px 4px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
  color:var(--secondary)
}
.quote-preview span{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis
}
.emoji-picker{
  position:absolute;
  left:20px;
  bottom:calc(100% + 8px);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:15px;
  box-shadow:0 8px 35px #302f4020;
  padding:14px;
  z-index:5;
  max-width:calc(100vw - 60px)
}
.emoji-picker p{
  font-size:12px;
  color:var(--secondary);
  margin:0 4px 9px
}
.emoji-grid{
  display:grid;
  grid-template-columns:repeat(6,38px);
  gap:5px
}
.emoji-grid button{
  font-size:23px;
  width:38px;
  height:38px;
  border-radius:8px
}
.emoji-grid button:hover{
  background:var(--accent-soft)
}
.detail-panel{
  width:258px;
  flex:none;
  border-left:1px solid var(--line);
  background:var(--surface);
  overflow:auto;
  padding:25px 21px;
  display:flex;
  flex-direction:column
}
.detail-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--secondary);
  font-size:13px;
  margin-bottom:25px
}
.detail-top .icon{
  width:16px;
  height:16px
}
.profile-portrait{
  text-align:center;
  position:relative;
  padding:13px 0 20px
}
.profile-portrait:before{
  content:"";
  position:absolute;
  top:2px;
  left:50%;
  transform:translateX(-50%);
  width:124px;
  height:82px;
  border-radius:50%;
  background:radial-gradient(ellipse,#f4ecfb 20%,transparent 70%);
  pointer-events:none
}
.profile-portrait .avatar{
  width:75px;
  height:75px;
  border-radius:24px;
  position:relative
}
.profile-portrait h3{
  font-size:18px;
  margin-top:13px;
  font-weight:650
}
.profile-portrait p{
  font-size:12px;
  color:var(--muted);
  margin-top:6px
}
.profile-bio{
  font-size:12px;
  color:var(--secondary);
  text-align:center;
  line-height:1.9;
  padding-bottom:23px;
  border-bottom:1px solid var(--line)
}
.detail-section{
  padding:21px 0;
  border-bottom:1px solid var(--line)
}
.detail-section h3{
  font-size:13px;
  font-weight:600;
  margin-bottom:15px;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.detail-section h3 span{
  font-size:12px;
  font-weight:400;
  color:var(--muted)
}
.detail-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size:12px;
  color:var(--secondary);
  padding:9px 0
}
.switch{
  width:32px;
  height:19px;
  border-radius:12px;
  background:#dcdae4;
  position:relative;
  flex:none;
  padding:0
}
.switch:before{
  content:"";
  width:13px;
  height:13px;
  position:absolute;
  left:3px;
  top:3px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 3px #0001;
  transition:transform .15s
}
.switch[aria-checked="true"]{
  background:var(--accent)
}
.switch[aria-checked="true"]:before{
  transform:translateX(13px)
}
.media-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px
}
.media-thumb{
  padding:0;
  border-radius:9px;
  overflow:hidden;
  aspect-ratio:1;
  background:#f1edf9
}
.media-thumb img{
  height:100%;
  width:100%;
  object-fit:cover
}
.media-thumb:nth-child(2) img{
  object-position:10%;
  filter:hue-rotate(20deg)
}
.media-thumb:nth-child(3){
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  color:var(--accent);
  background:var(--accent-soft)
}
.detail-note{
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-top:auto;
  padding-top:26px
}
.detail-note .icon{
  width:15px;
  height:15px;
  margin-top:2px
}
.member-stack{
  display:flex;
  gap:7px;
  flex-wrap:wrap
}
.member-stack .avatar{
  width:33px;
  height:33px;
  border-radius:10px
}
.group-notice{
  font-size:13px;
  color:var(--secondary);
  line-height:1.9;
  text-align:left;
  width:100%;
  padding:0
}
.group-notice:hover{
  color:var(--accent)
}
.contact-letter{
  padding:12px 13px 4px;
  font-size:12px;
  color:var(--muted)
}
.new-friends{
  display:flex;
  align-items:center;
  gap:12px;
  padding:15px 12px;
  width:100%;
  font-size:14px;
  text-align:left
}
.new-friend-icon{
  width:43px;
  height:43px;
  border-radius:13px;
  background:#f9ebda;
  color:#c19a64;
  display:grid;
  place-items:center
}
.new-friends .unread-badge{
  margin-left:auto
}
.contact-welcome{
  flex:1;
  background:var(--canvas);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:30px;
  text-align:center
}
.welcome-art{
  display:flex;
  align-items:center;
  gap:13px;
  background:radial-gradient(ellipse,#eae2fa,transparent 70%);
  padding:35px;
  margin-bottom:5px
}
.welcome-art .avatar{
  width:72px;
  height:72px;
  border-radius:24px;
  transform:rotate(-9deg);
  box-shadow:0 10px 20px #302f4010
}
.welcome-art .avatar:last-child{
  transform:rotate(9deg);
  margin-top:35px
}
.welcome-art .icon{
  color:var(--accent);
  width:30px;
  height:30px
}
.contact-welcome h2{
  font-size:23px;
  font-weight:600;
  margin:20px 0 12px
}
.contact-welcome p{
  color:var(--secondary);
  font-size:14px;
  line-height:1.9;
  margin-bottom:26px
}
.empty-state{
  padding:50px 20px;
  text-align:center;
  display:grid;
  justify-items:center;
  gap:12px;
  color:var(--muted);
  font-size:13px
}
.empty-state .icon{
  width:32px;
  height:32px;
  color:#b8a8d5
}
.empty-state h3{
  color:var(--secondary);
  font-size:15px;
  font-weight:500
}
.mobile-nav{
  display:none
}
.account-page{
  flex:1;
  overflow:auto;
  background:var(--canvas);
  padding:45px clamp(24px,6vw,85px)
}
.account-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:35px
}
.account-heading h1{
  font-size:27px;
  font-weight:650
}
.account-heading p{
  font-size:14px;
  color:var(--secondary);
  margin-top:9px
}
.account-grid{
  display:grid;
  grid-template-columns:minmax(260px,1.15fr) minmax(260px,1fr);
  gap:24px;
  max-width:1000px
}
.account-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  padding:28px
}
.account-card h2{
  font-size:17px;
  margin-bottom:20px;
  font-weight:600
}
.own-profile{
  display:flex;
  align-items:center;
  gap:17px;
  margin-bottom:25px
}
.own-profile .avatar{
  width:72px;
  height:72px;
  border-radius:23px
}
.own-profile h2{
  margin:0 0 8px;
  font-size:22px
}
.own-profile p{
  font-size:13px;
  color:var(--muted)
}
.own-bio{
  font-size:14px;
  color:var(--secondary);
  line-height:1.8;
  margin-bottom:25px
}
.account-card .detail-row{
  font-size:14px;
  min-height:50px
}
.account-card .detail-row+.detail-row{
  border-top:1px solid var(--line)
}
.setting-button{
  width:100%;
  text-align:left;
  padding:16px 0;
  display:flex;
  align-items:center;
  gap:12px;
  border-top:1px solid var(--line);
  font-size:14px
}
.setting-button>.icon:last-child{
  margin-left:auto;
  width:16px;
  color:var(--muted)
}
.setting-button:hover{
  color:var(--accent)
}
.demo-banner{
  display:flex;
  align-items:center;
  gap:20px;
  grid-column:1/-1;
  padding:24px 27px;
  background:#ede7fa;
  border:1px solid #e4dcf5;
  border-radius:16px
}
.demo-banner>.icon{
  color:var(--accent);
  height:30px;
  width:30px
}
.demo-banner h3{
  font-size:15px;
  margin-bottom:6px;
  color:#51446c
}
.demo-banner p{
  color:#8b7f9e;
  font-size:13px;
  line-height:1.8
}
.demo-banner .secondary{
  margin-left:auto;
  background:#fff;
  white-space:nowrap
}
.account-caption{
  max-width:1000px;
  font-size:12px;
  color:var(--muted);
  text-align:center;
  padding:35px 0
}
.text-size-switch{
  display:flex;
  gap:4px;
  background:var(--canvas);
  border-radius:7px;
  padding:3px
}
.text-size-switch button{
  padding:5px 10px;
  font-size:13px;
  border-radius:5px
}
.text-size-switch button.active{
  background:var(--surface);
  color:var(--accent);
  box-shadow:0 1px 5px #0001
}
.overlay{
  position:fixed;
  inset:0;
  background:#211c3559;
  backdrop-filter:blur(5px);
  z-index:30;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  animation:fade-in .15s
}
.modal{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  padding:27px;
  width:440px;
  max-width:100%;
  max-height:calc(100dvh - 44px);
  overflow:auto;
  box-shadow:0 20px 80px #15101f30
}
.modal.wide-modal{
  width:550px
}
.modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:22px
}
.modal-header h2{
  font-size:20px;
  font-weight:650
}
.modal-header .icon-btn{
  margin-right:-7px
}
.modal-description{
  font-size:14px;
  color:var(--secondary);
  line-height:1.9;
  margin-bottom:20px
}
.form-field{
  display:block;
  margin-bottom:19px;
  font-size:14px
}
.form-field>span{
  display:block;
  margin-bottom:9px;
  color:var(--secondary)
}
.form-field input,.form-field textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  padding:12px 13px;
  background:var(--canvas);
  color:var(--text);
  font-size:15px
}
.form-field textarea{
  resize:vertical;
  min-height:90px
}
.form-field input:focus,.form-field textarea:focus{
  border-color:#ae9dde
}
.form-error{
  font-size:13px;
  color:#c45972;
  min-height:19px;
  margin-bottom:15px;
  line-height:1.6
}
.form-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:20px
}
.avatar-choices{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:20px
}
.avatar-choice{
  padding:3px;
  border-radius:18px;
  border:2px solid transparent
}
.avatar-choice.selected{
  border-color:var(--accent)
}
.avatar-choice .avatar{
  width:47px;
  height:47px
}
.profile-modal .profile-portrait{
  padding-top:0
}
.profile-modal .profile-bio{
  margin-bottom:20px
}
.profile-id-row{
  display:flex;
  justify-content:space-between;
  margin:15px 0;
  color:var(--secondary);
  font-size:14px
}
.check-row{
  display:flex;
  align-items:center;
  gap:11px;
  padding:12px 0;
  font-size:14px;
  border-bottom:1px solid var(--line)
}
.check-row input{
  accent-color:var(--accent);
  width:17px;
  height:17px;
  flex:none
}
.check-row .avatar{
  width:38px;
  height:38px;
  border-radius:12px
}
.check-row span{
  flex:1
}
.request-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:17px 0;
  border-bottom:1px solid var(--line)
}
.request-row>div{
  flex:1
}
.request-row h3{
  font-size:15px;
  margin-bottom:7px
}
.request-row p{
  font-size:12px;
  color:var(--muted)
}
.request-row .secondary{
  font-size:12px;
  padding:8px 12px;
  min-height:34px
}
.request-row .text-btn{
  font-size:12px;
  color:var(--muted)
}
.photo-preview{
  width:100%;
  border-radius:13px
}
.attachment-preview{
  padding:28px 10px;
  display:grid;
  justify-items:center;
  gap:18px
}
.attachment-preview .icon{
  width:55px;
  height:55px;
  color:var(--accent)
}
.attachment-preview p{
  font-size:14px;
  overflow-wrap:anywhere
}
.attachment-preview small{
  font-size:12px;
  color:var(--muted)
}
.modal .detail-section:last-child{
  border-bottom:none
}
.toast{
  position:fixed;
  left:50%;
  bottom:38px;
  transform:translate(-50%,15px);
  background:#30283fec;
  color:#fff;
  padding:13px 20px;
  border-radius:12px;
  box-shadow:0 8px 25px #27203826;
  font-size:14px;
  max-width:calc(100% - 40px);
  width:max-content;
  z-index:80;
  opacity:0;
  pointer-events:none;
  transition:opacity .15s,transform .15s;
  line-height:1.7
}
.toast.show{
  opacity:1;
  transform:translate(-50%,0)
}
.auth-panel{
  display:grid;
  grid-template-columns:1fr 1fr;
  width:min(900px,100%);
  max-height:calc(100dvh - 44px);
  overflow:auto;
  background:var(--surface);
  border-radius:23px;
  position:relative;
  box-shadow:0 20px 90px #211c3533
}
.auth-entry{
  background:var(--canvas);
  backdrop-filter:none;
  animation:none
}
.auth-mobile-brand{
  display:none
}
@media(max-width:700px){
  .overlay.auth-entry{
    padding:0;
    align-items:flex-start;
    overflow:auto;
    background:var(--surface)
  }
  .auth-entry .auth-panel{
    width:100%;
    min-height:100dvh;
    max-height:none;
    border-radius:0;
    box-shadow:none;
    overflow:visible
  }
  .auth-entry .auth-form{
    padding:calc(36px + env(safe-area-inset-top)) 28px calc(28px + env(safe-area-inset-bottom))
  }
  .auth-entry .auth-form:before{
    display:none
  }
  .auth-mobile-brand{
    display:grid;
    justify-items:center;
    gap:10px;
    margin-bottom:35px
  }
  .auth-mobile-brand img{
    width:64px;
    height:64px
  }
  .auth-mobile-brand h1{
    font-size:24px;
    font-weight:650
  }
  .auth-mobile-brand p{
    font-size:13px;
    color:var(--secondary)
  }
}
.auth-art{
  background:#eee9fa;
  padding:48px 36px;
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden;
  min-height:570px
}
.auth-brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:23px;
  font-weight:600;
  letter-spacing:3px;
  color:#4b396d
}
.auth-brand img{
  width:43px
}
.auth-art h2{
  font-size:33px;
  line-height:1.6;
  font-weight:600;
  color:#4b396d;
  position:relative;
  z-index:1;
  margin-top:56px
}
.auth-art>p{
  color:#8d7caa;
  font-size:14px;
  line-height:2;
  margin-top:14px;
  position:relative;
  z-index:1
}
.auth-illustration{
  margin-top:auto;
  padding-top:40px;
  position:relative;
  z-index:1
}
.auth-mini{
  display:flex;
  align-items:center;
  gap:12px;
  background:#ffffffb5;
  border:1px solid #fff;
  border-radius:15px;
  padding:14px 17px;
  box-shadow:0 10px 25px #6950860b;
  transform:rotate(-4deg);
  width:90%;
  font-size:14px;
  color:#75638c
}
.auth-mini+.auth-mini{
  margin-top:16px;
  margin-left:25px;
  transform:rotate(4deg)
}
.auth-mini .avatar{
  width:36px;
  height:36px
}
.auth-art:after{
  content:"";
  position:absolute;
  width:390px;
  height:390px;
  bottom:-100px;
  right:-130px;
  border-radius:50%;
  border:55px solid #d6c9f166
}
.auth-form{
  padding:49px 39px 34px
}
.auth-close{
  position:absolute;
  right:13px;
  top:12px;
  z-index:2
}
.auth-tabs{
  display:flex;
  gap:23px;
  border-bottom:1px solid var(--line);
  margin-bottom:27px
}
.auth-tabs button{
  padding:0 0 13px;
  font-size:18px;
  color:var(--muted)
}
.auth-tabs button.active{
  color:var(--accent);
  border-bottom:3px solid var(--accent);
  font-weight:600
}
.auth-form>p{
  font-size:13px;
  color:var(--secondary);
  margin-bottom:24px;
  line-height:1.8
}
.agreement{
  display:flex;
  align-items:flex-start;
  gap:7px;
  font-size:12px;
  color:var(--secondary);
  line-height:1.8;
  margin-bottom:19px
}
.agreement input{
  accent-color:var(--accent);
  margin:4px 0 0
}
.agreement button{
  padding:0;
  color:var(--accent);
  font-size:12px
}
.auth-demo-caption{
  font-size:12px;
  color:var(--muted);
  text-align:center;
  margin:17px 0;
  line-height:1.8
}
.auth-guest{
  display:block;
  margin:18px auto 0;
  color:var(--secondary);
  font-size:13px;
  padding:8px
}
.large-text .bubble,.large-text .composer textarea{
  font-size:17px
}
.dark{
  --surface:#2b293b;
  --canvas:#242231;
  --line:#393548;
  --text:#e4deee;
  --muted:#9c94ab;
  --secondary:#b5abca;
  --accent:#a38ce8;
  --accent-dark:#8f75da;
  --accent-soft:#3c334f;
  --bubble:#343043;
  color-scheme:dark;
  background:#1e1b29
}
.dark .app-frame{
  border-color:#383245
}
.dark .mine .bubble{
  background:#564273;
  border-color:#564273;
  color:#ede1ff
}
.dark .demo-banner{
  background:#3c334f;
  border-color:#514464
}
.dark .demo-banner h3{
  color:#e0d1f5
}
.dark .demo-banner p{
  color:#baa6d1
}
.dark .demo-banner .secondary{
  background:#4c3e63
}
.dark .auth-art{
  background:#3c3150
}
.dark .auth-art h2,.dark .auth-brand{
  color:#e2d6f3
}
.dark .auth-mini{
  background:#4e3e65;
  border-color:#625076;
  color:#e4d7f3
}
.dark .profile-portrait:before{
  opacity:.15
}
.dark .media-thumb:nth-child(3){
  background:var(--accent-soft)
}
.dark .danger{
  background:#482e3d;
  color:#e7a3b3
}
.dark .mine .quote-snippet{
  color:#cfc0e0
}
.noscript{
  padding:30px
}
@keyframes fade-in{
  from{
    opacity:0
  }
  to{
    opacity:1
  }
}
@media(min-width:1600px){
  .inbox{
    width:330px
  }
  .messages{
    padding-left:40px;
    padding-right:40px
  }
  .detail-panel{
    width:280px
  }
  .conversation-header{
    padding-left:38px;
    padding-right:30px
  }
}
@media(max-width:1279px){
  .detail-panel{
    display:none
  }
  .inbox{
    width:300px
  }
  .app-frame{
    margin:16px;
    width:calc(100% - 32px);
    height:calc(100dvh - 32px)
  }
  .account-page{
    padding:35px
  }
  .account-grid{
    gap:17px
  }
  .account-card{
    padding:22px
  }
}
@media(max-width:900px){
  .rail{
    width:74px;
    padding-left:10px;
    padding-right:10px
  }
  .inbox{
    width:270px
  }
  .inbox-header{
    padding-left:18px;
    padding-right:18px
  }
  .chat-list{
    padding-left:7px;
    padding-right:7px
  }
  .chat-item{
    gap:10px;
    padding:15px 9px
  }
  .chat-item .avatar{
    width:41px;
    height:41px;
    border-radius:13px
  }
  .conversation-header{
    padding:0 18px
  }
  .messages{
    padding:20px 18px
  }
  .composer{
    padding:12px 17px 16px
  }
  .composer-hint{
    display:none
  }
  .account-grid{
    grid-template-columns:1fr
  }
  .account-heading .pill{
    display:none
  }
  .demo-banner{
    flex-wrap:wrap
  }
  .demo-banner .secondary{
    margin-left:50px
  }
}
@media(max-width:700px){
  body{
    background:var(--surface)
  }
  .app-frame{
    margin:0;
    width:100%;
    height:100dvh;
    min-height:0;
    border:0;
    border-radius:0;
    box-shadow:none;
    flex-direction:column
  }
  .rail{
    display:none
  }
  .workspace{
    min-height:0;
    flex:1
  }
  .inbox{
    width:100%;
    border:0
  }
  .inbox-header{
    padding:calc(24px + env(safe-area-inset-top)) 22px 0
  }
  .title-row{
    margin-bottom:19px
  }
  .title-row h1{
    font-size:27px
  }
  .add-btn{
    width:35px;
    height:35px
  }
  .search-box{
    height:43px
  }
  .filters{
    gap:28px;
    padding-top:22px;
    margin-bottom:10px
  }
  .filter{
    font-size:15px
  }
  .chat-list{
    padding:0 12px
  }
  .chat-item{
    padding:16px 11px;
    border-radius:13px;
    gap:14px
  }
  .chat-item .avatar{
    width:52px;
    height:52px;
    border-radius:16px
  }
  .chat-name{
    font-size:16px
  }
  .chat-preview{
    font-size:14px
  }
  .chat-item.selected{
    background:transparent
  }
  .chat-item:active{
    background:var(--accent-soft)
  }
  .chat-time{
    font-size:12px
  }
  .chat-top{
    margin-bottom:8px
  }
  .chat-list .pin-caption{
    padding-top:11px
  }
  .inbox-footer{
    padding:12px 23px;
    font-size:12px
  }
  .conversation-area{
    display:none
  }
  .mobile-chat .inbox{
    display:none
  }
  .mobile-chat .conversation-area{
    display:flex;
    width:100%
  }
  .mobile-chat .mobile-nav{
    display:none
  }
  .conversation-header{
    height:calc(73px + env(safe-area-inset-top));
    padding:env(safe-area-inset-top) 13px 0 7px;
    gap:9px
  }
  .mobile-back{
    display:flex;
    width:32px
  }
  .conversation-header>.avatar{
    display:none
  }
  .conversation-heading h2{
    font-size:17px
  }
  .conversation-heading p{
    font-size:12px;
    margin-top:5px
  }
  .header-actions{
    gap:2px
  }
  .header-actions .icon-btn{
    width:35px
  }
  .messages{
    padding:20px 15px 10px
  }
  .message-row{
    gap:9px;
    margin-bottom:19px
  }
  .message-row>.avatar{
    width:33px;
    height:33px;
    border-radius:10px
  }
  .message-body{
    max-width:calc(100% - 66px)
  }
  .bubble{
    font-size:16px;
    padding:11px 13px
  }
  .image-bubble{
    width:250px
  }
  .bubble-tools{
    position:static;
    opacity:1;
    display:inline-flex;
    margin:3px 0 -2px
  }
  .bubble-tools button{
    background:transparent;
    border:0;
    width:24px;
    height:22px;
    color:#b3aabd
  }
  .mine .bubble-tools{
    float:right
  }
  .message-meta{
    display:inline-flex
  }
  .mine .message-meta{
    float:right;
    margin-top:8px
  }
  .mine .message-body:after{
    content:"";
    display:block;
    clear:both
  }
  .composer{
    padding:7px 14px calc(12px + env(safe-area-inset-bottom))
  }
  .composer-toolbar{
    margin-bottom:0
  }
  .composer-toolbar .icon-btn{
    width:37px;
    height:34px
  }
  .composer textarea{
    min-height:42px;
    height:44px;
    font-size:16px;
    padding-top:6px
  }
  .composer-bottom{
    margin-top:3px
  }
  .composer-bottom>span{
    font-size:12px
  }
  .send-btn{
    min-height:36px;
    padding:8px 17px
  }
  .mobile-nav{
    display:flex;
    background:var(--surface);
    border-top:1px solid var(--line);
    padding:7px 25px calc(7px + env(safe-area-inset-bottom));
    flex:none;
    justify-content:space-around;
    gap:35px
  }
  .mobile-nav .nav-btn{
    min-height:50px;
    width:70px;
    font-size:12px;
    gap:4px;
    color:var(--muted)
  }
  .mobile-nav .nav-btn .icon{
    width:23px;
    height:23px
  }
  .mobile-nav .nav-btn.active{
    color:var(--accent);
    background:none
  }
  .mobile-nav .nav-btn.active:before{
    display:none
  }
  .mobile-nav .nav-btn.active .icon{
    fill:#7964d610
  }
  .contact-welcome{
    display:none
  }
  .account-page{
    padding:calc(26px + env(safe-area-inset-top)) 20px 20px
  }
  .account-heading{
    margin-bottom:25px
  }
  .account-heading h1{
    font-size:27px
  }
  .account-heading p{
    font-size:13px
  }
  .account-grid{
    gap:16px
  }
  .account-card{
    padding:23px;
    border-radius:16px
  }
  .account-caption{
    padding-bottom:5px
  }
  .demo-banner{
    padding:20px;
    gap:12px
  }
  .demo-banner>div{
    flex:1
  }
  .demo-banner .secondary{
    width:100%;
    margin:3px 0 0
  }
  .overlay{
    padding:15px
  }
  .modal{
    padding:24px 21px;
    border-radius:19px;
    max-height:calc(100dvh - 30px)
  }
  .modal-header{
    margin-bottom:19px
  }
  .toast{
    bottom:100px;
    font-size:13px
  }
  .auth-panel{
    display:block;
    width:460px;
    max-height:calc(100dvh - 30px)
  }
  .auth-art{
    display:none
  }
  .auth-form{
    padding:42px 27px 24px
  }
  .auth-form:before{
    content:"旺旺密聊 · 让聊天，更有温度";
    display:block;
    font-size:14px;
    color:var(--accent);
    margin-bottom:26px
  }
  .auth-tabs{
    margin-bottom:23px
  }
  .auth-close{
    top:9px;
    right:9px
  }
  .message-search{
    padding:10px 12px;
    gap:3px
  }
  .search-result-label{
    font-size:12px
  }
  .large-text .bubble{
    font-size:18px
  }
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
