.ik-app-chat .ik-chat-container {
    max-width: 1360px;
}

.ik-chat-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    flex: 1;
    min-height: 0;
}

.ik-chat-body .ik-chat-messages {
    min-width: 0;
}

.ik-feedback-panel {
    min-height: 0;
    overflow-y: auto;
    border-inline-start: 1px solid #e5e2dd;
    padding: 24px;
    background: #faf9f7;
    overflow-wrap: anywhere;
}

.ik-feedback-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ik-feedback-eyebrow {
    color: #a91b0d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.ik-feedback-heading h2 {
    margin: 6px 0 16px;
    font-size: 23px;
}

.ik-feedback-context {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 0 0 20px;
    color: #68635e;
    font-size: 12px;
    line-height: 1.6;
}

.ik-feedback-panel .ik-message-feedback {
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
    white-space: normal;
}

.ik-feedback-section {
    margin-bottom: 20px;
}

.ik-feedback-section h3, .ik-feedback-detail summary {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
}

.ik-feedback-panel p {
    line-height: 1.75;
    white-space: pre-wrap;
}

.ik-feedback-section p, .ik-feedback-detail p {
    margin: 0;
    font-size: 14px;
}

.ik-feedback-correction {
    border: 1px solid #d4e5dc;
    border-radius: 12px;
    padding: 16px;
    background: #f0f7f3;
}

.ik-feedback-correction mark {
    border-radius: 3px;
    padding: 1px 2px;
    background: #cce8d8;
    color: inherit;
    font-weight: 600;
}

.ik-feedback-detail {
    border-top: 1px solid #e5e2dd;
    padding: 12px 0;
}

.ik-feedback-detail summary {
    margin: 0;
    cursor: pointer;
}

.ik-feedback-detail[open] p {
    margin-top: 8px;
}

.ik-feedback-link {
    align-self: flex-end;
    border: 0;
    border-radius: 6px;
    padding: 6px 8px;
    background: transparent;
    color: #68635e;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.ik-feedback-link:hover, .ik-feedback-link.ik-feedback-selected {
    background: #f4ebe8;
    color: #a91b0d;
}

.ik-feedback-empty {
    color: #68635e;
    font-size: 14px;
}

.ik-feedback-close, .ik-feedback-toggle {
    display: none !important;
}

@media (max-width: 1000px) {
    .ik-chat-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .ik-feedback-panel {
        display: none;
        max-height: 38dvh;
        border-inline-start: 0;
        border-top: 1px solid #e5e2dd;
        padding: 16px 20px;
    }

    .ik-feedback-panel.ik-feedback-open {
        display: block;
    }

    .ik-chat-body:has(.ik-feedback-open) {
        grid-template-rows: minmax(80px, 1fr) auto;
    }

    .ik-feedback-close, .ik-feedback-toggle {
        display: inline-flex !important;
    }

    .ik-feedback-heading h2 {
        margin: 4px 0 10px;
        font-size: 20px;
    }
}
