/* -- Feedback panel ----------------------------- */
.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.65rem;
}
.result-summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.result-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
}
.result-emoji {
    font-size: 2rem;
    text-align: center;
    line-height: 1;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.result-status {
    font-size: 1.05rem;
    font-weight: 800;
    text-align: left;
    letter-spacing: 0;
}
.result.correct .result-status { color: #0d8f75; }
.result.incorrect .result-status { color: #c65f44; }
.result.pending .result-status { color: #64748b; }
.result-speak-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(108,92,231,0.22);
    background: #ffffff;
    color: #5f6ee8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(82,73,160,0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.result-speak-btn:hover {
    color: #c65f44;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(82,73,160,0.18);
}
.result-speak-btn.speaking {
    color: #c65f44;
    animation: pulse 1s ease-in-out infinite;
}
.result-report-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(139,126,116,0.18);
    background: rgba(255,255,255,0.82);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    cursor: pointer;
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.result-report-btn:hover {
    color: #6c5ce7;
    border-color: rgba(108,92,231,0.28);
    transform: translateY(-1px);
}
.result-label-text {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.25rem;
}
.result-row {
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(139,126,116,0.16);
    border-radius: 12px;
    padding: 0.62rem 0.78rem;
    margin-bottom: 0.45rem;
    font-size: 0.94rem;
    line-height: 1.45;
    color: #2d3436;
}
.result-value {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.result-row:last-child {
    margin-bottom: 0;
}
.result-mark-panel {
    margin-top: 0.55rem;
    padding-top: 0.2rem;
}
.result-mark-label {
    margin-bottom: 0.4rem;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.result-mark-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.result-mark-word {
    min-height: 2rem;
    border: 1px solid rgba(108,92,231,0.18);
    border-radius: 999px;
    background: rgba(108,92,231,0.08);
    color: #5c4fd7;
    padding: 0.28rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}
.result-mark-word:hover {
    background: rgba(108,92,231,0.14);
    transform: translateY(-1px);
}
.result-mark-word.saving {
    opacity: 0.7;
}
.result-mark-word.saved {
    background: rgba(13,143,117,0.12);
    border-color: rgba(13,143,117,0.22);
    color: #0d8f75;
}
.result-mark-word.ignored {
    background: rgba(148,163,184,0.1);
    border-color: rgba(148,163,184,0.2);
    color: #64748b;
}
.session-summary-mark-panel {
    margin-top: 0.6rem;
}
.session-summary-mark-panel .result-mark-label {
    font-size: 0.66rem;
}
.session-summary-mark-panel .result-mark-word {
    min-height: 1.85rem;
    padding: 0.22rem 0.62rem;
    font-size: 0.78rem;
}
.result-you-said {
    font-weight: 600;
}
.result-expected {
    color: #64748b;
    font-weight: 500;
}
.result.correct .result-you-said {
    color: #1f4f46;
}
.result.incorrect .result-you-said {
    color: #2d3436;
}
.result.pending {
    border-left-color: #94a3b8;
    background: linear-gradient(135deg, #fbfcff 0%, #ffffff 100%);
}
.result.pending-failed {
    border-left-color: #c65f44;
}
.result.pending-failed .result-status,
.result.pending-failed .result-loading-value {
    color: #c65f44;
}
.result.pending .result-you-said {
    color: #475569;
}
.result-loading-value {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.result-loading-text {
    color: #64748b;
    font-weight: 700;
}
.result-loading-dots {
    width: auto;
    min-height: 1.1rem;
}
.result-loading-dots span {
    width: 0.34rem;
    height: 0.34rem;
}
.challenge-box .result {
    display: none;
    margin-top: 0.75rem;
    text-align: left;
    flex: 0 0 auto;
}
.challenge-box.has-result .challenge-text {
    min-height: 4.25rem;
    max-height: 6.5rem;
    flex: 0 0 auto;
}
.challenge-box.has-result .challenge-stage {
    min-height: 4.25rem;
    flex: 0 0 auto;
}
.challenge-box.has-result .result {
    display: block;
}
.challenge-box.has-result ~ .record-section {
    display: none;
}
.challenge-box.has-result ~ .writing-section {
    display: none;
}
