.speaking-review-page .evaluation-widget__img-wrap {
    width: 120px;
    height: 120px;
    background: #FFE9ED;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaking-review-page .evaluation-widget__label:after,
.speaking-review-page .evaluation-widget__label:before {
    content: '';
    position: absolute;
    display: inline-block;
    width: 4px;
    height: 7px;
    background-size: cover;
    top: 0;
    left: 100%;
}

.speaking-review-page .evaluation-widget__label:before {
    left: initial;
    right: 100%;
}

.speaking-review-page .evaluation-widget.-recommended {
    border: 1px solid #C76378;
}

.speaking-review-page .evaluation-widget {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: var(--Space-xl, 24px);
    background: #FFF;
    box-shadow: 0px 4px 20px 0px rgba(40, 70, 100, 0.1);
    padding: var(--Space-lg, 16px) var(--Space-xl, 24px) var(--Space-xl, 24px) var(--Space-xl, 24px);
    border: 1px solid var(--Primary-primary-50, #EAECEF);
}

.speaking-review-page .evaluation-widget__title {
    margin: 0;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
}

.speaking-review-page .evaluation-widget__label {
    position: absolute;
    top: -7px;
    left: 28px;
    display: flex;
    padding: 8px 12px;
    color: #FFF;
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 0px 0px 16px 16px;
    background: var(--speaking-gradient);
}

.speaking-review-page .evaluation-widget__cap {
    margin: var(--Space-xl, 24px) 0 0;
    font-size: 16px;
    font-weight: 400;
}

.speaking-review-page .evaluation-widget__desc {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    color: #787878;
}

.evaluation-widget__img-text {
    font-size: 40px;
    color: #c76378;
    text-shadow: 2px 1px #776e70;
}

/**
tabs 
**/

.--show-contents {
    display: block !important;
}

.evaluate__anyway {
    border: 1px solid #d9dcdf;
    background-color: #fff !important;
    border-radius: 4px;
    padding: 24px;
}


.evaluate__anyway .nav-tabs {
    border: none;
    margin-bottom: 24px;
}

.evaluate__anyway .nav::before {
    display: table;
    content: " ";
}

.evaluate__anyway .nav-tabs li {
    margin-right: 10px;
}

.evaluate__anyway .nav>li {
    position: relative;
    display: block;
}

.evaluate__anyway .nav-tabs>li {
    float: left;
    margin-bottom: -1px;
}

.evaluate__anyway li,
.evaluate__anyway ul {
    border: 0;
    font-size: 100%;
    font-style: inherit;
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}

.evaluate__anyway .active .my-purchase__btn {
    background-color: #294563;
    color: #fff;
}

.evaluate__anyway .my-purchase__btn {
    border-radius: 4px;
    border: none;
    height: 38px;
    padding: 0 16px;
    font-size: 14px;
    background-color: #d4dae0;
    color: #294563;
    width: auto;
    min-width: 80px;
}

.evaluate__anyway .no-answer {
    background-color: #f5f5f5;
    max-width: 100%;
    padding: 26px;
    border-radius: 10px;
}

.evaluate__anyway form.proqyz__post-evaluation-form .row {
    background: #f5f5f5;
}

.evaluate__anyway .no-answer {
    background-color: #f5f5f5;
    max-width: 100%;
    padding: 26px;
    border-radius: 10px;
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
}

/** ai evaluation style */
.ai-speaking-evaluation-page .question-part .panel-heading a[aria-expanded="true"] {
    background-color: #F9A95A;
    color: #fff;
}

.ai-speaking-evaluation-page .part-score {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    color: #294563;
    margin: 0 auto 2rem;
}

.ai-speaking-evaluation-page .part-score__text {
    font-size: 16px;
    font-weight: 700;
}

.ai-speaking-evaluation-page .part-score__val {
    border-radius: 24.211px;
    border: 0.807px solid #F9A95A;
    background: #FFF;
    display: flex;
    padding: 3.228px 6.6rem;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
}

.ai-speaking-evaluation-page .evaluation__score {
    width: 120px;
    height: 46px;
    line-height: 46px;
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    position: absolute;
    right: 0;
    color: #ffffff;
    background-color: #294563;
    text-align: center;
    margin-top: -46px;
}

@media (max-width: 767px) {
    .ai-speaking-evaluation-page .evaluation__score {
        bottom: 96%;
        width: auto;
        min-width: 66px;
        font-size: 16px;
    }
}

/** pre part summary custom design */
/* --- Base layout: centered tabs --- */
.speaking-tabs {
    text-align: center;
    border-bottom: 2px solid #eee;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    /* try to keep tabs on one line if possible */
}

.speaking-tabs>li {
    float: none;
    display: inline-block;
    vertical-align: top;
}

.speaking-tabs>li>a {
    padding: 0;
    border: none !important;
}

/* --- Tab content layout (icon + text) --- */
.tab-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    min-width: 170px;
    /* give a reasonable base width */
    box-sizing: border-box;
}

/* icon */
.tab-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

/* text block */
.tab-text {
    text-align: left;
    line-height: 1.05;
    overflow: hidden;
}

/* title and subtitle */
.tab-title {
    font-size: 17px;
    font-weight: 700;
    color: #1b2a47;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-subtitle {
    display: block;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* Remove band score badge entirely (desktop + mobile) as requested */
.score-badge {
    display: none;
}

/* Active state styling */
.speaking-tabs>li.active .tab-title {
    color: #892b3b;
}

.speaking-tabs>li.active {
    border-bottom: 3px solid #892b3b;
}

/* Overview content box */
.overview-box {
    width: 100%;
    background: #fff;
    padding: 22px;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* --- Responsiveness: when horizontal space reduced --- */

/* Allow tabs to wrap to next line on very small viewports */
@media (max-width: 900px) {
    .tab-box {
        padding: 12px 18px;
        min-width: 130px;
    }

    .tab-icon {
        width: 36px;
        height: 36px;
    }

    .tab-title {
        font-size: 15px;
    }

    .tab-subtitle {
        font-size: 11px;
    }

    .sm-hide--evaluation-away {
        padding: 0;
        border: 0;
        margin: 10px auto;
    }
}

/* Small devices: show minimal title text only (hide subtitle) and reduce icon/padding */
@media (max-width: 520px) {
    .speaking-tabs {
        white-space: normal;
    }

    /* allow nicer wrapping */
    .tab-box {
        padding: 8px 10px;
        min-width: 0;
    }

    .tab-icon {
        width: 26px;
        height: 26px;
    }

    .tab-subtitle {
        display: none;
    }

    /* hide subtitle on small screens */
    .tab-title {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* If you want icons hidden too on very tiny screens, uncomment next line */
    /* .tab-icon { display: none; } */
}

/* Extremely narrow: make the tabs compact and centered as small pills */
@media (max-width: 360px) {
    .tab-box {
        padding: 6px 8px;
        gap: 8px;
    }

    .tab-title {
        font-size: 13px;
    }

    .tab-icon {
        width: 22px;
        height: 22px;
    }
}


/** ai evaluation v2 */
.ai-eval-grid {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.ai-eval-card {
    border-radius: 18px;
    background: #101828;
    color: #fff;
    padding: 22px;
    box-shadow: 0 20px 30px rgba(16, 24, 40, 0.25);
    position: relative;
    overflow: hidden;
}

.ai-eval-card.light {
    background: #fff;
    color: #0f172a;
    border: 1px solid #e7ecf6;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.ai-eval-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.15), transparent 60%);
    pointer-events: none;
}

.ai-eval-card.light::after {
    display: none;
}

.ai-eval__score-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    position: relative;
}

.ai-eval__score-ring svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.ai-eval__score-ring circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.ai-eval__score-ring .ring-track {
    stroke: rgba(255, 255, 255, 0.2);
}

.ai-eval-card.light .ring-track {
    stroke: #e5e9f3;
}

.ai-eval__score-ring .ring-progress {
    stroke: url(#aiRingGradientTeacher);
    stroke-dasharray: 314;
    transition: stroke-dashoffset .6s ease;
}

.ai-eval__score-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-weight: 700;
    color: #fff;
}

.ai-eval-card.light .ai-eval__score-value {
    color: #0f172a;
}

.ai-eval__score-value span {
    font-size: 36px;
    line-height: 1;
}

.ai-eval__score-label {
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .8;
}

.ai-eval__overall-feedback {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.7;
}

.ai-eval__criteria-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #0f172a;
}

.ai-eval__criteria-band {
    font-size: 32px;
    font-weight: 700;
    color: #1d4ed8;
    display: block;
}

.ai-eval__criteria-feedback {
    font-size: 13px;
    color: #4b5563;
    margin-top: 8px;
    line-height: 1.6;
}

.ai-eval__transcripts {
    margin-top: 20px;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7f0;
}

.ai-eval__transcript-question {
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 12px;
    background: #f9fbff;
    border: 1px solid #e5e7f0;
}

.ai-question-block {
    border: 1px solid #e5e7f0;
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
    background: #fff;
}

.ai-question-title {
    font-weight: 600;
    color: #0f172a;
}

.ai-question-text {
    margin: 4px 0 8px;
    color: #475467;
}

.ai-question-fixes {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #166534;
    font-size: 13px;
}

.ai-issue-block {
    display: block;
    margin: 4px 0 20px;
}

.ai-question-issues {
    padding: 2px;
    margin-bottom: 4px;
    border: 1px solid #e3e0e0;
    border-radius: 15px;
    background: white;
    font-size: 13px;
    color: #938888;
}

.ai-question-fix strong {
    color: #14532d;
    margin-right: 4px;
}

.ai-eval__transcript-text mark {
    background: var(--issue-bg, rgba(248, 113, 113, 0.18));
    color: var(--issue-color, #b91c1c);
    padding: 0 3px;
    border-radius: 4px;
    border-bottom: 1px dashed var(--issue-color, rgba(185, 28, 28, 0.5));
}

.ai-eval__issue-notes {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #6b7280;
    font-size: 13px;
}

.ai-eval__issue-notes li {
    margin-bottom: 4px;
}

.ai-eval__issue-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e5e7eb;
}

.ai-eval__issue-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.ai-feedback-strengths-list, .ai-feedback-weaknesses-list {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #e5e7eb;
}

.ai-feedback-strengths-list li, .ai-feedback-weaknesses-list li {
    margin-bottom: 4px;
}

.ai-feedback-strengths-list li:last-child, .ai-feedback-weaknesses-list li:last-child {
    margin-bottom: 0;
}

ul.ai-feedback-strengths-list li {
    border-left: 3px solid #8BC34A;
    padding-left: 10px;
}

ul.ai-feedback-weaknesses-list li {
    border-left: 3px solid #fb6666;
    padding-left: 10px;
}

.issue-type-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    border-radius: 999px;
    padding: 2px 10px;
    background: var(--issue-bg, #f3f4f6);
    color: var(--issue-color, #111827);
    margin-bottom: 6px;
}

.issue-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    background: var(--issue-bg, #f3f4f6);
    color: var(--issue-color, #111827);
    border: 0;
    cursor: help;
}

.issue-mark {
    background: var(--issue-bg, rgba(248, 113, 113, 0.18));
    color: var(--issue-color, #b91c1c);
}

.issue-type-grammar,
.issue-type-grammar-vocabulary {
    --issue-color: #b91c1c;
    --issue-bg: rgba(239, 68, 68, 0.18);
}

.issue-type-vocabulary {
    --issue-color: #c2410c;
    --issue-bg: rgba(251, 191, 36, 0.18);
}

.issue-type-fluency {
    --issue-color: #0369a1;
    --issue-bg: rgba(14, 165, 233, 0.18);
}

.issue-type-pronunciation {
    --issue-color: #6d28d9;
    --issue-bg: rgba(167, 139, 250, 0.18);
}

.issue-type-general {
    --issue-color: #475467;
    --issue-bg: rgba(148, 163, 184, 0.18);
}

.issue-type-coherence {
    --issue-color: #0d9488;
    --issue-bg: rgba(45, 212, 191, 0.18);
}

.issue-type-structure {
    --issue-color: #7c2d12;
    --issue-bg: rgba(251, 146, 60, 0.22);
}

.issue-type-content,
.issue-type-topic-development {
    --issue-color: #4f46e5;
    --issue-bg: rgba(129, 140, 248, 0.18);
}

.issue-type-filler-words,
.issue-type-delivery {
    --issue-color: #be123c;
    --issue-bg: rgba(248, 113, 113, 0.25);
}

.ai-eval__issue-headline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #111827;
    font-weight: 600;
}

.ai-eval__issue-snippet del {
    color: var(--issue-color, #b91c1c);
    text-decoration-color: var(--issue-color, #b91c1c);
}

.ai-eval__issue-suggestion {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.suggestion-chip {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    color: #166534;
}

.suggestion-mark {
    background: rgba(16, 185, 129, 0.18);
    color: #065f46;
    border-bottom: 1px dashed #10b981;
    padding: 0 3px;
    border-radius: 4px;
}

.ai-eval__issue-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 4px;
}

.ai-eval__issue-badges-row .issue-type-badge {
    margin-bottom: 0;
}

.ai-hesitation {
    background: rgba(14, 165, 233, 0.18);
    color: #0f172a;
    border-bottom: 1px dashed #0ea5e9;
    padding: 0 4px;
    border-radius: 6px;
    margin-right: 4px;
}

.ai-question-timing {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    font-size: 12px;
    color: #475467;
}

.ai-question-timing__item {
    background: #f4f6fb;
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid #e5e7f0;
}

.ai-question-hesitations {
    list-style: none;
    padding-left: 0;
    margin: 4px 0 10px;
    font-size: 12px;
    color: #6b7280;
}

.ai-question-hesitations li {
    display: flex;
    gap: 6px;
}

/**
* ai evaluation - bottom
*/
.reset--ai-evaluation-card.card {
    border: 1px solid #e1e1e1;
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 0 4px #df8a8a;
}

.retry--ai-evaluation-card.card {
    border: 1px solid #4e8adf;
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 0 4px #4e8adf;
}

@media (max-width: 991px) {
    .md\:flex-row {
        flex-direction: row !important;
    }
}

@media (max-width: 767px) {
    .sm\:flex-column {
        flex-direction: column !important;
    }
}