/**
 * Alaeddin Ai V2 / C-eddin Ai — Karakterli Sohbet V3
 * FTP: C-eddin/teknoenai/css/ceddin-ai-chat-v3.css
 * Kapsam: Yalnız .ce-chat-page / .ce-chat-* bileşenleri; ortak chrome bozulmaz.
 * © 2005–2026 Teknoen Yapay Zeka ve Bilişim Teknolojileri A.Ş.
 */
:root{--cechat-deep:#2f361b;--cechat-text:#323627;--cechat-leaf:#5d7224;--cechat-light:#f4f7ec;--cechat-line:#ecefe2;--cechat-mute:#848b72;--cechat-blue:#537eee}
.ce-chat-page{margin:0;background:linear-gradient(160deg,#f8faf3,#fafdfe 46%,#f5f9fd);font:15px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--cechat-text)}
.ce-chat-page *, .ce-chat-page *:before,.ce-chat-page *:after{box-sizing:border-box}
.ce-chat-shell{width:min(1500px,calc(100% - 36px));margin:24px auto 62px}
.ce-chat-head{background:linear-gradient(112deg,#fff 0%,#f7f9f2 56%,#f0f4e4);border:1px solid #e8edda;border-radius:21px;padding:24px 32px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 14px 30px #535f310b;margin-bottom:18px}
.ce-chat-back{display:inline-block;text-decoration:none;font-size:12px;font-weight:800;color:#5b6e28;margin-bottom:7px}.ce-chat-back:hover{text-decoration:underline}
.ce-chat-kicker{font-size:10px;font-weight:850;letter-spacing:.18em;color:#7b8d4a}.ce-chat-head h1{font-size:clamp(29px,3.4vw,43px);letter-spacing:-.04em;color:#343d1a;line-height:1.25;margin:4px 0}.ce-chat-head h1 span{font-weight:450;color:#636952}.ce-chat-head p{color:#7f866d;font-size:13px;margin:3px 0 0}
.ce-chat-head-right{display:flex;align-items:center;gap:15px}.ce-head-pict{width:64px;height:64px;border-radius:20px;background:linear-gradient(135deg,#e3ebce,#bcc998);color:#556723;display:grid;place-items:center;font-size:38px}.ce-live-flag{background:white;border:1px solid #e6ecd8;padding:7px 11px;border-radius:50px;font-size:11px;font-weight:800;color:#647141}
.ce-chat-frame{display:grid;grid-template-columns:318px minmax(0,1fr);background:#fff;border:1px solid var(--cechat-line);border-radius:21px;overflow:hidden;min-height:685px;box-shadow:0 20px 50px rgba(40,48,20,.07)}
.ce-chat-sidebar{min-width:0;background:#fafffb;border-right:1px solid #eceee5;display:flex;flex-direction:column;min-height:685px}
.ce-sidebar-head{display:flex;justify-content:space-between;align-items:center;padding:22px 22px 13px}.ce-sidebar-head strong{display:block;font-size:17px;color:#31381d}.ce-sidebar-head span{display:block;color:#979d87;font-size:11px;margin-top:2px}.ce-sidebar-close{display:none}
.ce-sidebar-filter{margin:0 16px 12px;border:1px solid #e7ebdc;background:#fff;border-radius:11px;display:flex;align-items:center;gap:8px;padding:8px 12px;color:#8a9668;font-size:19px}.ce-sidebar-filter input{width:100%;min-width:0;border:0;outline:0;font:inherit;font-size:12px;background:transparent;color:#384024}.ce-sidebar-filter input::placeholder{color:#a7ac99}
.ce-bot-list{flex:1;min-height:0;max-height:540px;overflow-y:auto;padding:0 10px 8px}.ce-bot-list::-webkit-scrollbar,.ce-chat-stream::-webkit-scrollbar{width:7px}.ce-bot-list::-webkit-scrollbar-thumb,.ce-chat-stream::-webkit-scrollbar-thumb{background:#dcdfd5;border-radius:99px}
.ce-bot-item{display:flex;align-items:center;gap:11px;padding:10px 11px;margin:4px 0;border-radius:12px;position:relative;transition:background .2s}.ce-bot-item:hover{background:#f6f8f0}.ce-bot-item.is-current{background:#f2f6e9;border:1px solid #dee3d1;padding:9px 10px}.ce-bot-avatar,.ce-stream-avatar{display:grid;place-items:center;border-radius:15px;flex-shrink:0;width:47px;height:47px;background:#ecf1df;color:#5c6c30;overflow:hidden;border:1px solid #dee3d1;position:relative}.ce-bot-avatar img,.ce-stream-avatar img{width:100%;height:100%;object-fit:cover}.ce-default-avatar{font-size:18px;font-weight:850}
.ce-bot-meta{min-width:0;flex:1;display:grid;gap:2px}.ce-bot-name{color:#3c412d;font-size:12.5px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ce-bot-status{color:#929882;font-size:10.5px}.ce-bot-status:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#c9ccc1;margin:0 6px 1px 0}.ce-bot-status.is-online{color:#5d7128}.ce-bot-status.is-online:before{background:#869f41;box-shadow:0 0 0 3px #ebf0dd}.ce-bot-status.is-typing{color:#386fea}.ce-bot-status.is-typing:before{background:#6387f7;animation:cePulse 1.1s infinite}
.ce-bot-typing-mark{color:#4d77ed;font-weight:900;font-size:16px;letter-spacing:2px;animation:cePulse 1s infinite}.ce-bot-gated{font-size:9px;font-weight:800;color:#8b6d2c;background:#fff4dc;border:1px solid #f0dcae;border-radius:99px;padding:3px 6px}
.ce-sidebar-footer{border-top:1px solid #ecf0e3;padding:15px 19px;display:flex;align-items:center;gap:10px;color:#8c927a;font-size:10px;line-height:1.4}.ce-activity-pulse{height:8px;width:8px;background:#cad1b7;border-radius:50%;flex-shrink:0}
.ce-chat-room{display:flex;flex-direction:column;min-width:0;min-height:685px;background:linear-gradient(180deg,#fff,#fff 55%,#fdfefc)}
.ce-room-header{display:flex;align-items:center;gap:12px;border-bottom:1px solid #edefe7;min-height:78px;padding:13px 24px}.ce-room-avatar{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:linear-gradient(130deg,#62762a,#b0c083);color:white;font-size:19px;font-weight:900}.ce-room-who{display:grid;gap:2px}.ce-room-who strong{font-size:15px;line-height:1.35;color:#2e341f}.ce-room-who span{font-size:11px;color:#999f89}.ce-room-status{margin-left:auto;padding:7px 12px;border:1px solid #dde3cf;color:#6a7b3d;border-radius:30px;font-weight:800;font-size:11px;background:#f8faf3}.ce-sidebar-toggle{display:none;border:0;background:transparent;color:#536426;font-size:20px;cursor:pointer}
.ce-chat-stream{padding:30px clamp(16px,3vw,40px);height:480px;overflow:auto;display:flex;flex-direction:column;gap:23px;scroll-behavior:smooth}.ce-chat-today{margin:0 auto;background:#f5f6f0;border:1px solid #ecf0e2;color:#989d88;font-size:10.5px;padding:6px 14px;border-radius:99px}
.ce-chat-row{display:flex;align-items:flex-end;gap:11px;max-width:86%}.ce-chat-row-user{align-self:flex-end;justify-content:flex-end}.ce-chat-row-bot{align-self:flex-start}.ce-chat-row .ce-stream-avatar{width:39px;height:39px;border-radius:13px}.ce-bubble-wrap{min-width:0;display:grid;gap:6px}.ce-bubble-name{font-weight:830;font-size:11.5px;color:#57662f}.ce-bubble-name span{font-weight:500;color:#9ea48f}.ce-chat-bubble{padding:14px 18px;font-size:13px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 5px 13px rgba(36,41,22,.04)}.ce-bubble-bot{background:#f5f7f0;border:1px solid #edf0e6;color:#484d3a;border-radius:5px 16px 16px 16px}.ce-bubble-user{background:linear-gradient(130deg,#5b83fb,#4570e5);border-radius:16px 5px 16px 16px;color:#fff}.ce-bubble-source{font-size:10px;color:#848c70}.ce-bubble-source a{color:#6e7e44;text-decoration:underline;text-underline-offset:3px}
.ce-chat-alert{margin:4px 25px 12px;padding:12px 15px;border:1px solid #f0d6ad;background:#fff9ec;color:#8d6422;font-size:12px;border-radius:11px}.ce-chat-alert[hidden]{display:none}.ce-typing-indicator{margin:2px 25px 12px;display:flex;align-items:center;gap:10px;color:#7d8565;font-size:11px}.ce-typing-indicator[hidden]{display:none}.ce-typing-dots{color:#7a913c;font-weight:900;letter-spacing:3px;animation:cePulse 1s infinite}
.ce-chat-composer{margin-top:auto;border-top:1px solid #eff2e7;padding:15px 22px 14px;background:#fff}.ce-composer-input{border:1px solid #e7ebdd;border-radius:13px;display:flex;align-items:center;gap:9px;padding:9px 10px 9px 15px;background:#fdfefd}.ce-composer-input:focus-within{border-color:#b1be8d;box-shadow:0 0 0 3px #f3f6eb}.ce-composer-input textarea{flex:1;border:0;resize:none;background:transparent;outline:0;font:13px/1.6 system-ui,sans-serif;color:#404532;min-height:40px;max-height:110px}.ce-composer-input textarea::placeholder{color:#acb19f}.ce-send-btn{width:43px;height:43px;border:0;border-radius:13px;background:#687c32;color:white;font-size:22px;cursor:pointer;box-shadow:0 6px 16px #687c3232}.ce-send-btn:hover{background:#4e5e21}.ce-send-btn:disabled{opacity:.4;cursor:not-allowed}
.ce-composer-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}.ce-tool-buttons{display:flex;flex-wrap:wrap;gap:7px}.ce-tool-btn{border:1px solid #e7ecdb;border-radius:9px;display:inline-flex;align-items:center;gap:7px;background:#fbfcf7;color:#61694b;font-size:12px;padding:8px 12px;font-weight:720;cursor:pointer;min-height:36px}.ce-tool-btn:hover{background:#f4f7eb;border-color:#c6d0ab}.ce-tool-lock{font-size:12px;color:#ab8338}.ce-consent-label{font-size:10.5px;color:#929882;display:flex;align-items:center;gap:6px}.ce-consent-label input{accent-color:#687c32}.ce-chat-disclosure{text-align:right;color:#a5aa97;font-size:10px;margin-top:6px}.ce-chat-disclosure a{color:#798656}.ce-sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.ce-premium-overlay{position:fixed;inset:0;z-index:99999;background:#212614aa;display:grid;place-items:center;padding:15px;backdrop-filter:blur(3px)}.ce-premium-overlay[hidden]{display:none!important}.ce-modal-open{overflow:hidden}.ce-premium-dialog{position:relative;width:min(480px,100%);padding:35px 33px 27px;background:white;border:1px solid #e9eedc;box-shadow:0 20px 60px #001c1c38;border-radius:25px;text-align:center}.ce-premium-close{position:absolute;right:17px;top:13px;border:0;background:transparent;font-size:28px;cursor:pointer;color:#939983}.ce-premium-crown{width:64px;height:64px;margin:0 auto 13px;display:grid;place-items:center;border-radius:22px;background:linear-gradient(130deg,#fff1ce,#fbdca8);color:#be8621;font-size:36px}.ce-premium-kicker{font-size:11px;font-weight:900;letter-spacing:.16em;color:#af8b49;margin:3px}.ce-premium-dialog h2{font-size:27px;color:#2f361e;margin:9px 0}.ce-premium-dialog p:not(.ce-premium-kicker){font-size:13px;color:#787e67;line-height:1.8}.ce-premium-benefits{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:18px 0}.ce-premium-benefits span{background:#f7f9f1;color:#6e7950;border-radius:99px;padding:7px 10px;font-size:10px;font-weight:750}.ce-premium-links{display:grid;gap:9px}.ce-premium-links a{padding:13px;border-radius:12px;font-weight:800;text-decoration:none;font-size:13px}.ce-premium-primary{background:#63772b;color:#fff!important}.ce-premium-secondary{background:#f6f8ef;color:#68783c!important}.ce-premium-dialog small{display:block;margin-top:17px;color:#a4a996;font-size:10px}
@keyframes cePulse{0%,100%{opacity:.5;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}
@media(max-width:950px){.ce-chat-frame{grid-template-columns:255px minmax(0,1fr)}.ce-chat-sidebar{min-height:630px}.ce-chat-room{min-height:630px}.ce-chat-stream{height:450px}.ce-chat-row{max-width:96%}.ce-composer-tools{align-items:flex-start;flex-direction:column}.ce-chat-head{padding:21px}}
@media(max-width:730px){.ce-chat-shell{width:calc(100% - 18px);margin:10px auto 28px}.ce-chat-head{padding:18px;border-radius:16px}.ce-chat-head h1{font-size:29px}.ce-chat-head-right .ce-head-pict{display:none}.ce-chat-frame{display:block;border-radius:14px;min-height:0}.ce-chat-sidebar{position:fixed;z-index:9998;top:0;bottom:0;left:0;width:min(340px,90vw);box-shadow:0 0 70px #2b311b50;transform:translateX(-115%);transition:transform .24s;min-height:100vh}.ce-chat-sidebar.is-open{transform:translateX(0)}.ce-sidebar-close,.ce-sidebar-toggle{display:inline-flex;align-items:center;justify-content:center}.ce-sidebar-close{border:0;background:#f3f6ea;color:#516027;border-radius:7px;font-size:22px;cursor:pointer;width:35px;height:35px}.ce-bot-list{max-height:calc(100vh - 150px)}.ce-chat-room{min-height:76vh}.ce-chat-stream{height:55vh;padding:20px 14px}.ce-chat-composer{padding:12px}.ce-room-header{padding:10px 13px;min-height:66px}.ce-chat-row{max-width:98%}.ce-chat-bubble{font-size:12px}.ce-consent-label{font-size:10px}}
@media(prefers-reduced-motion:reduce){.ce-chat-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* P11 | C-eddin Sor component parity. Theme variables inherited from P07. */
.ce-sor-p11{--bot-line:#e4e9f1;--bot-ink:#25344a}
.ce-sor-p11 .ce-chat-frame{grid-template-columns:minmax(245px,292px) minmax(0,1fr);min-height:580px;gap:18px}
.ce-sor-p11 .ce-chat-sidebar{padding:16px 12px 15px;display:flex;flex-direction:column;gap:8px}
.ce-sor-p11 .ce-bot-sidebar-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:3px 8px}
.ce-sor-p11 .ce-bot-sidebar-head h2{font-size:19px;color:var(--ce-accent-deep);margin:0}
.ce-sor-p11 .ce-bot-sidebar-head span{font-size:11px;color:#68768c}
.ce-sor-p11 .ce-bot-search-label{font-size:11px;font-weight:700;color:#586784;padding-left:8px}
.ce-sor-p11 #ce-bot-search{margin:0 5px 4px;width:calc(100% - 10px);padding:10px 12px;border:1px solid var(--bot-line);border-radius:10px;background:#fbfcff;color:var(--bot-ink);font-size:13px}
.ce-sor-p11 #ce-bot-search:focus-visible,.ce-sor-p11 .ce-bot-item:focus-visible{outline:3px solid var(--ce-accent);outline-offset:2px}
.ce-sor-p11 .ce-bot-list{max-height:460px;overflow-y:auto;overscroll-behavior:contain;display:grid;align-content:start;gap:2px;padding:3px 4px}
.ce-sor-p11 .ce-bot-item{display:flex;align-items:center;gap:10px;min-height:62px;width:100%;text-align:left;background:transparent;border:1px solid transparent;border-radius:12px;padding:7px 8px;font-family:inherit;cursor:pointer;color:var(--bot-ink)}
.ce-sor-p11 .ce-bot-item[hidden]{display:none!important}
.ce-sor-p11 .ce-bot-item:hover{background:var(--ce-accent-soft)}
.ce-sor-p11 .ce-bot-item.is-current{border-color:var(--ce-accent);background:var(--ce-accent-soft)}
.ce-sor-p11 .ce-bot-avatar{width:43px;height:43px;min-width:43px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:var(--ce-accent-soft);color:var(--ce-accent-deep);font-weight:800;font-size:18px}
.ce-sor-p11 .ce-bot-avatar img{height:100%;width:100%;object-fit:contain}
.ce-sor-p11 .ce-bot-meta{min-width:0;display:flex;flex-direction:column;gap:3px;flex:1}
.ce-sor-p11 .ce-bot-meta strong{font-size:12px;line-height:1.25;overflow-wrap:anywhere}
.ce-sor-p11 .ce-bot-status{display:block;font-size:10px;color:#6a7587;line-height:1.25}
.ce-sor-p11 .ce-bot-directory-note{font-size:10px;line-height:1.4;color:#737c8b;margin:5px 8px 0}
.ce-sor-p11 .ce-chat-room{min-height:570px;padding:17px 22px;gap:13px}
.ce-sor-p11 .ce-room-title{display:flex;align-items:center;gap:12px}
.ce-sor-p11 .ce-room-title strong{font-size:16px;color:var(--ce-accent-deep)}
.ce-sor-p11 .ce-room-title small{display:block;color:#748093;font-size:11px;margin-top:3px}
.ce-sor-p11 .ce-stream-avatar{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:50%;background:var(--ce-accent-soft);overflow:hidden}
.ce-sor-p11 .ce-stream-avatar img{width:100%;height:100%;object-fit:contain}
.ce-sor-p11 .ce-room-status{background:#fff0d7;color:#855e19;max-width:170px;text-align:center}
.ce-sor-p11 .ce-room-status.is-ready{background:#f2f6e9;color:#5b6b2f}
.ce-sor-p11 .ce-chat-stream{flex:1;min-height:225px;max-height:430px;overflow:auto;display:flex;flex-direction:column;gap:15px;background:#fbfcfe}
.ce-sor-p11 .ce-chat-row{display:flex;gap:9px;align-items:flex-start;max-width:95%}
.ce-sor-p11 .ce-chat-row-user{margin-left:auto;justify-content:flex-end}
.ce-sor-p11 .ce-chat-row-user .ce-chat-bubble{background:var(--ce-accent);color:white}
.ce-sor-p11 .ce-bubble-wrap{min-width:0;max-width:72ch}
.ce-sor-p11 .ce-bubble-name{font-size:11px;font-weight:800;color:var(--ce-accent-deep);margin:0 0 6px}
.ce-sor-p11 .ce-chat-bubble{font-size:13px;line-height:1.65;color:#42556f;background:white;border:1px solid #e5eaf1;border-radius:13px;padding:12px 15px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.ce-sor-p11 .ce-bubble-source{font-size:11px;margin:6px 0 0;color:#63758d}
.ce-sor-p11 .ce-bubble-source a{color:var(--ce-accent-deep);text-decoration:underline}
.ce-sor-p11 .ce-chat-compose{margin-top:auto}
.ce-sor-p11 .ce-chat-compose-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ce-sor-p11 .ce-chat-compose-actions span{color:#8390a2;font-size:11px}
.ce-sor-p11 .ce-chat-compose textarea{min-height:80px;max-height:170px}
.ce-sor-p11 .ce-chat-compose textarea:disabled{background:#f5f7fa}
.ce-sor-p11 .ce-chat-alert{margin:0;background:#fff8e9;border-left:3px solid #d6a64a;padding:10px 12px;border-radius:6px}
.ce-sor-p11 .ce-chat-outlink{padding:9px 12px;border:1px solid var(--bot-line);border-radius:10px;background:var(--ce-accent-soft);font-size:12px}
.ce-sor-p11 .ce-chat-outlink a{color:var(--ce-accent-deep);font-weight:800}
.ce-sor-p11 .ce-chat-privacy{font-size:11px;color:#66748b;line-height:1.5;margin:0}
.ce-sor-p11 .ce-chat-privacy a{color:var(--ce-accent-deep);text-decoration:underline}
.ce-sor-p11 .ce-typing-indicator{color:var(--ce-accent-deep);font-size:12px}
@media(max-width:860px){.ce-sor-p11 .ce-chat-frame{grid-template-columns:1fr}.ce-sor-p11 .ce-chat-room{order:1;min-height:430px}.ce-sor-p11 .ce-chat-sidebar{order:2}.ce-sor-p11 .ce-bot-list{max-height:320px;grid-template-columns:1fr 1fr}}
@media(max-width:490px){.ce-sor-p11 .ce-chat-room{padding:13px}.ce-sor-p11 .ce-bot-list{grid-template-columns:1fr}.ce-sor-p11 .ce-chat-stream{max-height:330px}.ce-sor-p11 .ce-room-header{align-items:flex-start}.ce-sor-p11 .ce-chat-compose textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.ce-sor-p11 *{transition:none!important;animation:none!important}}

.ce-chat-sidebar{background:#fff}.ce-chat-frame{border:1px solid #e5e9ee;box-shadow:0 7px 28px #1826470c}.ce-chat-room{background:#fff}.ce-room-header{border-bottom:1px solid #e6e9ee}.ce-chat-composer,.ce-chat-compose{background:#fff}.ce-bot-list{overflow-y:auto}
