@charset "UTF-8";
/* Qingyu Chat 1.0.5 - Compact desktop (unchanged layout) messenger design.
   Layout tokens are centralized so all visual surfaces share a consistent scale. */
:root {
  --bg:#e8ecf2; --paper:#fff; --t:#252d39; --text2:#667286;
  --muted:#939ead; --line:#e6e9ee; --blue:#4676d7;
  --blue2:#6287de; --blueSoft:#eaf0fc; --bubble:#dfeafd;
  --rail-bg:#293445; --side-bg:#f7f8fa; --chat-bg:#f4f5f7;
  --radius-s:6px; --radius-m:9px; --radius-l:12px;
  --shadow:0 12px 40px rgba(35,49,70,.045);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}
body{background:var(--bg);color:var(--t)}
.ico{width:18px;height:18px;stroke-width:1.8}
.ico.sm{width:16px;height:16px}.ico.lg{width:20px;height:20px}
button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #6b96e9;outline-offset:2px}
.shell{grid-template-columns:56px 290px minmax(0,1fr);max-width:none;box-shadow:none;background:var(--paper)}
.rail{padding:17px 5px 13px;gap:10px;background:var(--rail-bg);border-right:1px solid #202b3a}
.logo-tile{width:36px;height:36px;border-radius:10px;margin-bottom:25px;background:#456cba;box-shadow:none}
.logo-tile .ico{width:21px;height:21px}
.rail-link{width:40px;height:40px;border-radius:9px;color:#aab5c4;transition:background .16s,color .16s}
.rail-link.active{background:#43516a;color:white}
.rail-link.active:before{height:18px;width:2px;left:-8px;border-radius:2px;background:#a8c4fa}
.rail-link:hover{background:#3d4a5f;color:#fff}
.rail-bottom{gap:8px}.rail-bottom .avatar{border:1px solid #71849f}
.rail-link .num{background:#da6777;min-width:15px;height:15px;font-size:9px;top:0;right:0}
.avatar{border-radius:10px;background:var(--avatar-bg,#dde6f3)}
.avatar:after{display:none}
.avatar.s{width:34px;height:34px}.avatar.m{width:39px;height:39px}
.avatar.l{width:56px;height:56px}.avatar.xl{width:74px;height:74px}
.avatar.c-group{border-radius:10px;background:#e5e6f6}
.avatar .ico{width:19px;height:19px;stroke-width:1.6}.avatar.xl .ico{width:30px;height:30px}
.side{background:var(--side-bg);border-right:1px solid #e3e6eb}
.side-top{padding:20px 13px 7px;background:var(--side-bg)}
.subline{display:none}
.side-heading{min-height:28px;padding:0 4px}
.side-title{font-size:17px;font-weight:690;letter-spacing:-.3px;line-height:1.3}
.side-count{font-size:11px;font-weight:500;border-radius:5px;background:transparent;color:#99a3b3;padding:0 0 0 2px;margin-left:5px}
.icon-btn{width:30px;height:30px;border-radius:7px;color:#798697}
.icon-btn:hover{background:#e9edf4;color:#3f65ab}
.icon-btn.primary{background:#e8ebf0;color:#5b6a7f}
.icon-btn.primary:hover{background:#dde5f3;color:#3763b5}
.searchbox{margin-top:14px}
.searchbox .ico{top:8px;left:10px;width:15px;height:15px;color:#8995a5}
.searchbox input{height:32px;background:#e9edf1;border:1px solid transparent;border-radius:6px;padding:0 11px 0 33px;font-size:12px;color:#354254}
.searchbox input:focus{background:#fff;border-color:#9db7eb;box-shadow:0 0 0 2px #d9e6fa}
.tabs{padding-top:10px;gap:4px}
.tab{font-size:11px;font-weight:580;border-radius:6px;padding:6px 11px;color:#778599}
.tab.active{background:#e4eaf5;color:#3c64ad}
.section-meta{padding:11px 15px 6px;font-size:10px;color:#9aa4b2;font-weight:570;letter-spacing:.05px}
.conversation-list,.contacts-list{padding:0 5px 12px;scrollbar-width:thin;scrollbar-color:#d3d9e3 transparent}
.conversation{height:64px;padding:8px 9px;gap:10px;border-radius:7px;transition:background .13s ease}
.conversation.active{background:#e4eaf4}.conversation:hover{background:#ecf0f5}
.conversation.active:hover{background:#dfe7f3}.conversation:active{transform:none}
.conv-top{margin-bottom:5px}.conv-name{font-size:12.8px;font-weight:625;color:#263244}
.conv-time{font-size:10px;color:#9ba5b4}
.preview-text{font-size:11px;color:#8996a7}
.unread{background:#df6470;min-width:16px;height:16px;border-radius:8px;font-size:9px;padding:0 4px}
.side-footer{padding:11px 15px;border-top:1px solid #ebedf0;font-size:10px;color:#9aa5b3}
.side-footer .online-dot{background:#8a9aac}
.content{background:var(--chat-bg)}
.chat-header{height:60px;padding:0 24px;background:var(--chat-bg);border-bottom:1px solid #e1e4e9}
.chat-who{gap:9px}.chat-who .avatar{width:34px;height:34px}
.chat-title{font-size:14px;font-weight:650;margin-bottom:0;color:#273342}
.chat-sub{font-size:10px;color:#8c98a6;margin-top:3px;gap:4px}
.dot{width:5px;height:5px;background:#9ba8b5}
.chat-actions{gap:3px}.chat-actions .icon-btn{width:32px;height:32px}
.chat-area{padding:20px clamp(22px,3vw,48px) 12px;background:var(--chat-bg);scrollbar-color:#d6dce4 transparent}
.chat-area .date-divider{font-size:10px;color:#a2abb6;margin:0 auto 19px}
.message-line{gap:9px;margin:0 0 15px;animation:bubble-in .15s both}
.msg-content{max-width:min(74%,600px)}
.sender{margin-bottom:4px;font-size:11px}
.bubble{padding:8px 12px;border-radius:9px 9px 9px 3px;font-size:12.8px;line-height:1.62;color:#333f50;background:white;border:1px solid #e7e9ec;box-shadow:none}
.out .bubble{border-radius:9px 9px 3px 9px;background:#dfe9fb;color:#2e486b;border-color:#d7e3f7}
.msg-meta{margin-top:3px;font-size:9px;color:#a0a9b6;padding:0 2px}
.msg-meta .ico{width:11px;height:11px}
.msg-image{max-width:min(260px,100%);max-height:210px;border-radius:6px}
.file-link{border-radius:7px;background:#edf2fb;padding:10px}
.composer-wrap{padding:0 22px 13px;background:#fff;border-top:1px solid #e3e6ec}
.composer{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;display:flex;flex-direction:column-reverse}
.composer:focus-within{border:0}
.composer-actions{margin-top:0;min-height:42px;align-items:center;gap:7px}
.composer-tools{gap:1px}.composer-tools .icon-btn{width:31px;height:31px}
.composer textarea{font-size:13px;min-height:47px;max-height:130px;line-height:1.55;padding:5px 1px 9px;color:#283647}
.composer-hint{margin-right:0;margin-left:auto;font-size:10px;color:#a2abba}
.send-btn{width:29px;height:29px;border-radius:7px;box-shadow:none;background:#4d7dde}
.send-btn .ico{width:15px;height:15px}
.emoji-tray{padding:10px 4px 5px;border-bottom:1px solid #edf0f3}
.emoji-tray button{font-size:19px}
.load-older{background:#e7edf7;border-radius:7px;font-size:10px;padding:7px 10px}
.detail{width:280px;padding:18px 20px;border-left:1px solid #e3e8ef;box-shadow:-6px 0 24px #18283b0b}
.detail-card{gap:6px;padding:25px 0 21px}.detail-card h2{font-size:16px}.detail-section{padding-top:14px}
.empty-main{padding:20px}.empty-art{transform:scale(.7);margin-bottom:-7px}
.empty-main h2{font-size:17px;font-weight:650;letter-spacing:0}.empty-main p{font-size:12px;line-height:1.65}
.button{font-size:12px;font-weight:600;padding:9px 13px;border-radius:7px;box-shadow:none}
.button:hover{transform:none}.button.secondary{background:#e8eef8;color:#4068ad}
.contact-item{padding:8px 9px;gap:10px;border-radius:7px}.contact-item .contact-name{font-size:12.5px}
.small-pill{font-size:10px;border-radius:6px;padding:6px 8px}
.blank-list{padding:40px 16px;font-size:11px}
.screen-page{padding:33px clamp(24px,4.5vw,65px)}
.page-kicker{font-size:10px;letter-spacing:1px;margin-bottom:8px}.page-title{font-size:23px;font-weight:720;letter-spacing:-.5px}.page-desc{font-size:12px;line-height:1.7}
.settings-card{max-width:590px;border-radius:10px;padding:20px 22px;margin-top:17px}
.profile-top{gap:13px;padding-bottom:16px}.profile-top h3{font-size:14px}
.field{margin-top:15px}.field label{font-size:11px;margin-bottom:7px}
.field input,.field textarea{padding:10px 11px;border-radius:7px;background:#f8f9fc;font-size:13px}
.setting-actions{margin-top:14px}
.overlay{backdrop-filter:blur(3px);padding:12px}
.modal{border-radius:12px;padding:20px;width:min(430px,100%);box-shadow:0 18px 70px #10203638}
.modal h2{font-size:16px}.modal p{font-size:12px}.modal-footer{margin-top:18px}
.modal input,.modal textarea{padding:10px;border-radius:7px}
.mode-demo{border-radius:6px;font-size:10px;background:#edf2fa;bottom:12px;right:12px}
.toast{border-radius:8px;padding:11px 14px;font-size:12px}
/* The auth experience uses the same visual rhythm rather than an oversized marketing landing page. */
.login-stage{grid-template-columns:minmax(350px,.85fr) 1fr}
.login-brand-side{background:linear-gradient(160deg,#e8edf6,#f5f7fb);padding:clamp(30px,5vw,70px)}
.brand-title{font-size:17px;color:#334865}.brand-title .logo-tile{width:36px;height:36px;border-radius:9px}
.login-eyebrow{font-size:10px;letter-spacing:1.1px}.login-hero h1{font-size:clamp(28px,3.2vw,44px);line-height:1.35;letter-spacing:-1px}.login-hero h1 span{color:#5274b4}
.login-hero p{font-size:13px;line-height:1.75;margin-top:16px}
.login-illustration{height:150px}.illustration-bubble{border-radius:10px;padding:11px 13px;box-shadow:0 15px 30px #788db31c}
.illustration-bubble.a{height:58px;width:242px;top:20px}.illustration-bubble.b{height:58px;width:230px;top:87px}
.login-form{width:min(360px,100%)}.login-form h2{font-size:25px;letter-spacing:-.5px}.login-form .lead{margin-bottom:20px}
.login-form .field input{height:41px}.login-form .button.full{margin-top:21px;padding:12px}
.auth-safety{margin-top:28px}
@media (min-width:1450px){
  .shell{grid-template-columns:58px 312px minmax(0,1fr)}
  .side-top{padding:20px 14px 7px}.conversation-list,.contacts-list{padding:0 6px 12px}
  .chat-header{padding:0 27px}
}
@media (max-width:1000px) and (min-width:761px){
  .shell{grid-template-columns:52px 266px minmax(0,1fr)}
  .rail{padding-left:4px;padding-right:4px}
  .chat-header{padding:0 16px}.chat-area{padding:17px 19px}.composer-wrap{padding:0 17px 10px}
}
@media (max-width:760px){
  body{background:#f7f8fa}
  .shell{display:block}
  .side{width:100%;height:100%;padding-bottom:calc(56px + env(safe-area-inset-bottom));background:#fff}
  .side-top{padding:19px 15px 7px;background:#fff}
  .side-title{font-size:20px;font-weight:700}.side-heading{min-height:32px}
  .searchbox{margin-top:12px}.searchbox input{height:35px}
  .tabs{padding-top:9px}.tab{font-size:12px;padding:6px 12px}
  .section-meta{padding:11px 16px 7px}
  .conversation-list,.contacts-list{padding:0 7px 14px}
  .conversation{height:66px;padding:7px 8px;gap:11px;border-radius:7px}
  .conversation .avatar.m{width:42px;height:42px}
  .conv-name{font-size:13.5px}.preview-text{font-size:11.5px}
  .mobile-bar{height:calc(56px + env(safe-area-inset-bottom));padding:5px 10px env(safe-area-inset-bottom);background:#fff;border-top:1px solid #edf0f3}
  .mobile-bar button{min-width:56px;gap:2px;font-size:10px;color:#8995a5}
  .mobile-bar button.active{color:#4b75c9}.mobile-bar .ico{width:19px;height:19px}
  .shell.has-chat .content{display:flex}
  .chat-header{height:55px;padding:0 10px 0 8px;background:#fff}
  .mobile-back{width:31px;height:31px;margin-right:-4px}
  .chat-who{gap:7px}.chat-who .avatar{width:32px;height:32px}
  .chat-title{font-size:14px}.chat-actions{gap:0}.chat-actions .icon-btn{width:32px;height:32px}
  .chat-area{padding:14px 11px 8px;background:#f4f5f7}
  .chat-area .date-divider{margin-bottom:16px}
  .message-line{margin-bottom:14px;gap:7px}
  .message-line>.avatar{width:32px;height:32px}.msg-content{max-width:79%}
  .bubble{padding:8px 10px;font-size:13px;line-height:1.58}
  .composer-wrap{padding:0 11px calc(5px + env(safe-area-inset-bottom))}
  .composer{flex-direction:row;align-items:center;min-height:48px}
  .composer textarea{flex:1;min-height:34px;max-height:114px;background:#f2f4f7;border:1px solid #e4e8ee;border-radius:7px;padding:7px 9px;line-height:1.45;font-size:13px}
  .composer textarea:focus{background:white;border-color:#a9bfe8;outline:none}
  .composer-actions{min-height:0;margin:0 0 0 6px;gap:4px;flex:none}
  .composer-tools{gap:1px}.composer-tools .icon-btn{width:28px;height:31px}
  .composer-hint{display:none}.send-btn{width:30px;height:31px}
  #emoji-tray:not(:empty){position:absolute;bottom:100%;left:0;right:0;background:#fff;border-top:1px solid #e7eaee;padding:6px 12px}
  .empty-art{margin-bottom:-10px}
  .screen-page{padding:27px 17px 80px}.page-title{font-size:22px}.settings-card{padding:17px;margin-top:13px}
  .login-stage{grid-template-columns:1fr}
  .login-brand-side{min-height:92px;padding:17px 21px}
  .login-panel{padding:33px 24px}.login-form h2{font-size:25px}
  .mode-demo{bottom:calc(60px + env(safe-area-inset-bottom));right:9px}
  .shell.has-chat .mode-demo{display:none}
}
@media (max-width:370px){
  .chat-actions .icon-btn[data-action="noop"]{display:none}
  .composer-tools .icon-btn{width:26px}.composer-wrap{padding-left:8px;padding-right:8px}
  .conversation .avatar.m{width:39px;height:39px}
}
@media (prefers-reduced-motion:reduce){
  *,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important}
}
