.circle-container{
  max-width:980px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 380px 1fr;
  gap:0;
  background: rgba(255,255,255,0.18);
  border:1px solid rgba(0,0,0,0.20);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
  overflow:hidden;
}

.circle-left{
  padding:12px;
  border-right:1px solid rgba(0,0,0,0.20);
  background: rgba(255,255,255,0.22);

  height:640px;
  overflow:auto;
}

.circle-chat{
  background: rgba(255,255,255,0.22);
  display:flex;
  padding:12px;

  height:640px;
  overflow:hidden;
}

.person{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.avatar{
  width:28px;
  height:28px;
  border-radius:50%;
  background: rgba(0,0,0,0.18);
  flex-shrink:0;
}

.person-meta{ min-width:0; }

.person-name{
  font-size:11.5px;
  font-weight:700;
  color: rgba(0,0,0,0.62);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:260px;
}

.person-sub{
  margin-top:2px;
  font-size:10px;
  color: rgba(0,0,0,0.48);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:260px;
}

.person-dot{
  opacity:0.6;
  padding:0 4px;
}

.vol-card{
  background: linear-gradient(to right, #22799C, #b2b2b2);
  border:1px solid rgba(255,255,255,0.22);
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);
  padding:12px;
  margin-bottom:12px;
}

.vol-title{
  font-size:14px;
  font-weight:800;
  color: rgba(255,255,255,0.92);
  letter-spacing:0.2px;
}

.vol-sub{
  margin-top:6px;
  font-size:10.5px;
  color: rgba(255,255,255,0.82);
}

.vol-toggle input{ display:none; }

.vol-track{
  width:64px;
  height:22px;
  border-radius:999px;
  position:relative;
  background:#ffffff;
  border:1px solid rgba(0,0,0,0.18);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:0 10px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.vol-text{
  font-size:0;
  line-height:1;
}
.vol-text::before{
  content:"Off";
  font-size:10px;
  font-weight:800;
  color: rgba(0,0,0,0.55);
}

.vol-knob{
  position:absolute;
  top:2px;
  left:2px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#ffffff;
  border:1px solid rgba(0,0,0,0.10);
  box-shadow: 0 8px 16px rgba(0,0,0,0.18);
  transition: left 0.18s ease;
}

.vol-toggle input:checked + .vol-track{
  background:#2a7aa0;
  border-color: rgba(42,122,160,0.85);
  justify-content:flex-start;
}

.vol-toggle input:checked + .vol-track .vol-text::before{
  content:"On";
  color:#ffffff;
}

.vol-toggle input:checked + .vol-track .vol-knob{
  left:44px;
}

.vol-row{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background: rgba(255,255,255,0.18);
  border:1px solid rgba(255,255,255,0.22);
  padding:10px;
}

.vol-row .person-name{
  color: rgba(255,255,255,0.92);
  max-width:210px;
}
.vol-row .person-dot{ opacity:0.75; }

.vol-btn{
  height:22px;
  padding:0 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:700;
  color: rgba(0,0,0,0.55);
  text-decoration:none;
  background: rgba(255,255,255,0.86);
  border:1px solid rgba(0,0,0,0.18);
  border-radius:999px;
}

.vol-btn:hover{ background: rgba(255,255,255,0.96); }

.circle-card{
  background: rgba(255,255,255,0.78);
  border:1px solid rgba(0,0,0,0.08);
  border-radius:10px;
  padding:12px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.circle-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.circle-title{
  font-size:13px;
  font-weight:700;
  color: rgba(0,0,0,0.60);
}

.circle-sub{
  margin-top:2px;
  font-size:10.5px;
  color: rgba(0,0,0,0.45);
  line-height:1.25;
  max-width:220px;
}

.circle-actions{
  display:flex;
  gap:8px;
  flex-shrink:0;
}

.btn-square{
  height:24px;
  padding:0 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:700;
  color: rgba(0,0,0,0.55);
  text-decoration:none;
  background: rgba(255,255,255,0.90);
  border:1px solid rgba(0,0,0,0.18);
  border-radius:6px;
}

.btn-square.ghost{ background: rgba(255,255,255,0.55); }
.btn-square:hover{ background: rgba(255,255,255,0.98); }

.circle-search-wrap{ margin-bottom:10px; }

.circle-search{
  width:100%;
  height:28px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.16);
  background: rgba(255,255,255,0.85);
  padding:0 12px;
  font-size:11px;
  outline:none;
}

.circle-search:focus{
  border-color: rgba(42,122,160,0.55);
  box-shadow: 0 0 0 3px rgba(42,122,160,0.18);
}

.circle-list{
  display:flex;
  flex-direction:column;
}

.circle-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 6px;
  border-top:1px solid rgba(0,0,0,0.10);
}

.circle-item:first-child{ border-top:none; }

.status{
  font-size:10px;
  font-weight:600;
  color: rgba(0,0,0,0.42);
  white-space:nowrap;
  width:70px;
  text-align:right;
}

.chat-card{
  width:100%;
  display:flex;
  flex-direction:column;
  background: rgba(255,255,255,0.52);
  border:1px solid rgba(0,0,0,0.18);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
  overflow:hidden;

  height:100%;
  min-height:0;
}

.chat-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-bottom:1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.62);
}

