:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f8f8fa;background:#101115;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100dvh}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}.hide{display:none!important}#app{min-height:100dvh}.calc-page{min-height:100dvh;background:radial-gradient(ellipse at 50% -10%,#24252c 0,#101115 56%);display:flex;align-items:center;justify-content:center;padding:env(safe-area-inset-top) 12px env(safe-area-inset-bottom)}.calculator{width:min(100%,410px);display:flex;flex-direction:column;gap:15px;padding:18px 12px 26px}.calc-top{display:flex;justify-content:space-between;align-items:center;color:#85878e;font-size:13px;letter-spacing:1.6px;padding:0 10px}.calc-top b{font-weight:600;color:#eee;letter-spacing:2px}.calc-screen{height:clamp(150px,27dvh,245px);display:flex;align-items:end;justify-content:end;padding:12px 8px 27px;overflow:hidden}.calc-number{font-size:clamp(57px,14vw,86px);font-weight:300;letter-spacing:-3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-variant-numeric:tabular-nums}.keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,3vw,16px)}.key{border:0;aspect-ratio:1;border-radius:50%;background:#303139;color:#fff;font-size:clamp(27px,8vw,35px);font-weight:400;transition:transform .12s,filter .12s;touch-action:manipulation}.key:active{transform:scale(.93);filter:brightness(1.35)}.key.func{background:#aaaeb6;color:#171820}.key.op{background:#f39b34}.key.wide{grid-column:span 2;aspect-ratio:auto;border-radius:90px;text-align:left;padding-left:33px}.calc-foot{text-align:center;font-size:12px;color:#62656f;margin-top:12px}.chat-app{min-height:100dvh;background:#10131b;display:flex;flex-direction:column}.chat-app header{padding:calc(16px + env(safe-area-inset-top)) 18px 16px;background:#171b25;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #2c3241}.brand{font-weight:800;font-size:21px;letter-spacing:-.8px}.brand span{color:#63dcc4}.tiny{font-size:12px;color:#9aa6b9}.pill{background:#242b38;border:1px solid #394455;padding:9px 13px;border-radius:12px;color:#eff6f5;font-size:13px}.chat-layout{width:min(100%,1040px);margin:auto;flex:1;display:grid;grid-template-columns:300px minmax(0,1fr);min-height:0;height:calc(100dvh - 78px)}.sidebar{border-right:1px solid #2d3544;padding:16px;overflow:auto}.section-title{font-size:13px;text-transform:uppercase;letter-spacing:1.5px;color:#9aa8b8;margin:20px 0 10px}.contact{display:flex;text-align:left;width:100%;gap:12px;align-items:center;padding:12px;margin:5px 0;border:0;background:transparent;color:#f9f9fc;border-radius:14px}.contact.active,.contact:hover{background:#252e3e}.avatar{height:43px;width:43px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#47c0c6,#547bcb);font-weight:800;flex:none}.contact-main{min-width:0;flex:1}.contact-main strong{display:block}.contact-main small{color:#95a3b2}.panel{display:flex;flex-direction:column;min-height:0}.panel-head{padding:19px 22px;border-bottom:1px solid #2d3544;font-weight:750}.messages{flex:1;overflow:auto;padding:25px 20px;display:flex;flex-direction:column;gap:12px;min-height:100px;background:radial-gradient(circle at 100% 100%,#172735,#10131b 45%)}.bubble{max-width:min(83%,460px);padding:12px 15px;border-radius:18px 18px 18px 5px;background:#293343;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}.bubble.mine{align-self:flex-end;background:linear-gradient(125deg,#147f78,#24637b);border-radius:18px 18px 5px 18px}.bubble small{display:block;opacity:.7;text-align:right;margin-top:6px;font-size:10px}.composer{display:flex;padding:14px 18px calc(14px + env(safe-area-inset-bottom));gap:10px;border-top:1px solid #2b3542;background:#171b25}.composer input,.field{background:#232a37;border:1px solid #3d495b;border-radius:12px;color:#fff;padding:13px 14px;outline:none;min-width:0}.composer input:focus,.field:focus{border-color:#57c8b7}.composer input{flex:1}.primary{border:0;background:#36b6a4;color:#081718;font-weight:750;padding:12px 16px;border-radius:12px}.screen-center{display:grid;place-items:center;flex:1;padding:20px;color:#9fb0c0;text-align:center}.screen-center b{color:#f1f5fc;font-size:20px}.screen-center .empty-icon{font-size:56px;display:block;margin-bottom:12px}.modal-wrap{position:fixed;inset:0;background:#05080dc9;backdrop-filter:blur(9px);display:grid;place-items:center;z-index:10;padding:20px}.modal{width:min(100%,430px);padding:28px;background:#1b2230;border:1px solid #384255;border-radius:24px;box-shadow:0 20px 90px #0008}.modal h2{margin:0 0 9px}.modal p{color:#aab4c6;line-height:1.5;font-size:14px}.stack{display:flex;flex-direction:column;gap:12px}.stack .field{width:100%}.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:15px;flex-wrap:wrap}.linkbtn{background:transparent;color:#68d9c7;border:0;padding:10px}.notice{font-size:12px;color:#b7a67d;margin:8px 0}.danger{color:#fb9899}.pending{padding:10px;background:#283446;border-radius:12px;margin:8px 0}.pending .actions{justify-content:flex-start;margin:6px 0}.hint{font-size:12px;color:#8492a7}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#303b4e;color:#fff;padding:12px 18px;border-radius:14px;z-index:30;max-width:90%;text-align:center}.status{font-size:12px;color:#a9bbc5;padding:12px}.searchrow{display:flex;gap:7px}.searchrow input{width:100%;min-width:0}.searchrow button{flex:none}@media(max-width:670px){.chat-layout{display:flex;height:calc(100dvh - 78px)}.sidebar{width:100%;border:0}.panel{width:100%}.chat-layout.in-conversation .sidebar{display:none}.chat-layout:not(.in-conversation) .panel{display:none}.chat-app header{padding-top:calc(14px + env(safe-area-inset-top))}.calculator{padding-bottom:16px}.calc-screen{height:clamp(110px,25dvh,235px)}}@media(max-height:670px){.calc-screen{height:100px}.key{aspect-ratio:1.3;font-size:25px}.keys{gap:7px}}

.attach-button{border:0;background:transparent;color:inherit;font-size:1.35rem;cursor:pointer;padding:.5rem}.attachment-link{border:1px solid currentColor;border-radius:9px;padding:9px;background:transparent;color:inherit;cursor:pointer;text-align:left;overflow-wrap:anywhere}

