/* Krazyfi messages stable CSS v20260518 */
.kmsg-wrap,.kmsg-wrap *{box-sizing:border-box}
.kmsg-wrap{max-width:1220px;margin:0 auto;padding:22px 14px 110px}
.kmsg-top{margin-bottom:16px}
.kmsg-top h1{font-size:34px;line-height:1.1;margin:0 0 7px;letter-spacing:-.03em}
.kmsg-top p{margin:0;opacity:.68}
.kmsg-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:16px;height:650px}
.kmsg-card{background:#151515;border:1px solid rgba(255,255,255,.10);border-radius:24px;overflow:hidden;box-shadow:0 16px 44px rgba(0,0,0,.22)}
.kmsg-sidebar{padding:14px;overflow:auto}
.kmsg-sidebar h2{margin:2px 4px 14px;font-size:23px;line-height:1.15}
.kmsg-list{display:grid;gap:7px}
.kmsg-thread{display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:68px;padding:9px;border-radius:16px;text-decoration:none;color:inherit}
.kmsg-thread:hover,.kmsg-thread.active{background:rgba(255,255,255,.075)}
.kmsg-avatar{width:50px!important;height:50px!important;border-radius:15px;object-fit:cover;background:#222;display:block;max-width:none!important}
.kmsg-name{font-weight:800;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kmsg-role,.kmsg-preview{font-size:12px;line-height:1.25;opacity:.62;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kmsg-preview{margin-top:2px;opacity:.50}
.kmsg-badge{min-width:21px;height:21px;padding:0 7px;border-radius:999px;background:#ffcf24;color:#111;font-size:12px;font-weight:900;display:flex;align-items:center;justify-content:center}
.kmsg-panel{display:flex;flex-direction:column;height:650px}
.kmsg-panel-head{flex:0 0 74px;display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid rgba(255,255,255,.10);background:#181818}
.kmsg-panel-head h2{font-size:22px;line-height:1.1;margin:0}
.kmsg-panel-head p{margin:3px 0 0;font-size:13px;opacity:.62}

.kmsg-body{
    flex:1;
    min-height:0;
    overflow:auto;
    padding:14px 18px;
    background:#101010;
    display:flex;
    flex-direction:column;
    gap:7px;
}

.kmsg-empty{padding:22px;border-radius:18px;background:rgba(255,255,255,.045);opacity:.70;text-align:center}

.kmsg-bubble{
    display:block !important;
    inline-size:fit-content !important;
    width:-moz-fit-content !important;
    width:fit-content !important;
    min-width:0 !important;
    max-width:min(320px, 72%) !important;
    padding:5px 9px !important;
    margin:0 !important;
    border-radius:13px !important;
    font-size:14px !important;
    line-height:1.25 !important;
    text-align:left !important;
    white-space:pre-wrap !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    flex:0 0 auto !important;
}

.kmsg-me{
    align-self:flex-end !important;
    background:rgba(255,207,36,.18);
    border:1px solid rgba(255,207,36,.20);
    border-bottom-right-radius:5px !important;
}

.kmsg-them{
    align-self:flex-start !important;
    background:rgba(255,255,255,.075);
    border:1px solid rgba(255,255,255,.08);
    border-bottom-left-radius:5px !important;
}

.kmsg-time{display:block;font-size:9px;line-height:1;opacity:.45;margin-top:3px}
.kmsg-compose{flex:0 0 auto;border-top:1px solid rgba(255,255,255,.10);padding:12px 16px;background:#151515}
.kmsg-compose textarea{width:100%;height:62px;min-height:62px;max-height:120px;resize:vertical;border-radius:16px;padding:10px 12px;font-size:14px;line-height:1.35}
.kmsg-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:9px}
.kmsg-actions .btn{padding:8px 13px}
@media(max-width:860px){.kmsg-layout{grid-template-columns:1fr;height:auto}.kmsg-sidebar{max-height:330px}.kmsg-panel{height:600px}}
@media(max-width:560px){.kmsg-wrap{padding:14px 8px 105px}.kmsg-top h1{font-size:28px}.kmsg-bubble{max-width:84%!important}.kmsg-panel-head h2{font-size:20px}}
.kmsg-row{
    display:flex !important;
    width:100% !important;
}

.kmsg-row-me{
    justify-content:flex-end !important;
}

.kmsg-row-them{
    justify-content:flex-start !important;
}

.kmsg-row .kmsg-bubble{
    width:auto !important;
    min-width:auto !important;
    max-width:280px !important;
    flex:none !important;
}