.chat-person{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.chat-avatar{
  width:34px;
  height:34px;
  border-radius:50%;
  background: rgba(0,0,0,0.18);
  flex-shrink:0;
}

.chat-name{
  font-size:13px;
  font-weight:800;
  color: rgba(0,0,0,0.65);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:320px;
}

.chat-status{
  margin-top:2px;
  font-size:10.5px;
  color: rgba(0,0,0,0.45);
}

.chat-actions{
  display:flex;
  gap:8px;
}

.chat-menu{ position:relative; }

.chat-menu-dropdown{
  position:absolute;
  top:40px;
  right:0;
  min-width:140px;
  background: rgba(255,255,255,0.95);
  border:1px solid rgba(0,0,0,0.14);
  border-radius:10px;
  box-shadow: 0 14px 26px rgba(0,0,0,0.18);
  overflow:hidden;
  z-index:50;
}

.chat-menu-item{
  display:block;
  padding:10px 12px;
  font-size:12px;
  font-weight:700;
  color: rgba(0,0,0,0.62);
  text-decoration:none;
}

.chat-menu-item:hover{
  background: rgba(42,122,160,0.14);
}

.chat-icon-btn{
  width:30px;
  height:30px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.75);
  cursor:pointer;
}

.chat-icon-btn:hover{
  background: rgba(255,255,255,0.95);
}

.chat-body{
  flex:1;
  padding:14px 12px;
  background: rgba(255,255,255,0.40);
  overflow:auto;

  min-height:0;
}

.chat-date{
  text-align:center;
  font-size:10px;
  color: rgba(0,0,0,0.40);
  margin-bottom:10px;
}

.msg{
  display:flex;
  flex-direction:column;
  margin-bottom:10px;
  max-width:78%;
}

.msg .bubble{
  padding:10px 12px;
  border-radius:14px;
  font-size:12px;
  line-height:1.5;
  border:1px solid rgba(0,0,0,0.10);
}

.msg .msg-time{
  margin-top:4px;
  font-size:10px;
  color: rgba(0,0,0,0.40);
}

.msg-them{ align-items:flex-start; }
.msg-them .bubble{
  background: rgba(255,255,255,0.78);
  color: rgba(0,0,0,0.68);
  border-top-left-radius:8px;
}

.msg-me{
  margin-left:auto;
  align-items:flex-end;
}
.msg-me .bubble{
  background: rgba(42,122,160,0.18);
  color: rgba(0,0,0,0.68);
  border-top-right-radius:8px;
}

.chat-foot{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-top:1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.62);
}

.chat-attach{
  width:32px;
  height:32px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.75);
  cursor:pointer;
}

.chat-input{
  flex:1;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.16);
  background: rgba(255,255,255,0.86);
  padding:0 12px;
  font-size:12px;
  outline:none;
}

.chat-input:focus{
  border-color: rgba(42,122,160,0.55);
  box-shadow: 0 0 0 3px rgba(42,122,160,0.18);
}

.chat-send{
  height:34px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.16);
  background:#0f465c;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.chat-send:hover{ opacity:0.92; }

