/* Dosya Kasa Cloud — messenger v49. Isolated from historical messenger CSS. */
.route-chat .page-shell{padding:0!important;min-height:0!important;max-width:none!important}
.route-chat main{overflow:hidden}
.cx-app{--cx-bg:var(--surface-main,var(--card));--cx-side:var(--surface-sunken,var(--soft));--cx-text:var(--text);--cx-muted:var(--muted);--cx-hover:var(--surface-hover);--cx-sel:var(--surface-selected);--cx-accent:var(--accent,#2667db);--cx-hair:color-mix(in srgb,var(--cx-text) 10%,transparent);display:grid;grid-template-columns:minmax(255px,310px) minmax(0,1fr);height:100dvh;width:100%;overflow:hidden;background:var(--cx-bg);color:var(--cx-text);font-family:inherit;font-size:14px}
.cx-app *{box-sizing:border-box}
.cx-app button,.cx-app input,.cx-app textarea{font:inherit}
.cx-app button{cursor:pointer}
.cx-app [hidden],.cx-dialog [hidden],.cx-menu[hidden],.cx-emoji-pop[hidden]{display:none!important}
.cx-app svg,.cx-row-more svg,.cx-menu svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.cx-list-panel{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--cx-side);border-right:1px solid var(--cx-hair)}
.cx-list-top{height:76px;min-height:76px;display:flex;align-items:center;justify-content:space-between;padding:15px 17px 8px 21px}
.cx-list-top h1{font-size:21px;letter-spacing:-.55px;font-weight:730;margin:0;line-height:1.3}
.cx-icon{flex:0 0 auto;display:grid;place-items:center;width:38px;height:38px;min-height:38px;padding:0;background:transparent;color:var(--cx-text);border:0;border-radius:10px;box-shadow:none;transition:background .12s}
.cx-icon:hover,.cx-row-more:hover{background:var(--cx-hover)}
.cx-icon:focus-visible,.cx-row:focus-visible,.cx-send:focus-visible,.cx-menu button:focus-visible{outline:2px solid var(--cx-accent);outline-offset:-2px}
.cx-find{height:40px;margin:0 13px 16px;display:flex;align-items:center;gap:9px;padding:0 12px;background:var(--cx-bg);border:0;border-radius:10px}
.cx-find svg{width:16px;height:16px;color:var(--cx-muted)}
.cx-find input,.cx-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--cx-text);font-size:13px;padding:0}
.cx-find input::placeholder,.cx-search input::placeholder{color:var(--cx-muted)}
.cx-chatlist{overflow:auto;overscroll-behavior:contain;min-height:0;padding:0 8px 24px;scrollbar-width:thin}
.cx-section-label{color:var(--cx-muted);font-size:11px;font-weight:700;letter-spacing:.01em;padding:9px 12px 7px}
.cx-people-label{padding-top:20px}
.cx-row-wrap{position:relative;display:flex;align-items:center;min-width:0;border-radius:10px}
.cx-row-wrap:hover{background:var(--cx-hover)}
.cx-row-wrap:has(.cx-row.is-active){background:var(--cx-sel)}
.cx-row{appearance:none;border:0!important;display:flex;align-items:center;gap:10px;text-align:left;background:transparent!important;color:var(--cx-text)!important;padding:11px 11px!important;width:100%;min-width:0;min-height:63px;border-radius:10px;box-shadow:none!important}
.cx-avatar{width:39px;height:39px;min-width:39px;display:grid;place-items:center;border-radius:13px;background:color-mix(in srgb,var(--cx-accent) 14%,var(--cx-bg));color:var(--cx-accent);font-size:13px;font-weight:750;letter-spacing:.01em;user-select:none}
.cx-avatar svg{width:20px;height:20px}
.cx-person{border-radius:50%;background:color-mix(in srgb,var(--cx-text) 8%,var(--cx-bg));color:var(--cx-text)}
.cx-row-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;line-height:1.3}
.cx-row-copy b{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13.5px;letter-spacing:-.1px;font-weight:650}
.cx-row-copy small{font-size:11.5px;color:var(--cx-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}
.cx-pin{color:var(--cx-muted);font-size:17px;margin-right:5px}
.cx-row-more{border:0;background:transparent;flex:0 0 29px;width:29px;height:32px;min-height:32px;position:absolute;right:5px;top:50%;transform:translateY(-50%);color:var(--cx-muted);font-size:17px;padding:0;border-radius:8px;opacity:0}
.cx-row-wrap:hover .cx-row-more,.cx-row-wrap:focus-within .cx-row-more{opacity:1}
.cx-row-wrap:has(.cx-row-more) .cx-row{padding-right:35px!important}
.cx-noresults{font-size:13px;color:var(--cx-muted);padding:15px}
.cx-thread{min-width:0;min-height:0;display:grid;grid-template-rows:68px minmax(0,1fr) auto;background:var(--cx-bg);position:relative}
.cx-thread:has(.cx-search:not([hidden])){grid-template-rows:68px 52px minmax(0,1fr) auto}
.cx-thread-head{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-width:0;min-height:0;margin:0;padding:0 20px;border-bottom:1px solid var(--cx-hair);background:var(--cx-bg)}
.cx-head-avatar{width:37px;height:37px;min-width:37px}
.cx-heading{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;line-height:1.35}
.cx-heading b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:680}
.cx-heading span{font-size:11.5px;color:var(--cx-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cx-back{display:none}
.cx-search{display:flex;align-items:center;padding:10px 22px;gap:8px;border-bottom:1px solid var(--cx-hair);background:var(--cx-bg);height:52px}
.cx-search button{width:32px;height:30px;border:0;border-radius:7px;background:transparent;color:var(--cx-muted);font-size:21px}
.cx-message-scroll{overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;position:relative;padding:24px clamp(15px,5vw,70px) 16px}
.cx-messages{display:flex;flex-direction:column;justify-content:flex-end;gap:5px;min-height:100%;max-width:960px;margin:0 auto}
.cx-empty{margin:auto;text-align:center;color:var(--cx-muted);font-size:13px;padding:22px}
.cx-msg{display:flex;flex-direction:column;align-self:flex-start;max-width:min(76%,600px);width:fit-content;padding:10px 12px 7px;background:var(--cx-side);border-radius:14px 14px 14px 5px;position:relative;min-width:75px;overflow-wrap:anywhere}
.cx-msg.cx-mine{align-self:flex-end;background:var(--cx-sel);border-radius:14px 14px 5px 14px}
.cx-msg p{font-size:13.5px;font-weight:400;line-height:1.53;white-space:pre-wrap;margin:0;color:var(--cx-text)}
.cx-msg-meta{font-size:10px;color:var(--cx-muted);align-self:flex-end;line-height:1.4;margin-top:4px;font-variant-numeric:tabular-nums}
.cx-msg-more{position:absolute;top:0;right:-36px;width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:8px;color:var(--cx-muted);background:transparent;opacity:0;font-size:18px;padding:0}
.cx-mine .cx-msg-more{right:auto;left:-36px}
.cx-msg:hover .cx-msg-more,.cx-msg:focus-within .cx-msg-more{opacity:1}
.cx-msg-more:hover{background:var(--cx-hover)}
.cx-file{display:flex;align-items:center;gap:10px;margin-top:6px;padding:7px;border-radius:9px;background:color-mix(in srgb,var(--cx-text) 4%,transparent);min-width:0;max-width:100%}
.cx-file-icon{display:grid;place-items:center;min-width:34px;width:34px;height:34px;border-radius:7px;background:var(--cx-bg);color:var(--cx-muted)}
.cx-file-copy{min-width:0;flex:1;text-decoration:none!important;color:var(--cx-text)!important;display:flex;flex-direction:column;gap:2px}
.cx-file-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600}
.cx-file-copy span{font-size:10.5px;color:var(--cx-muted)}
.cx-file-actions{display:grid;place-items:center;width:26px;min-width:26px;height:28px;border:0;border-radius:7px;background:transparent;color:var(--cx-muted);font-size:19px}
.cx-file-image{display:block;max-width:100%;max-height:250px;border-radius:9px;object-fit:contain;margin-top:3px;background:var(--cx-bg)}
.cx-compose-zone{position:relative;min-width:0;padding:10px clamp(12px,3vw,28px) 13px;background:var(--cx-bg);border-top:1px solid var(--cx-hair)}
.cx-compose{display:flex;align-items:flex-end;gap:7px;max-width:950px;margin:0 auto;min-height:44px;padding:5px 6px 5px 4px;background:var(--cx-side);border-radius:15px}
.cx-compose textarea{flex:1;min-width:0;max-height:140px;min-height:34px;resize:none;overflow:auto;align-self:center;padding:8px 0 7px;border:0!important;background:transparent!important;outline:0;box-shadow:none!important;color:var(--cx-text);font-size:14px!important;line-height:1.35;border-radius:0!important}
.cx-compose textarea::placeholder{color:var(--cx-muted)}
.cx-compose .cx-icon{width:34px;height:34px;min-height:34px;color:var(--cx-muted)}
.cx-send{width:36px;min-width:36px;height:36px;min-height:36px;border:0;border-radius:11px;background:var(--cx-accent);color:#fff;display:grid;place-items:center;padding:0;box-shadow:none}
.cx-send svg{width:19px;height:19px;stroke:#fff}
.cx-send:disabled{cursor:default;opacity:.35}
.cx-new-pill{position:absolute;bottom:calc(84px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:8px 13px;color:var(--cx-text);border:1px solid var(--cx-hair);background:var(--cx-side);border-radius:999px;font-size:12px;box-shadow:0 5px 14px rgba(0,0,0,.08);z-index:3}
.cx-older{display:block;margin:0 auto 20px;border:0;background:var(--cx-side);color:var(--cx-text);padding:8px 14px;border-radius:9px;font-size:12px}
.cx-attachments{display:flex;gap:7px;overflow-x:auto;padding:0 0 9px;max-width:950px;margin:auto;scrollbar-width:thin}
.cx-chip{display:flex;align-items:center;gap:7px;max-width:min(270px,70vw);min-width:0;border:0;border-radius:9px;background:var(--cx-side);padding:6px 7px 6px 10px;font-size:11px}
.cx-chip b{font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cx-chip button{width:26px;height:26px;min-height:26px;border:0;border-radius:7px;background:var(--cx-hover);color:var(--cx-text)}
.cx-notice{display:flex;align-items:center;gap:10px;background:var(--cx-side);margin:0 auto 9px;max-width:950px;padding:8px 10px;border-radius:9px;font-size:12px;color:var(--cx-text)}
.cx-notice span{flex:1}
.cx-notice button{border:0;background:transparent;color:var(--cx-accent);font-weight:600;padding:5px}
.cx-menu{position:fixed;z-index:200;min-width:170px;max-width:min(290px,calc(100vw - 16px));border:1px solid var(--cx-hair,var(--line));border-radius:12px;padding:6px;background:var(--surface-raised,var(--card));box-shadow:0 14px 36px rgba(0,0,0,.14);color:var(--text)}
.cx-menu button{display:flex;align-items:center;width:100%;min-height:39px;text-align:left;padding:0 11px;border:0;border-radius:8px;background:transparent;color:inherit;font-size:12.5px}
.cx-menu button:hover{background:var(--surface-hover)}
.cx-menu .cx-danger{color:#d95050}
.cx-dialog{width:min(390px,calc(100vw - 30px));border:1px solid var(--line);border-radius:15px;padding:22px;background:var(--surface-main,var(--card));color:var(--text)}
.cx-dialog::backdrop{background:rgba(0,0,0,.38)}
.cx-dialog h2{margin:0 0 16px;font-size:17px;letter-spacing:-.2px}
.cx-dialog input,.cx-dialog textarea{background:var(--input,var(--surface-sunken));border:1px solid var(--line);border-radius:10px;color:var(--text);width:100%;padding:11px 12px;font-size:13px}
.cx-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.cx-dialog-actions button{border:0;border-radius:9px;padding:10px 15px;font-size:13px;background:var(--surface-hover);color:var(--text)}
.cx-dialog-actions .cx-action{background:var(--accent);color:#fff}
.cx-dialog p[role="alert"]{font-size:12px;color:#d95050}
.cx-emoji-pop{position:fixed;z-index:210;display:flex;gap:3px;padding:7px;background:var(--surface-raised);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 22px rgba(0,0,0,.16)}
.cx-emoji-pop button{width:34px;height:34px;border:0;border-radius:8px;background:transparent;font-size:19px}
.cx-emoji-pop button:hover{background:var(--surface-hover)}
@media (min-width:1500px){.cx-app{grid-template-columns:330px minmax(0,1fr)}.cx-msg{max-width:min(70%,640px)}}
@media (max-width:800px){
 .route-chat .page-shell{padding:0!important}
 .cx-app{height:calc(100dvh - 78px - env(safe-area-inset-bottom));width:100%;display:block;overflow:hidden}
 .cx-list-panel{display:flex;max-height:100%;height:100%;background:var(--cx-bg);border:0}
 .cx-list-top{padding-left:60px;padding-right:58px;min-height:70px;height:70px}
 .cx-list-top h1{font-size:20px}
 .cx-new{position:absolute;right:53px;top:18px}
 .cx-find{margin:0 14px 10px;background:var(--cx-side)}
 .cx-chatlist{padding:0 8px 30px}
 .cx-row{min-height:67px}
 .cx-row-more{opacity:1;width:37px;height:37px;min-height:37px}
 .cx-row-copy b{font-size:14px}.cx-row-copy small{font-size:12px}
 .cx-thread{display:none}
 .route-chat.cx-thread-open .cx-list-panel{display:none}
 .route-chat.cx-thread-open .cx-thread{display:grid;position:fixed;top:var(--cx-vv-top,0px);left:0;right:0;width:100%;height:var(--cx-vvh,100dvh);z-index:80;grid-template-rows:56px minmax(0,1fr) auto}
 .route-chat.cx-thread-open .cloud-mobile-bottomnav{display:none!important}
 .route-chat.cx-thread-open{overflow:hidden}
 .cx-thread:has(.cx-search:not([hidden])){grid-template-rows:56px 52px minmax(0,1fr) auto}
 .cx-thread-head{gap:8px;padding:0 9px}
 .cx-head-avatar{width:35px;height:35px;min-width:35px}
 .cx-back{display:grid}
 .cx-heading b{font-size:14px}.cx-heading span{font-size:11px}
 .cx-message-scroll{padding:12px 12px 10px}
 .cx-msg{max-width:86%;padding:9px 34px 6px 11px}
 .cx-msg p{font-size:14px}
 .cx-msg-more{opacity:.64;right:3px;top:1px;width:26px;height:26px;background:transparent}
 .cx-msg:not(.cx-mine) .cx-msg-more{right:3px}
 .cx-mine .cx-msg-more{left:auto;right:3px}
 .cx-compose-zone{padding:8px 8px calc(8px + env(safe-area-inset-bottom))}
 .cx-compose{border-radius:14px;min-height:47px}
 .cx-compose textarea{font-size:16px!important;min-height:37px}
 .cx-emoji{display:none}
 .cx-compose .cx-icon{width:38px;height:38px;min-height:38px}
 .cx-send{width:38px;height:38px;min-height:38px}
 .cx-new-pill{bottom:calc(76px + env(safe-area-inset-bottom))}
 .cx-older{font-size:12px}
}
@media (max-width:380px){.cx-row-copy b{font-size:13px}.cx-avatar{width:36px;height:36px;min-width:36px}.cx-thread-head{gap:6px}.cx-thread-head .cx-icon{width:34px}}
@media (prefers-reduced-motion:reduce){.cx-app *{transition:none!important;animation:none!important}}
