.customer-main{max-width:none}.logout-form{margin:10px 8px 0}.logout-form button{padding:8px;background:#253557;color:#c5d1e8;box-shadow:none}.connect-card,.channel-bar{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px 24px;display:flex;gap:16px;align-items:center;margin-bottom:18px;box-shadow:0 3px 14px #2036590a}.connect-copy,.channel-bar>div:nth-child(2){flex:1;min-width:0}.connect-copy .eyebrow{margin-bottom:2px}.connect-card h2{margin:0 0 4px;font-size:18px}.connect-card .connect-copy>p:last-child{margin:0;color:var(--muted)}.connect-card form{display:flex;gap:10px;align-items:center}.connect-card input{width:300px;height:46px;background:#fbfcff}.connect-card button,.channel-bar button,.chat button,.composer button{width:auto;white-space:nowrap}.telegram-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:13px;background:linear-gradient(145deg,#39baf1,#229ed9);color:#fff;font-size:22px;box-shadow:0 7px 16px #229ed92b}.channel-bar small{display:block;color:var(--muted);margin-top:3px}.secondary{background:#fff!important;color:#63738e!important;border:1px solid #ccd7e7;box-shadow:none!important}.inbox{display:grid;grid-template-columns:280px minmax(460px,1fr) 290px;min-height:650px;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 3px 14px #2036590a}.inbox>aside,.chat{min-width:0}.inbox>aside:first-child{border-right:1px solid var(--line);background:#fcfdff}.inbox h2{font-size:17px;margin:0;padding:20px}.inbox h2 em{font-style:normal;color:#8290a7;font-size:12px}.conversation{position:relative;display:flex;gap:10px;padding:13px 15px;text-decoration:none;color:var(--ink);border-top:1px solid #edf1f6;transition:.16s ease}.conversation:hover{background:#f5f8fd}.conversation.selected{background:#edf5ff;box-shadow:inset 3px 0 #2b7be7}.conversation .avatar{flex:none;width:37px;height:37px;background:#2aabee;color:#fff}.conversation>div:nth-child(2){min-width:0;flex:1}.conversation p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#77849a;margin:3px 0;font-size:12px}.conversation small{color:#4c83cf;font-size:10px}.conversation i{background:var(--blue);color:#fff;border-radius:20px;height:20px;min-width:20px;text-align:center;font-size:11px;padding:2px}.empty{text-align:center;color:#8895aa;padding:85px 20px}.chat{display:flex;flex-direction:column;background:#fff}.chat>header{height:78px;border-bottom:1px solid var(--line);padding:13px 18px;margin:0;display:flex;align-items:center;justify-content:space-between}.chat>header h2{padding:0;margin:0 0 4px}.chat>header small{color:#8290a7}.messages{flex:1;padding:18px;overflow:auto;background:#f8fafc;max-height:570px}.message{max-width:76%;margin:9px 0}.message.outgoing{margin-left:auto}.message p{margin:3px 0;padding:10px 13px;background:#fff;border:1px solid #e0e7f0;border-radius:4px 14px 14px;line-height:1.5}.message.outgoing p{background:var(--blue);color:#fff;border:0;border-radius:14px 4px 14px 14px}.message small,.message time{display:block;color:#8a96a9;font-size:10px}.message.outgoing small,.message.outgoing time{text-align:right}.composer{display:flex;gap:9px;padding:14px;border-top:1px solid var(--line)}.composer textarea{flex:1;resize:none;height:54px;min-height:54px;padding:9px}.no-chat{margin:auto;text-align:center;color:#8995a9;padding:40px}.no-chat>span{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 14px;border-radius:17px;background:#edf4ff;color:#3478d8;font-size:25px}.no-chat b{display:block;color:#4c5b73;font-size:15px}.no-chat p{margin:5px 0}.no-chat small{color:#a0a9b8}.details{min-width:0;border-left:1px solid var(--line);padding:0 0 20px;background:#fbfcff}.details-head{padding:20px 20px 12px}.details-head .eyebrow{margin:0}.details-head h2{padding:0;margin:3px 0 0;font-size:17px}.details .step{width:auto;height:auto;min-height:0;margin:0;padding:13px 20px;display:flex;align-items:flex-start;gap:12px;background:transparent;color:var(--ink);border-radius:0}.details .step i{font-style:normal;flex:none;width:28px;height:28px;border-radius:8px;background:#e9f2ff;color:#2378ed;display:grid;place-items:center;font-weight:800;font-size:11px}.details .step p{min-width:0;margin:0;line-height:1.35}.details .step b{display:block;font-size:12px}.details .step small{display:block;color:#8793a6;margin-top:4px;font-size:10px;white-space:normal}.security-note{display:flex;gap:10px;align-items:flex-start;margin:14px 18px 4px;padding:12px;border:1px solid #cfeadd;border-radius:10px;background:#effaf5}.security-note>span{flex:none;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:#22a06b;color:#fff;font-size:10px}.security-note p{margin:0}.security-note b,.security-note small{display:block}.security-note b{font-size:11px;color:#1a7253}.security-note small{margin-top:2px;color:#698a7d;font-size:9px}.details>a{display:flex;justify-content:space-between;align-items:center;margin:16px 18px 0;padding:11px 12px;border-radius:9px;background:#edf4ff;color:#2378ed;text-decoration:none;font-weight:700;font-size:11px}.details>a:hover{background:#e1edff}@media(max-width:1250px){.inbox{grid-template-columns:260px 1fr}.details{display:none}}@media(max-width:900px){.customer-main{margin:0}.connect-card{align-items:flex-start;flex-wrap:wrap}.connect-card form{width:100%}.connect-card input{width:auto;flex:1}.inbox{display:block}.inbox>aside:first-child{max-height:270px;overflow:auto}.chat{min-height:590px}.messages{max-height:440px}}@media(max-width:520px){.connect-card form{display:grid}.connect-card input{width:100%}}

/* Fit each bubble to its text; keep long content within the chat column. */
.messages .message{width:fit-content;max-width:76%;min-width:0}.messages .message-body{width:fit-content;max-width:100%;box-sizing:border-box;padding:10px 13px;margin:3px 0;border:1px solid #e0e7f0;border-radius:4px 14px 14px;background:#fff;line-height:1.55;overflow-wrap:anywhere;word-break:normal;text-align:left}.messages .outgoing .message-body{margin-left:auto;background:var(--blue,#2378ed);color:#fff;border-color:transparent;border-radius:14px 4px 14px 14px}.messages .message-body p{padding:0;margin:0 0 8px;border:0;border-radius:0;background:transparent;color:inherit;font:inherit}.messages .message-body>:last-child{margin-bottom:0}.message-body strong{font-weight:700}.message-body ul,.message-body ol{margin:5px 0 8px;padding-left:21px}.message-body li{margin:3px 0}.message-body a{color:inherit;text-decoration:underline;text-underline-offset:3px}.message-body code{font-size:.9em;background:#0000000c;border-radius:4px;padding:1px 4px;white-space:pre-wrap;overflow-wrap:anywhere}.message-body pre{max-width:100%;overflow:auto;margin:8px 0;padding:9px;border-radius:7px;background:#0000000c}.message-body pre code{padding:0;background:transparent;white-space:pre}.message-body blockquote{margin:7px 0;padding-left:10px;border-left:3px solid #95b1d6;opacity:.9}.messages .message>small,.messages .message>time{overflow-wrap:anywhere}@media(max-width:900px){.messages .message{max-width:86%}.messages .message-body{padding:8px 10px;font-size:10px}}