@media (max-width: 920px){
  .circle-container{ grid-template-columns: 1fr; }
  .circle-left{
    border-right:none;
    border-bottom:1px solid rgba(0,0,0,0.20);
  }

  .circle-chat{
    height:70vh;
    min-height:420px;
  }
}

.circle-item.is-active{
  background: rgba(255,255,255,0.22);
  border-radius: 10px;
}

#chatBody{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:16px 16px 18px;
  overflow:auto;

  min-height:0;
}

.chat-date{
  align-self:center;
  font-size:11px;
  font-weight:800;
  letter-spacing:.4px;
  opacity:.7;
  padding:6px 10px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:999px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(6px);
  margin:4px 0 8px;
}

.chat-connected{
  align-self:center;
  width:min(520px, 92%);
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
  padding:12px 14px;
  margin:4px 0 2px;
  text-align:center;
}

.chat-connected .cc-title{
  font-size:13px;
  font-weight:900;
  letter-spacing:.2px;
  margin-bottom:4px;
  color: rgba(0,0,0,.78);
}

.chat-connected .cc-sub{
  font-size:12px;
  font-weight:700;
  color: rgba(0,0,0,.58);
}

.chat-row{
  display:flex;
  width:100%;
  align-items:flex-end;
}

.chat-row.them{ justify-content:flex-start; }
.chat-row.me{ justify-content:flex-end; }

.chat-bubble{
  max-width:min(560px, 82%);
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
  position:relative;
  overflow:hidden;
}

.chat-row.them .chat-bubble{
  background: rgba(255,255,255,.78);
  border-top-left-radius:10px;
}

.chat-row.me .chat-bubble{
  background: rgba(15,70,92,.12);
  border-top-right-radius:10px;
}

.chat-text{
  font-size:13px;
  line-height:1.35;
  font-weight:700;
  color: rgba(0,0,0,.78);
  word-wrap: break-word;
  white-space: pre-wrap;
}

.chat-time{
  margin-top:6px;
  font-size:11px;
  font-weight:800;
  opacity:.65;
  text-align:right;
}

.chat-row + .chat-row{ margin-top:2px; }

.chat-compose, #chatCompose{
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
}

.chat-compose textarea,
.chat-compose input,
#chatCompose textarea,
#chatCompose input{
  border:1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding:10px 12px;
  font-weight:700;
  outline:none;
}

.chat-compose textarea:focus,
.chat-compose input:focus,
#chatCompose textarea:focus,
#chatCompose input:focus{
  border-color: rgba(15,70,92,.35);
  box-shadow: 0 0 0 4px rgba(15,70,92,.14);
}

.vol-empty{
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
  margin: 10px 0;
}

.vol-empty-ico{
  width:44px;
  height:44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: #0f465c;
  background: rgba(15,70,92,0.10);
  border: 1px solid rgba(15,70,92,0.18);
}

.vol-empty-title{
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: rgba(0,0,0,0.78);
}

.vol-empty-sub{
  font-weight: 700;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(0,0,0,0.55);
  max-width: 340px;
}

.vol-empty-btn{
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.85);
  font-weight: 900;
  font-size: 12px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}

.vol-empty-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.95);
}

.vol-empty-btn:active{
  transform: translateY(0px);
}

.vol-card{
  position: relative;
}

.vol-card .vol-title{
  padding-right: 90px;
}

.vol-card .vol-toggle{
  position: absolute;
  top: 14px;
  right: 14px;
}

.circle-nav{
  display:flex;
  gap:8px;
  margin: 0 0 12px;
  padding: 6px;
  border:1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.55);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

.circle-nav-btn{
  flex:1;
  height:28px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.70);
  font-size:11px;
  font-weight:900;
  color: rgba(0,0,0,0.60);
  cursor:pointer;
}

.circle-nav-btn:hover{
  background: rgba(255,255,255,0.92);
}

.circle-nav-btn.is-active{
  background: rgba(15,70,92,0.12);
  border-color: rgba(15,70,92,0.25);
  color: rgba(0,0,0,0.72);
}

.circle-panel{ display:none; }
.circle-panel.is-active{ display:block; }