﻿.kn-act--cm[aria-expanded="true"] {
    background: #EAF3F5;
    border-color: #0F4C5C;
}

.kn-cm-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 2px;
    padding: 1px 8px 1px 6px;
    border: 1px solid #C9DADF;
    border-radius: 999px;
    background: #EAF3F5;
    color: #0F4C5C;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
    transition: opacity .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

    .kn-cm-badge svg {
        width: 12px !important;
        height: 12px !important;
        flex: none;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .kn-cm-badge b {
        font-weight: 700;
    }

    .kn-cm-badge[data-ready="0"] {
        opacity: 0;
    }

    .kn-cm-badge.has {
        background: #FFF6E5;
        border-color: #F0D9A8;
        color: #7A5410;
    }

.kn-cm [hidden] {
    display: none !important;
}

.kn-cm {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .32s ease, visibility 0s .32s;
}

    .kn-cm.is-open {
        grid-template-rows: 1fr;
        visibility: visible;
        transition: grid-template-rows .32s ease, visibility 0s;
    }

.kn-cm__inner {
    min-height: 0;
    overflow: hidden;
}

.kn-cm *, .kn-cm *::before, .kn-cm *::after {
    box-sizing: border-box;
}

.kn-cm svg {
    width: 16px;
    height: 16px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kn-cm button:focus-visible, .kn-cm a:focus-visible, .kn-cm textarea:focus-visible {
    outline: 3px solid #E0A23A;
    outline-offset: 2px;
}

.kn-cm__box {
    margin: 16px 0 0;
    padding: 16px;
    border: 1px solid #DFE5D8;
    border-radius: 14px;
    background: #F8FAF5;
}

.kn-cm__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.kn-cm__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #0A3A47;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.kn-cm__n {
    min-width: 22px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #0F4C5C;
    color: #fff;
    font-size: .72rem;
    letter-spacing: 0;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.kn-cm__x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #5C6B60;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

    .kn-cm__x:hover {
        background: #E6ECE0;
        color: #1F2A22;
    }

.kn-cm__guest {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 14px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px dashed #E0A23A;
    border-radius: 12px;
    background: #FFF9EC;
    color: #6B4E10;
}

    .kn-cm__guest > svg {
        width: 22px;
        height: 22px;
        color: #B07A12;
    }

.kn-cm__gt {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: .85rem;
    line-height: 1.45;
}

    .kn-cm__gt b {
        color: #4F3908;
        font-size: .9rem;
    }

.kn-cm__ga {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.kn-cm__lnk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid #0F4C5C;
    border-radius: 8px;
    background: #fff;
    color: #0F4C5C;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

    .kn-cm__lnk:hover {
        background: #EAF3F5;
    }

.kn-cm .kn-cm__lnk {
    color: #0F4C5C !important;
}

.kn-cm .kn-cm__lnk--p,
.kn-cm .kn-cm__lnk--p:link,
.kn-cm .kn-cm__lnk--p:visited,
.kn-cm .kn-cm__lnk--p:hover,
.kn-cm .kn-cm__lnk--p:active {
    background: #0F4C5C;
    color: #fff !important;
}

    .kn-cm .kn-cm__lnk--p:hover {
        background: #0A3A47;
    }

.kn-cm__fwrap {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .3s ease, visibility 0s .3s;
}

    .kn-cm__fwrap.is-open {
        grid-template-rows: 1fr;
        visibility: visible;
        transition: grid-template-rows .3s ease, visibility 0s;
    }

.kn-cm__fin {
    min-height: 0;
    overflow: hidden;
    padding: 4px;
    margin: -4px;
}

.kn-cm__form {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #C9DADF;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 26px -20px rgba(10, 58, 71, .6);
}

.kn-cm__who {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #5C6B60;
    font-size: .84rem;
}

    .kn-cm__who b {
        color: #0A3A47;
    }

.kn-cm__ta {
    display: block;
    width: 100%;
    min-height: 88px;
    max-height: 220px;
    padding: 10px 12px;
    border: 1px solid #C9DADF;
    border-radius: 10px;
    background: #F8FAF5;
    color: #1F2A22;
    font: inherit;
    font-size: .93rem;
    line-height: 1.55;
    resize: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

    .kn-cm__ta::placeholder {
        color: #8A978E;
    }

    .kn-cm__ta:focus {
        outline: none;
        border-color: #0F4C5C;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(15, 76, 92, .14);
    }

.kn-cm__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.kn-cm__grp {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.kn-cm__cnt {
    color: #5C6B60;
    font-size: .76rem;
    font-variant-numeric: tabular-nums;
}

    .kn-cm__cnt.is-warn {
        color: #B5452B;
        font-weight: 700;
    }

.kn-cm__send {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 18px;
    border: 0;
    border-radius: 10px;
    background: #0F4C5C;
    color: #fff;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px -8px rgba(10, 58, 71, .8);
    transition: background .15s ease, transform .15s ease, opacity .15s ease;
}

    .kn-cm__send:hover {
        background: #0A3A47;
    }

    .kn-cm__send:active {
        transform: scale(.97);
    }

    .kn-cm__send:disabled {
        opacity: .65;
        cursor: default;
    }

.kn-cm__send--sm {
    min-height: 34px;
    padding: 6px 14px;
    font-size: .82rem;
}

.kn-cm__sp {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: knCmSpin .7s linear infinite;
}

.kn-cm__send.is-busy .kn-cm__sp {
    display: inline-block;
}

.kn-cm__send.is-busy svg {
    display: none;
}

@keyframes knCmSpin {
    to {
        transform: rotate(360deg);
    }
}

.kn-cm__again {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 8px 14px;
    border: 1px dashed #0F4C5C;
    border-radius: 10px;
    background: #fff;
    color: #0F4C5C;
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}

    .kn-cm__again:hover {
        background: #EAF3F5;
    }

.kn-cm__ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 4px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #4A5A4F;
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

    .kn-cm__ghost svg {
        width: 15px;
        height: 15px;
    }

    .kn-cm__ghost:hover {
        background: #EAF3F5;
        color: #0F4C5C;
    }

.kn-cm__ghost--del {
    color: #B5452B;
}

    .kn-cm__ghost--del:hover {
        background: #FCEBE6;
        color: #A0361D;
    }

.kn-cm__st {
    margin: 0 0 12px;
    color: #0F4C5C;
    font-size: .82rem;
    font-weight: 600;
}

    .kn-cm__st:empty {
        display: none;
    }

    .kn-cm__st.is-err {
        color: #B5452B;
    }

.kn-cm__scroll {
    position: relative;
}

    .kn-cm__scroll.is-scroll {
        max-height: min(640px, 72vh);
        overflow-y: auto;
        margin-right: -6px;
        padding-right: 6px;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #B9CED4 transparent;
    }

        .kn-cm__scroll.is-scroll::-webkit-scrollbar {
            width: 8px;
        }

        .kn-cm__scroll.is-scroll::-webkit-scrollbar-thumb {
            background: #B9CED4;
            border-radius: 8px;
        }

.kn-cm__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kn-cm__item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid #E3E9DE;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px -18px rgba(10, 58, 71, .7);
    content-visibility: auto;
    contain-intrinsic-size: auto 120px;
    transition: border-color .2s ease, box-shadow .2s ease, opacity .25s ease, transform .25s ease;
}

    .kn-cm__item:hover {
        border-color: #C9DADF;
        box-shadow: 0 12px 26px -18px rgba(10, 58, 71, .75);
    }

    .kn-cm__item:focus {
        outline: none;
    }

    .kn-cm__item.is-new {
        animation: knCmIn .5s ease-out both;
        border-color: #E0A23A;
    }

    .kn-cm__item.is-gone {
        opacity: 0;
        transform: translateX(14px);
    }

@keyframes knCmIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.kn-cm__av {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #0F4C5C, #2C7A8C);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(10, 58, 71, .2);
    user-select: none;
}

    .kn-cm__av img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kn-cm__av--sm {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: .85rem;
}

.kn-cm__body {
    flex: 1 1 auto;
    min-width: 0;
}

.kn-cm__meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
}

.kn-cm__name {
    color: #0F4C5C;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}

    .kn-cm__name:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
        color: #0A3A47 !important;
    }
.kn-cm .kn-cm__name:visited {
    color: #0F4C5C !important;
}

.kn-cm__dot {
    color: #A9B6AD;
}

.kn-cm__date {
    color: #6B7A70;
    font-size: .8rem;
}

.kn-cm__edited {
    padding: 0 7px;
    border-radius: 999px;
    background: #F4F6EF;
    color: #6B7A70;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.7;
}

.kn-cm__text {
    margin: 6px 0 0;
    color: #1F2A22;
    font-size: .93rem;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.kn-cm__foot2 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #EEF2E9;
}

.kn-cm__acts {
    display: inline-flex;
    gap: 2px;
}

.kn-cm__ask {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    color: #6B3A2B;
    font-size: .82rem;
    font-weight: 600;
}

.kn-cm__edit {
    margin-top: 8px;
}

    .kn-cm__edit .kn-cm__ta {
        min-height: 72px;
    }

.kn-cm__foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.kn-cm__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 20px;
    border: 1px solid #0F4C5C;
    border-radius: 999px;
    background: #fff;
    color: #0F4C5C;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

    .kn-cm__more small {
        padding: 1px 8px;
        border-radius: 999px;
        background: #EAF3F5;
        color: #0F4C5C;
        font-size: .72rem;
        font-weight: 700;
    }

    .kn-cm__more:hover {
        background: #0F4C5C;
        color: #fff;
        box-shadow: 0 8px 18px -10px rgba(10, 58, 71, .8);
    }

        .kn-cm__more:hover small {
            background: rgba(255, 255, 255, .2);
            color: #fff;
        }

    .kn-cm__more:disabled {
        opacity: .7;
        cursor: default;
    }

    .kn-cm__more.is-busy svg {
        animation: knCmSpin .8s linear infinite;
    }

.kn-cm__sum {
    width: 100%;
    max-width: 280px;
    text-align: center;
    color: #6B7A70;
    font-size: .76rem;
    font-variant-numeric: tabular-nums;
}

.kn-cm__prog {
    display: block;
    height: 3px;
    margin-top: 6px;
    border-radius: 3px;
    background: #E3E9DE;
    overflow: hidden;
}

    .kn-cm__prog i {
        display: block;
        height: 100%;
        width: 0;
        border-radius: 3px;
        background: #E0A23A;
        transition: width .35s ease;
    }

.kn-cm__empty {
    padding: 22px 16px;
    border: 1px dashed #C9DADF;
    border-radius: 12px;
    background: #fff;
    color: #5C6B60;
    text-align: center;
    font-size: .9rem;
}

.kn-cm__sk {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid #E3E9DE;
    border-radius: 12px;
    background: #fff;
}

    .kn-cm__sk i {
        flex: none;
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .kn-cm__sk div {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .kn-cm__sk b {
        width: 38%;
        height: 12px;
        border-radius: 6px;
    }

    .kn-cm__sk u {
        width: 92%;
        height: 10px;
        border-radius: 6px;
        text-decoration: none;
    }

        .kn-cm__sk u + u {
            width: 64%;
        }

    .kn-cm__sk i, .kn-cm__sk b, .kn-cm__sk u {
        background: linear-gradient(90deg, #EEF2E9 25%, #F8FAF5 50%, #EEF2E9 75%);
        background-size: 200% 100%;
        animation: knCmSh 1.2s linear infinite;
    }

@keyframes knCmSh {
    to {
        background-position: -200% 0;
    }
}

@media (max-width: 560px) {
    .kn-cm__box {
        padding: 12px;
        border-radius: 12px;
    }

    .kn-cm__item {
        padding: 12px;
        gap: 10px;
    }

    .kn-cm__av {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .kn-cm__send {
        flex: 1 1 auto;
    }

    .kn-cm__bar {
        flex-wrap: wrap;
    }

    .kn-cm__ga {
        width: 100%;
    }

        .kn-cm__ga .kn-cm__lnk {
            flex: 1 1 0;
        }
}

@media (prefers-reduced-motion: reduce) {
    .kn-cm, .kn-cm.is-open, .kn-cm__fwrap, .kn-cm__fwrap.is-open {
        transition: none;
    }

    .kn-cm__item.is-new, .kn-cm__sk i, .kn-cm__sk b, .kn-cm__sk u {
        animation: none;
    }

    .kn-cm__prog i {
        transition: none;
    }
}

@media print {
    .kn-cm {
        display: none !important;
    }
}