/* v0.3 calculator tactile feedback and clean header */
.calc-top{justify-content:center;font-size:13px;letter-spacing:1px;text-transform:none;color:#aeb6c6}
.calc-screen{flex-direction:column;align-items:flex-end;justify-content:flex-end;gap:8px}
.calc-preview{font-size:18px;color:#848b98;min-height:24px}
.calc-number{font-size:clamp(50px,12vw,80px);letter-spacing:-2px}
.key{box-shadow:inset 0 -3px 0 #0003,0 3px 9px #0003;transition:transform .08s ease,filter .08s ease,box-shadow .08s ease;-webkit-tap-highlight-color:transparent;user-select:none}
.key:active,.key.key-pressed{transform:scale(.91);filter:brightness(1.32);box-shadow:inset 0 3px 8px #0005}
.panel-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.panel-head strong{flex:1}
.sidebar>.pill{display:block;width:100%;margin:7px 0;text-align:left}
@media(prefers-reduced-motion:reduce){.key{transition:none}}

/* Stable touch targets and emoji selector: UI hotfix */
.key{touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;}
.key:active,.key.key-pressed{transform:scale(.91);filter:brightness(1.35);}
.composer{position:relative;align-items:center;}
.emoji-toggle{background:#2b3444;border:1px solid #3f5262;border-radius:11px;color:#fff;font-size:23px;min-width:43px;min-height:43px;cursor:pointer;}
.emoji-palette{position:absolute;bottom:100%;left:12px;right:12px;z-index:7;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px;max-height:210px;overflow-y:auto;padding:10px;background:#232c3b;border:1px solid #455366;border-radius:14px;box-shadow:0 12px 26px #0007;}
.emoji-palette.hide{display:none!important;}
.emoji-choice{border:0;background:transparent;border-radius:8px;font-size:25px;min-height:43px;cursor:pointer;}
.emoji-choice:active{background:#46516a;}
@media(max-width:560px){.emoji-palette{grid-template-columns:repeat(6,minmax(0,1fr))}.composer{gap:6px}.emoji-toggle{min-width:38px}}

/* CalcChat v0.8 */
.keys{
 grid-template-columns:repeat(20,minmax(0,1fr))!important;
}
.keys>.key{
 grid-column:span 5!important;
 min-width:0;
}
.keys>.key.top5{
 grid-column:span 4!important;
}
.keys>.key.wide{
 grid-column:span 10!important;
}
.calc-number{
 overflow:hidden!important;
 text-overflow:clip!important;
 white-space:nowrap!important;
 min-width:0!important;
 max-width:100%;
}


/* CalcChat v0.10 - touch hover davranisi */
@media (hover: none) and (pointer: coarse) {
  .key:hover:not(.key-pressed) {
    transform: none;
    filter: none;
  }
}


/* CalcChat v0.11a: chat fills the viewport, composer does not scroll away */
html, body { height:100%; overflow:hidden; }
#app { height:100dvh; min-height:0; overflow:hidden; }
.chat-app { height:100dvh; min-height:0; overflow:hidden; }
.chat-app > header { flex:0 0 auto; }
.chat-layout { flex:1 1 auto; min-height:0; height:auto; max-height:none; margin:0 auto; overflow:hidden; }
.sidebar { min-height:0; overflow-y:auto; }
.panel { min-height:0; height:100%; overflow:hidden; }
.messages { min-height:0; flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain; }
.composer { flex:0 0 auto; }
@media (max-width:670px) {
 .chat-layout { height:auto; min-height:0; }
 .panel { height:100%; }
}
/* Calculator must remain usable despite fixed chat viewport */
.calc-page { height:100dvh; min-height:0; overflow-y:auto; }


/* CALCCHAT_RESPONSIVE_V21 */
.calc-page {
  width:100%;
  height:100dvh;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px 12px;
  box-sizing:border-box;
}

.calculator {
  width:min(100%,340px);
  max-width:340px;
  min-width:0;
  flex:0 0 auto;
  gap:12px;
  padding:14px 6px 20px;
  margin:0 auto;
}

.calc-screen {
  height:clamp(115px,21dvh,180px);
  min-height:115px;
  flex-shrink:0;
}

.keys {
  display:grid;
  grid-template-columns:repeat(20,minmax(0,1fr)) !important;
  gap:8px;
  align-items:stretch;
}

.keys > .key {
  grid-column:span 5 !important;
  width:100%;
  min-width:0;
  height:auto !important;
  min-height:0;
  aspect-ratio:1 / 1 !important;
  border-radius:50%;
  padding:0;
  line-height:1;
  font-size:clamp(20px,5vw,29px);
}

.keys > .key.top5 {
  grid-column:span 4 !important;
  font-size:clamp(17px,4.5vw,23px);
}

.keys > .key.wide {
  grid-column:span 10 !important;
  aspect-ratio:auto !important;
  border-radius:999px;
  text-align:left;
  padding-left:24px;
}

@media (max-height:650px) {
  .calc-page {
    align-items:safe flex-start;
  }
  .calc-screen {
    height:115px;
  }
}

/* CalcChat encrypted attachment viewer */
.attachment-viewer{position:fixed;inset:0;z-index:80;background:#060a0ff2;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:15px;gap:12px}
.attachment-viewer-controls{width:min(100%,900px);display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:white}
.attachment-viewer-controls strong{flex:1;min-width:120px;overflow-wrap:anywhere}
.attachment-viewer button,.attachment-save{border:0;background:#39b9a8;color:#071619;border-radius:10px;padding:9px 14px;font:inherit;text-decoration:none;cursor:pointer}
.attachment-viewer img{max-width:95vw;max-height:80dvh;object-fit:contain}
.attachment-viewer iframe{width:min(95vw,900px);height:78dvh;background:white;border:0}

.attachment-thumb{display:block;width:min(100%,240px);max-height:180px;object-fit:cover;border-radius:10px;margin-top:7px;cursor:zoom-in}


/* CALCCHAT_UI_V21 */

/* Attachment UX */
.attachment-inline-image{
  display:block;
  border:0;
  background:transparent;
  padding:0;
  margin-top:8px;
  cursor:zoom-in;
  max-width:min(100%,260px);
}
.attachment-thumb-loading{
  display:inline-block;
  margin:8px 0 6px;
  font-size:12px;
  color:#c6d1dd;
  opacity:.82;
}
.attachment-thumb{
  display:block;
  width:min(100%,260px);
  max-height:220px;
  object-fit:cover;
  border-radius:12px;
  margin:0;
}
.attachment-viewer{
  position:fixed;
  inset:0;
  z-index:80;
  background:#060a0ff2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:20px;
  gap:12px;
}
.attachment-viewer-controls{
  position:absolute;
  top:16px;
  right:16px;
  width:auto;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
  color:white;
}
.attachment-icon-button,
.attachment-save{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:0;
  background:#39b9a8;
  color:#071619;
  border-radius:999px;
  font-size:22px;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 8px 24px #0005;
}
.attachment-viewer img{
  max-width:min(95vw,980px);
  max-height:88dvh;
  object-fit:contain;
  border-radius:14px;
}
.attachment-viewer iframe{
  width:min(95vw,980px);
  height:82dvh;
  background:white;
  border:0;
  border-radius:14px;
}

/* Mobile calculator re-balance: Chrome düzgün, Opera da bozulmasın */
@media (max-width:670px){
  .calc-page{
    padding:env(safe-area-inset-top) 12px calc(12px + env(safe-area-inset-bottom));
    align-items:center;
    justify-content:center;
  }
  .calculator{
    width:min(100%,410px);
    max-width:410px;
    padding:18px 12px 22px;
    gap:14px;
    margin:0 auto;
  }
  .calc-screen{
    height:clamp(120px,24dvh,210px);
    min-height:120px;
    padding:10px 6px 20px;
  }
  .calc-number{
    font-size:clamp(46px,13vw,74px)!important;
    letter-spacing:-2px;
  }
  .keys{
    grid-template-columns:repeat(20,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .keys>.key{
    grid-column:span 5!important;
    width:100%;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    aspect-ratio:1/1!important;
    border-radius:50%;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:clamp(24px,7vw,34px)!important;
  }
  .keys>.key.top5{
    grid-column:span 4!important;
    aspect-ratio:1/1!important;
    height:auto!important;
    max-height:none!important;
    font-size:clamp(18px,4.8vw,24px)!important;
  }
  .keys>.key.wide{
    grid-column:span 10!important;
    aspect-ratio:auto!important;
    border-radius:999px;
    justify-content:flex-start;
    padding-left:26px;
  }
}
@media (max-width:400px){
  .calculator{padding-inline:8px;}
  .keys{gap:8px!important;}
  .keys>.key{font-size:clamp(22px,6.8vw,30px)!important;}
  .keys>.key.top5{font-size:clamp(16px,4.5vw,21px)!important;}
}


/* CALCCHAT_MOBILE_VIEWPORT_V26 */
@media (max-width:670px) {
 .chat-app.cc-mobile-viewport {
  position:fixed;
  left:0;
  right:0;
  top:var(--cc-vv-top,0px);
  width:100%;
  height:var(--cc-vv-height,100dvh);
  min-height:0;
  max-height:none;
  overflow:hidden;
 }

 .chat-app.cc-mobile-viewport > header {
  flex:0 0 auto;
 }

 .chat-app.cc-mobile-viewport .chat-layout {
  flex:1 1 auto;
  min-height:0;
  height:auto;
  overflow:hidden;
 }

 .chat-app.cc-mobile-viewport .panel {
  flex:1 1 auto;
  min-height:0;
  height:100%;
  overflow:hidden;
 }

 .chat-app.cc-mobile-viewport .messages {
  flex:1 1 auto;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
 }

 .chat-app.cc-mobile-viewport .composer {
  flex:0 0 auto;
  min-width:0;
 }

 .chat-app.cc-mobile-viewport .composer input {
  min-width:0;
  font-size:16px;
 }

 .chat-app.cc-mobile-viewport .bubble {
  overflow-wrap:anywhere;
 }
}

/* CALCCHAT_UPLOAD_PROGRESS_V29 */
.composer .upload-progress {
 position:absolute;
 bottom:calc(100% + 7px);
 left:12px;
 right:12px;
 width:max-content;
 max-width:calc(100% - 24px);
 padding:8px 13px;
 border:1px solid #426273;
 background:#213345;
 color:#e8f7f4;
 border-radius:12px;
 font-size:13px;
 font-weight:600;
 z-index:5;
 box-shadow:0 6px 20px #0005;
 pointer-events:none;
}

/* CALCCHAT_UNREAD_BADGE_V31 */
.contact{position:relative}
.contact .cc-unread-badge{flex:none;margin-left:auto;min-width:23px;height:23px;padding:0 5px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#39b9a8;color:#061919;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}

/* CALCCHAT_HISTORY_PAGING_V33 */
.cc-history-latest{align-self:center;margin:12px auto 4px;border:1px solid #426273;background:#24394a;color:#effffb;padding:9px 16px;border-radius:999px;font:inherit;font-size:13px;cursor:pointer;flex:none}
.messages{overflow-anchor:auto;}

/* CALCCHAT_DIALOGS_V38_SAFE */
.cc-dialog-wrap{
 z-index:10000;
 padding:16px;
}
.cc-dialog{
 width:min(100%,420px);
 max-height:90dvh;
 overflow-y:auto;
 background:#1b2330;
 color:#f5f8fc;
 border:1px solid #435167;
 border-radius:22px;
 box-shadow:0 25px 85px rgba(0,0,0,.65);
 padding:26px;
}
.cc-dialog-symbol{
 display:grid;
 place-items:center;
 width:48px;
 height:48px;
 margin-bottom:17px;
 border-radius:14px;
 background:#2a3948;
 color:#67dfcd;
 font-size:26px;
 font-weight:800;
}
.cc-dialog h2{
 margin:0 0 12px;
 font-size:21px;
 color:#f5f8fc;
}
.cc-dialog p{
 margin:0;
 color:#b8c5d5;
 line-height:1.65;
 font-size:14px;
}
.cc-dialog-actions{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:10px;
 margin-top:24px;
}
.cc-dialog-actions button{
 min-height:46px;
 border-radius:12px;
}
.cc-dialog-cancel{
 background:#2b3648;
 color:#fff;
}
.cc-dialog-approve{
 background:#35bba9;
 color:#071b19;
}
.cc-dialog-danger{
 background:#d97d7d;
 color:#230e0e;
}
.cc-dialog button:focus-visible{
 outline:2px solid #74e4d1;
 outline-offset:3px;
}
@media(max-width:400px){
 .cc-dialog{padding:20px;}
}

/* CALCCHAT_PUSH_PREFS_V43 */
.cc-push-choice{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #415166;border-radius:12px;color:#e8f1f8;cursor:pointer;}
.cc-push-choice input{width:20px;height:20px;accent-color:#42bdae;flex-shrink:0;}

/* CALCCHAT_CALLS_V45 */
.cc-call-overlay{position:fixed;z-index:20000;inset:0;background:#080d16e8;display:grid;place-items:center;padding:14px;}
.cc-call-card{width:min(100%,490px);max-height:96dvh;overflow:auto;background:#192333;color:#eff6fb;border:1px solid #40566b;border-radius:24px;padding:22px;text-align:center;box-shadow:0 22px 80px #000a;}
.cc-call-peer{color:#6bdece;font-weight:600;margin:7px 0 14px;}
.cc-call-card video{width:100%;max-height:52dvh;object-fit:contain;background:#0a111b;border-radius:14px;margin-bottom:8px;}
.cc-call-card video.cc-call-local{width:30%;max-height:110px;display:block;margin-left:auto;}
.cc-call-card audio{width:100%;}
.cc-call-sound{font-size:70px;margin:22px auto;}
.cc-call-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:16px;}
.cc-call-hangup{background:#dd6b76;color:#1c0a0a;min-height:46px;}

/* CALCCHAT_MOBILE_ICONS_V49 */
@media (max-width:670px){
 .cc-chat-peer-title{font-size:13px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .panel-head.cc-chat-actions{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;padding:8px 10px!important;align-items:center!important}
 .panel-head.cc-chat-actions button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:36px!important;min-height:36px!important;min-width:0!important;padding:0!important;margin:0!important;border-radius:9px!important;font-family:Arial,sans-serif!important;font-size:20px!important;font-weight:normal!important;line-height:1!important;white-space:nowrap!important}
 .panel-head.cc-chat-actions button:nth-child(4),.panel-head.cc-chat-actions button:nth-child(5){color:#e9a0a0!important}
}
@media(max-width:380px){
 .panel-head.cc-chat-actions{gap:5px!important;padding:7px 8px!important}
 .panel-head.cc-chat-actions button{height:34px!important;min-height:34px!important;font-size:18px!important}
 .cc-chat-peer-title{max-width:140px}
}


/* CALCCHAT_HEADER_ACTIONS_V50 */
/* Ust header ve sohbet aksiyonlarini mobil/masaustu icin toparla */

.chat-app > header{
  display:flex;
  align-items:center;
  gap:12px;
}

.chat-app > header > :first-child{
  margin-right:auto;
  min-width:0;
}

.chat-app > header .tiny{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* MASAUSTU */
@media (min-width:671px){
  .chat-app > header{
    justify-content:flex-start;
  }

  .chat-app > header > button{
    flex:0 0 auto;
  }

  .panel-head{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:nowrap;
  }

  /* isim logo altinda kalacak, burada tekrar gosterme */
  .panel-head strong{
    display:none !important;
  }

  .panel-head button{
    min-height:40px;
    height:40px;
    width:auto !important;
    min-width:42px;
    padding:0 14px;
    border-radius:12px;
    font-size:14px !important;
    line-height:1;
    white-space:nowrap;
  }

  .panel-head button:nth-of-type(1){
    width:42px !important;
    min-width:42px !important;
    padding:0 !important;
  }

  /* geri butonundan sonraki aksiyonlari saga it */
  .panel-head button:nth-of-type(2){
    margin-left:auto;
  }

  /* mobilde eklenen ikon-only pseudo'larini masaustunde kapat */
  .panel-head button::before,
  .chat-app > header > button::before{
    content:none !important;
  }
}

/* MOBIL */
@media (max-width:670px){
  .chat-app > header{
    gap:8px;
  }

  .chat-app > header > button{
    width:44px;
    min-width:44px;
    height:44px;
    min-height:44px;
    padding:0;
    border-radius:12px;
    font-size:0 !important;
    position:relative;
    white-space:nowrap;
  }

  .chat-app > header > button::before{
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    font-size:18px;
    line-height:1;
  }

  .chat-app > header > button:nth-of-type(1)::before{
    content:"🔒";
  }

  .chat-app > header > button:nth-of-type(2)::before{
    content:"🔔";
  }

  .panel-head{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:8px;
    align-items:center;
  }

  /* isim sadece logo altinda gorunsun */
  .panel-head strong{
    display:none !important;
  }

  .panel-head button{
    width:100% !important;
    min-width:0 !important;
    height:42px;
    min-height:42px;
    padding:0 !important;
    border-radius:12px;
    font-size:0 !important;
    position:relative;
    white-space:nowrap;
  }

  .panel-head button::before{
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    line-height:1;
    font-size:18px;
  }

  .panel-head button:nth-of-type(1)::before{
    content:"‹";
    font-size:24px;
    font-weight:700;
  }

  .panel-head button:nth-of-type(2)::before{
    content:"☎";
  }

  .panel-head button:nth-of-type(3)::before{
    content:"▣";
  }

  .panel-head button:nth-of-type(4)::before{
    content:"🗑";
  }

  .panel-head button:nth-of-type(5)::before{
    content:"⊘";
  }
}



/* CALCCHAT_DESKTOP_BUTTON_LABELS_V51 */
@media (min-width:671px){

  .panel-head button:nth-of-type(n+2):nth-of-type(-n+5){
    font-size:14px !important;
    width:auto !important;
    min-width:74px !important;
    padding:0 14px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px;
  }

  .panel-head button:nth-of-type(n+2):nth-of-type(-n+5)::before{
    content:none !important;
    display:none !important;
  }

}


/* CALCCHAT_DESKTOP_LABELS_V52 */
@media(min-width:671px){
 .panel-head.cc-chat-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
 }

 .panel-head.cc-chat-actions button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  font-size:16px!important;
  width:auto!important;
  min-width:44px!important;
  padding:0 12px!important;
 }

 .panel-head.cc-chat-actions button:nth-of-type(2){
  margin-left:auto!important;
 }

 .panel-head.cc-chat-actions .cc-desktop-action-label{
  display:inline!important;
  font-size:13px!important;
  font-weight:600;
  white-space:nowrap;
 }
}

@media(max-width:670px){
 .panel-head.cc-chat-actions .cc-desktop-action-label{
  display:none!important;
 }
}

/* CALCCHAT_CALL_HISTORY_V53 */
.bubble.cc-call-history{font-size:13px;line-height:1.5;max-width:min(88%,380px);border:1px solid rgba(116,180,183,.23);background:#243343;color:#e2eff4;}
.bubble.cc-call-history.mine{background:#184c50;color:#e2f8f5;}

/* CALCCHAT_VOICE_V55 */
.cc-voice-button{border:1px solid #3b6570;background:#1c3543;color:#fff;border-radius:12px;min-width:42px;height:44px;flex:0 0 42px;font-size:20px;padding:0}
.cc-voice-recording{position:absolute;z-index:3;bottom:calc(100% + 3px);left:8px;right:8px;display:flex;gap:8px;align-items:center;justify-content:flex-end;padding:10px;background:#263747;border:1px solid #4e6a7f;border-radius:12px;box-shadow:0 5px 18px #0008;color:#fff;font-size:13px}
.cc-voice-recording span{flex:1;min-width:0}
.cc-voice-recording button{padding:9px 10px}
.cc-voice-bubble{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.cc-voice-play{background:#183a4e;border:1px solid #4c8a94;border-radius:10px;color:#e9f7f5;padding:9px 12px;cursor:pointer}
.cc-voice-player,.cc-voice-dialog audio{display:block;width:min(100%,330px);min-width:180px;max-width:100%;height:45px}
.cc-voice-dialog audio{margin:12px 0}
@media(max-width:450px){.cc-voice-button{min-width:37px;flex-basis:37px;height:40px}.cc-voice-recording{flex-wrap:wrap}.cc-voice-recording span{flex-basis:100%}.cc-voice-play{font-size:12px}}

/* CALCCHAT_V55A_VOICE_TRANSFER_STATES */
.cc-voice-loading,.cc-voice-transfer-state{display:flex;align-items:center;gap:10px;color:#d6e8ec;font-size:13px;min-height:40px;flex-wrap:wrap}
.cc-voice-spinner{display:inline-block;width:18px;height:18px;flex:0 0 18px;border:2px solid #587987;border-top-color:#39c8b6;border-radius:50%;animation:cc-voice-spin .75s linear infinite}
@keyframes cc-voice-spin{to{transform:rotate(360deg)}}
.cc-voice-bubble{min-width:175px;max-width:100%}
.cc-voice-player{width:230px;max-width:100%;min-width:160px}

/* CALCCHAT_V56_HOME_SETTINGS_PRESENCE */
.cc-presence-label{font-weight:550;font-size:12px;color:#8795ab!important}
.cc-presence-label.is-online{color:#53d4a2!important}
.cc-settings-trigger{flex:none;white-space:nowrap}
.cc-settings-dialog{width:min(100%,460px);max-height:min(90dvh,760px);overflow-y:auto;padding:22px}
.cc-settings-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}
.cc-settings-title h2{margin:0}
.cc-settings-items{display:flex;flex-direction:column;gap:9px}
.cc-settings-item{display:flex!important;align-items:center;min-height:43px;width:100%;text-align:left;padding:11px 14px!important}
.cc-settings-dialog .hint{margin:18px 0 0;line-height:1.55}
@media(max-width:670px){
 .chat-app>header>.cc-settings-trigger{height:44px!important;min-height:44px;min-width:44px;width:44px;padding:0!important;font-size:0!important;position:relative}
 .chat-app>header>.cc-settings-trigger::before{content:"⚙"!important;font-size:21px!important;display:grid;place-items:center;inset:0;position:absolute}
 .cc-settings-dialog{padding:18px}
}

/* CALCCHAT_LOCATION_V57 */
.cc-location-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.cc-location-options button{min-height:42px}.cc-location-options .linkbtn{grid-column:1/-1}.cc-location-button{min-width:36px;border-radius:11px}.cc-location-card{min-width:135px;display:grid;gap:8px;max-width:270px;overflow-wrap:anywhere}.cc-location-title{font-weight:600}.cc-location-link{display:inline-block;padding:8px 10px;border-radius:9px;background:rgba(90,160,200,.15);color:inherit;text-decoration:underline}.cc-location-stop{grid-column:1/-1;padding:7px 10px;border:1px solid #c66;border-radius:10px;color:#b44;cursor:pointer}.composer:has(.cc-location-stop){flex-wrap:wrap}

/* CALCCHAT_COMPOSER_V57A */
.composer{position:relative;display:flex;align-items:center;gap:7px;min-width:0}
.composer>.cc-tools-toggle{width:40px;min-width:40px;height:43px;padding:0;border:1px solid #415366;border-radius:12px;background:#273345;color:#f4f8fc;font-size:27px;line-height:1}
.composer>.cc-composer-input{flex:1 1 0;min-width:0;position:relative;display:flex;align-items:center}
.composer>.cc-composer-input>input[aria-label="Mesaj"]{width:100%;min-width:0;flex:1 1 0;padding-left:43px;min-height:44px}
.composer>.cc-composer-input>.emoji-toggle{position:absolute;left:4px;top:50%;transform:translateY(-50%);z-index:1;border:0;background:transparent;min-height:35px;min-width:35px;width:35px;height:35px;border-radius:9px;font-size:21px;padding:0}
.composer>.cc-tools-panel{position:absolute;bottom:calc(100% - 1px);left:14px;display:flex;flex-direction:column;gap:4px;padding:9px;border:1px solid #40546b;border-radius:14px 14px 14px 4px;background:#222c3b;box-shadow:0 10px 35px #0009;z-index:8;min-width:180px}
.composer .cc-tool-choice{display:block;background:transparent;border:0;border-radius:9px;color:#edf5fa;text-align:left;font-size:14px;padding:12px;white-space:nowrap}
.composer .cc-tool-choice:focus-visible,.composer .cc-tool-choice:hover{background:#35475b}
.composer>.cc-voice-button{flex:0 0 42px;min-width:42px;height:43px;padding:0}
.composer>.primary{flex:0 0 auto;padding:11px 12px;min-height:43px}
.composer>.emoji-palette{bottom:calc(100% + 2px)}
@media(max-width:430px){.composer{gap:5px!important;padding-left:8px!important;padding-right:8px!important}.composer>.cc-tools-toggle{min-width:35px;width:35px;height:39px}.composer>.cc-voice-button{flex-basis:37px;min-width:37px;height:39px}.composer>.primary{padding:9px 10px;min-height:39px;font-size:13px}.composer>.cc-composer-input>input[aria-label="Mesaj"]{min-height:40px}}
/* Never expose location JSON as visible message text. */
.cc-location-card{white-space:normal}

/* CALCCHAT_AVATAR_V58 */
.cc-avatar{overflow:hidden;flex:none;display:grid;place-items:center;background:#334155!important}
.cc-avatar.cc-avatar-female{background:#f8cbdf!important;color:#a92e71}
.cc-avatar.cc-avatar-male{background:#c9dfff!important;color:#2364af}
.cc-avatar.cc-avatar-neutral{background:#344256!important;color:#f7faff}
.cc-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.cc-avatar-figure{font-size:25px;line-height:1;user-select:none}
.cc-avatar-preview{width:100px!important;height:100px!important;margin:16px auto}
.cc-avatar-preview .cc-avatar-figure{font-size:64px}
.cc-avatar-select{width:100%;margin:8px 0}

/* CALCCHAT_NEARBY_V59 */
.cc-nearby-dialog{max-width:520px;width:min(94vw,520px);max-height:85dvh;overflow:auto}
.cc-nearby-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.cc-nearby-actions button{width:auto;max-width:100%;flex:1 1 140px}
.cc-nearby-user{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid rgba(145,165,190,.22)}
.cc-nearby-user strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.cc-nearby-user button{flex:0 0 auto}

/* CALCCHAT_NEARBY_V59A - compact settings toggle and separate discovery view */
.cc-nearby-home-link{display:flex;align-items:center;justify-content:center;width:100%;margin:8px 0 16px;min-height:42px!important;border:1px solid #3c5868!important;background:#203646!important;color:#e5f7f5!important;font-weight:650}
.cc-nearby-dialog{width:min(92vw,430px)!important;max-height:80dvh!important;padding:18px!important}
.cc-nearby-dialog .cc-settings-title{margin-bottom:10px}
.cc-nearby-dialog .cc-settings-title h2{font-size:20px}
.cc-nearby-dialog .cc-nearby-actions{display:flex;gap:8px;margin:14px 0 0}
.cc-nearby-dialog .cc-nearby-actions>button{width:100%;flex:1 1 100%;max-width:none;min-height:44px}
.cc-nearby-state{font-size:13px;line-height:1.5;color:#b1bdcf;margin:10px 0;padding:10px;border:1px solid #425164;border-radius:10px;background:#202b3b}
.cc-nearby-state.is-on{color:#58dba8;border-color:#36685f}
.cc-nearby-results{max-height:45dvh;overflow:auto;margin:4px 0 12px}
.cc-nearby-person{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.cc-nearby-person small{font-size:12px;color:#9facbc}
.cc-nearby-user{gap:10px;padding:10px 0;flex-wrap:wrap}
.cc-nearby-user button{padding:8px 10px;font-size:12px}
.cc-nearby-dialog>.cc-nearby-refresh{display:block;margin-left:auto;min-height:37px;padding:8px 12px}

/* CALCHAT_CORPORATE_UI_V60 — presentation only; no auth/crypto or API changes */
:root{--cc-bg:#091322;--cc-panel:#0d1a2c;--cc-surface:#15263b;--cc-stroke:#284158;--cc-text:#eaf5ff;--cc-muted:#a2b6cc;--cc-accent:#27cbbd;--cc-accent2:#087caf}
.chat-app{background:radial-gradient(ellipse at 88% 18%,#102c4a 0%,transparent 55%),linear-gradient(135deg,#081220,#0c1728 80%);color:var(--cc-text)}
.chat-app>header{padding:13px clamp(12px,2.4vw,36px)!important;min-height:79px;background:linear-gradient(110deg,#0c192b,#0d2035)!important;border-bottom:1px solid #263b52!important;gap:12px!important}
.cc-brand-v60{height:52px;display:flex;align-items:center;width:clamp(128px,15vw,203px);overflow:visible;min-width:0}
.cc-brand-logo{width:100%;height:100%;object-fit:contain;object-position:left center;display:block;filter:drop-shadow(0 4px 13px #00b5c022)}
.chat-app>header .cc-chat-peer-title{font-size:12px;color:#9eb3ca;margin-top:0}
.chat-app>header .pill,.chat-app>header button:not(.primary){background:#14243a;border:1px solid #2b4259;border-radius:12px;color:#e2edf9;min-height:39px;padding:8px 12px;white-space:nowrap;box-shadow:0 2px 10px #01060e20}
.chat-app>header button:hover{border-color:#3d7781;filter:brightness(1.08)}
.chat-layout{width:min(100%,1500px)!important;grid-template-columns:clamp(285px,25vw,350px) minmax(0,1fr);border-left:1px solid #1e3046;border-right:1px solid #1e3046;background:#0b1524}
.sidebar{background:linear-gradient(168deg,#0a1626,#0d192b);border-right:1px solid #263c52;padding:20px clamp(13px,1.8vw,24px);scrollbar-color:#2b4860 transparent}
.sidebar .cc-add-friend-v60{background:#153346!important;color:#a5f8ee!important;border:1px solid #286a75!important;border-radius:12px!important;font-size:13px!important;font-weight:680!important;padding:9px 15px!important;min-height:38px!important;max-width:185px!important;width:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-shadow:none!important;letter-spacing:0}
.sidebar .cc-add-friend-v60:hover{background:#1c4957!important;border-color:#39b9b3!important}
.sidebar .cc-nearby-home-link{width:100%!important;justify-content:flex-start!important;min-height:39px!important;margin:12px 0 18px!important;padding:9px 13px!important;border-radius:12px!important;background:#142a3e!important;border-color:#29485e!important;font-size:13px!important;font-weight:580!important}
.sidebar .section-title{font-size:11px;letter-spacing:1.8px;color:#96b2cd;margin:18px 0 10px;text-transform:uppercase}
.sidebar .contact{border:1px solid transparent;border-radius:13px;padding:10px!important;min-height:64px;transition:background .15s,border-color .15s}
.sidebar .contact.active,.sidebar .contact:hover{background:#172e44;border-color:#28576d}
.sidebar .contact strong{font-size:14px;font-weight:680;color:#f3f8ff}
.sidebar .cc-pending-v60{background:linear-gradient(125deg,#15283d,#132338);border:1px solid #2b4158;border-radius:14px;margin:8px 0 12px;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center;box-shadow:0 7px 26px #00000015}
.cc-pending-meta{min-width:0;overflow:hidden}.cc-pending-meta strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cc-pending-meta .tiny{font-size:11px;margin-top:3px}
.sidebar .cc-pending-v60 button{white-space:nowrap;min-height:34px!important;padding:7px 9px!important;border-radius:9px!important;font-size:11px!important;line-height:1.2!important;margin:0!important;width:auto!important;font-weight:600!important}
.sidebar .cc-pending-v60 .primary{background:linear-gradient(100deg,#18cabb,#27bdb0);color:#052b2b}.sidebar .cc-pending-v60 .pill{background:#192940;border:1px solid #39516a}
.panel{background:linear-gradient(155deg,#0b1c30,#091625 85%)}
.panel-head.cc-chat-actions{background:#102138;border-bottom:1px solid #274057;padding:13px clamp(10px,2vw,22px)!important;gap:7px!important}
.panel-head.cc-chat-actions button{background:#172b42!important;border:1px solid #315069!important;color:#e5f3ff!important;box-shadow:none!important;border-radius:11px!important;min-height:38px!important}
.panel-head.cc-chat-actions button:hover{background:#203b54!important;border-color:#3aa1a0!important}
.messages{background:radial-gradient(ellipse at 90% 15%,#11325150,transparent 52%),linear-gradient(145deg,#0a1626,#0a1b2f)!important;padding:clamp(12px,2vw,28px)!important;gap:12px!important}
.bubble{background:#1b2f46;border:1px solid #2d4760;color:#eaf3fe;box-shadow:0 3px 12px #03091620;border-radius:15px 15px 15px 5px;font-size:14px;max-width:min(83%,530px)}
.bubble.mine{background:linear-gradient(125deg,#046e84,#075576);border:1px solid #1292a2;color:#efffff;border-radius:15px 15px 5px 15px}
.bubble small{color:#c4dbe8}
.composer{background:#102138!important;border-top:1px solid #2b455e!important;padding:12px 16px calc(12px + env(safe-area-inset-bottom))!important;gap:8px!important}
.composer>.cc-tools-toggle,.composer>.cc-voice-button{background:#172f45!important;border:1px solid #355d70!important;color:#d8faff!important;border-radius:11px!important;box-shadow:none!important}
.composer>.cc-composer-input>input[aria-label="Mesaj"]{background:#182b42!important;border:1px solid #35536c!important;border-radius:12px!important;color:#f0f8ff!important;font-size:14px!important}
.composer>.primary{background:linear-gradient(120deg,#1bd1c5,#20acc8)!important;color:#053037!important;border-radius:12px!important;font-weight:760!important}
.composer>.cc-tools-panel,.composer>.emoji-palette{background:#18293e!important;border:1px solid #3a5772!important;box-shadow:0 16px 40px #0008!important}
.screen-center{color:#9bb4cc;background:radial-gradient(circle at center,#12406333,transparent 60%)}
.screen-center b{color:#f0fbff}
.modal-wrap{background:#050c17d9;backdrop-filter:blur(12px)}
.modal,.cc-settings-dialog,.cc-nearby-dialog{background:linear-gradient(155deg,#182a40,#111f32)!important;border:1px solid #354f68!important;border-radius:21px!important;color:#e8f2ff!important;box-shadow:0 20px 65px #0009!important}
.cc-settings-dialog{width:min(94vw,640px)!important;max-height:min(90dvh,800px)!important;padding:clamp(16px,2.4vw,26px)!important}
.cc-settings-title{border-bottom:1px solid #334960;padding-bottom:13px;margin-bottom:16px}.cc-settings-title h2{font-size:clamp(19px,2vw,23px);letter-spacing:-.3px}
.cc-settings-items{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important}
.cc-settings-item{display:flex!important;align-items:center!important;width:100%!important;min-height:52px!important;background:#1c314a!important;border:1px solid #344e68!important;border-radius:12px!important;color:#e8f5ff!important;font-size:13px!important;line-height:1.35!important;text-align:left!important;padding:11px 13px!important;white-space:normal!important}
.cc-settings-item:hover{background:#21405a!important;border-color:#2d938f!important}
.cc-settings-dialog .hint{font-size:11px;line-height:1.5;color:#9fb4c8}
.modal .actions .primary,.modal .primary{background:linear-gradient(110deg,#23cabb,#19afd0);color:#052832}
.modal .pill{border:1px solid #395873;background:#20334b;color:#e9f6ff}
button:focus-visible,input:focus-visible{outline:2px solid #33d1c9!important;outline-offset:2px!important}
/* Tablet: preserve two-pane display until phones; make controls compact */
@media(min-width:671px) and (max-width:1024px){.chat-layout{grid-template-columns:260px minmax(0,1fr)!important}.sidebar{padding:14px}.panel-head.cc-chat-actions{padding:9px!important;gap:4px!important}.panel-head.cc-chat-actions button{min-width:35px!important;padding:7px!important;font-size:13px!important}.panel-head.cc-chat-actions .cc-desktop-action-label{font-size:11px!important}}
@media(max-width:670px){.chat-app>header{padding:calc(8px + env(safe-area-inset-top)) 10px 9px!important;min-height:68px!important;gap:6px!important}.cc-brand-v60{width:clamp(105px,31vw,150px);height:38px}.chat-app>header .cc-chat-peer-title{font-size:10px;margin-top:0}.chat-app>header button{min-width:38px!important;width:38px!important;min-height:39px!important;height:39px!important;padding:0!important;border-radius:10px!important}.chat-layout{display:flex!important;width:100%!important;border:none}.sidebar{width:100%;padding:14px 14px 20px}.sidebar .cc-add-friend-v60{min-height:36px!important;padding:8px 12px!important;font-size:12px!important;max-width:155px!important}.sidebar .cc-nearby-home-link{margin:9px 0 14px!important;min-height:37px!important}.sidebar .cc-pending-v60{grid-template-columns:minmax(0,1fr) auto auto;gap:5px;padding:9px}.sidebar .cc-pending-v60 button{font-size:11px!important;padding:7px 8px!important;min-height:34px!important}.panel-head.cc-chat-actions{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important;padding:8px 10px!important;display:grid!important}.panel-head.cc-chat-actions button{min-width:0!important;width:100%!important;height:36px!important;min-height:36px!important;padding:0!important;font-size:0!important}.panel-head.cc-chat-actions button:nth-of-type(2){margin-left:0!important}.panel-head.cc-chat-actions .cc-desktop-action-label{display:none!important}.messages{padding:13px 11px!important}.bubble{font-size:13px;max-width:88%}.composer{gap:5px!important;padding:9px 8px calc(9px + env(safe-area-inset-bottom))!important}.composer>.cc-tools-toggle{width:34px!important;min-width:34px!important;height:38px!important}.composer>.cc-voice-button{min-width:35px!important;flex-basis:35px!important;height:38px!important}.composer>.primary{min-height:38px!important;padding:8px 10px!important;font-size:12px!important}.composer>.cc-composer-input>input[aria-label="Mesaj"]{min-height:38px!important;padding-right:6px!important}.cc-settings-items{grid-template-columns:1fr!important}.cc-settings-item{min-height:43px!important}.cc-settings-dialog{max-height:88dvh!important;padding:16px!important}}
@media(max-width:375px){.chat-app>header button{width:34px!important;min-width:34px!important}.cc-brand-v60{width:103px}.sidebar .cc-pending-v60{grid-template-columns:minmax(0,1fr) auto}.sidebar .cc-pending-v60 .cc-pending-meta{grid-column:1/-1}.sidebar .cc-pending-v60 button{font-size:11px!important}}
@media(prefers-reduced-motion:reduce){.chat-app *{transition:none!important;animation-duration:.01ms!important}}


/* CALCHAT_STRUCTURAL_V61 - real layout, not recolor only */
:root{--cc61-bg:#081422;--cc61-panel:#101f32;--cc61-line:#263d55;--cc61-teal:#2cd3cb;--cc61-muted:#a1b5cf}
.chat-layout{width:100%!important;max-width:none!important;grid-template-columns:clamp(282px,24vw,365px) minmax(0,1fr)!important}
.chat-app>header{min-height:80px!important;padding-inline:clamp(18px,3vw,48px)!important;box-shadow:0 8px 30px #00000024}
.sidebar{padding:clamp(14px,2.1vw,28px)!important;background:linear-gradient(170deg,#0c1a2d,#0a1728)!important}
.cc-sidebar-navigation{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid #263a4f;margin-bottom:22px}
.cc-sidebar-navigation>.cc-add-friend-v60,.cc-sidebar-navigation>.cc-nearby-home-link{width:auto!important;max-width:none!important;min-height:37px!important;margin:0!important;font-size:12px!important;padding:8px 12px!important;display:inline-flex!important;gap:4px;flex:0 1 auto}
.cc-sidebar-navigation>.cc-add-friend-v60{background:linear-gradient(110deg,#123f4c,#153449)!important;border:1px solid #288f91!important;color:#baf9f1!important}
.cc-sidebar-navigation>.cc-nearby-home-link{background:#15263c!important;color:#d6e9f5!important}
.cc-sidebar-navigation button{transition:transform .14s,background .14s,border-color .14s,box-shadow .14s!important}
.cc-sidebar-navigation button:hover{transform:translateY(-1px);box-shadow:0 6px 17px #0005!important;border-color:#30c2bc!important}
.sidebar .section-title{font-size:11px!important;letter-spacing:1.7px!important;margin:16px 0 12px!important}
.sidebar .contact{border-radius:12px!important;margin:5px 0 8px!important;transition:background .15s,transform .15s,border-color .15s}
.sidebar .contact:hover{transform:translateX(2px)}
.cc-pending-v60{display:flex!important;flex-direction:column;align-items:stretch!important;gap:11px!important;padding:13px!important;border:1px solid #2c4662!important}
.cc-pending-person{display:flex;align-items:center;gap:10px;min-width:0}
.cc-pending-person .avatar,.cc-pending-person .cc-avatar{width:36px!important;height:36px!important;min-width:36px!important}
.cc-pending-buttons{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.cc-pending-buttons button{font-size:11px!important;padding:7px 10px!important;min-height:32px!important}
.cc-empty-state{background:radial-gradient(ellipse at 50% 45%,#0a38544f,transparent 52%),linear-gradient(150deg,#091626,#091b2c)!important}
.cc-empty-state-core{display:flex;flex-direction:column;align-items:center;max-width:450px;gap:12px}
.cc-empty-orbits{width:190px;height:190px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#173e61a6 0 20%,transparent 55%);border:1px solid #17405c77;box-shadow:0 0 0 33px #14436814,0 0 0 67px #1746650c;margin-bottom:32px}
.cc-empty-chat-icon{width:90px;height:65px;background:linear-gradient(140deg,#155ca1,#19c1bc);border-radius:20px 20px 20px 6px;display:grid;place-items:center;color:#cafff8;font-size:31px;letter-spacing:4px;box-shadow:12px 12px 0 #0d395b,0 7px 35px #1cb5c229}
.cc-empty-state-core>b{font-size:clamp(23px,2.5vw,35px)!important;letter-spacing:-.8px}
.cc-empty-state-core>b>span{color:#2fd4cd}
.cc-empty-state-core>p{font-size:14px;line-height:1.6;color:#9fb8d2;margin:0}
.panel-head.cc-chat-actions{display:flex!important;align-items:center;gap:12px!important;justify-content:space-between!important;padding:13px 22px!important;min-height:82px}
.cc-peer-heading{display:flex;align-items:center;gap:11px;min-width:0;flex:1}
.cc-peer-heading>.avatar,.cc-peer-heading>.cc-avatar{width:44px!important;height:44px!important;flex:none}
.cc-peer-heading-copy{display:grid;gap:4px;min-width:0}
.cc-peer-heading-copy strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-peer-heading-copy small{font-size:11px;color:#9aacc5;white-space:nowrap}
.cc-peer-heading-copy small.is-online{color:#32dfaf}
.cc-heading-buttons{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.cc-heading-buttons>button{height:40px!important;min-height:40px!important;min-width:42px!important;display:inline-flex!important;gap:7px;justify-content:center;align-items:center}
.cc-heading-buttons>button:nth-of-type(2){margin-left:0!important}
.cc-heading-buttons>button:hover{transform:translateY(-1px);box-shadow:0 5px 15px #020a1955!important}
.cc-settings-dialog{width:min(96vw,920px)!important;max-height:min(91dvh,900px)!important;overflow:auto!important;padding:clamp(16px,2.5vw,30px)!important}
.cc-settings-title h2{font-size:27px!important}
.cc-settings-lead{margin:-5px 0 20px;color:#a6bad1;font-size:13px}
.cc-settings-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:14px}
.cc-settings-section{background:linear-gradient(160deg,#172b42,#112237);border:1px solid #304761;border-radius:17px;padding:15px;display:flex;flex-direction:column;gap:13px;min-width:0}
.cc-settings-section-head{display:flex;gap:11px;align-items:center}
.cc-settings-section-icon{width:37px;height:37px;border-radius:12px;background:#103f52;display:grid;place-items:center;color:#31e0d2;font-size:22px;flex:none}
.cc-settings-section-head h3{font-size:15px;margin:0;color:#edfaff}
.cc-settings-section-head p{font-size:11px;margin:4px 0 0;color:#9eb6cd}
.cc-settings-section-items{display:grid;gap:6px}
.cc-settings-section-items .cc-settings-item{width:100%!important;min-height:40px!important;border-radius:9px!important;font-size:12px!important;padding:9px 11px!important;background:#1b3049!important;position:relative}
.cc-settings-section-items .cc-settings-item:hover{background:#25445a!important;transform:translateX(2px)}
.cc-settings-dialog .hint{margin:17px 0 0!important}
@media(min-width:671px) and (max-width:1120px){.chat-layout{grid-template-columns:260px minmax(0,1fr)!important}.sidebar{padding:14px!important}.cc-peer-heading{gap:6px}.cc-peer-heading>.avatar{width:34px!important;height:34px!important}.cc-heading-buttons{gap:3px}.cc-heading-buttons>button{padding:7px!important;min-width:34px!important}.cc-heading-buttons .cc-desktop-action-label{font-size:10px!important}}
@media(max-width:670px){.chat-layout{display:flex!important}.sidebar{width:100%;padding:14px!important}.cc-sidebar-navigation{padding-bottom:14px;margin-bottom:16px}.cc-sidebar-navigation>.cc-add-friend-v60,.cc-sidebar-navigation>.cc-nearby-home-link{flex:1 1 auto;min-width:0!important;justify-content:center!important}.cc-pending-person .avatar{width:36px!important;height:36px!important}.cc-pending-buttons button{font-size:11px!important}.panel-head.cc-chat-actions{display:flex!important;flex-direction:column;gap:6px!important;align-items:stretch!important;padding:9px!important;min-height:0}.cc-peer-heading{min-width:0;width:100%}.cc-peer-heading>.avatar,.cc-peer-heading>.cc-avatar{width:30px!important;height:30px!important}.cc-peer-heading-copy strong{font-size:12px}.cc-peer-heading-copy small{font-size:10px}.cc-heading-buttons{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;width:100%}.cc-heading-buttons>button{width:100%!important;min-width:0!important;height:35px!important;min-height:35px!important;padding:0!important;font-size:0!important}.cc-heading-buttons .cc-desktop-action-label{display:none!important}.cc-empty-orbits{width:124px;height:124px;box-shadow:0 0 0 20px #14436812,0 0 0 39px #1746650c;margin-bottom:14px}.cc-empty-chat-icon{width:65px;height:50px;font-size:20px}.cc-empty-state-core>b{font-size:23px!important}.cc-empty-state-core>p{font-size:12px}.cc-settings-dialog{width:100%!important;max-height:90dvh!important}.cc-settings-sections{grid-template-columns:1fr;gap:10px}.cc-settings-section{padding:12px}.cc-settings-title h2{font-size:22px!important}}
@media(hover:none){.cc-sidebar-navigation button:hover,.sidebar .contact:hover,.cc-heading-buttons button:hover{transform:none!important}}
@media(prefers-reduced-motion:reduce){.cc-sidebar-navigation button,.sidebar .contact,.cc-heading-buttons button{transition:none!important}}

/* CALCHAT_BLUE_NEARBY_SIDEBAR_V61A — match brand blue and cyan, no green UI accents. */
:root{--cc-accent:#11bbec!important;--cc-accent2:#0868d9!important}
.cc-sidebar-navigation>.cc-add-friend-v60{background:linear-gradient(110deg,#122f53,#0c3e64)!important;border-color:#1979b4!important;color:#d9f7ff!important}
.cc-sidebar-navigation>.cc-nearby-home-link{background:#15263c!important;border-color:#304c70!important;color:#cfeafa!important}
.cc-sidebar-navigation>.cc-nearby-home-link.cc-selected{background:linear-gradient(110deg,#12436a,#142d53)!important;border-color:#2ebbee!important;box-shadow:inset 3px 0 #25bff5!important;color:#effbff!important}
.cc-sidebar-navigation button:hover{border-color:#27b7f4!important;box-shadow:0 7px 22px #0871b52b!important}
.cc-peer-heading-copy small.is-online,.cc-presence-label.is-online,.cc-nearby-state.is-on{color:#48bfff!important}
.cc-empty-state-core>b>span{color:#39bffc!important}
.cc-empty-chat-icon{background:linear-gradient(140deg,#135bb3,#1dafe5)!important;color:#e2f7ff!important;box-shadow:12px 12px 0 #113965,0 7px 35px #188ed744!important}
.cc-settings-section-icon{background:#13375f!important;color:#38bffc!important}
.cc-settings-section-items .cc-settings-item:hover,.cc-settings-item:hover{border-color:#248bc5!important;background:#203d62!important}
.modal .actions .primary,.modal .primary{background:linear-gradient(115deg,#21b9eb,#1685da)!important;color:#071d39!important}
button:focus-visible,input:focus-visible{outline-color:#30bafa!important}
.cc-nearby-inline{display:grid;gap:12px;min-width:0;padding:8px 0 18px}
.cc-nearby-inline-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#edf8ff}
.cc-nearby-inline-head strong{font-size:13px;letter-spacing:.2px}
.cc-nearby-inline-refresh{font-size:11px!important;padding:7px 10px!important;min-height:32px!important}
.cc-nearby-inline-status{color:#9cc5df;font-size:12px;line-height:1.5;margin:0}
.cc-nearby-inline-results{display:grid;gap:9px;min-width:0}
.cc-nearby-inline-results .hint{color:#9ab2c8;font-size:12px;line-height:1.5;margin:2px 0}
.cc-nearby-inline .cc-nearby-user{display:flex;align-items:center;gap:9px;padding:10px;background:#172a42;border:1px solid #2a4764;border-radius:12px;min-width:0}
.cc-nearby-inline .cc-nearby-person{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.cc-nearby-inline .cc-nearby-person strong,.cc-nearby-inline .cc-nearby-person small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-nearby-inline .cc-nearby-person strong{font-size:12px}
.cc-nearby-inline .cc-nearby-person small{font-size:11px;color:#9fb5cd}
.cc-nearby-inline .cc-nearby-request{font-size:10px!important;min-height:32px!important;padding:6px 9px!important;flex-shrink:0}
.cc-nearby-inline .cc-nearby-user .avatar,.cc-nearby-inline .cc-nearby-user .cc-avatar{width:35px!important;height:35px!important;flex-shrink:0}
@media(max-width:670px){.cc-nearby-inline{padding:5px 1px 14px}.cc-nearby-inline .cc-nearby-user{padding:10px 11px}.cc-sidebar-navigation>.cc-nearby-home-link.cc-selected{border-width:1px!important}}


/* CALCHAT_MOBILE_CHAT_HEADER_V61B — two accessible action rows; supersedes legacy selectors */
@media (max-width:670px) {
  .chat-layout.in-conversation { min-height:0!important; overflow:hidden!important; }
  .chat-layout.in-conversation > .panel { min-height:0!important; min-width:0!important; overflow:hidden!important; }
  .panel-head.cc-chat-actions {
    display:flex!important; flex-direction:column!important;
    align-items:stretch!important; justify-content:flex-start!important;
    flex:0 0 auto!important; height:auto!important; max-height:none!important;
    min-height:0!important; overflow:visible!important;
    padding:9px 10px 10px!important; gap:8px!important;
    box-sizing:border-box!important; width:100%!important;
    position:relative!important; z-index:2!important;
  }
  .panel-head.cc-chat-actions .cc-peer-heading {
    display:flex!important; width:100%!important; flex:0 0 auto!important;
    min-width:0!important; min-height:31px!important; align-items:center!important;
    gap:8px!important; overflow:hidden!important;
  }
  .panel-head.cc-chat-actions .cc-peer-heading-copy {display:flex!important; flex-direction:column!important; min-width:0!important; gap:2px!important;}
  .panel-head.cc-chat-actions .cc-peer-heading-copy strong {display:block!important; font-size:13px!important; max-width:100%!important;}
  .panel-head.cc-chat-actions .cc-peer-heading-copy small {display:block!important; font-size:10px!important; overflow:hidden!important; text-overflow:ellipsis!important;}
  .panel-head.cc-chat-actions .cc-heading-buttons {
    display:grid!important; grid-template-columns:repeat(5,minmax(0,1fr))!important;
    align-items:center!important; gap:6px!important;
    width:100%!important; min-width:0!important; flex:0 0 auto!important;
    height:auto!important; min-height:40px!important;
    overflow:visible!important; margin:0!important; padding:0!important;
  }
  .panel-head.cc-chat-actions .cc-heading-buttons>button {
    display:flex!important; justify-content:center!important; align-items:center!important;
    width:100%!important; min-width:0!important; height:40px!important;
    min-height:40px!important; max-height:40px!important;
    padding:0!important; margin:0!important;
    font-size:20px!important; line-height:1!important;
    visibility:visible!important; opacity:1!important;
    background:#193250!important; color:#def5ff!important;
    border:1px solid #315d85!important; border-radius:10px!important;
  }
  .panel-head.cc-chat-actions .cc-heading-buttons .cc-desktop-action-label {display:none!important;}
  .panel-head.cc-chat-actions + .messages {min-height:0!important; flex:1 1 auto!important;}
}

/* CALCHAT_LOCATION_PROGRESS_V62A */
.cc-location-dialog .cc-location-progress{display:flex;align-items:center;gap:12px;margin-top:14px;padding:13px 14px;border-radius:12px;border:1px solid #2478ad;background:#102a45;color:#e2f5ff;min-height:58px}
.cc-location-dialog .cc-location-progress.hide{display:none!important}
.cc-location-dialog .cc-location-progress-title{font-weight:650;font-size:14px}
.cc-location-dialog .cc-location-progress-detail{display:block;margin-top:3px;color:#a8c7dd;font-size:12px}
.cc-location-spinner{flex:0 0 23px;width:23px;height:23px;border:3px solid #386183;border-top-color:#48c2ff;border-radius:50%;animation:ccLocationSpin .85s linear infinite}
@keyframes ccLocationSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.cc-location-spinner{animation-duration:2.5s}}
.cc-location-dialog .cc-location-error{margin-top:14px;padding:10px 12px;border-radius:10px;background:#422333;color:#ffe3e8;font-size:13px}
.cc-location-dialog .cc-location-retry{margin-top:10px}
.cc-location-dialog .hide{display:none!important}
.cc-location-dialog .cc-location-options button:disabled{opacity:.65;cursor:wait}
@media(max-width:430px){.cc-location-dialog .cc-location-options{gap:7px}.cc-location-dialog .cc-location-options button{font-size:12px;padding:8px 5px}}
/* CALCHAT_PEER_SECURITY_V63E */
.cc-peer-security-trigger{display:block;max-width:100%;margin-top:5px;padding:3px 8px!important;font-size:11px!important;line-height:1.35!important;white-space:normal;text-align:left;border:1px solid rgba(62,188,211,.3)!important;color:#9ce6f1!important;background:rgba(25,83,112,.3)!important}
.cc-security-panel{max-height:min(82vh,740px);overflow:auto;width:min(95vw,510px)}
.cc-security-fingerprint{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:12px 0;padding:10px;background:rgba(56,106,143,.2);border:1px solid rgba(127,178,205,.18);border-radius:12px}
.cc-security-fingerprint strong{width:100%;font-size:13px}
.cc-security-fingerprint code{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.6;font-size:12px;letter-spacing:.3px}
.cc-security-fingerprint button{flex-shrink:0}
.cc-security-status{padding:10px;border-radius:10px;background:rgba(60,105,136,.26);font-size:13px;margin:8px 0}
.cc-security-danger{background:rgba(174,49,66,.19);color:#ffaaa9}
.cc-security-ok{background:rgba(26,143,125,.19);color:#87e8d3}
.cc-security-compare{width:100%;box-sizing:border-box}
.cc-security-feedback{margin:8px 0;font-size:13px;overflow-wrap:anywhere}
/* CALCHAT_TRUST_COMPACT_V63F - noninteractive status, no header row growth */
.cc-peer-heading-copy .cc-peer-security-trigger{display:none!important}
.cc-peer-heading-copy .cc-peer-trust{display:inline-flex!important;align-items:center;gap:3px;margin:1px 0 0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:10px!important;line-height:1.2!important;font-weight:500!important;letter-spacing:0!important;white-space:nowrap!important;width:auto!important;max-width:100%!important;min-height:0!important;min-width:0!important}
.cc-peer-trust-unverified{color:#a1adba!important}.cc-peer-trust-verified{color:#4cdaab!important}.cc-peer-trust-mismatch{color:#ff7078!important}
.cc-resume-screen{min-height:100dvh;display:grid;place-items:center;background:#0b192b;padding:20px;color:#e6f2fd}
.cc-resume-card{width:min(100%,400px);background:#142940;border:1px solid #31506b;border-radius:20px;padding:28px;display:flex;flex-direction:column;gap:14px}
.cc-resume-card h2{margin:0;color:#57d8ef}.cc-resume-card p{margin:0 0 5px;color:#b7cddd;line-height:1.5}.cc-resume-card button{width:100%;min-height:44px}
@media(max-width:670px){.cc-peer-heading-copy .cc-peer-trust{font-size:10px!important}.cc-resume-card{padding:22px}}
/* CALCHAT_CHAT_HEADER_V63G: compact one-row toolbar; appended after earlier mobile rules */
.panel-head.cc-chat-actions{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:8px!important;padding:9px 12px!important;min-height:64px!important;height:auto!important;overflow:visible!important;position:relative!important;z-index:5!important}
.panel-head.cc-chat-actions>.cc-chat-back{flex:0 0 auto!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:38px!important;min-height:38px!important;font-size:24px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.panel-head.cc-chat-actions .cc-peer-heading{min-width:0!important;width:auto!important;flex:1 1 auto!important;gap:7px!important;overflow:hidden!important}
.panel-head.cc-chat-actions .cc-peer-heading-copy{min-width:0!important;overflow:hidden!important}
.panel-head.cc-chat-actions .cc-peer-heading-copy strong,.panel-head.cc-chat-actions .cc-peer-heading-copy small{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.panel-head.cc-chat-actions .cc-heading-buttons.cc-chat-toolbar{display:flex!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;height:auto!important;align-items:center!important;gap:5px!important;margin:0!important;padding:0!important}
.panel-head.cc-chat-actions .cc-chat-toolbar>button,.panel-head.cc-chat-actions .cc-chat-toolbar .cc-chat-more{display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;padding:0!important;margin:0!important;font-size:21px!important;line-height:1!important}
.panel-head.cc-chat-actions .cc-chat-overflow{position:relative!important;flex:0 0 38px!important;min-width:0!important}
.panel-head.cc-chat-actions .cc-chat-menu{position:absolute;z-index:50;right:0;top:calc(100% + 7px);width:154px;padding:5px;border:1px solid #355573;background:#14283f;box-shadow:0 12px 26px #0008;border-radius:12px}
.panel-head.cc-chat-actions .cc-chat-menu[hidden]{display:none!important}
.panel-head.cc-chat-actions .cc-chat-menu .cc-chat-menu-item{display:block!important;width:100%!important;min-width:0!important;height:auto!important;min-height:40px!important;text-align:left!important;font-size:13px!important;padding:9px 12px!important;margin:0!important;border:none!important;background:transparent!important;color:#e8f2fc!important}
.panel-head.cc-chat-actions .cc-chat-menu .cc-chat-menu-item:hover,.panel-head.cc-chat-actions .cc-chat-menu .cc-chat-menu-item:focus-visible{background:#23425c!important}
.panel-head.cc-chat-actions .cc-chat-menu .cc-chat-menu-danger{color:#ff9ca4!important}
@media(max-width:670px){.panel-head.cc-chat-actions{display:flex!important;flex-direction:row!important;align-items:center!important;gap:5px!important;padding:7px 8px!important;min-height:58px!important;max-height:none!important}.panel-head.cc-chat-actions>.cc-chat-back{width:28px!important;min-width:28px!important;max-width:28px!important;height:34px!important;min-height:34px!important}.panel-head.cc-chat-actions .cc-peer-heading{width:auto!important;min-width:0!important;flex:1 1 auto!important;gap:5px!important;min-height:0!important}.panel-head.cc-chat-actions .cc-peer-heading>.avatar,.panel-head.cc-chat-actions .cc-peer-heading>.cc-avatar{width:29px!important;height:29px!important;flex:0 0 29px!important}.panel-head.cc-chat-actions .cc-peer-heading-copy strong{font-size:11px!important}.panel-head.cc-chat-actions .cc-peer-heading-copy small{font-size:9px!important}.panel-head.cc-chat-actions .cc-peer-trust{font-size:9px!important}.panel-head.cc-chat-actions .cc-heading-buttons.cc-chat-toolbar{display:flex!important;grid-template-columns:none!important;gap:4px!important;width:auto!important;min-width:0!important;flex:0 0 auto!important}.panel-head.cc-chat-actions .cc-chat-toolbar>button,.panel-head.cc-chat-actions .cc-chat-toolbar .cc-chat-more{width:33px!important;min-width:33px!important;max-width:33px!important;height:34px!important;min-height:34px!important;max-height:34px!important;font-size:18px!important}.panel-head.cc-chat-actions .cc-chat-overflow{flex-basis:33px!important}}
@media(max-width:360px){.panel-head.cc-chat-actions{gap:3px!important;padding:6px!important}.panel-head.cc-chat-actions .cc-peer-heading>.avatar,.panel-head.cc-chat-actions .cc-peer-heading>.cc-avatar{width:25px!important;height:25px!important;flex-basis:25px!important}.panel-head.cc-chat-actions .cc-chat-toolbar>button,.panel-head.cc-chat-actions .cc-chat-toolbar .cc-chat-more{width:30px!important;min-width:30px!important;max-width:30px!important}.panel-head.cc-chat-actions .cc-chat-overflow{flex-basis:30px!important}}

/* Suppress legacy nth-of-type pseudo-icons in the new toolbar. */
.panel-head.cc-chat-actions>.cc-chat-back::before,.panel-head.cc-chat-actions .cc-chat-toolbar button::before{content:none!important;display:none!important}
@media(min-width:671px){.panel-head.cc-chat-actions .cc-chat-toolbar>button,.panel-head.cc-chat-actions .cc-chat-toolbar .cc-chat-more{min-width:38px!important;width:38px!important;padding:0!important;font-size:21px!important}}

/* CALCHAT_V065: progressive chat actions, compact and non-breaking */
.cc65-message-action{background:transparent;border:0;color:inherit;opacity:.64;font-size:17px;padding:2px 5px;cursor:pointer;vertical-align:middle}
.bubble:hover .cc65-message-action,.cc65-message-action:focus-visible{opacity:1}
.cc65-action-panel{max-height:80vh;overflow:auto;display:flex;flex-direction:column;gap:7px}
.cc65-reaction-row{display:flex;gap:3px;flex-wrap:wrap;justify-content:center}
.cc65-reaction-row button{min-width:36px;min-height:36px;padding:5px}
.cc65-action-item{display:block;width:100%;text-align:left;min-height:40px}
.cc65-reactions{display:flex;gap:4px;flex-wrap:wrap}
.cc65-quote{display:block;width:100%;padding:5px 8px;font-size:12px;border-left:3px solid #38bdf8;opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;background:rgba(75,130,170,.16);border-top:0;border-right:0;border-bottom:0;cursor:pointer;text-align:left}
.cc65-reply-preview,.cc65-selection,.cc65-search-results{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:6px 10px;background:rgba(37,85,115,.2);font-size:12px}
.cc65-reply-preview>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc65-typing{display:block;min-height:12px;color:#49c5e7;font-size:10px;white-space:nowrap}
.cc65-checkbox{width:17px;height:17px;vertical-align:middle}
.cc65-flash{outline:2px solid #38bdf8}
.cc65-settings-receipts{margin:8px 0;max-width:100%}
@media(max-width:430px){.cc65-message-action{padding:2px 4px}.cc65-typing{font-size:9px}.cc65-reply-preview,.cc65-selection,.cc65-search-results{padding:4px 7px}}

/* CALCHAT_V065A_COMPACT_SELECT: do not cover the chat with a full-screen message menu */
.cc65-selection-heading{position:relative;z-index:12;min-height:52px!important}
.cc65-top-selection{width:100%;min-width:0;display:flex;align-items:center;gap:5px;flex-wrap:nowrap}
.cc65-top-selection .cc65-count{flex:1 1 auto;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:inherit}
.cc65-top-selection .cc65-top-button{display:flex;align-items:center;justify-content:center;min-width:33px;width:33px;height:34px;padding:0!important;flex:0 0 33px;font-size:19px!important}
.cc65-emoji-dropdown,.cc65-extra-dropdown{position:relative;flex:0 0 auto}
.cc65-emoji-tray,.cc65-extra-menu{position:absolute;right:0;top:calc(100% + 7px);display:flex;align-items:center;gap:3px;padding:7px;border-radius:12px;background:#142b42;border:1px solid #3b647d;box-shadow:0 8px 24px rgba(0,0,0,.3);z-index:80;max-width:calc(100vw - 24px)}
.cc65-emoji-tray[hidden],.cc65-extra-menu[hidden]{display:none!important}
.cc65-emoji-tray{right:-70px}.cc65-emoji-tray button{min-width:33px;max-width:36px;height:34px;padding:2px;font-size:18px;flex:0 0 auto}
.cc65-extra-menu{flex-direction:column;align-items:stretch;min-width:135px}.cc65-extra-menu button{min-height:34px;text-align:left;font-size:12px}
.bubble.cc65-chosen{outline:2px solid #39bbe2;outline-offset:2px;background-image:linear-gradient(rgba(50,175,220,.14),rgba(50,175,220,.14));}
.cc65-message-action,.cc65-checkbox{display:none!important}
.cc65-delete-dialog{width:min(330px,calc(100vw - 32px))!important;max-height:none!important;padding:16px!important}
.cc65-delete-dialog h2{font-size:16px}.cc65-delete-dialog p{font-size:12px;line-height:1.4}
.cc65-delete-choice{width:100%;min-height:41px;margin-top:5px;text-align:left}
@media(max-width:360px){.cc65-top-selection{gap:2px}.cc65-top-selection .cc65-top-button{min-width:28px;width:28px;flex-basis:28px;font-size:17px!important}.cc65-top-selection .cc65-count{font-size:11px}.cc65-emoji-tray{right:-90px;gap:0;padding:4px}.cc65-emoji-tray button{min-width:30px;padding:1px;font-size:16px}}

/* CALCHAT_V065C_SELECTION_FIX -- selector specificity stronger than legacy mobile button rules. */
.panel-head.cc-chat-actions.cc65-selection-heading {
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:flex-start!important;flex-wrap:nowrap!important;
 gap:0!important;padding:7px 9px!important;min-height:51px!important;
 height:51px!important;max-height:51px!important;overflow:visible!important;
 width:100%!important;box-sizing:border-box!important;position:relative!important;z-index:40!important;
}
.panel-head.cc-chat-actions.cc65-selection-heading>.cc65-top-selection {
 display:flex!important;flex-direction:row!important;align-items:center!important;
 flex-wrap:nowrap!important;justify-content:flex-start!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 gap:4px!important;overflow:visible!important;
}
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-count {
 display:block!important;flex:1 1 auto!important;min-width:20px!important;
 width:auto!important;max-width:none!important;margin:0!important;
 color:#e6f3fa!important;font-size:12px!important;line-height:1.2!important;
 white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-top-selection button.cc65-top-button {
 display:inline-flex!important;position:relative!important;align-items:center!important;
 justify-content:center!important;flex:0 0 32px!important;min-width:32px!important;
 max-width:32px!important;width:32px!important;height:34px!important;
 min-height:34px!important;max-height:34px!important;padding:0!important;
 margin:0!important;font-size:19px!important;line-height:1!important;
 font-weight:500!important;text-indent:0!important;letter-spacing:normal!important;
 visibility:visible!important;opacity:1!important;overflow:visible!important;
}
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-top-selection button.cc65-top-button::before,
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-top-selection button.cc65-top-button::after {content:none!important;display:none!important;}
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-emoji-dropdown,
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-extra-dropdown {position:relative!important;flex:0 0 32px!important;min-width:32px!important;overflow:visible!important;}
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-emoji-tray,
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-extra-menu {
 position:absolute!important;display:flex!important;top:calc(100% + 7px)!important;
 right:0!important;left:auto!important;z-index:500!important;
 background:#142b42!important;box-shadow:0 8px 24px #0008!important;
 max-width:calc(100vw - 25px)!important;
}
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-emoji-tray[hidden],
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-extra-menu[hidden] {display:none!important;}
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-emoji-tray button,
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-extra-menu button {
 font-size:15px!important;width:auto!important;min-width:31px!important;
 height:36px!important;min-height:36px!important;max-height:none!important;
 padding:4px 7px!important;display:inline-flex!important;
 visibility:visible!important;opacity:1!important;text-indent:0!important;
}
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-extra-menu {flex-direction:column!important;min-width:145px!important;}
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-extra-menu button {width:100%!important;text-align:left!important;justify-content:flex-start!important;}
.messages .bubble.cc65-chosen {outline:2px solid #43c1e2!important;outline-offset:2px!important;}
.messages .bubble { -webkit-touch-callout:none; }
@media(max-width:360px){
 .panel-head.cc-chat-actions.cc65-selection-heading {padding:6px!important;}
 .panel-head.cc-chat-actions.cc65-selection-heading>.cc65-top-selection{gap:2px!important;}
 .panel-head.cc-chat-actions.cc65-selection-heading .cc65-top-selection button.cc65-top-button {flex-basis:29px!important;width:29px!important;min-width:29px!important;max-width:29px!important;font-size:17px!important;}
 .panel-head.cc-chat-actions.cc65-selection-heading .cc65-emoji-dropdown,
 .panel-head.cc-chat-actions.cc65-selection-heading .cc65-extra-dropdown {flex-basis:29px!important;min-width:29px!important;}
}

/* CALCHAT_V065D_STABLE_SELECTION: stable selection and in-place reactions. */
.messages .bubble.cc65-chosen {outline:2px solid #56d7ff!important;outline-offset:2px!important;}
.messages .bubble {user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;}
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-count {flex:1 1 auto!important;min-width:26px!important;}
.cc65-reaction-float {position:fixed!important;z-index:99999!important;display:flex!important;align-items:center!important;gap:1px!important;max-width:calc(100vw - 16px)!important;padding:6px!important;background:#193149!important;border:1px solid #4b7d97!important;border-radius:24px!important;box-shadow:0 8px 26px #0009!important;white-space:nowrap!important;box-sizing:border-box!important;}
.cc65-reaction-float .cc65-reaction-option {display:flex!important;align-items:center!important;justify-content:center!important;flex:0 1 38px!important;min-width:0!important;width:38px!important;height:38px!important;padding:2px!important;border:0!important;border-radius:50%!important;background:transparent!important;font-size:23px!important;line-height:1!important;cursor:pointer!important;}
.cc65-reaction-float .cc65-reaction-option:active {background:#30506e!important;}
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-extra-menu {right:0!important;left:auto!important;min-width:144px!important;max-width:min(190px,calc(100vw - 18px))!important;}
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-extra-menu button.cc65-action-menu-item {font-size:13px!important;gap:5px!important;white-space:nowrap!important;letter-spacing:normal!important;}

/* CALCHAT_V065E_ACTIONS: non-duplicated actions and clean icons. */
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-extra-menu .cc65-action-menu-item::before,
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-extra-menu .cc65-action-menu-item::after {content:none!important;display:none!important;}
.panel-head.cc-chat-actions.cc65-selection-heading .cc65-extra-menu button.cc65-action-menu-item {display:flex!important;align-items:center!important;gap:9px!important;justify-content:flex-start!important;text-align:left!important;line-height:1.3!important;padding:9px 12px!important;min-height:40px!important;white-space:normal!important;}
.cc65-menu-symbol {display:inline-block;flex:none;width:20px;text-align:center;}
.cc65-menu-label {display:inline-block;flex:1;min-width:0;font-size:14px;}
.cc65-top-button svg,.cc-chat-video svg {display:block;pointer-events:none;width:19px;height:19px;flex:none;}


/* CALCHAT_V066_MEDIA_RELEASE_STYLE */

/* CalChat v0.66a media library - contained within settings overlay */
.cc66-gallery-overlay{z-index:11000}
.cc66-gallery{width:min(94vw,620px);max-height:min(90dvh,790px);display:flex;flex-direction:column;gap:12px;overflow:hidden}
.cc66-gallery-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cc66-media-tabs{display:flex;flex-wrap:wrap;gap:6px}
.cc66-media-tabs .cc66-tab{min-height:34px;padding:6px 10px;font-size:13px;flex:0 0 auto}
.cc66-media-tabs [aria-pressed="true"]{border-color:#25bfd8;background:#16405d}
.cc66-media-list{overflow-y:auto;min-height:80px;max-height:55dvh;display:flex;flex-direction:column;gap:7px;overscroll-behavior:contain}
.cc66-media-item{display:flex;align-items:center;width:100%;min-width:0;text-align:left;gap:11px;background:#19334b;color:#e6f4fc;border:1px solid #34516b;border-radius:11px;padding:11px;cursor:pointer}
.cc66-media-item:focus-visible{outline:2px solid #58ceea;outline-offset:1px}
.cc66-media-symbol{flex:0 0 34px;font-size:24px}.cc66-media-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.cc66-media-info strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cc66-media-info small{font-size:11px;color:#a7c1d2;overflow-wrap:anywhere}
.cc66-play-speed{margin-inline-start:6px;padding:4px 9px;min-height:30px;font-size:12px}
@media(max-width:480px){.cc66-gallery{width:95vw;padding:15px}.cc66-media-list{max-height:51dvh}.cc66-media-item{padding:10px}.cc66-gallery-head strong{font-size:16px}}

/* CalChat v0.66b isolated image editor */
.cc66-editor-overlay{position:fixed;inset:0;background:rgba(2,10,20,.88);z-index:12000;display:flex;align-items:center;justify-content:center;padding:12px;overscroll-behavior:contain}
.cc66-editor{width:min(96vw,600px);max-height:96dvh;overflow:auto;display:flex;flex-direction:column;gap:12px;background:#12263d;color:#eef7ff;border:1px solid #355775;border-radius:18px;padding:16px}
.cc66-editor h3{margin:0}.cc66-editor-canvas{display:block;max-width:100%;max-height:47dvh;width:auto;height:auto;margin:auto;touch-action:none;border-radius:10px;background:#091b2b}
.cc66-editor-controls,.cc66-editor-actions{display:flex;gap:7px;flex-wrap:wrap}.cc66-editor-actions{justify-content:flex-end}
.cc66-editor-button{background:#214260;color:#effaff;border:1px solid #446987;border-radius:9px;padding:9px 12px;font-size:14px;min-height:38px}
.cc66-editor-actions .cc66-editor-button:last-child{background:#0b8095;border-color:#0fa8bb}.cc66-editor label{display:flex;align-items:center;gap:12px;font-size:13px}.cc66-editor label input[type=range]{flex:1;min-width:50px}
.cc66-editor-caption{width:100%;background:#19344b;border:1px solid #496a86;border-radius:9px;padding:11px;color:#fff;font-size:16px}

.cc66-voice-preview{max-width:min(95vw,460px);display:flex;flex-direction:column;gap:15px}.cc66-voice-preview audio{width:100%;max-width:100%}


/* CalChat v0.66 video editor: self-contained mobile dialog */
.cc66-video-overlay{position:fixed;inset:0;z-index:11010;display:flex;align-items:center;justify-content:center;padding:12px;background:rgba(0,7,20,.82)}
.cc66-video-card{width:min(100%,520px);max-height:calc(100dvh - 24px);overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid #275071;border-radius:16px;color:#f0f7ff;background:#11283e;box-sizing:border-box}
.cc66-video-card h3,.cc66-video-card p{margin:0}.cc66-video-card p{color:#a8c6db;font-size:12px;line-height:1.45}
.cc66-video-card .cc66-video-preview{width:100%;max-height:230px;object-fit:contain;background:#061522;border-radius:10px}
.cc66-video-label{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:13px;color:#d0e7f4}
.cc66-video-label input[type=number]{width:92px;max-width:40%;box-sizing:border-box;background:#0b1c2e;color:#f1f8ff;border:1px solid #42627a;border-radius:8px;padding:9px;font-size:14px}
.cc66-video-cuts{display:flex;flex-direction:column;gap:10px}
.cc66-video-progress{min-height:20px;font-size:12px;color:#75d8f5;line-height:1.4}
.cc66-video-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.cc66-video-actions button{font-size:12px!important;min-width:0!important;flex:0 1 auto!important;padding:9px 11px!important;border:1px solid #42627a!important;border-radius:9px!important;background:#204d6c!important;color:#f0f7ff!important;white-space:normal!important}
.cc66-video-actions button:disabled{opacity:.5}
@media(max-width:380px){.cc66-video-card{padding:12px}.cc66-video-actions button{flex:1 1 45%!important}}


/* CALCHAT_V0661_PROFESSIONAL_MEDIA_CSS */
/* v0.66.1 photo edit — no global selector overrides */
.cc661-photo-overlay{position:fixed;inset:0;z-index:12500;background:#071322e8;display:flex;justify-content:center;align-items:center;padding:12px;box-sizing:border-box}
.cc661-photo-card{width:min(100%,600px);max-height:calc(100dvh - 24px);overflow:auto;background:#12263d;color:#edf7ff;border:1px solid #3b607d;border-radius:16px;padding:14px;box-sizing:border-box;display:flex;flex-direction:column;gap:12px}
.cc661-photo-card h3{margin:0;font-size:16px}.cc661-photo-stage{position:relative;margin:auto;width:max-content;max-width:100%;touch-action:none;overflow:hidden}
.cc661-photo-preview{display:block;max-width:100%;max-height:48dvh;width:auto;height:auto;object-fit:contain;background:#091b2b;touch-action:none}
.cc661-crop-frame{position:absolute;box-sizing:border-box;border:2px solid #fff;outline:900px solid #0008;box-shadow:0 0 0 1px #128bcd;pointer-events:none;background:linear-gradient(90deg,transparent 33%,#ffffff40 33%,#ffffff40 33.3%,transparent 33.3%,transparent 66.6%,#ffffff40 66.6%,#ffffff40 67%,transparent 67%),linear-gradient(0deg,transparent 33%,#ffffff40 33%,#ffffff40 33.3%,transparent 33.3%,transparent 66.6%,#ffffff40 66.6%,#ffffff40 67%,transparent 67%)}
.cc661-crop-frame[hidden]{display:none}.cc661-handle{position:absolute;display:block;width:12px;height:12px;background:#fff;border:1px solid #278dcc;border-radius:3px;box-sizing:border-box;pointer-events:auto}
.cc661-handle-nw{left:-6px;top:-6px;cursor:nwse-resize}.cc661-handle-n{left:50%;top:-6px;cursor:ns-resize}.cc661-handle-ne{right:-6px;top:-6px;cursor:nesw-resize}.cc661-handle-e{right:-6px;top:50%;cursor:ew-resize}.cc661-handle-se{right:-6px;bottom:-6px;cursor:nwse-resize}.cc661-handle-s{bottom:-6px;left:50%;cursor:ns-resize}.cc661-handle-sw{bottom:-6px;left:-6px;cursor:nesw-resize}.cc661-handle-w{left:-6px;top:50%;cursor:ew-resize}
.cc661-photo-toolbar,.cc661-photo-ratios,.cc661-photo-actions{display:flex;flex-wrap:wrap;gap:7px}.cc661-photo-actions{justify-content:flex-end}
.cc661-photo-card button{min-width:0!important;width:auto!important;flex:0 1 auto!important;font-size:13px!important;padding:8px 10px!important;border-radius:9px!important;background:#214260!important;color:#edf7ff!important;border:1px solid #406888!important}
.cc661-photo-caption{box-sizing:border-box;width:100%;background:#19344b;color:white;border:1px solid #496a86;border-radius:9px;padding:10px;font-size:16px}
/* Preserve the video's full frame in chat bubbles and preview without enlarging. */
.cc66-video-preview,.cc66-video-card video{object-fit:contain!important;max-width:100%!important;height:auto!important}

/* CalChat v0.66.1 contained video layout - no crop/zoom for chat media */
.attachment-viewer video,.attachment-viewer video[controls]{display:block!important;position:relative!important;width:auto!important;height:auto!important;max-width:min(96vw,960px)!important;max-height:calc(100dvh - 92px)!important;min-width:0!important;min-height:0!important;object-fit:contain!important;object-position:center!important;margin:auto!important;aspect-ratio:auto!important;background:#000!important;}
.cc66-video-preview{display:block!important;position:relative!important;width:100%!important;height:auto!important;max-height:40dvh!important;object-fit:contain!important;object-position:center!important;aspect-ratio:auto!important;}
.cc661-photo-stage{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;}
.cc661-crop-frame{overflow:visible;}
.cc661-handle{width:16px;height:16px;touch-action:none;}
.cc66-video-card select{max-width:100%;min-width:0;background:#0b1c2e;color:#f1f8ff;border:1px solid #42627a;border-radius:8px;padding:9px;}


/* CALCHAT_CONVERSATION_BANNER_HIDE_V0662
   Birebir sohbet ekraninda ana logolu banner gizlenir.
   Sohbet basligi, arama ve mesajlasma kontrolleri korunur.
*/

/* Mobil: arkadaşla sohbet açıldığında */
@media (max-width:670px) {
  .chat-app:has(.chat-layout.in-conversation) > header {
    display:none !important;
  }

  .chat-app:has(.chat-layout.in-conversation) > .chat-layout {
    height:100dvh !important;
    min-height:0 !important;
    flex:1 1 auto !important;
  }
}

/* Masaüstü: sohbet ekranı açıkken */
@media (min-width:671px) {
  .chat-app:has(.chat-layout.in-conversation) > header {
    display:none !important;
  }

  .chat-app:has(.chat-layout.in-conversation) > .chat-layout {
    height:100dvh !important;
    min-height:0 !important;
    flex:1 1 auto !important;
  }
}


/* CALCHAT_V067_F_GROUP_MANAGEMENT — isolated dialog styles */
.cc67-modal{width:min(96vw,720px);max-height:90dvh;overflow:auto}
.cc67-modal-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.cc67-modal-heading h2{margin:0}
.cc67-panel-host{margin-top:14px}
.cc67-groups .cc67-create{display:flex;gap:8px;flex-wrap:wrap}
.cc67-groups input,.cc67-groups select{min-width:0;max-width:100%;background:#232a37;color:white;border:1px solid #3d495b;border-radius:10px;padding:10px}
.cc67-groups button{background:#19394d;color:#e6faff;border:1px solid #426074;border-radius:9px;padding:9px;cursor:pointer}
.cc67-groups .cc67-group,.cc67-groups .cc67-invite{border:1px solid #354354;border-radius:12px;padding:12px;margin:8px 0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cc67-groups .cc67-status{color:#bdcee0;min-height:1.5em}
.cc67-groups h3{margin-bottom:8px}
@media(max-width:670px){.cc67-modal{padding:14px;max-height:94dvh}.cc67-groups .cc67-create{flex-direction:column}}

/* CALCHAT_V0671_FOUR_SECTION_NAV */
.cc671-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:6px 0 8px;min-width:0}
.cc671-tab{min-width:0!important;width:100%!important;padding:9px 2px!important;font-size:clamp(9px,1.8vw,12px)!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;border-radius:10px!important}
.cc671-tab[aria-current="page"]{background:#19506a!important;border-color:#3286a0!important;color:#fff!important}
.cc671-empty{padding:18px 10px;color:#99aec4;font-size:12px;line-height:1.5}
.cc671-section-chats .cc-pending-v60,.cc671-section-chats .cc-pending-person,.cc671-section-chats .cc-pending-buttons{display:none!important}
.chat-app,.chat-layout,.sidebar,.panel{min-width:0;max-width:100%}
@media(max-width:670px){
 .chat-app{height:100dvh;min-height:0!important;overflow:hidden}
 .chat-layout{height:auto!important;min-height:0!important;flex:1 1 auto!important;overflow:hidden}
 .sidebar{height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding-bottom:calc(12px + env(safe-area-inset-bottom))!important}
 .cc671-nav{position:sticky;top:0;z-index:3;background:#10131b;grid-template-columns:repeat(4,minmax(0,1fr))}
 .chat-layout.in-conversation .cc671-nav{display:none}
 .chat-layout.in-conversation .panel{min-height:0;max-height:100%;overflow:hidden}
}
@media(max-width:360px){.cc671-tab{font-size:9px!important;padding-inline:0!important}.cc671-nav{gap:3px}}

/* CALCHAT_V0672_MOBILE_AND_CHAT_ACTIONS */
.cc672-chat-row{display:flex;align-items:center;min-width:0;width:100%;gap:4px}
.cc672-chat-row>.contact{flex:1 1 auto;min-width:0;width:auto;margin:3px 0;overflow:hidden}
.cc672-chat-row>.contact .contact-main{min-width:0;overflow:hidden}
.cc672-chat-row>.contact .contact-main strong,.cc672-chat-row>.contact .contact-main small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cc672-chat-row>.cc672-more{flex:0 0 38px!important;width:38px!important;min-width:38px!important;min-height:42px!important;padding:0!important;font-size:22px!important;border-radius:12px!important}
.cc-sidebar-navigation{display:flex!important;flex-wrap:wrap;gap:7px;min-width:0}
.cc-sidebar-navigation:empty{display:none!important}
.cc672-action{flex:1 1 0;min-width:0!important;font-size:12px!important;padding:9px 6px!important;white-space:nowrap}
.cc672-search-clear{flex:1 1 100%;min-width:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc672-dialog-card{max-height:min(88dvh,680px);overflow:auto;max-width:min(94vw,430px)}
.cc672-menu-action{display:block!important;width:100%;margin:6px 0;text-align:left;white-space:normal!important;min-height:43px}
.cc672-danger{color:#ffc2c2!important;border-color:#ad4c56!important}
.cc672-search-input{width:100%}
.chat-app,.chat-layout,.sidebar,.panel,.contact-main{box-sizing:border-box;min-width:0}
@media(max-width:670px){
 html,body,#app{width:100%;max-width:100%;overflow-x:hidden}
 .chat-app>header{min-height:0!important;padding:calc(5px + env(safe-area-inset-top)) 9px 6px!important;gap:6px!important}
 .chat-app>header .cc-brand-v60{width:clamp(98px,28vw,128px)!important;height:34px!important}
 .chat-app>header .cc-chat-peer-title{font-size:10px!important}
 .chat-app>header>button{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important}
 .cc671-nav{gap:4px!important;padding:4px 0 6px!important}
 .cc671-tab{font-size:clamp(9px,2.25vw,11px)!important;line-height:1.2!important;height:38px!important;min-height:38px!important;padding:5px 1px!important}
 .sidebar{width:100%!important;max-width:100%!important;overflow-x:hidden!important;min-height:0!important}
 .cc672-chat-row{width:100%!important;max-width:100%!important}
 .cc672-chat-row>.cc672-more{width:36px!important;min-width:36px!important;flex-basis:36px!important}
 .cc672-dialog-card{width:100%;padding:17px}
 .chat-layout.in-conversation{min-height:0!important;overflow:hidden!important}
 .chat-layout.in-conversation .panel{height:100%;max-height:100%;min-height:0!important}
 .chat-layout.in-conversation .messages{min-height:0!important;overflow-y:auto!important;flex:1 1 auto!important}
 .chat-layout.in-conversation .composer{flex:0 0 auto;min-width:0!important;max-width:100%!important}
}
@media(max-width:350px){.cc671-nav{gap:2px!important}.cc671-tab{font-size:9px!important;letter-spacing:-.2px!important}.cc672-chat-row>.cc672-more{flex-basis:32px!important;min-width:32px!important;width:32px!important}}

.cc672-manual-unread{background:#153449;border-radius:12px}.cc672-manual-unread .contact-main strong::after{content:" •";color:#53daeb}

/* CALCHAT_V0672B_COMPACT_CHAT_POPUP */
.cc672-popup-menu{position:fixed!important;z-index:10050!important;width:min(218px,calc(100vw - 16px))!important;max-height:calc(100dvh - 16px)!important;overflow-y:auto!important;overscroll-behavior:contain;background:#1b2b40!important;border:1px solid #38506b!important;border-radius:12px!important;padding:5px!important;box-shadow:0 10px 26px #0007!important;display:flex!important;flex-direction:column!important;gap:2px!important;box-sizing:border-box!important;}
.cc672-popup-item{display:block!important;width:100%!important;min-height:34px!important;height:auto!important;padding:8px 10px!important;margin:0!important;border:0!important;border-radius:8px!important;background:transparent!important;text-align:left!important;color:#e9f2fa!important;font-size:12px!important;font-weight:500!important;line-height:1.3!important;white-space:normal!important;box-shadow:none!important;}
.cc672-popup-item:hover,.cc672-popup-item:focus-visible{background:#2d415b!important;outline:1px solid #486883!important;}
.cc672-popup-danger{color:#ffb9be!important;border-top:1px solid #3a4659!important;border-radius:4px!important;margin-top:3px!important;}
@media(max-width:360px){.cc672-popup-menu{width:min(202px,calc(100vw - 16px))!important}.cc672-popup-item{font-size:12px!important;min-height:32px!important}}

/* CALCHAT_V0672C_CONTEXT_AND_ARCHIVE */
.cc673-inline-search{flex:1 1 0!important;width:48%!important;min-width:0!important;max-width:100%!important;padding:10px 9px!important;font-size:12px!important;height:40px!important;box-sizing:border-box!important}
.cc-sidebar-navigation .cc673-inline-search{min-width:0!important}
.cc673-return,.cc673-archive-link{width:100%!important;min-width:0!important;text-align:left!important;margin:6px 0!important;font-size:12px!important}
.cc672-chat-row>.contact{min-width:0!important}
.cc-chat-app .cc-peer-heading-copy strong{display:block!important}
.panel-head.cc-chat-actions .cc-peer-heading-copy strong{display:block!important;visibility:visible!important;opacity:1!important;color:#f0f6ff!important;font-size:clamp(12px,1.3vw,15px)!important;line-height:1.3!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
.panel-head.cc-chat-actions .cc-peer-heading-copy{display:flex!important;flex-direction:column!important;gap:3px!important;justify-content:center!important;min-width:0!important}
.panel-head.cc-chat-actions .cc-chat-overflow{position:relative!important;min-width:0!important;overflow:visible!important}
.panel-head.cc-chat-actions .cc-chat-menu{position:absolute!important;right:0!important;left:auto!important;top:calc(100% + 5px)!important;z-index:1001!important;width:min(198px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:2px!important;white-space:normal!important;overflow:visible!important}
.panel-head.cc-chat-actions .cc-chat-menu[hidden]{display:none!important}
.panel-head.cc-chat-actions .cc-chat-menu .cc-chat-menu-item{display:block!important;flex:none!important;width:100%!important;height:auto!important;min-height:34px!important;max-height:none!important;padding:8px 9px!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:left!important;font-size:12px!important;line-height:1.35!important}
@media(max-width:670px){.cc673-inline-search{height:38px!important;font-size:12px!important}.panel-head.cc-chat-actions .cc-peer-heading-copy strong{font-size:12px!important}.panel-head.cc-chat-actions .cc-chat-menu{width:min(188px,calc(100vw - 16px))!important}}

.cc673-floating-header-menu{position:fixed!important;z-index:10100!important;top:0;left:0;right:auto!important;width:min(198px,calc(100vw - 16px))!important;max-height:calc(100dvh - 16px)!important;overflow-y:auto!important;display:flex!important;flex-direction:column!important;gap:2px!important;padding:5px!important;border:1px solid #355573!important;border-radius:11px!important;background:#14283f!important;box-shadow:0 10px 24px #0008!important}
.cc673-floating-header-menu[hidden]{display:none!important}
.cc673-floating-header-menu .cc-chat-menu-item{display:block!important;flex:none!important;width:100%!important;min-height:34px!important;max-height:none!important;height:auto!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important;padding:8px 9px!important;font-size:12px!important;line-height:1.3!important;background:transparent!important;border:0!important;color:#e8f2fc!important}
.cc673-floating-header-menu .cc-chat-menu-item:hover{background:#29415b!important}


/* CALCHAT_V0672D_PEER_HEADER_ALIGNMENT: targeted title alignment fix */
.panel-head.cc-chat-actions:not(.cc65-selection-heading){
  align-items:center!important;
  min-height:72px!important;
  height:auto!important;
  padding-top:8px!important;
  padding-bottom:8px!important;
  box-sizing:border-box!important;
}
.panel-head.cc-chat-actions:not(.cc65-selection-heading) .cc-peer-heading{
  display:flex!important;
  align-items:center!important;
  align-self:center!important;
  min-height:48px!important;
  overflow:hidden!important;
}
.panel-head.cc-chat-actions:not(.cc65-selection-heading) .cc-peer-heading-copy{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  align-self:center!important;
  gap:3px!important;
  width:auto!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  position:static!important;
  transform:none!important;
}
.panel-head.cc-chat-actions:not(.cc65-selection-heading) .cc-peer-heading-copy>strong{
  display:block!important;
  position:static!important;
  margin:0!important;
  padding:0!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:17px!important;
  height:auto!important;
  min-height:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}
.panel-head.cc-chat-actions:not(.cc65-selection-heading) .cc-peer-heading-copy>small:not(.cc65-typing){
  display:block!important;
  position:static!important;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  height:auto!important;
  line-height:13px!important;
  font-size:10px!important;
  white-space:nowrap!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.panel-head.cc-chat-actions:not(.cc65-selection-heading) .cc-peer-heading-copy>.cc65-typing:empty{
  display:none!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}
.panel-head.cc-chat-actions:not(.cc65-selection-heading) .cc-peer-heading-copy>.cc65-typing:not(:empty){
  min-height:0!important;
  line-height:12px!important;
  font-size:10px!important;
  margin:0!important;
}
.panel-head.cc-chat-actions:not(.cc65-selection-heading) .cc-peer-heading-copy>.cc-peer-trust{
  display:block!important;
  position:static!important;
  align-self:flex-start!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  line-height:13px!important;
  font-size:10px!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
@media(max-width:670px){
  .panel-head.cc-chat-actions:not(.cc65-selection-heading){min-height:66px!important;padding-top:6px!important;padding-bottom:6px!important}
  .panel-head.cc-chat-actions:not(.cc65-selection-heading) .cc-peer-heading{min-height:48px!important}
  .panel-head.cc-chat-actions:not(.cc65-selection-heading) .cc-peer-heading-copy>strong{font-size:12px!important;line-height:16px!important}
  .panel-head.cc-chat-actions:not(.cc65-selection-heading) .cc-peer-heading-copy>small:not(.cc65-typing),
  .panel-head.cc-chat-actions:not(.cc65-selection-heading) .cc-peer-heading-copy>.cc-peer-trust{font-size:9px!important;line-height:12px!important}
}

/* CALCHAT_V0673_GROUP_LIST */
.cc673-inline-host{min-width:0;max-width:100%;overflow-y:auto;overflow-x:hidden;flex:1 1 auto;padding:10px 5px 22px}.cc673-panel{display:flex;flex-direction:column;gap:10px;min-width:0}.cc673-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.cc673-head h2{margin:0;font-size:16px}.cc673-actions,.cc673-form,.cc673-member,.cc673-link-item{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}.cc673-actions>*{flex:1 1 110px}.cc673-panel .field{min-width:0;max-width:100%;flex:1 1 130px}.cc673-group-list,.cc673-member-list,.cc673-links{display:flex;flex-direction:column;gap:7px;min-width:0}.cc673-group-row,.cc673-group-card,.cc673-member,.cc673-link-item{width:100%;text-align:left;border:1px solid #34465c;border-radius:12px;background:#182c40;color:#e9f4ff;padding:11px;overflow-wrap:anywhere}.cc673-group-row{cursor:pointer}.cc673-note{margin:4px 0;font-size:12px;color:#a5bad0;overflow-wrap:anywhere}.cc673-panel button{max-width:100%;white-space:normal}.cc673-panel input,.cc673-panel select{font-size:14px}.cc673-links h3{font-size:14px;margin:4px 0}.cc673-inline-host::-webkit-scrollbar{width:4px}@media(max-width:670px){.sidebar{display:flex;flex-direction:column;min-height:0;overflow:hidden!important}.cc673-inline-host{padding:8px 2px calc(16px + env(safe-area-inset-bottom));overscroll-behavior:contain}.cc673-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.cc673-actions button{min-width:0!important;padding:9px 5px!important;font-size:12px!important}}


/* CALCHAT_V0674_GROUP_MANAGEMENT */
.cc674-panel{display:flex;flex-direction:column;gap:13px;width:100%;min-width:0;overflow-wrap:anywhere;padding:10px 3px 22px}
.cc674-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.cc674-top h2{font-size:19px;margin:0}.cc674-panel button{max-width:100%;white-space:normal}.cc674-panel input,.cc674-panel select{width:100%;min-width:0;max-width:100%}
.cc674-list{display:flex;flex-direction:column;gap:7px;min-width:0}.cc674-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;min-width:0;border:1px solid #354960;border-radius:13px;background:#16293d;color:#edf6ff;padding:10px;cursor:pointer}
.cc674-avatar{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;background:#213d55;border-radius:12px}.cc674-group-name{display:flex;flex-direction:column;flex:1;min-width:0;gap:3px}.cc674-group-name strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cc674-group-name small{color:#a3b5c8}.cc674-chevron{color:#9bbace;font-size:24px}
.cc674-muted{font-size:12px;color:#afbed0;margin:4px 0}.cc674-notice{color:#98e4e4;font-size:12px;padding:8px}.cc674-notice[hidden]{display:none}.cc674-secondary{align-self:flex-start;padding:9px 12px;border:1px solid #3b526b;background:#1a2d40;color:#e2f2ff;border-radius:10px}
.cc674-section{display:flex;flex-direction:column;gap:9px;padding:12px;border:1px solid #34465b;border-radius:13px;min-width:0}.cc674-section h3{font-size:14px;margin:0}.cc674-member{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0;padding:7px 0;border-bottom:1px solid #304052}.cc674-name{min-width:0;flex:1;overflow-wrap:anywhere}.cc674-member select{width:auto;min-width:94px;max-width:140px}.cc674-danger{background:#3b2634;color:#ffc2c8;border:1px solid #974758;border-radius:9px;padding:9px 12px;cursor:pointer}.cc674-links{display:flex;flex-direction:column;gap:6px}
.cc674-overlay{position:fixed;inset:0;z-index:180;background:#0008;display:flex;justify-content:center;align-items:center;padding:12px}.cc674-dialog{display:flex;flex-direction:column;gap:13px;background:#182739;border:1px solid #38516b;border-radius:16px;padding:16px;width:min(100%,420px);max-height:calc(100dvh - 24px);overflow:auto;color:#eaf4ff}.cc674-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.cc674-dialog h3{margin:0;font-size:17px}.cc674-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px}.cc674-checklist{display:flex;flex-direction:column;gap:8px;max-height:180px;overflow:auto}.cc674-check{display:flex;align-items:center;gap:8px;padding:5px}.cc674-check input{width:auto!important;flex:0 0 auto}
@media(max-width:670px){.cc674-panel{gap:10px;padding:5px 0 18px}.cc674-top h2{font-size:17px}.cc674-top button{font-size:12px;padding:9px}.cc674-section{padding:9px}.cc674-dialog{padding:13px;border-radius:13px}}

/* CC675_GROUP_CONVERSATION_SHELL — isolated responsive layout, no other chat styles changed */
.cc675-group-item{width:100%;min-width:0;text-align:left;display:flex;align-items:center;gap:10px;padding:10px 12px}
.cc675-group-item .contact-main{min-width:0;overflow:hidden}
.cc675-group-item strong,.cc675-group-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc675-group-avatar{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;background:#1c4057;border-radius:13px}
.cc675-panel-head{display:flex!important;align-items:center!important;gap:10px!important;min-height:60px!important;padding:10px 14px!important}
.cc675-panel-title{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.cc675-panel-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc675-panel-title small{color:#9eb6c9;font-size:11px}
.cc675-empty-chat{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:20px;color:#aabed2}
.cc675-empty-chat strong{color:#f2f8fe;font-size:19px}
.cc675-empty-chat p{max-width:360px;font-size:13px;line-height:1.5}
.cc675-group-large{font-size:38px}
.cc675-disabled-composer{display:flex;gap:8px;padding:10px calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom));border-top:1px solid #2e4258}
.cc675-disabled-composer .field{min-width:0;flex:1;opacity:.7}
.cc675-disabled-composer button{opacity:.5;pointer-events:none}
@media(max-width:670px){.cc675-panel-head{padding:7px 9px!important}.cc675-panel-head>button:last-child{font-size:11px!important;max-width:113px!important;overflow:hidden;text-overflow:ellipsis}.cc675-empty-chat{padding:16px}.cc675-disabled-composer{padding-left:8px;padding-right:8px}}


/* CALCHAT_V0675B_GROUP_SHELL_POLISH: fix group shell header icons and sidebar control colors */
.cc675-panel-head{background:linear-gradient(180deg,#12253a,#102136)!important;border-bottom:1px solid #284159!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;padding:10px 10px!important;min-height:62px!important}
.cc675-panel-head>button,.cc675-panel-head .cc-chat-back{font-size:14px!important;line-height:1.1!important;position:relative!important}
.cc675-panel-head>button::before,.cc675-panel-head .cc-chat-back::before{content:none!important;display:none!important}
.cc675-panel-head>.cc-chat-back{width:42px!important;min-width:42px!important;height:42px!important;padding:0!important;display:grid!important;place-items:center!important;background:#182d44!important;border:1px solid #37506c!important;color:#f3f8ff!important;border-radius:13px!important;box-shadow:none!important}
.cc675-panel-head>.cc-chat-back:hover{border-color:#4b84b1!important}
.cc675-panel-head>.cc-chat-back{font-size:24px!important;font-weight:700!important}
.cc675-panel-title{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;gap:2px!important;min-width:0!important}
.cc675-panel-title strong{display:block!important;color:#f4f8fe!important;font-size:16px!important;line-height:1.2!important;margin:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.cc675-panel-title small{display:block!important;color:#9eb8cf!important;font-size:11px!important;line-height:1.2!important;margin:0!important}
.cc675-panel-head>button:last-child{width:auto!important;min-width:116px!important;max-width:152px!important;height:42px!important;padding:0 14px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#182d44!important;border:1px solid #37506c!important;color:#eef6ff!important;border-radius:13px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;box-shadow:none!important}
.cc675-panel-head>button:last-child:hover{border-color:#4a84b2!important;background:#1c3450!important}
.cc675-empty-chat{background:linear-gradient(180deg,rgba(9,24,39,.28),rgba(9,24,39,0))!important}
.cc675-disabled-composer{background:#102136!important}
.cc675-disabled-composer .field{background:#1b2f46!important;border-color:#35506d!important;color:#d4e6f6!important;opacity:1!important}
.cc675-disabled-composer button{background:linear-gradient(110deg,#34b9ac,#47c5b8)!important;border:0!important;color:#09262a!important;opacity:1!important}
.cc675-disabled-composer button[disabled],.cc675-disabled-composer button:disabled{opacity:.52!important}
.cc-sidebar-navigation .cc673-inline-search{background:#15283d!important;border:1px solid #2f4c6a!important;color:#e5f2fb!important;box-shadow:none!important}
.cc-sidebar-navigation .cc673-inline-search::placeholder{color:#8ea8bf!important}
.cc-sidebar-navigation .cc672-action{background:linear-gradient(110deg,#34b9ac,#47c5b8)!important;border:0!important;color:#09262a!important;box-shadow:none!important}
.cc-sidebar-navigation .cc672-action:hover{filter:brightness(1.03)!important;box-shadow:0 6px 16px #0b6f7a29!important}
@media(max-width:670px){
 .cc675-panel-head{grid-template-columns:40px minmax(0,1fr) auto!important;gap:8px!important;padding:8px 8px!important;min-height:56px!important}
 .cc675-panel-head>.cc-chat-back{width:38px!important;min-width:38px!important;height:38px!important;border-radius:12px!important;font-size:22px!important}
 .cc675-panel-title strong{font-size:15px!important}
 .cc675-panel-title small{font-size:10px!important}
 .cc675-panel-head>button:last-child{min-width:108px!important;max-width:128px!important;height:38px!important;font-size:12px!important;padding:0 10px!important}
 .cc-sidebar-navigation{align-items:stretch!important}
 .cc-sidebar-navigation .cc673-inline-search,.cc-sidebar-navigation .cc672-action{flex:1 1 calc(50% - 4px)!important;width:auto!important;height:40px!important}
}

/* CALCHAT_V0676_GROUP_DETAIL_PRO: tabbed scalable group detail UI */
.cc676-panel{position:relative}
.cc676-search{min-height:44px;border-radius:14px}
.cc676-group-row{align-items:center}
.cc676-detail-wrap{display:flex;flex-direction:column;gap:12px;padding:4px 0 2px}
.cc676-detail-head{display:flex;flex-direction:column;gap:8px}
.cc676-detail-title{font-size:28px;line-height:1.15;margin:0;color:#f1f7ff}
.cc676-chip-list{display:flex;flex-wrap:wrap;gap:8px}
.cc676-pill{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 10px;border-radius:999px;background:#1c3349;border:1px solid #35516d;color:#d7e9fb;font-size:12px;white-space:nowrap}
.cc676-pill.is-owner{background:#2a394f;border-color:#5b7aa2}
.cc676-pill.is-admin{background:#18354f;border-color:#3976a4}
.cc676-pill.is-moderator{background:#20364a;border-color:#4d708e}
.cc676-pill.is-member{background:#192c3d;border-color:#30465d}
.cc676-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.cc676-tab{min-height:42px;border-radius:12px;border:1px solid #35516b;background:#16283b;color:#dbe9f7;padding:9px 10px;font-weight:700}
.cc676-tab.is-active{background:linear-gradient(180deg,#1f527a,#184764);border-color:#50a8dc;color:#fff;box-shadow:0 0 0 1px #2d9de755}
.cc676-hero{display:flex;flex-direction:column;gap:16px;padding:16px;border:1px solid #34506b;border-radius:18px;background:linear-gradient(180deg,#10253a,#0f1f33)}
.cc676-hero-sub{display:flex;flex-wrap:wrap;gap:8px}
.cc676-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cc676-stat{display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:15px;border:1px solid #33506b;background:#14273b}
.cc676-stat small{font-size:12px;color:#a8bfd5}
.cc676-stat strong{font-size:22px;color:#f1f7ff;line-height:1.1}
.cc676-stat.accent{background:linear-gradient(180deg,#15324c,#12314a);border-color:#4993c8}
.cc676-quick-actions,.cc676-inline-actions{display:flex;flex-wrap:wrap;gap:8px}
.cc676-quick-actions .cc676-tab{grid-template-columns:none;display:inline-flex;justify-content:center;flex:1 1 140px}
.cc676-summary-grid,.cc676-stack{display:grid;gap:12px}
.cc676-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.cc676-card{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid #314a64;border-radius:16px;background:rgba(19,35,53,.78)}
.cc676-card h3{margin:0;font-size:17px;color:#f1f7ff}
.cc676-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cc676-member-list{display:flex;flex-direction:column;gap:10px}
.cc676-member-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px;border:1px solid #30455d;border-radius:14px;background:#11253a}
.cc676-member-main{display:flex;align-items:center;gap:10px;min-width:0}
.cc676-member-avatar{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,#245179,#1b3450);color:#fff;font-weight:800;font-size:13px}
.cc676-member-meta{display:flex;flex-direction:column;gap:5px;min-width:0}
.cc676-member-meta strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc676-member-actions{display:flex;align-items:center;justify-content:flex-end}
.cc676-ghost{width:40px;min-width:40px;height:40px;padding:0;border-radius:12px;border:1px solid #3a5370;background:#1a3045;color:#e3eefb;font-size:20px}
.cc676-member-menu{grid-column:1/-1;display:flex;flex-direction:column;gap:10px;margin-top:2px;padding-top:10px;border-top:1px solid #2c4258}
.cc676-menu-title{font-size:12px;color:#abc0d4}
.cc676-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.cc676-mini{min-height:38px;border-radius:12px;border:1px solid #375069;background:#16283c;color:#e3eef8;padding:8px;font-size:12px}
.cc676-mini.is-current{border-color:#5fb5e7;background:#1f4663}
.cc676-link-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #294159}
.cc676-link-row:last-child{border-bottom:0;padding-bottom:0}
.cc676-link-meta{min-width:0;display:flex;flex-direction:column;gap:4px}
.cc676-link-meta strong{font-size:14px;color:#eef6ff}
.cc676-link-meta small{color:#a9bfd2}
.cc676-permission-list{display:flex;flex-direction:column;gap:10px}
.cc676-permission-item{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:12px;background:#13273a;border:1px solid #2f4760}
.cc676-permission-item strong{font-size:14px;color:#eef6ff}
.cc676-permission-item small{color:#a9bed2}
.cc676-danger-zone{border-color:#704454;background:rgba(52,24,34,.28)}
@media(max-width:900px){.cc676-summary-grid{grid-template-columns:1fr}.cc676-quick-actions .cc676-tab{flex:1 1 100%}}
@media(max-width:670px){.cc676-detail-title{font-size:24px}.cc676-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.cc676-stats{grid-template-columns:1fr 1fr}.cc676-card,.cc676-hero{padding:12px}.cc676-member-row{padding:10px}.cc676-role-grid{grid-template-columns:1fr}.cc676-link-row{flex-direction:column;align-items:stretch}.cc676-inline-actions{width:100%}.cc676-inline-actions button{flex:1 1 0}.cc676-quick-actions{flex-direction:column}.cc676-quick-actions .cc676-tab{width:100%}}
@media(max-width:420px){.cc676-tabs{grid-template-columns:1fr 1fr}.cc676-stats{grid-template-columns:1fr}.cc676-member-main{align-items:flex-start}.cc676-member-meta strong{white-space:normal;overflow-wrap:anywhere}.cc676-ghost{width:36px;min-width:36px;height:36px}}

/* CALCHAT_V0677B_GROUP_LAYOUT — scoped responsive group management corrections */
.cc671-section-groups,.cc673-inline-host,.cc676-panel,.cc676-detail-wrap{min-width:0;box-sizing:border-box}
.cc676-panel,.cc676-panel *{box-sizing:border-box}
.cc676-tab{min-width:0!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;font-size:12px!important;line-height:1.15!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:9px 5px!important;text-align:center}
.cc676-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
.cc676-hero{gap:10px!important;padding:12px!important;border-radius:14px!important}
.cc676-hero .cc674-title{font-size:17px!important;line-height:1.2!important;margin:0!important}
.cc676-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
.cc676-stat{min-width:0!important;padding:9px!important;border-radius:11px!important;gap:3px!important}
.cc676-stat strong{font-size:19px!important}
.cc676-stat small{font-size:11px!important;line-height:1.3!important}
.cc676-quick-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
.cc676-quick-actions>.cc676-tab{min-width:0!important;width:100%!important;min-height:38px!important;max-width:none!important}
.cc676-detail-title{font-size:clamp(19px,2vw,23px)!important;overflow-wrap:anywhere!important}
.cc676-card{padding:11px!important;border-radius:13px!important;min-width:0!important}
.cc676-summary-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
.cc676-member-row{min-width:0!important}
.cc676-member-meta,.cc676-link-meta{min-width:0!important}
.cc676-member-meta strong{overflow-wrap:anywhere!important}
.cc676-panel .cc674-top{gap:6px!important}
.cc676-panel .cc674-top h2{font-size:15px!important;line-height:1.2!important}
.cc676-panel .cc674-top button{flex-shrink:0!important}
@media(min-width:671px){
 .chat-layout:has(.sidebar.cc671-section-groups){grid-template-columns:minmax(395px, min(36vw,520px)) minmax(0,1fr)!important}
 .chat-layout:has(.sidebar.cc671-section-groups)>.sidebar{width:auto!important;min-width:0!important;max-width:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding:16px!important}
 .sidebar.cc671-section-groups .cc676-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .sidebar.cc671-section-groups .cc676-tab{font-size:12px!important;padding-inline:4px!important}
 .sidebar.cc671-section-groups .cc676-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .sidebar.cc671-section-groups .cc676-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .sidebar.cc671-section-groups .cc676-hero{padding:14px!important}
}
@media(max-width:670px){
 .sidebar.cc671-section-groups{overflow-x:hidden!important}
 .sidebar.cc671-section-groups .cc676-panel{padding:4px 0 16px!important;gap:9px!important}
 .sidebar.cc671-section-groups .cc676-detail-wrap{gap:8px!important}
 .sidebar.cc671-section-groups .cc676-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .sidebar.cc671-section-groups .cc676-tab{height:39px!important;min-height:39px!important;font-size:12px!important}
 .sidebar.cc671-section-groups .cc676-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .sidebar.cc671-section-groups .cc676-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .sidebar.cc671-section-groups .cc676-summary-grid{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:350px){
 .sidebar.cc671-section-groups .cc676-tab{font-size:11px!important}
 .sidebar.cc671-section-groups .cc676-card{padding:9px!important}
 .sidebar.cc671-section-groups .cc676-stat{padding:8px!important}
}
