:root{--brand:#075e54;--brand-dark:#04453e;--accent:#18b87f;--accent-soft:#e4faf0;--ink:#182e2b;--muted:#778b89;--line:#e9eeee;--surface:#fff;--canvas:#f0f4f3;--danger:#e24b50;--shadow:0 18px 70px rgba(21,53,48,.09)}
*{box-sizing:border-box}html{height:100%;scroll-behavior:smooth}body{margin:0;min-height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #53cbb2;outline-offset:2px}[hidden]{display:none!important}
.auth-page{min-height:100vh;background:#fff}.auth-layout{min-height:100vh;display:grid;grid-template-columns:53% 47%}.auth-hero{position:relative;overflow:hidden;background:linear-gradient(140deg,#003d36 0%,#075e54 55%,#118666 100%);color:white;min-height:680px}.auth-hero-content{position:relative;z-index:2;max-width:730px;margin:auto;height:100%;padding:52px 8% 45px;display:flex;flex-direction:column;justify-content:space-between}.hero-brand{color:white;display:flex;align-items:center;gap:12px;font-weight:800;font-size:22px;letter-spacing:-.6px}.hero-brand em{font-style:normal;color:#80edd0}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;flex-shrink:0;border-radius:15px;background:linear-gradient(135deg,#23d39c,#0da77b);font-weight:900;color:white;position:relative;box-shadow:0 8px 20px #001f1c28;font-size:23px}.brand-mark span{position:absolute;right:6px;top:2px;font-size:11px;color:#d8fff0}.hero-pill,.eyebrow{letter-spacing:2.1px;font-weight:800;font-size:10px;color:#1cab86}.hero-pill{display:inline-flex;padding:12px 16px;border-radius:100px;border:1px solid #ffffff3d;color:#8be5cb;background:#ffffff14}.hero-copy{margin-top:-30px}.hero-copy h1{font-size:clamp(38px,3.8vw,63px);letter-spacing:-2.7px;line-height:1.13;margin:25px 0}.hero-copy h1 span{color:#83f1cf}.hero-copy p{max-width:500px;color:#bfdfd7;line-height:1.9;font-size:16px}.hero-features{display:flex;gap:13px;flex-wrap:wrap;margin-top:32px}.hero-features span{border-radius:30px;padding:10px 14px;background:#ffffff15;font-size:12px;color:#e6fff6;border:1px solid #ffffff18}.auth-hero-content>small{color:#c4ede1;opacity:.7}.hero-orb{position:absolute;border-radius:50%;background:#a0ffdb1a;filter:blur(4px)}.orb-a{width:480px;height:480px;right:-240px;top:-170px}.orb-b{width:600px;height:600px;left:-410px;bottom:-290px}.hero-chat{position:absolute;right:-15px;bottom:12%;width:280px;border:1px solid #ffffff36;box-shadow:0 30px 90px #001f2455;background:#ffffff20;backdrop-filter:blur(18px);border-radius:20px;transform:rotate(-8deg);padding:15px;z-index:1;color:white}.hero-chat>div{display:flex;gap:8px;align-items:center;font-size:11px;padding:8px 4px}.hero-chat>div>span{font-size:9px;color:#b4f7da;margin-left:auto}.mock-dot{width:10px;height:10px;background:#23e09d;border-radius:50%}.hero-chat p{display:block;background:#ffffffbd;color:#173f35;font-size:11px;line-height:1.7;border-radius:12px;padding:10px 12px;max-width:88%;margin:11px 0}.hero-chat p strong{color:#d64b50}.hero-chat p strong em{font-size:8px;font-style:normal}.hero-chat .mock-my{margin-left:auto;background:#d3fff0}.auth-content{min-height:100%;padding:55px 35px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle at 95% 10%,#eafaf48a,transparent 32%),#fff}.auth-card{width:min(430px,100%)}.auth-intro h2{font-size:36px;line-height:1.2;letter-spacing:-1.4px;margin:12px 0 8px}.auth-intro p{font-size:14px;color:var(--muted);line-height:1.7;margin-bottom:35px}.auth-form{display:flex;flex-direction:column;gap:16px}.auth-form label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:700;color:#31433f}.auth-form label small{color:var(--muted);font-size:11px;font-weight:500}.auth-form input,.auth-form select,.resend-form input{border:1px solid #e1e9e7;background:#f8faf9;border-radius:12px;min-height:50px;outline:none;padding:0 15px;width:100%;font-size:14px;color:var(--ink);transition:.2s}.auth-form input:focus,.auth-form select:focus,.resend-form input:focus{border-color:#1bba89;background:#fff;box-shadow:0 0 0 3px #c9f8e7}.auth-form input::placeholder{color:#b1bfbc}.password-label{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700}.password-label a{font-size:12px;font-weight:700}.password-input{display:flex;align-items:center;position:relative}.password-input input{padding-right:50px}.password-input button{position:absolute;right:12px;border:0;background:transparent;font-size:18px;color:#98aaa4}.btn-primary{border:0;border-radius:13px;min-height:52px;color:white;background:linear-gradient(110deg,#087a66,#0baf81);font-weight:800;display:flex;justify-content:center;align-items:center;gap:8px;padding:12px 20px;box-shadow:0 10px 23px #0a97742e;transition:.2s}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 30px #0a977441}.btn-primary span{margin-left:auto}.auth-switch{text-align:center;color:var(--muted);font-size:13px;margin:28px 0}.auth-switch a{font-weight:800}.auth-trust{color:#9eafab;font-size:11px;margin-top:40px;text-align:center}.auth-mobile-logo{display:none}.resend-details{font-size:12px;color:#748a82;cursor:pointer;border-top:1px solid #e9eeee;padding-top:18px;text-align:center}.resend-form{display:flex;gap:8px;margin-top:12px}.resend-form button{background:#e6f8ef;color:#076451;border:0;border-radius:10px;padding:0 12px}.alert{font-size:13px;line-height:1.7;padding:13px 16px;border-radius:11px;margin-bottom:22px}.alert.success{background:#e7fbef;color:#0c7c50}.alert.error{background:#fff0f0;color:#a5363a}.install-card{width:min(610px,95%);margin:45px auto;background:white;padding:30px;border-radius:25px;box-shadow:var(--shadow)}.install-card h1{font-size:33px}.install-card h1 span{color:#159b71}.install-card h3{margin:13px 0 0;border-top:1px solid var(--line);padding-top:18px}.install-card>p,.small-muted{color:var(--muted);font-size:13px;line-height:1.65}.brand-icon{display:inline-flex;background:#e3fbed;padding:14px;border-radius:16px;color:var(--brand)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.app-page{background:#dce8e4;overflow:hidden;height:100dvh}.app-shell{height:100dvh;max-height:1100px;max-width:1700px;min-width:340px;margin:auto;display:grid;grid-template-columns:355px minmax(0,1fr);background:#f4f7f5;box-shadow:0 0 60px #13241f2b;overflow:hidden}.sidebar{background:#fff;display:flex;flex-direction:column;min-height:0;border-right:1px solid #e3e9e7}.sidebar-top{flex:0 0 auto;padding:25px 20px 0}.sidebar-brand{display:flex;gap:11px;align-items:center;margin-bottom:24px}.sidebar-brand strong{display:block;letter-spacing:-.5px;font-size:18px}.sidebar-brand em{font-style:normal;color:#16aa80}.sidebar-brand small{color:#a4b0ad;display:block;font-size:10px;letter-spacing:.5px;margin-top:2px}.sidebar-brand .brand-mark{height:43px;width:43px}.profile-pill{display:flex;align-items:center;gap:12px;border-radius:15px;background:#f3f8f6;padding:10px 12px;cursor:pointer;transition:.2s}.profile-pill:hover{background:#e8f7f0}.avatar{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;width:42px;height:42px;background:linear-gradient(135deg,#7cdbb5,#129c85);color:white;font-weight:900;font-size:16px;overflow:hidden;position:relative}.avatar img{width:100%;height:100%;object-fit:cover}.own-avatar{width:43px;height:43px}.profile-pill-body{flex:1;min-width:0}.profile-pill-body b{font-size:13px;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.profile-pill-body small{font-size:11px;color:#8fa29c}.dots{font-size:23px;color:#96a8a1}.search-box{height:45px;border-radius:12px;background:#f6f8f7;display:flex;align-items:center;margin:20px 0 18px;gap:7px;padding:0 12px;border:1px solid #f0f2f1}.search-icon{font-size:26px;color:#829b91;line-height:1}.search-box input{flex:1;border:0;outline:0;background:transparent;width:0;font-size:13px;color:#2b4941}.search-box kbd{background:#e8eeeb;font-size:11px;color:#809790;border-radius:5px;padding:3px 6px}.sidebar-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;border-bottom:1px solid #edf2ef;padding-bottom:16px}.sidebar-tabs button{border:0;background:transparent;color:#82978f;padding:11px 2px;border-radius:9px;font-size:12px;font-weight:700;white-space:nowrap}.sidebar-tabs button.active{background:#e5f7ed;color:#087c59}.side-scroll{overflow-y:auto;flex:1;padding:10px 10px 20px;scrollbar-width:thin;scrollbar-color:#d4e0db transparent}.side-category{padding:13px 12px 8px;color:#9cad9f;font-size:10px;text-transform:uppercase;letter-spacing:1.2px;font-weight:800}.side-item{border:0;display:flex;align-items:center;width:100%;gap:12px;text-align:left;background:transparent;padding:12px;border-radius:12px;transition:background .15s;min-height:73px}.side-item:hover{background:#f5f8f6}.side-item.selected{background:#e4f5ed}.side-item .avatar{width:42px;height:42px}.side-item .avatar.room{background:#e6f6ee;color:#0a9e76;border-radius:13px;font-size:21px}.side-copy{flex:1;min-width:0}.side-copy .name{font-weight:750;color:#28453d;font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.side-copy .sub{font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:5px;color:#90a59d}.side-right{font-size:10px;color:#94aaa1}.status-dot{position:absolute;bottom:1px;right:0;background:#20bf76;width:11px;height:11px;border:2px solid white;border-radius:50%}.role-admin{color:#e3404c!important}.role-mod{color:#6c65cc!important}.role-badge{font-size:9px;font-weight:900;background:#fff0f1;color:#d7414d;border-radius:5px;padding:3px 5px;margin-left:5px;vertical-align:middle;letter-spacing:.1px}.role-badge.mod{color:#6655ba;background:#f0edff}.sidebar-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:17px 19px;border-top:1px solid #ecf0ed;font-size:11px;font-weight:650;color:#648476}.live-dot{display:inline-block;width:7px;height:7px;background:#20cb80;border-radius:50%;box-shadow:0 0 0 3px #d8f8ea;margin-right:5px}.footer-actions{display:flex;gap:3px}.footer-actions button,.icon-btn{border:0;background:transparent;color:#7c9b90;font-size:20px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:9px}.footer-actions button:hover,.icon-btn:hover{background:#e7f5ee;color:#006c56}.notif-counter{font-style:normal;font-size:9px;background:#e45353;color:white;position:absolute;transform:translate(10px,-12px);padding:2px 5px;border-radius:100px}.chat-panel{display:flex;min-width:0;min-height:0;position:relative;overflow:hidden}.welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;flex:1;padding:35px;background:radial-gradient(circle at 52% 44%,#e8f7ed,#f8faf9 66%)}.welcome-ring{width:155px;height:155px;border:1px dashed #aacfc0;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 19px #e5f4eb9a,0 0 0 43px #e5f4eb54}.welcome-star{font-size:64px;color:#24bc8d}.welcome h1{margin-top:70px;font-size:29px;letter-spacing:-1px}.welcome p{font-size:14px;line-height:1.9;color:#799187;max-width:450px}.welcome-note{font-size:12px;color:#9fb0a9;margin-top:30px}.conversation{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.chat-header{height:76px;display:flex;align-items:center;padding:0 25px;gap:13px;border-bottom:1px solid #e3e9e6;background:#fff;flex-shrink:0;z-index:1}.head-avatar{width:44px;height:44px;border-radius:14px;background:#e7f6ef;color:#1aac7b}.head-text{min-width:0}.head-text strong{font-size:14px;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.head-text small{color:#89a098;font-size:11px;display:block;margin-top:4px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.head-spacer{flex:1}.messages-bg{overflow-y:auto;flex:1;min-height:0;padding:25px max(22px,5%) 22px;background-color:#e8eeea;background-image:radial-gradient(#c6d8cb78 .7px,transparent .7px),radial-gradient(#ffffffaa .6px,transparent .6px);background-position:0 0,19px 21px;background-size:42px 42px;scrollbar-color:#bed1c6 transparent;scrollbar-width:thin}.messages-stack{display:flex;flex-direction:column;gap:9px;max-width:960px;margin:auto}.date-separator{align-self:center;color:#668277;background:#d9e9dfcc;border-radius:40px;font-size:10px;padding:8px 14px;font-weight:750;margin:12px 0;backdrop-filter:blur(10px)}.message-row{display:flex;align-items:flex-end;gap:8px;position:relative}.message-row.mine{justify-content:flex-end}.message-bubble{max-width:min(76%,660px);min-width:90px;padding:11px 12px 7px;word-break:break-word;border-radius:15px 15px 15px 4px;background:#fff;box-shadow:0 2px 9px #24362a0d;position:relative}.mine .message-bubble{background:#d7f8e9;border-radius:15px 15px 4px 15px}.message-bubble .sender{font-size:11px;font-weight:850;margin-bottom:6px}.message-bubble .message-body{font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.message-bubble .message-meta{display:flex;justify-content:flex-end;gap:5px;font-size:9px;color:#9cacaa;margin-top:4px}.message-bubble .message-meta .read{color:#2f9dba}.msg-photo{display:block;max-height:320px;max-width:100%;border-radius:10px;object-fit:contain;cursor:zoom-in;margin:6px 0}.msg-deleted{font-size:12px;font-style:italic;color:#95a59e}.msg-reply{font-size:11px;background:#0000000d;padding:7px;border-left:3px solid #12ad80;border-radius:5px;margin-bottom:8px;color:#5a786e}.pinned-mark{font-size:10px;color:#0e926f;margin-bottom:6px}.reaction-line{display:flex;gap:5px;margin:5px 0 0}.reaction-pill{border:1px solid #cbe6d8;border-radius:20px;background:#ffffffaf;padding:2px 7px;font-size:11px}.message-actions{display:none;gap:3px;align-self:center}.message-row:hover .message-actions,.message-row:focus-within .message-actions{display:flex}.message-actions button{font-size:11px;color:#679587;background:#ffffffc7;border:0;border-radius:7px;padding:6px}.message-actions button:hover{background:white;color:#126d58}.composer{display:flex;align-items:flex-end;gap:10px;padding:15px 25px;background:#fff;border-top:1px solid #e8eeeb;min-height:86px;flex-shrink:0}.composer textarea{background:#f5f8f6;border:1px solid #eff4f1;border-radius:13px;padding:13px 15px;resize:none;min-height:47px;max-height:160px;flex:1;line-height:1.5;font-size:13px;outline:0;scrollbar-width:thin}.composer textarea:focus{border-color:#83d9b6}.composer button,.attach-btn{border:0;flex-shrink:0;display:grid;place-items:center;width:42px;height:44px;border-radius:13px;color:#769286;background:transparent;font-size:25px}.attach-btn{cursor:pointer}.composer .send-btn{background:#0d9a72;color:#fff;font-size:20px}.composer .send-btn:hover{background:#066f58}.ban-banner{padding:12px 22px;background:#fff4de;color:#79501a;font-size:12px;font-weight:700;text-align:center}.reply-banner,.attachment-banner{background:#f5fbf7;border-top:1px solid #ddeee5;padding:10px 20px;display:flex;align-items:center;gap:12px;font-size:12px;color:#317c63}.reply-banner>span,.attachment-banner>span{flex:1}.reply-banner button,.attachment-banner button{border:0;background:transparent;color:#688f82}.attachment-banner img{width:45px;height:45px;border-radius:8px;object-fit:cover}.emoji-picker{position:absolute;bottom:80px;left:60px;max-width:280px;padding:13px 18px;background:white;border-radius:13px;box-shadow:var(--shadow);z-index:3;font-size:22px;line-height:1.9;cursor:pointer}.overlay{position:fixed;inset:0;z-index:20;background:#0c27256b;display:flex;align-items:center;justify-content:center;padding:17px;backdrop-filter:blur(7px)}.modal{width:min(650px,100%);max-height:min(88dvh,850px);background:white;border-radius:22px;box-shadow:0 23px 80px #0428235b;display:flex;flex-direction:column;overflow:hidden}.modal.wide{width:min(1050px,100%)}.modal-header{padding:24px 28px;border-bottom:1px solid #edf1ef;display:flex;align-items:center;justify-content:space-between}.modal-header small{color:#0f9671;letter-spacing:1.8px;font-size:10px;font-weight:900}.modal-header h2{font-size:23px;letter-spacing:-.8px;margin:6px 0 0}.modal-body{overflow:auto;padding:23px 28px;scrollbar-width:thin}.modal-form{display:flex;flex-direction:column;gap:15px}.modal-form label{font-size:12px;color:#567268;display:flex;flex-direction:column;gap:7px;font-weight:750}.modal-form input,.modal-form textarea,.modal-form select,.admin-row input,.admin-row select{width:100%;border:1px solid #dce9e4;padding:12px;border-radius:10px;background:#f9fcfa;color:var(--ink);outline:none}.modal-form textarea{resize:vertical;min-height:85px}.modal-form .btn-primary{min-height:45px}.mini-btn{border:0;border-radius:9px;background:#e8f8ef;color:#0e7e60;font-size:11px;font-weight:800;padding:9px 12px;cursor:pointer}.mini-btn:hover{background:#d4f0e1}.mini-btn.danger{background:#fff0f0;color:#d1434d}.mini-btn.alt{background:#f4f3ff;color:#6654bc}.avatar-profile{width:76px;height:76px;font-size:25px}.profile-heading{display:flex;align-items:center;gap:18px;margin-bottom:25px}.profile-heading h3{margin:0;font-size:20px}.profile-heading p{color:#8fa29a;font-size:12px;margin:5px 0}.profile-upload{display:inline-block;color:#087b5c;background:#e7f8ef;border-radius:8px;padding:8px 12px;cursor:pointer;font-size:11px}.checkbox-row{display:flex!important;align-items:center;flex-direction:row!important;gap:10px!important}.checkbox-row input{width:auto!important}.panel-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:17px}.panel-tabs button{border:0;border-radius:9px;padding:11px 13px;font-weight:800;font-size:11px;background:#f4f7f5;color:#7f958d}.panel-tabs button.active{background:#dff4e8;color:#0d7658}.admin-table{width:100%;border-collapse:collapse;font-size:11px}.admin-table th{text-align:left;color:#8ca39a;border-bottom:1px solid #e5ece8;padding:11px 9px;font-size:10px}.admin-table td{padding:12px 9px;border-bottom:1px solid #eff3f1;vertical-align:middle}.admin-row-actions{display:flex;gap:5px;flex-wrap:wrap}.admin-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.admin-row input{width:200px}.admin-row select{width:140px}.report-card,.notification-card{border:1px solid #e6eeea;padding:14px 16px;border-radius:12px;margin-bottom:10px}.report-card p,.notification-card p{margin:6px 0;font-size:12px;line-height:1.6;color:#5c7770}.report-card small,.notification-card small{color:#a3b5ad}.admin-user{font-size:12px;font-weight:850}.empty-state{color:#9baeaa;text-align:center;padding:34px;font-size:13px;line-height:1.8}.toast{padding:14px 18px;border-radius:12px;background:#103e34;color:#fff;font-size:12px;box-shadow:0 12px 30px #103e3435;max-width:360px;line-height:1.6}.toast.error{background:#a53441}.toasts{position:fixed;z-index:40;right:20px;bottom:22px;display:flex;flex-direction:column;gap:7px}.mobile-back{display:none}.muted-para{color:#8aa098;font-size:12px;line-height:1.8}.profile-stat{font-size:12px;color:#7a968c;margin-top:12px}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.info-box{background:#f7faf8;border-radius:11px;padding:13px}.info-box small{font-size:10px;color:#89a39a}.info-box strong{display:block;font-size:15px;margin-top:4px}.full-image{max-width:90%;max-height:85vh;object-fit:contain}.image-lightbox{position:fixed;inset:0;background:#000e;display:grid;place-items:center;z-index:60;cursor:zoom-out}
@media(max-width:1190px){.hero-chat{right:-100px;opacity:.6}.auth-hero-content{padding-inline:7%}.hero-copy h1{font-size:42px}.app-shell{grid-template-columns:320px minmax(0,1fr)}}
@media(max-width:760px){.auth-layout{grid-template-columns:1fr}.auth-hero{display:none}.auth-content{padding:25px 24px;min-height:100dvh}.auth-mobile-logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:19px;color:#086e54;margin-bottom:36px}.auth-intro h2{font-size:31px}.auth-trust{font-size:10px}.app-shell{display:block;height:100dvh;min-width:0}.sidebar{height:100%;width:100%}.chat-panel{position:absolute;inset:0;background:white;display:none}.app-shell.mobile-chat .sidebar{display:none}.app-shell.mobile-chat .chat-panel{display:flex}.chat-header{height:67px;padding:0 10px}.mobile-back{display:flex;font-size:33px}.messages-bg{padding:16px 13px}.message-bubble{max-width:86%}.composer{gap:3px;padding:10px 8px;min-height:69px}.composer textarea{font-size:14px}.composer button,.attach-btn{width:35px}.welcome{display:none}.modal-body{padding:20px 15px}.modal-header{padding:18px}.admin-table{font-size:10px}.admin-table th,.admin-table td{padding:7px 4px}.hero-chat{display:none}}
@media(max-height:750px) and (min-width:760px){.auth-hero-content{padding-block:30px}.hero-copy h1{font-size:44px}.hero-copy{margin:0}.auth-content{padding-block:30px}.auth-form{gap:12px}.auth-intro p{margin-bottom:20px}}

@media(max-width:760px){.app-shell.mobile-chat .welcome{display:flex}}

.footer-actions a#adminBtn{border:0;background:transparent;color:#7c9b90;font-size:20px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:9px;text-decoration:none}.footer-actions a#adminBtn:hover{background:#e7f5ee;color:#006c56}

/* v1.2.0 / Görünüm editörü */
.brand-mark img{width:100%;height:100%;object-fit:contain;border-radius:inherit}
.message-bubble{border-radius:var(--bubble-radius,16px)}
.messages-bg{background-color:#e8eeea}
.wallpaper-plain .messages-bg{background-image:none}
.theme-dark.app-page{--ink:#e4f2ed;--muted:#b5c4be;--line:#344f48;--canvas:#0b1816;--surface:#152923;color:#e4f2ed;background:#0c1815}
.theme-dark .sidebar{background:#11241f;border-color:#25453a;color:#e4f2ed}
.theme-dark .chat-panel,.theme-dark .chat-header,.theme-dark .composer{background:#142a23;color:#e4f2ed;border-color:#2c473d}
.theme-dark .sidebar-top,.theme-dark .sidebar-footer{background:#11241f;border-color:#25453a}
.theme-dark .messages-bg{background-color:#182d28;background-image:radial-gradient(#4a625a40 .7px,transparent .7px)}
.theme-dark.wallpaper-plain .messages-bg{background-image:none}
.theme-dark .message-bubble{background:#294137;color:#effff6}
.theme-dark .mine .message-bubble{background:#125941}
.theme-dark .message-bubble .message-body,.theme-dark .message-bubble .sender{color:#effff6}
.theme-dark .composer textarea,.theme-dark .search-box input{background:#233d33;color:#eef5f0;border-color:#3c5c4c}
.theme-dark .side-item{color:#e4f2ed}
.theme-dark .side-item:hover,.theme-dark .side-item.selected{background:#224336}
.theme-dark .modal{color:#20332a}
/* KUTLUAPP · Pro UI refresh 1.4 — compatible with existing theme controls */
:root{--pro-ink:#142b28;--pro-soft:#eef5f1;--pro-outline:#e1eae5;--pro-shadow:0 14px 35px rgba(16,59,47,.08)}
body{font-family:Inter,'Segoe UI Variable','Segoe UI',system-ui,-apple-system,sans-serif;letter-spacing:-.01em}
.app-page{background:linear-gradient(135deg,#d9ebe3,#cbded7)}
.app-shell{max-width:1800px;max-height:none;grid-template-columns:365px minmax(0,1fr);border-left:1px solid #ffffff90;border-right:1px solid #ffffff90;box-shadow:0 18px 75px #132b2350}
.sidebar{background:#fcfefd;border-right:1px solid #dfece5}
.sidebar-top{padding:24px 18px 0;background:linear-gradient(160deg,#fff 25%,#f4faf7 100%)}
.sidebar-brand{margin-bottom:21px}.sidebar-brand strong{font-size:19px;font-weight:850;letter-spacing:-.7px}.sidebar-brand small{font-size:11px;letter-spacing:0;color:#819b8f}
.sidebar-brand .brand-mark{width:46px;height:46px;box-shadow:0 10px 23px #00956932;border-radius:16px}
.profile-pill{padding:13px;border:1px solid #e1eee6;background:#f0f8f3;border-radius:17px;box-shadow:0 3px 12px #1b78570b}
.profile-pill:hover{border-color:#b3dec9;box-shadow:0 8px 21px #06734c1b}
.profile-pill-body b{font-size:14px}.profile-pill-body small{font-size:11px;margin-top:4px;display:block}
.own-avatar{width:44px;height:44px}
.search-box{height:48px;border:1px solid #e1ebe6;background:#fff;margin:19px 0 16px;box-shadow:0 2px 6px #183e2906}
.search-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #14aa7720}
.search-box input{font-size:13px}.search-box kbd{background:#f1f5f1}
.sidebar-tabs{gap:3px;padding-bottom:10px}.sidebar-tabs button{font-size:12px;padding:12px 3px;font-weight:800;border-radius:11px}
.sidebar-tabs button.active{background:var(--brand);color:#fff;box-shadow:0 5px 13px #1b83582b}
.side-scroll{padding:11px 11px 24px}.side-category{font-size:10px;color:#8aa29a;padding:17px 11px 11px;letter-spacing:1.1px}
.side-item{border:1px solid transparent;padding:12px 11px;min-height:75px;border-radius:15px;margin-bottom:4px;gap:12px}
.side-item .avatar{width:47px;height:47px}.side-item:hover{background:#f0f8f4}.side-item.selected{background:#e6f7ed;border-color:#c8edd9}
.side-copy .name{font-size:13.5px;color:#23423a;display:inline-flex;align-items:center;gap:2px;max-width:100%}.side-copy .sub{font-size:11.5px;margin-top:5px;color:#849a91}
.side-right{color:#8eaaa0}.sidebar-footer{background:#fff;padding:16px 18px;font-size:12px}
.sidebar-footer .footer-actions>*{border-radius:10px!important}.footer-actions button:hover,.footer-actions a:hover{background:#e7f5ee}
.avatar{border:2px solid #fff;box-shadow:0 3px 10px #1c58421c;background:linear-gradient(140deg,#14bc87,#0c8069)}
.avatar img{display:block;object-position:center}.avatar.room{box-shadow:none;border:0}
.role-admin{color:#dc3646!important}.role-mod{color:#196fd9!important}
.role-badge{border-radius:6px;padding:3px 6px;font-size:9px;font-weight:900;letter-spacing:.25px;background:#ffe9ed;color:#cf243d;white-space:nowrap}
.role-badge.mod{color:#2069cb;background:#e6f1ff}
.verified-tick{display:inline-block;width:16px;height:16px;vertical-align:-3px;flex-shrink:0;margin:0 1px 0 4px;filter:drop-shadow(0 1px 1px #0e4b9620)}
.chat-panel{background:#f6f9f7}.chat-header{height:79px;padding:0 clamp(17px,3vw,34px);border-bottom:1px solid #e2eae4;box-shadow:0 2px 10px #1c4b3811}
.head-avatar{width:48px;height:48px}.head-text strong{font-size:15px;font-weight:800}.head-text small{font-size:12px;margin-top:3px}
.messages-bg{background-color:#edf3ef;background-image:radial-gradient(#afc9bb61 .8px,transparent .8px),linear-gradient(110deg,#ffffff35,transparent 44%);background-size:26px 26px,auto;padding:25px clamp(16px,4vw,56px) 36px}
.messages-stack{max-width:1070px;gap:15px}.date-separator{font-size:11px;background:#dbe9dfdf;color:#637d71;padding:8px 17px;font-weight:750;box-shadow:0 3px 10px #1956390b;margin:9px 0 13px}
.message-row{align-items:flex-end;gap:9px}.message-row.mine{flex-direction:row;justify-content:flex-end}
.message-avatar{display:inline-flex;align-items:flex-end;justify-content:center;border:0;background:none;cursor:pointer;flex-shrink:0;padding:0;margin:0 0 2px}
.message-avatar .avatar{width:38px;height:38px;border:2px solid white;box-shadow:0 4px 12px #2b5f4326}
.message-avatar:hover .avatar{outline:2px solid var(--accent);outline-offset:1px;transform:translateY(-2px)}
.message-bubble{max-width:min(73%,700px);min-width:110px;padding:12px 15px 9px;border:1px solid #edf2ed;box-shadow:0 3px 12px #234d3511,0 1px 2px #1a37250c;border-radius:var(--bubble-radius,16px)}
.mine .message-bubble{background:#d7f8e7;border-color:#cbf0de}
.message-bubble .sender{font-size:12.5px;font-weight:850;margin-bottom:7px;display:flex;align-items:center;gap:2px}
.message-bubble .message-body{font-size:14px;line-height:1.62;letter-spacing:0;overflow-wrap:anywhere}
.message-bubble .message-meta{font-size:10px;color:#8a9f96;margin-top:7px;gap:6px;align-items:center}
.msg-reply{background:#f0f5f1;border-radius:9px;padding:9px 11px;font-size:11px;line-height:1.5}.mine .msg-reply{background:#bfe8d3}
.msg-photo{border-radius:11px;max-height:410px}
.message-actions{gap:5px}.message-actions button{font-size:13px;border:1px solid #e5ece8;padding:6px 9px;border-radius:9px;box-shadow:0 3px 10px #223b2915}
.composer{background:#fff;padding:16px clamp(15px,3vw,36px);gap:12px;min-height:83px;box-shadow:0 -3px 15px #183b2b0a}
.composer textarea{background:#f5f9f6;border:1px solid #e1ede5;border-radius:16px;min-height:50px;padding:14px 17px;font-size:14px;line-height:1.5}
.composer textarea:focus{background:#fff;border-color:var(--accent);box-shadow:0 0 0 3px #20ad7b1b}
.composer .send-btn{background:var(--brand);width:50px;height:50px;border-radius:15px;box-shadow:0 8px 16px #066f4e30;transition:transform .15s,filter .15s}
.composer .send-btn:hover{background:var(--brand);filter:brightness(1.1);transform:translateY(-2px)}
.composer button:not(.send-btn):hover,.attach-btn:hover{background:#ecf7f0;color:var(--brand)}
.welcome{background:radial-gradient(ellipse at 52% 40%,#eafaf1,#f5faf7 66%)}
.welcome-ring{border-color:#9dccb7;box-shadow:0 0 0 17px #e1f5e9bb,0 0 0 42px #d1efdb52}
.welcome h1{font-size:34px}.welcome p{font-size:15px}
.modal{border:1px solid #dce9e1;border-radius:24px;box-shadow:0 30px 100px #142d2060}.modal-header{background:#fbfdfb}.modal-body{background:white}
.modal-form input,.modal-form textarea,.modal-form select{background:#f8fbf9;font-size:13px}.modal-form input:focus,.modal-form textarea:focus{border-color:var(--accent)}
/* Authentication / onboarding */
.auth-page{background:#f7faf8}.auth-layout{grid-template-columns:minmax(0,52fr) minmax(440px,48fr)}
.auth-hero{background:linear-gradient(150deg,#082d29,#075847 60%,#0c745d 100%);min-height:100vh}
.auth-hero::before{content:"";position:absolute;inset:0;background-image:radial-gradient(#ffffff18 1px,transparent 1px);background-size:30px 30px;mask-image:linear-gradient(90deg,#0007,transparent 80%)}
.auth-hero::after{content:"";position:absolute;width:700px;height:700px;border:1px solid #76ffd33d;border-radius:50%;right:-360px;bottom:-200px;box-shadow:0 0 0 75px #80ffce08,0 0 0 150px #80ffce07}
.auth-hero-content{padding:51px clamp(38px,6.5vw,110px);max-width:none}.hero-brand{font-size:24px;letter-spacing:-.8px}
.hero-copy{margin-top:-22px;position:relative;z-index:2}.hero-copy h1{font-size:clamp(42px,4.8vw,75px);line-height:1.13;letter-spacing:-3.3px}.hero-copy p{font-size:15px;line-height:1.85;max-width:465px;color:#c4e3d7}
.hero-pill{letter-spacing:2px;border-color:#8aeec633;color:#acf7d8}.hero-features span{background:#ffffff13;backdrop-filter:blur(8px)}
.hero-chat{right:5%;bottom:16%;opacity:.86;width:290px;transform:rotate(-7deg);box-shadow:0 20px 70px #021b196c}
.auth-content{padding:50px clamp(32px,5vw,92px);background:radial-gradient(circle at 100% 0%,#e5f5ed7a,transparent 32%),#fcfefd}
.auth-card{width:min(455px,100%)}.auth-intro .eyebrow{font-size:11px;letter-spacing:2.3px}.auth-intro h2{font-size:38px;letter-spacing:-1.6px}.auth-intro p{margin-bottom:25px;font-size:14px}
.auth-form{gap:13px}.auth-form label{gap:7px;font-size:12px;color:#3b574a}.auth-form input,.auth-form select,.resend-form input{background:#f8faf9;border-color:#e0e9e3;height:49px;min-height:49px;padding:0 15px;border-radius:12px}
.auth-form input:focus,.auth-form select:focus{box-shadow:0 0 0 3px #20bc841d;border-color:var(--accent)}
.password-input{position:relative;min-width:0}.password-input input{padding-right:89px;width:100%}.password-input button{right:8px;top:50%;transform:translateY(-50%);font-size:12px;font-weight:800;color:#186e57;border:0;background:#e9f6ef;border-radius:8px;padding:8px 12px}
.password-input button:hover{background:#d8f2e5;color:#075f45}.btn-primary{border-radius:12px;min-height:51px;background:linear-gradient(110deg,var(--brand),var(--accent));box-shadow:0 9px 22px #17875f26}
.gender-select{border:0;min-width:0;margin:3px 0 1px;padding:0}.gender-select legend{font-size:12px;font-weight:800;color:#355c4a}.gender-select p{font-size:11px;color:#8b9b94;margin:4px 0 9px}
.gender-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.gender-choice{display:block!important;cursor:pointer;position:relative;min-width:0}.gender-choice input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.gender-content{min-height:112px;padding:11px 5px 9px;background:#f8faf9;border:1.5px solid #e0eae4;border-radius:13px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;transition:all .15s}
.gender-content img,.gender-unknown{height:48px;width:48px;object-fit:cover;border-radius:50%;border:2px solid white;box-shadow:0 3px 10px #0000001b}
.gender-unknown{display:grid;place-items:center;background:linear-gradient(135deg,#dfeee6,#b6cec1);color:#446d59;font-size:19px;font-weight:900}
.gender-content b{font-size:12px;color:#294e3c}.gender-content small{font-size:9px;color:#90a39a;font-weight:500}
.gender-choice:hover .gender-content{border-color:#66cfa9;transform:translateY(-1px)}
.gender-choice input:checked+.gender-content{background:#e5f8ef;border-color:var(--accent);box-shadow:0 0 0 2px #18bb8230}
.gender-choice input:focus-visible+.gender-content{outline:3px solid #249c78;outline-offset:2px}
.form-note{font-size:11px;color:#729083;line-height:1.5;margin:0;background:#edf8f1;padding:9px 12px;border-radius:10px}
.profile-verification{display:flex;align-items:center;gap:10px;justify-content:space-between;background:#f1f8f3;border:1px solid #e1ede4;border-radius:13px;padding:14px 15px;margin-top:16px;flex-wrap:wrap}
.profile-verification strong{font-size:12px;color:#244f37}.profile-verification p{font-size:11px;line-height:1.6;color:#7b9586;margin:4px 0;max-width:330px}
.verified-message{color:#08714e;font-size:12px;font-weight:800}
/* Appearance adjustments still respect theme-mode and designer-controlled palette */
.theme-dark .sidebar-top{background:#122720}.theme-dark .profile-pill{background:#1b3a2e;border-color:#325144}
.theme-dark .search-box{background:#203a31;border-color:#315b49}.theme-dark .search-box input{background:transparent}
.theme-dark .sidebar-tabs button.active{background:var(--brand)}
.theme-dark .side-item.selected{background:#214b37;border-color:#31634b}
.theme-dark .sidebar-footer{background:#11241f}.theme-dark .chat-header{box-shadow:none}.theme-dark .messages-bg{background-color:#172c25}
.theme-dark .message-bubble{background:#273f34;border-color:#385649}.theme-dark .mine .message-bubble{background:#145940;border-color:#216c50}
.theme-dark .composer textarea{background:#203a30;border-color:#37584a;color:#e8f7ef}.theme-dark .composer{box-shadow:none}
@media(max-width:1200px){.auth-layout{grid-template-columns:48% 52%}.hero-chat{right:-85px;opacity:.45}.auth-hero-content{padding-inline:8%}.app-shell{grid-template-columns:330px minmax(0,1fr)}}
@media(max-width:800px){.auth-layout{grid-template-columns:1fr}.auth-hero{display:none}.auth-content{padding:74px 22px 30px;min-height:100dvh}.auth-mobile-logo{display:flex}.auth-intro h2{font-size:33px}.auth-card{width:min(480px,100%)}.app-shell{display:block;max-width:none;max-height:none;min-width:0}.sidebar{width:100%}.chat-panel{display:none}.app-shell.mobile-chat .chat-panel{display:flex}.chat-header{height:70px;padding:0 11px}.messages-bg{padding:16px 11px 23px}.message-bubble{max-width:min(77vw,520px);min-width:95px;padding:10px 11px 8px}.message-bubble .message-body{font-size:13px}.message-avatar .avatar{width:31px;height:31px}.message-row{gap:5px}.messages-stack{gap:12px}.composer{min-height:74px;padding:10px 8px;gap:6px}.composer textarea{font-size:14px;min-height:44px}.composer .send-btn{width:43px;height:43px;border-radius:12px}.composer button:not(.send-btn),.attach-btn{width:32px}.role-badge{font-size:8px}.verified-tick{width:14px;height:14px}.modal{border-radius:17px}}
@media(max-width:380px){.gender-options{gap:5px}.gender-content{padding-inline:2px}.message-avatar .avatar{width:27px;height:27px}.message-bubble{max-width:78vw}.message-actions{gap:1px}.message-actions button{padding:4px 5px}}

/* KUTLUAPP · Pro UI refresh 1.4 — compatible with existing theme controls */
:root{--pro-ink:#142b28;--pro-soft:#eef5f1;--pro-outline:#e1eae5;--pro-shadow:0 14px 35px rgba(16,59,47,.08)}
body{font-family:Inter,'Segoe UI Variable','Segoe UI',system-ui,-apple-system,sans-serif;letter-spacing:-.01em}
.app-page{background:linear-gradient(135deg,#d9ebe3,#cbded7)}
.app-shell{max-width:1800px;max-height:none;grid-template-columns:365px minmax(0,1fr);border-left:1px solid #ffffff90;border-right:1px solid #ffffff90;box-shadow:0 18px 75px #132b2350}
.sidebar{background:#fcfefd;border-right:1px solid #dfece5}
.sidebar-top{padding:24px 18px 0;background:linear-gradient(160deg,#fff 25%,#f4faf7 100%)}
.sidebar-brand{margin-bottom:21px}.sidebar-brand strong{font-size:19px;font-weight:850;letter-spacing:-.7px}.sidebar-brand small{font-size:11px;letter-spacing:0;color:#819b8f}
.sidebar-brand .brand-mark{width:46px;height:46px;box-shadow:0 10px 23px #00956932;border-radius:16px}
.profile-pill{padding:13px;border:1px solid #e1eee6;background:#f0f8f3;border-radius:17px;box-shadow:0 3px 12px #1b78570b}
.profile-pill:hover{border-color:#b3dec9;box-shadow:0 8px 21px #06734c1b}
.profile-pill-body b{font-size:14px}.profile-pill-body small{font-size:11px;margin-top:4px;display:block}
.own-avatar{width:44px;height:44px}
.search-box{height:48px;border:1px solid #e1ebe6;background:#fff;margin:19px 0 16px;box-shadow:0 2px 6px #183e2906}
.search-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #14aa7720}
.search-box input{font-size:13px}.search-box kbd{background:#f1f5f1}
.sidebar-tabs{gap:3px;padding-bottom:10px}.sidebar-tabs button{font-size:12px;padding:12px 3px;font-weight:800;border-radius:11px}
.sidebar-tabs button.active{background:var(--brand);color:#fff;box-shadow:0 5px 13px #1b83582b}
.side-scroll{padding:11px 11px 24px}.side-category{font-size:10px;color:#8aa29a;padding:17px 11px 11px;letter-spacing:1.1px}
.side-item{border:1px solid transparent;padding:12px 11px;min-height:75px;border-radius:15px;margin-bottom:4px;gap:12px}
.side-item .avatar{width:47px;height:47px}.side-item:hover{background:#f0f8f4}.side-item.selected{background:#e6f7ed;border-color:#c8edd9}
.side-copy .name{font-size:13.5px;color:#23423a;display:inline-flex;align-items:center;gap:2px;max-width:100%}.side-copy .sub{font-size:11.5px;margin-top:5px;color:#849a91}
.side-right{color:#8eaaa0}.sidebar-footer{background:#fff;padding:16px 18px;font-size:12px}
.sidebar-footer .footer-actions>*{border-radius:10px!important}.footer-actions button:hover,.footer-actions a:hover{background:#e7f5ee}
.avatar{border:2px solid #fff;box-shadow:0 3px 10px #1c58421c;background:linear-gradient(140deg,#14bc87,#0c8069)}
.avatar img{display:block;object-position:center}.avatar.room{box-shadow:none;border:0}
.role-admin{color:#dc3646!important}.role-mod{color:#196fd9!important}
.role-badge{border-radius:6px;padding:3px 6px;font-size:9px;font-weight:900;letter-spacing:.25px;background:#ffe9ed;color:#cf243d;white-space:nowrap}
.role-badge.mod{color:#2069cb;background:#e6f1ff}
.verified-tick{display:inline-block;width:16px;height:16px;vertical-align:-3px;flex-shrink:0;margin:0 1px 0 4px;filter:drop-shadow(0 1px 1px #0e4b9620)}
.chat-panel{background:#f6f9f7}.chat-header{height:79px;padding:0 clamp(17px,3vw,34px);border-bottom:1px solid #e2eae4;box-shadow:0 2px 10px #1c4b3811}
.head-avatar{width:48px;height:48px}.head-text strong{font-size:15px;font-weight:800}.head-text small{font-size:12px;margin-top:3px}
.messages-bg{background-color:#edf3ef;background-image:radial-gradient(#afc9bb61 .8px,transparent .8px),linear-gradient(110deg,#ffffff35,transparent 44%);background-size:26px 26px,auto;padding:25px clamp(16px,4vw,56px) 36px}
.messages-stack{max-width:1070px;gap:15px}.date-separator{font-size:11px;background:#dbe9dfdf;color:#637d71;padding:8px 17px;font-weight:750;box-shadow:0 3px 10px #1956390b;margin:9px 0 13px}
.message-row{align-items:flex-end;gap:9px}.message-row.mine{flex-direction:row;justify-content:flex-end}
.message-avatar{display:inline-flex;align-items:flex-end;justify-content:center;border:0;background:none;cursor:pointer;flex-shrink:0;padding:0;margin:0 0 2px}
.message-avatar .avatar{width:38px;height:38px;border:2px solid white;box-shadow:0 4px 12px #2b5f4326}
.message-avatar:hover .avatar{outline:2px solid var(--accent);outline-offset:1px;transform:translateY(-2px)}
.message-bubble{max-width:min(73%,700px);min-width:110px;padding:12px 15px 9px;border:1px solid #edf2ed;box-shadow:0 3px 12px #234d3511,0 1px 2px #1a37250c;border-radius:var(--bubble-radius,16px)}
.mine .message-bubble{background:#d7f8e7;border-color:#cbf0de}
.message-bubble .sender{font-size:12.5px;font-weight:850;margin-bottom:7px;display:flex;align-items:center;gap:2px}
.message-bubble .message-body{font-size:14px;line-height:1.62;letter-spacing:0;overflow-wrap:anywhere}
.message-bubble .message-meta{font-size:10px;color:#8a9f96;margin-top:7px;gap:6px;align-items:center}
.msg-reply{background:#f0f5f1;border-radius:9px;padding:9px 11px;font-size:11px;line-height:1.5}.mine .msg-reply{background:#bfe8d3}
.msg-photo{border-radius:11px;max-height:410px}
.message-actions{gap:5px}.message-actions button{font-size:13px;border:1px solid #e5ece8;padding:6px 9px;border-radius:9px;box-shadow:0 3px 10px #223b2915}
.composer{background:#fff;padding:16px clamp(15px,3vw,36px);gap:12px;min-height:83px;box-shadow:0 -3px 15px #183b2b0a}
.composer textarea{background:#f5f9f6;border:1px solid #e1ede5;border-radius:16px;min-height:50px;padding:14px 17px;font-size:14px;line-height:1.5}
.composer textarea:focus{background:#fff;border-color:var(--accent);box-shadow:0 0 0 3px #20ad7b1b}
.composer .send-btn{background:var(--brand);width:50px;height:50px;border-radius:15px;box-shadow:0 8px 16px #066f4e30;transition:transform .15s,filter .15s}
.composer .send-btn:hover{background:var(--brand);filter:brightness(1.1);transform:translateY(-2px)}
.composer button:not(.send-btn):hover,.attach-btn:hover{background:#ecf7f0;color:var(--brand)}
.welcome{background:radial-gradient(ellipse at 52% 40%,#eafaf1,#f5faf7 66%)}
.welcome-ring{border-color:#9dccb7;box-shadow:0 0 0 17px #e1f5e9bb,0 0 0 42px #d1efdb52}
.welcome h1{font-size:34px}.welcome p{font-size:15px}
.modal{border:1px solid #dce9e1;border-radius:24px;box-shadow:0 30px 100px #142d2060}.modal-header{background:#fbfdfb}.modal-body{background:white}
.modal-form input,.modal-form textarea,.modal-form select{background:#f8fbf9;font-size:13px}.modal-form input:focus,.modal-form textarea:focus{border-color:var(--accent)}
/* Authentication / onboarding */
.auth-page{background:#f7faf8}.auth-layout{grid-template-columns:minmax(0,52fr) minmax(440px,48fr)}
.auth-hero{background:linear-gradient(150deg,#082d29,#075847 60%,#0c745d 100%);min-height:100vh}
.auth-hero::before{content:"";position:absolute;inset:0;background-image:radial-gradient(#ffffff18 1px,transparent 1px);background-size:30px 30px;mask-image:linear-gradient(90deg,#0007,transparent 80%)}
.auth-hero::after{content:"";position:absolute;width:700px;height:700px;border:1px solid #76ffd33d;border-radius:50%;right:-360px;bottom:-200px;box-shadow:0 0 0 75px #80ffce08,0 0 0 150px #80ffce07}
.auth-hero-content{padding:51px clamp(38px,6.5vw,110px);max-width:none}.hero-brand{font-size:24px;letter-spacing:-.8px}
.hero-copy{margin-top:-22px;position:relative;z-index:2}.hero-copy h1{font-size:clamp(42px,4.8vw,75px);line-height:1.13;letter-spacing:-3.3px}.hero-copy p{font-size:15px;line-height:1.85;max-width:465px;color:#c4e3d7}
.hero-pill{letter-spacing:2px;border-color:#8aeec633;color:#acf7d8}.hero-features span{background:#ffffff13;backdrop-filter:blur(8px)}
.hero-chat{right:5%;bottom:16%;opacity:.86;width:290px;transform:rotate(-7deg);box-shadow:0 20px 70px #021b196c}
.auth-content{padding:50px clamp(32px,5vw,92px);background:radial-gradient(circle at 100% 0%,#e5f5ed7a,transparent 32%),#fcfefd}
.auth-card{width:min(455px,100%)}.auth-intro .eyebrow{font-size:11px;letter-spacing:2.3px}.auth-intro h2{font-size:38px;letter-spacing:-1.6px}.auth-intro p{margin-bottom:25px;font-size:14px}
.auth-form{gap:13px}.auth-form label{gap:7px;font-size:12px;color:#3b574a}.auth-form input,.auth-form select,.resend-form input{background:#f8faf9;border-color:#e0e9e3;height:49px;min-height:49px;padding:0 15px;border-radius:12px}
.auth-form input:focus,.auth-form select:focus{box-shadow:0 0 0 3px #20bc841d;border-color:var(--accent)}
.password-input{position:relative;min-width:0}.password-input input{padding-right:89px;width:100%}.password-input button{right:8px;top:50%;transform:translateY(-50%);font-size:12px;font-weight:800;color:#186e57;border:0;background:#e9f6ef;border-radius:8px;padding:8px 12px}
.password-input button:hover{background:#d8f2e5;color:#075f45}.btn-primary{border-radius:12px;min-height:51px;background:linear-gradient(110deg,var(--brand),var(--accent));box-shadow:0 9px 22px #17875f26}
.gender-select{border:0;min-width:0;margin:3px 0 1px;padding:0}.gender-select legend{font-size:12px;font-weight:800;color:#355c4a}.gender-select p{font-size:11px;color:#8b9b94;margin:4px 0 9px}
.gender-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.gender-choice{display:block!important;cursor:pointer;position:relative;min-width:0}.gender-choice input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.gender-content{min-height:112px;padding:11px 5px 9px;background:#f8faf9;border:1.5px solid #e0eae4;border-radius:13px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;transition:all .15s}
.gender-content img,.gender-unknown{height:48px;width:48px;object-fit:cover;border-radius:50%;border:2px solid white;box-shadow:0 3px 10px #0000001b}
.gender-unknown{display:grid;place-items:center;background:linear-gradient(135deg,#dfeee6,#b6cec1);color:#446d59;font-size:19px;font-weight:900}
.gender-content b{font-size:12px;color:#294e3c}.gender-content small{font-size:9px;color:#90a39a;font-weight:500}
.gender-choice:hover .gender-content{border-color:#66cfa9;transform:translateY(-1px)}
.gender-choice input:checked+.gender-content{background:#e5f8ef;border-color:var(--accent);box-shadow:0 0 0 2px #18bb8230}
.gender-choice input:focus-visible+.gender-content{outline:3px solid #249c78;outline-offset:2px}
.form-note{font-size:11px;color:#729083;line-height:1.5;margin:0;background:#edf8f1;padding:9px 12px;border-radius:10px}
.profile-verification{display:flex;align-items:center;gap:10px;justify-content:space-between;background:#f1f8f3;border:1px solid #e1ede4;border-radius:13px;padding:14px 15px;margin-top:16px;flex-wrap:wrap}
.profile-verification strong{font-size:12px;color:#244f37}.profile-verification p{font-size:11px;line-height:1.6;color:#7b9586;margin:4px 0;max-width:330px}
.verified-message{color:#08714e;font-size:12px;font-weight:800}
/* Appearance adjustments still respect theme-mode and designer-controlled palette */
.theme-dark .sidebar-top{background:#122720}.theme-dark .profile-pill{background:#1b3a2e;border-color:#325144}
.theme-dark .search-box{background:#203a31;border-color:#315b49}.theme-dark .search-box input{background:transparent}
.theme-dark .sidebar-tabs button.active{background:var(--brand)}
.theme-dark .side-item.selected{background:#214b37;border-color:#31634b}
.theme-dark .sidebar-footer{background:#11241f}.theme-dark .chat-header{box-shadow:none}.theme-dark .messages-bg{background-color:#172c25}
.theme-dark .message-bubble{background:#273f34;border-color:#385649}.theme-dark .mine .message-bubble{background:#145940;border-color:#216c50}
.theme-dark .composer textarea{background:#203a30;border-color:#37584a;color:#e8f7ef}.theme-dark .composer{box-shadow:none}
@media(max-width:1200px){.auth-layout{grid-template-columns:48% 52%}.hero-chat{right:-85px;opacity:.45}.auth-hero-content{padding-inline:8%}.app-shell{grid-template-columns:330px minmax(0,1fr)}}
@media(max-width:800px){.auth-layout{grid-template-columns:1fr}.auth-hero{display:none}.auth-content{padding:74px 22px 30px;min-height:100dvh}.auth-mobile-logo{display:flex}.auth-intro h2{font-size:33px}.auth-card{width:min(480px,100%)}.app-shell{display:block;max-width:none;max-height:none;min-width:0}.sidebar{width:100%}.chat-panel{display:none}.app-shell.mobile-chat .chat-panel{display:flex}.chat-header{height:70px;padding:0 11px}.messages-bg{padding:16px 11px 23px}.message-bubble{max-width:min(77vw,520px);min-width:95px;padding:10px 11px 8px}.message-bubble .message-body{font-size:13px}.message-avatar .avatar{width:31px;height:31px}.message-row{gap:5px}.messages-stack{gap:12px}.composer{min-height:74px;padding:10px 8px;gap:6px}.composer textarea{font-size:14px;min-height:44px}.composer .send-btn{width:43px;height:43px;border-radius:12px}.composer button:not(.send-btn),.attach-btn{width:32px}.role-badge{font-size:8px}.verified-tick{width:14px;height:14px}.modal{border-radius:17px}}
@media(max-width:380px){.gender-options{gap:5px}.gender-content{padding-inline:2px}.message-avatar .avatar{width:27px;height:27px}.message-bubble{max-width:78vw}.message-actions{gap:1px}.message-actions button{padding:4px 5px}}

/* v1.5 seen receipts: display per recipient in DMs and per-room viewer count only to sender. */
.receipt{display:inline-flex;align-items:center;gap:3px;margin-left:5px;font-size:10px;font-weight:750;white-space:nowrap;vertical-align:middle}
.receipt>span:first-child{font-family:Arial,sans-serif;font-size:13px;font-weight:900;letter-spacing:-3px;padding-right:3px}
.receipt-sent{color:#91a39b}.receipt-read{color:#1286f4}.receipt-count{font-size:10px;font-weight:700;letter-spacing:0}
.theme-dark .receipt-sent{color:#b5c9be}.theme-dark .receipt-read{color:#7bbcff}
@media(max-width:450px){.receipt-count{font-size:9px}}

/* KutluApp v1.6.0 · visible DM receipt + compact public-room viewer names */
.message-meta .receipt-count{font-size:10px;font-weight:750;letter-spacing:0}
.message-viewers{display:flex;align-items:baseline;gap:5px;max-width:100%;margin-top:6px;padding-top:5px;border-top:1px solid rgba(22,86,65,.10);color:#829b90;font-size:10px;line-height:1.5;flex-wrap:wrap;overflow-wrap:anywhere}
.message-viewers .viewer-icon{font-size:11px;color:#4aa28c}
.message-viewers .viewer-title{font-weight:700;white-space:nowrap}
.message-viewers .viewer-names{display:inline-flex;align-items:baseline;gap:4px;flex-wrap:wrap;min-width:0}
.message-viewers .viewer-name{font-size:10px;font-weight:750;color:#53776a}
.message-viewers .viewer-name.role-admin{color:#dd4454!important}
.message-viewers .viewer-name.role-mod{color:#6f65d8!important}
.message-viewers .viewer-separator{color:#a7b8ae}
.message-viewers .viewer-more{color:#1686f6;font-weight:800;padding-left:3px}
.theme-dark .message-viewers{border-top-color:#ffffff18;color:#bed4c8}
.theme-dark .message-viewers .viewer-name{color:#d9ecdf}
@media(max-width:450px){.message-viewers{font-size:9px}.message-viewers .viewer-name{font-size:9px}.message-meta .receipt-count{font-size:9px}}

/* v1.7 editable design media */
.auth-hero .editable-hero-title{white-space:normal;overflow-wrap:anywhere}
.auth-hero:has(.editable-hero-title){background-repeat:no-repeat}
.wallpaper-image .messages-bg{background-color:#e9f3ef}
@media(max-width:760px){.auth-hero{display:none}}

.brand-mark img{width:100%;height:100%;object-fit:contain;border-radius:inherit}
.hero-chat .mock-demo-avatar{width:24px;height:24px;border-radius:50%;object-fit:cover;margin:0 5px -8px 0}

/* KutluApp 1.8 · friends, mentions, region flags & clearer notifications */
.sidebar-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.sidebar-tabs button{padding:11px 1px;font-size:10.5px;min-width:0}
.friend-counter{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;margin-left:3px;border-radius:20px;background:#e54457;color:#fff;font-size:10px;vertical-align:middle}
.friend-item{align-items:flex-start;cursor:default}
.friend-item .name[data-profile-id]{display:inline-flex;gap:5px;align-items:center;cursor:pointer;max-width:100%;white-space:normal}
.friend-item .name[data-profile-id]:hover{text-decoration:underline}
.friend-controls{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.friend-btn{font-size:10px;font-weight:750;border:1px solid #cde1d6;border-radius:9px;background:#fff;color:#275c4a;padding:6px 10px;cursor:pointer}
.friend-btn.primary{background:#0e9b74;border-color:#0e9b74;color:white}
.friend-btn:hover{filter:brightness(.96)}
.friend-notice{display:flex;align-items:center;color:#bd5263;background:#fff4f4;border-radius:8px;margin:9px 5px 3px;padding:11px}
.country-flag{display:inline-flex;align-items:center;justify-content:center;width:20px;height:15px;line-height:1;vertical-align:-2px;margin-left:5px;flex:none;white-space:nowrap;overflow:hidden;border-radius:3px;box-shadow:0 0 0 1px rgba(15,34,31,.13);background:#fff}
.country-flag img{display:block;width:100%;height:100%;object-fit:cover;max-width:none;pointer-events:none}
.country-selector{display:flex;align-items:center;gap:10px;min-width:0}
.country-selector select{flex:1;min-width:0;width:100%}
.country-preview{width:33px;height:31px;flex:0 0 33px;display:grid;place-items:center;border:1px solid #dfe9e4;border-radius:8px;background:#f6faf8}
.country-preview .country-flag{width:23px;height:17px;margin:0;vertical-align:middle}
.country-preview-empty{font-size:19px;line-height:1}
@media (prefers-reduced-motion:reduce){.country-flag,.country-preview{transition:none}}
.profile-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:20px}
.profile-actions .btn-primary{padding:10px 16px;min-height:38px;width:auto}
.profile-actions .mini-btn{min-height:38px}
#notificationsBtn{position:relative;background:#edf7f1;color:#126b4f;border-radius:11px}
#notificationsBtn:has(.notif-counter:not([hidden])){background:#fff0f0;color:#cb3f58;box-shadow:0 0 0 3px #ffe5e8}
#soundToggle{font-size:20px}
.mention-link{display:inline;color:#1074ce;border:0;background:#e1efff;border-radius:4px;font:inherit;font-weight:750;cursor:pointer;padding:0 2px}
.mention-link:hover{text-decoration:underline}
.mention-picker{position:absolute;left:80px;right:35px;bottom:84px;z-index:9;max-width:380px;max-height:290px;overflow:auto;border:1px solid #d8eee2;border-radius:15px;padding:5px;background:#fff;box-shadow:0 15px 35px #214b3640}
.mention-option{display:flex;width:100%;align-items:center;gap:10px;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:#224337;text-align:left;cursor:pointer}
.mention-option:hover,.mention-option:focus-visible{background:#eaf9f1}
.mention-option .avatar{height:30px;width:30px;font-size:12px}
.mention-option span:not(.avatar){display:flex;flex-direction:column;font-size:12px;font-weight:700}
.mention-option small{display:block;color:#6f9484;font-size:10px;margin-top:2px}
.reply-quote{display:flex;flex-direction:column;gap:3px;text-align:left;width:100%;border:0;cursor:pointer}
.reply-quote b{font-weight:850;color:#147f5f;font-size:11px}
.reply-quote span{font-size:11px;color:#5a786e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:400px}
.message-highlight .message-bubble{box-shadow:0 0 0 3px #26b9868f,0 4px 18px #244c2933!important}
.secure-notice{align-self:center;max-width:760px;margin:0 auto 18px;text-align:center;border-radius:12px;padding:10px 16px;background:#fff7db;color:#816525;font-size:11px;line-height:1.5}
.auth-form select{width:100%;padding:13px;border:1px solid #ddebe2;border-radius:12px;background:#f7faf8;color:#234e3e;font:inherit}
.theme-dark .friend-btn{background:#294a3c;color:#e0f4e9;border-color:#3d7355}
.theme-dark .friend-btn.primary{background:#127e61;color:white}
.theme-dark .mention-picker{background:#213b31;border-color:#3a6652}
.theme-dark .mention-option{color:#e3f4e9}.theme-dark .mention-option:hover{background:#305542}
.theme-dark .secure-notice{background:#5c4b22;color:#f7e8ad}
@media(max-width:380px){.sidebar-tabs button{font-size:9px}.friend-controls{gap:3px}.friend-btn{padding:6px 7px}}
@media(max-width:800px){.mention-picker{left:15px;right:15px;bottom:73px;max-width:none}.sidebar-tabs button{font-size:11px}}

/* v1.8.3: responsive preset-avatar picker; isolated from existing theme rules */
.avatar-preset-area{margin:14px 0 20px;padding:16px;border:1px solid var(--border,#d9e8e3);border-radius:16px;background:rgba(127,188,168,.055)}
.avatar-preset-area h4{margin:0 0 5px;font-size:15px}.avatar-preset-area h4 small{font-weight:500;color:#6b8980}.avatar-preset-area p{margin:0 0 13px;font-size:12px;color:#6e837e}
.avatar-preset-heading{margin:13px 0 8px;font-size:12px;font-weight:750;color:var(--primary,#087763)}
.avatar-preset-grid,.register-avatar-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.avatar-preset-choice{position:relative;display:block;width:100%;padding:3px;border:2px solid transparent;border-radius:12px;aspect-ratio:1;cursor:pointer;background:#e8f4ef;overflow:hidden;transition:transform .16s ease,border-color .16s ease}
.avatar-preset-choice:hover,.avatar-preset-choice:focus-visible{transform:translateY(-2px);border-color:#15b889;outline:none}
.avatar-preset-choice img,.register-avatar-option img{width:100%;height:100%;aspect-ratio:1;object-fit:cover;border-radius:9px;display:block}
.avatar-preset-choice span{position:absolute;right:5px;bottom:5px;padding:1px 5px;border-radius:9px;background:rgba(0,0,0,.65);color:white;font-size:10px}
.register-avatar-picker{padding:12px 14px;margin:10px 0;border:1px solid #dbe9e2;border-radius:13px;background:#f8fbf9;color:#143c33}
.register-avatar-picker summary{cursor:pointer;font-size:13px;font-weight:700;list-style:auto}
.register-avatar-picker>p{font-size:12px;color:#69817c;margin:8px 0}.register-avatar-section{margin:14px 0}
.register-avatar-section>b{display:block;font-size:12px;margin-bottom:8px}.register-avatar-option{position:relative;display:block;cursor:pointer;aspect-ratio:1;background:#e7f2ec;border:2px solid transparent;border-radius:11px;overflow:hidden;padding:2px!important;margin:0!important;min-width:0}
.register-avatar-option input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.register-avatar-option:has(input:checked){border-color:#0db887;box-shadow:0 0 0 2px rgba(12,175,127,.2)}.register-avatar-option:focus-within{outline:2px solid #179679;outline-offset:2px}.register-avatar-option small{position:absolute;right:4px;bottom:3px;background:#123a33b8;border-radius:7px;color:#fff;font-size:10px;padding:1px 4px}.register-avatar-reset{font:inherit;font-size:12px;border:none;border-radius:8px;background:#e1eee8;color:#075e54;padding:8px 10px;cursor:pointer}
@media(max-width:420px){.avatar-preset-grid,.register-avatar-grid{gap:5px}.avatar-preset-area{padding:10px}.register-avatar-picker{padding:10px}}

/* KutluApp v1.8.4: in-chat photo lightbox (no new tab). */
.chat-photo-trigger{display:block;width:fit-content;max-width:100%;margin:2px 0 6px;padding:0;border:0;border-radius:12px;background:transparent;cursor:zoom-in;text-align:left;overflow:hidden;line-height:0}
.chat-photo-trigger:focus-visible{outline:3px solid #12b886;outline-offset:3px}
.chat-photo-trigger .msg-photo{display:block;max-width:100%;height:auto;border-radius:12px;transition:filter .15s ease,transform .2s ease}
.chat-photo-trigger:hover .msg-photo{filter:brightness(.94);transform:scale(1.012)}
body.fe-photo-viewer-open{overflow:hidden}
.fe-photo-viewer[hidden]{display:none!important}
.fe-photo-viewer{position:fixed;inset:0;z-index:2000;display:flex;flex-direction:column;background:rgba(3,15,15,.96);backdrop-filter:blur(10px);color:#fff;overscroll-behavior:contain}
.fe-photo-toolbar{display:flex;align-items:center;gap:14px;min-height:70px;padding:12px 22px;background:rgba(16,35,32,.6);border-bottom:1px solid #ffffff21}
.fe-photo-title{font-size:14px;font-weight:750}.fe-photo-counter{margin-left:auto;font-size:12px;color:#c8d6d0;font-variant-numeric:tabular-nums}
.fe-photo-controls{display:flex;align-items:center;gap:7px}.fe-photo-viewer button{font:inherit;cursor:pointer;border:1px solid #ffffff24;border-radius:10px;background:#ffffff16;color:white;min-width:40px;height:40px;padding:0 10px;font-size:20px}
.fe-photo-viewer button:hover:not(:disabled){background:#ffffff2b}.fe-photo-viewer button:focus-visible{outline:2px solid #7aebbe;outline-offset:2px}
.fe-photo-viewer button:disabled{opacity:.25;cursor:not-allowed}.fe-photo-controls button[data-photo-command="reset"]{font-size:12px;min-width:54px}
.fe-photo-viewer .fe-photo-close{background:#ffffff28;margin-left:8px}
.fe-photo-center{flex:1;min-height:0;display:grid;grid-template-columns:60px minmax(0,1fr) 60px;align-items:center;padding:8px 14px;gap:9px}
.fe-photo-center>.fe-photo-arrow{min-width:44px;width:44px;height:56px;justify-self:center;font-size:36px;border-radius:12px;z-index:1}
.fe-photo-stage{position:relative;display:flex;justify-content:center;align-items:center;min-width:0;min-height:0;height:100%;width:100%;overflow:hidden}
.fe-photo-stage img{display:block;max-width:100%;max-height:calc(100dvh - 100px);width:auto;height:auto;object-fit:contain;box-shadow:0 12px 60px #0007;transition:transform .16s ease;user-select:none;-webkit-user-drag:none}
.fe-photo-error{font-size:14px;color:#ffd8da}
@media(max-width:650px){.fe-photo-toolbar{gap:8px;padding:10px 12px;min-height:60px}.fe-photo-title{font-size:12px}.fe-photo-controls{gap:4px}.fe-photo-viewer button{min-width:33px;height:36px;padding:0 7px}.fe-photo-controls button[data-photo-command="reset"]{min-width:45px;font-size:10px}.fe-photo-center{grid-template-columns:33px minmax(0,1fr) 33px;padding:4px;gap:1px}.fe-photo-center>.fe-photo-arrow{width:32px;min-width:32px;height:48px;font-size:26px}.fe-photo-stage img{max-height:calc(100dvh - 85px)}}
@media(prefers-reduced-motion:reduce){.fe-photo-stage img,.chat-photo-trigger .msg-photo{transition:none}}

/* KUTLUAPP v1.8.5 · Live typing + built-in media picker */
.chat-typing{padding:7px 26px 10px 32px;background:var(--surface,#fff);color:var(--brand,#076455);font-size:12px;font-style:italic;min-height:32px;letter-spacing:.05px}
.chat-typing::before{content:'● ● ●';font-size:8px;letter-spacing:2px;margin-right:10px;color:#10ad83;animation:typing-pulse 1.2s ease-in-out infinite alternate}
@keyframes typing-pulse{from{opacity:.35}to{opacity:1}}
.gif-trigger,.sticker-trigger{border:0;background:transparent;color:var(--brand,#075e54);font-weight:900;border-radius:9px;padding:6px 8px;line-height:1.2;flex-shrink:0;transition:background .15s}
.gif-trigger{font-size:12px;letter-spacing:-.5px;border:1.5px solid currentColor;padding:4px 5px}
.sticker-trigger{font-size:23px}
.gif-trigger:hover,.sticker-trigger:hover{background:#d8f5e9}
.media-picker{position:absolute;bottom:74px;left:max(14px,calc(50% - 210px));z-index:34;width:min(420px,calc(100% - 28px));max-height:min(480px,70vh);display:flex;flex-direction:column;background:var(--surface,#fff);color:var(--ink,#182e2b);border:1px solid #d8e7df;border-radius:20px;box-shadow:0 18px 65px #123d2c35;overflow:hidden}
.media-picker-top{display:flex;align-items:center;justify-content:space-between;padding:14px 15px 9px}
.media-picker-top strong{font-size:14px}.media-picker-top button{border:0;background:transparent;font-size:18px;color:#6f8880}
.media-picker-tabs{display:flex;padding:4px 11px;gap:5px}
.media-picker-tabs button{border:0;background:transparent;border-radius:8px;padding:9px 12px;font-size:12px;font-weight:750;color:#758b81;flex:1}
.media-picker-tabs button.active{color:#09765d;background:#def8e9}
#mediaSearch{border:1px solid #dcebe3;border-radius:10px;min-height:40px;padding:6px 11px;margin:8px 14px 8px;background:#f9fcfa;outline:none;color:#203a30}
.media-grid{overflow-y:auto;flex:1;min-height:80px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:10px 14px;align-content:start}
.media-item{position:relative;border:1px solid #e3ece6;border-radius:12px;overflow:hidden;background:#f7fbf8}
.media-choice{display:flex;flex-direction:column;align-items:center;width:100%;border:0;padding:8px;background:transparent;gap:5px;color:var(--ink,#18352b)}
.media-choice img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:8px}
.media-choice span{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.media-fav{position:absolute;right:4px;top:4px;border:0;background:#fffdf0d9;color:#81918b;border-radius:50%;width:29px;height:29px;font-size:19px;box-shadow:0 2px 5px #0001}
.media-fav.selected{color:#e7a30b}
.media-hint{font-size:10px;text-align:center;color:#81958c;border-top:1px solid #e7efea;padding:8px;margin:0}
.media-empty{grid-column:1/-1;font-size:13px;color:#87988e;text-align:center;padding:30px 0}
.message-row .chat-photo-trigger.media-asset{border:0;background:transparent;padding:0;display:block}
.message-row .chat-photo-trigger.media-asset.sticker .msg-photo{max-width:150px;max-height:150px;object-fit:contain;background:transparent;box-shadow:none;border-radius:0}
.message-row .chat-photo-trigger.media-asset.gif .msg-photo{max-width:235px;max-height:200px;object-fit:contain;background:transparent}
@media(max-width:600px){.media-picker{bottom:72px;left:10px;width:calc(100% - 20px)}.gif-trigger{font-size:11px}.chat-typing{padding-left:13px}}
@media(prefers-reduced-motion:reduce){.chat-typing::before{animation:none}}

/* KutluApp social menu / spoiler / customizable frames */
.kutlu-social-entry{display:flex;gap:7px;flex-wrap:wrap;padding:12px 14px;background:#ecf8f2;border-top:1px solid #d9ede4;border-bottom:1px solid #d9ede4}
.kutlu-social-entry a{border:1px solid #d1e7dc;background:#fff;color:#196e58;font-weight:700;border-radius:10px;padding:8px 10px;font-size:12px;text-decoration:none}
.kutlu-social-entry a:hover{background:#d6f2e4}
.spoiler-trigger{border:0;border-radius:10px;padding:7px;font-size:18px;color:#4d7b6c;background:#e9f4ed;cursor:pointer}
.spoiler-trigger.active{background:#0d846b;color:#fff;box-shadow:0 0 0 2px #83d7c5}
.spoiler-body .spoiler-reveal{background:#dbe7e4;border:1px dashed #92b8aa;border-radius:8px;padding:9px 12px;color:#285b4b;font-size:12px;cursor:pointer}
.spoiler-body .spoiler-value:not([hidden]){white-space:pre-wrap;overflow-wrap:anywhere}
.message-avatar.frame-gold .avatar{outline:3px solid #edbd42}.message-avatar.frame-neon .avatar{outline:3px solid #9c39e8;box-shadow:0 0 12px #a33efb75}.message-avatar.frame-silver .avatar{outline:3px solid #a0abb4}.message-avatar.frame-ocean .avatar{outline:3px solid #35a4d6}.message-avatar.frame-rose .avatar{outline:3px solid #ee7eaa}.message-avatar.frame-royal .avatar{outline:3px solid #f9c935;box-shadow:0 0 8px #442b9c60}

.kutlu-story-ribbon{display:flex;gap:11px;padding:10px 14px 12px;overflow-x:auto;flex-shrink:0;border-bottom:1px solid #dce9e3}
.kutlu-story-chip{display:grid;justify-items:center;gap:3px;flex:0 0 53px;max-width:53px;text-decoration:none;color:#275c50}
.kutlu-story-chip small{max-width:53px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:10px}
.kutlu-story-ring{border:2px solid #08a876;border-radius:50%;height:43px;width:43px;padding:2px;display:grid;place-items:center}
.kutlu-story-ring img{width:35px;height:35px;object-fit:cover;border-radius:50%}
