.pronunciation-suggestion-card {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    box-shadow: 0 18px 36px rgba(34, 42, 70, 0.05);
    margin-bottom: 34px;
}

.pronunciation-suggestion-card .card-body {
    padding: 30px;
}

.pronunciation-suggest-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.pronunciation-suggest-toolbar .button,
.pronunciation-suggest-toolbar .button-secondary {
    min-height: 48px;
    height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.96rem;
    line-height: 1;
    white-space: nowrap;
}

.pronunciation-suggest-toolbar .button {
    box-shadow: 0 10px 20px rgba(124, 121, 184, 0.16);
}

.pronunciation-suggest-toolbar .button-secondary {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--primary-dark);
    box-shadow: 0 8px 18px rgba(34, 42, 70, 0.06);
}

.pronunciation-suggest-toolbar .button-secondary:hover {
    border-color: rgba(124, 121, 184, 0.28);
    background: #fafbff;
}

.pronunciation-suggest-close {
    min-width: 112px;
}

.pronunciation-suggestion-switcher {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.pronunciation-suggestion-switcher .chip {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #fafbff 0%, #f4f6fd 100%);
    color: var(--primary-dark);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.pronunciation-suggestion-switcher .chip:hover {
    transform: translateY(-1px);
    border-color: rgba(124, 121, 184, 0.24);
}

.pronunciation-suggestion-switcher .chip.active,
.pronunciation-suggestion-card .chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(124, 121, 184, 0.18);
}

.pronunciation-suggestion-panel {
    border-radius: 24px;
    background: linear-gradient(180deg, #fafbff 0%, #f5f7fd 100%);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.pronunciation-suggestion-panel h3 {
    margin: 0 0 18px;
    font-size: 1.45rem;
    line-height: 1.2;
}

.pronunciation-suggestion-panel .profile-form-grid {
    gap: 18px;
    align-items: start;
}

.pronunciation-suggestion-card .auth-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 700;
}

.pronunciation-suggestion-card .auth-field input,
.pronunciation-suggestion-card .auth-field select,
.pronunciation-suggestion-card .auth-field textarea {
    width: 100%;
}

.pronunciation-suggestion-card .form-actions {
    margin-top: 10px;
}

.pronunciation-suggestion-card .button,
.pronunciation-suggestion-card .button-secondary {
    min-height: 44px;
}

.pronunciation-bulk-help {
    display: block;
    line-height: 1.6;
    font-size: 0.94rem;
}

#suggestion-panel {
    margin-top: 10px;
}

#single-suggestion-panel,
#bulk-suggestion-panel {
    animation: pronunciationSuggestionFade 0.2s ease;
}

@keyframes pronunciationSuggestionFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pronunciation-suggestion-card:not(.is-open) .card-body {
    display: grid;
    gap: 18px;
}

.pronunciation-suggestion-card .section-header {
    margin-bottom: 8px;
}

.pronunciation-suggestion-card .section-header p {
    max-width: 760px;
}

.pronunciation-suggest-toolbar + .card.pronunciation-results-card,
.pronunciation-suggest-toolbar + .pronunciation-results-card {
    margin-top: 6px;
}

.pronunciation-suggestion-card .pronunciation-results-card {
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
    border: 1px solid var(--border);
    box-shadow: none;
}

.pronunciation-suggestion-card .pronunciation-results-body {
    min-height: 78px;
    padding-top: 0;
    padding-bottom: 0;
}

.pronunciation-suggestion-card .pronunciation-results-left strong {
    font-size: 1.05rem;
}

.pronunciation-suggestion-card .modal-muted {
    font-size: 0.98rem;
}

.pronunciation-suggestion-card + .pronunciation-results-card {
    margin-top: 30px;
}

.pronunciation-practice-card {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.pronunciation-practice-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pronunciation-practice-audio {
    flex: 1 1 360px;
    min-width: 0;
}

.pronunciation-practice-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(124, 121, 184, 0.22);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.pronunciation-practice-button::before {
    content: "";
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 14a3 3 0 0 0 3-3V6a3 3 0 1 0-6 0v5a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.92V21h2v-3.08A7 7 0 0 0 19 11h-2z'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 14a3 3 0 0 0 3-3V6a3 3 0 1 0-6 0v5a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.92V21h2v-3.08A7 7 0 0 0 19 11h-2z'/></svg>") center / contain no-repeat;
    flex: 0 0 16px;
}

.pronunciation-practice-button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 10px 22px rgba(98, 95, 160, 0.28);
    transform: translateY(-1px);
}

.pronunciation-practice-button:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 3px;
}

.pronunciation-practice-button:disabled {
    cursor: not-allowed;
    transform: none;
}

.pronunciation-practice-button.is-listening {
    background: #d64545;
    border-color: #d64545;
    color: #ffffff;
    box-shadow: 0 0 0 0 rgba(214, 69, 69, 0.55);
    animation: pronunciation-practice-pulse 1.4s ease-out infinite;
}

.pronunciation-practice-button.is-listening::before {
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='6' y='6' width='12' height='12' rx='2'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='6' y='6' width='12' height='12' rx='2'/></svg>") center / contain no-repeat;
}

@keyframes pronunciation-practice-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(214, 69, 69, 0.55);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(214, 69, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(214, 69, 69, 0);
    }
}

.pronunciation-practice-result {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fafbff 0%, #f5f7fd 100%);
    border: 1px solid var(--border);
    display: grid;
    gap: 8px;
}

.pronunciation-practice-status,
.pronunciation-practice-heard {
    color: var(--muted);
    line-height: 1.55;
}

.pronunciation-practice-score {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
}

.pronunciation-practice-feedback {
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.5;
}

.pronunciation-suggestion-card::after {
    content: "";
    display: block;
    height: 1px;
    margin: 0 30px;
    background: linear-gradient(
        90deg,
        rgba(124, 121, 184, 0) 0%,
        rgba(124, 121, 184, 0.14) 20%,
        rgba(124, 121, 184, 0.14) 80%,
        rgba(124, 121, 184, 0) 100%
    );
}

@media (max-width: 700px) {
    .pronunciation-suggestion-card {
        border-radius: 24px;
        margin-bottom: 26px;
    }

    .pronunciation-suggestion-card .card-body {
        padding: 22px 20px;
    }

    .pronunciation-suggest-toolbar {
        align-items: stretch;
    }

    .pronunciation-suggest-toolbar .button,
    .pronunciation-suggest-toolbar .button-secondary {
        width: 100%;
    }

    .pronunciation-suggestion-switcher {
        flex-direction: column;
    }

    .pronunciation-suggestion-switcher .chip {
        width: 100%;
    }

    .pronunciation-suggestion-panel {
        padding: 18px;
    }

    .pronunciation-suggestion-panel h3 {
        font-size: 1.25rem;
    }

    .pronunciation-suggestion-card::after {
        margin: 0 20px;
    }

    .pronunciation-suggestion-card + .pronunciation-results-card {
        margin-top: 22px;
    }

    .pronunciation-practice-row {
        align-items: stretch;
    }

    .pronunciation-practice-audio,
    .pronunciation-practice-button {
        width: 100%;
        flex-basis: 100%;
    }
}
