.owlypia-speaking-evaluator-wrap {
    width: 100%;
}

.owlypia-speaking-previous-attempts .owlypia-speaking-results-display {
    margin-bottom: 24px;
}

.owlypia-official-summary {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #1b5e20;
    font-size: 15px;
}

.owlypia-attempt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.owlypia-attempt-label {
    font-size: 14px;
    font-weight: 600;
    color: #4a90e2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.owlypia-official-badge {
    display: inline-block;
    background: #2e7d32;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
}

.owlypia-official-attempt {
    border: 2px solid #2e7d32;
    box-shadow: 0 2px 12px rgba(46, 125, 50, 0.15);
}

.owlypia-live-official-note {
    text-align: center;
    margin: 0 auto 16px;
    font-weight: 600;
}

.owlypia-live-official-note.is-official {
    color: #2e7d32;
}

.owlypia-live-official-note.not-official {
    color: #9a6b00;
}

.owlypia-attempts-info {
    background: #eef7ff;
    border-left: 4px solid #4a90e2;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

.owlypia-attempts-exhausted {
    background: #fff4e5;
    border-left-color: #f0ad4e;
}

.owlypia-speaking-evaluator-container,
.owlypia-speaking-results-display {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.owlypia-ai-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fff8e6;
    border: 1px solid #f0d48a;
    border-left: 4px solid #e6a700;
    color: #6b4e00;
    padding: 12px 14px;
    border-radius: 8px;
    margin: 0 0 14px;
    font-weight: 400;
    line-height: 1.45;
}

.owlypia-ai-warning-icons {
    flex-shrink: 0;
    line-height: 1.3;
}

.owlypia-instructions-tips-row {
    display: flex;
    gap: 16px;
    margin: 14px 0;
    flex-wrap: wrap;
}

.owlypia-instruction-card,
.owlypia-tips-card {
    flex: 1;
    min-width: 240px;
    padding: 16px;
    background: #f5f9fd;
    border: 1px solid #e0e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.owlypia-instruction-card > strong,
.owlypia-tips-card > strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1em;
    color: #1d4d7c;
}

.owlypia-instruction-card li strong,
.owlypia-tips-card li strong {
    font-weight: 700;
    color: inherit;
}

.owlypia-instruction-card ol,
.owlypia-tips-card ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.6;
}

.owlypia-instruction-card ol li,
.owlypia-tips-card ul li {
    margin-bottom: 6px;
}

.owlypia-speaking-topic-display {
    background: #eef6ff;
    border-left: 4px solid #2f7dd1;
    padding: 12px;
    margin: 14px 0;
    border-radius: 6px;
}

.owlypia-speaking-topic-choice {
    margin: 14px 0;
}

.owlypia-speaking-topic-choice strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1em;
}

.owlypia-speaking-topic-radios {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.owlypia-topic-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 10px 12px;
    background: #f5f9fd;
    border: 1px solid #e0e8f0;
    border-radius: 6px;
}

.owlypia-topic-radio-label:hover {
    background: #eef6ff;
}

.owlypia-speaking-topic-radio {
    margin-top: 3px;
    flex-shrink: 0;
}

.owlypia-topic-radio-label span {
    line-height: 1.4;
}

.owlypia-record-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin: 8px 0 14px;
    min-height: 143px;
}

.owlypia-task-mascot {
    width: 143px;
    height: auto;
    max-height: 143px;
    object-fit: contain;
    display: block;
    pointer-events: none;
    justify-self: center;
    align-self: center;
}

.owlypia-record-main {
    grid-column: 2;
    min-width: 0;
}

.owlypia-record-bar .owlypia-record-timer {
    margin: 0 0 8px;
}

.owlypia-record-bar .owlypia-speaking-actions {
    margin: 0;
}

.owlypia-record-timer {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 12px 0;
}

.owlypia-speaking-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0;
    justify-content: center;
}

.owlypia-btn,
.owlypia-btn-primary,
.owlypia-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.owlypia-btn-icon {
    flex-shrink: 0;
    display: block;
}

.owlypia-btn-primary {
    background: #2f7dd1;
}

.owlypia-btn-secondary {
    background: #70757a;
}

.owlypia-btn-start {
    background: #2e7d32;
    box-shadow: 0 1px 4px rgba(46, 125, 50, 0.25);
}

.owlypia-btn-start:hover:not(:disabled) {
    background: #1b5e20;
}

.owlypia-btn-stop {
    background: #c62828;
    box-shadow: 0 1px 4px rgba(198, 40, 40, 0.25);
}

.owlypia-btn-stop:hover:not(:disabled) {
    background: #b71c1c;
}

.owlypia-btn-evaluate {
    background: #2f7dd1;
    box-shadow: 0 1px 4px rgba(47, 125, 209, 0.25);
}

.owlypia-btn-evaluate:hover:not(:disabled) {
    background: #1d5fa8;
}

.owlypia-btn:disabled,
.owlypia-btn-primary:disabled,
.owlypia-btn-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.owlypia-speaking-evaluator-container.is-recording .owlypia-btn-stop:not(:disabled) {
    animation: owlypia-record-pulse 1.4s ease-in-out infinite;
}

@keyframes owlypia-record-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.45); }
    50% { box-shadow: 0 0 0 8px rgba(198, 40, 40, 0); }
}

.owlypia-status {
    margin: 10px 0;
    color: #1d4d7c;
}

.owlypia-status.is-error {
    color: #b42318;
}

.owlypia-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    padding: 20px;
    font-weight: 600;
}

.owlypia-loading-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #e0e8f0;
    border-top-color: #2f7dd1;
    border-radius: 50%;
    animation: owlypia-spin 0.8s linear infinite;
}

@keyframes owlypia-spin {
    to { transform: rotate(360deg); }
}

.owlypia-loading-text {
    flex-shrink: 0;
}

.owlypia-results {
    margin-top: 16px;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.owlypia-speaking-previous-attempts .owlypia-sfb {
    margin-bottom: 24px;
}

.owlypia-sfb,
.owlypia-sfb * {
    box-sizing: border-box;
}

.owlypia-sfb {
    background: #fff;
    border: 1px solid #e4eef8;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 28px rgba(28, 64, 110, 0.06);
    color: #24324a;
}

.owlypia-sfb.is-official {
    border-color: #b7e0c2;
}

.owlypia-sfb-head,
.owlypia-sfb-topic,
.owlypia-sfb-score,
.owlypia-sfb-split {
    display: flex;
    gap: 16px;
}

.owlypia-sfb-head {
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.owlypia-sfb-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    color: #1e3a5f;
}

.owlypia-sfb-subtitle {
    margin: 4px 0 0;
    color: #607089;
    font-size: 16px;
}

.owlypia-sfb-head-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.owlypia-sfb-attempt {
    background: #eef3fb;
    color: #3d4d66;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.owlypia-sfb-official {
    color: #1b8a4a;
    font-size: 13px;
    font-weight: 700;
}

.owlypia-sfb-unofficial {
    color: #9a6b00;
    font-size: 13px;
    font-weight: 600;
    max-width: 220px;
    text-align: right;
}

.owlypia-sfb-topic {
    align-items: center;
    justify-content: space-between;
    background: #f4f8ff;
    border: 1px solid #e3eefb;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.owlypia-sfb-said {
    background: #f4f0ff;
    border: 1px solid #e4daf8;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.owlypia-sfb-said-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.owlypia-sfb-said-mark,
.owlypia-sfb-said-wave {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6d4cc4;
}

.owlypia-sfb-said-mark {
    background: #e7defc;
}

.owlypia-sfb-said-wave {
    margin-left: auto;
    background: transparent;
}

.owlypia-sfb-said-mark svg,
.owlypia-sfb-said-wave svg {
    width: 22px;
    height: 22px;
}

.owlypia-sfb-said-copy {
    min-width: 0;
}

.owlypia-sfb-said-title {
    font-size: 18px;
    font-weight: 800;
    color: #5b3cc4;
    line-height: 1.2;
}

.owlypia-sfb-said-sub {
    margin-top: 2px;
    font-size: 14px;
    color: #7b6b9a;
}

.owlypia-sfb-topic p,
.owlypia-sfb-said p,
.owlypia-sfb-score-copy p,
.owlypia-sfb-note p,
.owlypia-sfb-example p {
    margin: 6px 0 0;
    line-height: 1.55;
    color: #3d4d66;
}

.owlypia-sfb-kicker {
    font-size: 14px;
    font-weight: 700;
    color: #5d6b82;
}

.owlypia-sfb-owl {
    width: 92px;
    height: auto;
    flex-shrink: 0;
}

.owlypia-sfb-score {
    align-items: center;
    background: #f3fbf6;
    border: 1px solid #d9f3e3;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.owlypia-sfb-score-left {
    min-width: 180px;
    padding-right: 18px;
    border-right: 1px solid #d5eadc;
}

.owlypia-sfb-score-num {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.owlypia-sfb-score-main {
    font-size: 64px;
    line-height: 0.9;
    font-weight: 800;
    color: #14924a;
}

.owlypia-sfb-score-max {
    font-size: 28px;
    font-weight: 700;
    color: #7d8b9c;
    padding-bottom: 6px;
}

.owlypia-sfb-excellent .owlypia-sfb-score-main,
.owlypia-sfb-great .owlypia-sfb-score-main,
.owlypia-sfb-excellent .owlypia-sfb-band-title,
.owlypia-sfb-great .owlypia-sfb-band-title { color: #14924a; }

.owlypia-sfb-well .owlypia-sfb-score-main,
.owlypia-sfb-well .owlypia-sfb-band-title { color: #d97706; }

.owlypia-sfb-keep .owlypia-sfb-score-main,
.owlypia-sfb-keep .owlypia-sfb-band-title { color: #e11d48; }

.owlypia-sfb-build .owlypia-sfb-score-main,
.owlypia-sfb-build .owlypia-sfb-band-title { color: #7c3aed; }

.owlypia-sfb-check .owlypia-sfb-score-main,
.owlypia-sfb-check .owlypia-sfb-band-title { color: #9f1239; }

.owlypia-sfb-score-copy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.owlypia-sfb-trophy,
.owlypia-sfb-note-title svg,
.owlypia-sfb-example .owlypia-sfb-note-title svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.owlypia-sfb-trophy {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e5f8ec;
    color: #14924a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.owlypia-sfb-trophy svg { width: 24px; height: 24px; }

.owlypia-sfb-band-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.owlypia-sfb-section-title {
    margin: 0 0 12px;
    font-size: 18px;
    color: #1e3a5f;
}

.owlypia-sfb-criteria {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.owlypia-sfb-crit {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid transparent;
}

.owlypia-sfb-crit-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    min-height: 52px;
}

.owlypia-sfb-crit-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.owlypia-sfb-crit-icon svg { width: 28px; height: 28px; }

.owlypia-sfb-crit-copy { min-width: 0; }

.owlypia-sfb-crit-label {
    font-weight: 700;
    line-height: 1.2;
    min-height: 2.4em;
}

.owlypia-sfb-crit-score {
    font-size: 22px;
    font-weight: 800;
    margin-top: 2px;
    line-height: 1.1;
    color: #1e3a5f;
}

.owlypia-sfb-crit-score span {
    font-size: 18px;
    font-weight: 700;
    color: #5d6b82;
}

.owlypia-sfb-bar {
    margin-top: auto;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.owlypia-sfb-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.owlypia-sfb-crit-message { background: #e8f8ef; color: #157a3a; }
.owlypia-sfb-crit-message .owlypia-sfb-crit-icon { background: #d4f3e1; }
.owlypia-sfb-crit-message .owlypia-sfb-bar span { background: #22a35a; }

.owlypia-sfb-crit-structure { background: #fff4e8; color: #d46a12; }
.owlypia-sfb-crit-structure .owlypia-sfb-crit-icon { background: #ffe6cc; }
.owlypia-sfb-crit-structure .owlypia-sfb-bar span { background: #f08a24; }

.owlypia-sfb-crit-language { background: #f4efff; color: #6d4cc4; }
.owlypia-sfb-crit-language .owlypia-sfb-crit-icon { background: #e6dcff; }
.owlypia-sfb-crit-language .owlypia-sfb-bar span { background: #7b61c9; }

.owlypia-sfb-crit-authenticity { background: #eaf3ff; color: #1d5fa8; }
.owlypia-sfb-crit-authenticity .owlypia-sfb-crit-icon { background: #d7e7ff; }
.owlypia-sfb-crit-authenticity .owlypia-sfb-bar span { background: #2f7dd1; }

.owlypia-sfb-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.owlypia-sfb-note,
.owlypia-sfb-example {
    border-radius: 14px;
    padding: 16px;
}

.owlypia-sfb-note-well { background: #f3fbf6; border: 1px solid #d9f3e3; }
.owlypia-sfb-note-next { background: #fff8ee; border: 1px solid #f3e2c2; }
.owlypia-sfb-example { background: #f7f3ff; border: 1px solid #e4daf8; }

.owlypia-sfb-note-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #1e3a5f;
}

.owlypia-sfb-note-well .owlypia-sfb-note-title { color: #157a3a; }
.owlypia-sfb-note-next .owlypia-sfb-note-title { color: #b86b12; }
.owlypia-sfb-example .owlypia-sfb-note-title { color: #6d4cc4; }

.owlypia-sfb-note-title svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
    .owlypia-sfb-criteria { grid-template-columns: 1fr 1fr; }
    .owlypia-sfb-score,
    .owlypia-sfb-split { display: grid; grid-template-columns: 1fr; }
    .owlypia-sfb-score-left { border-right: 0; padding-right: 0; border-bottom: 1px solid #d5eadc; padding-bottom: 12px; }
}

@media (max-width: 640px) {
    .owlypia-sfb { padding: 16px; }
    .owlypia-sfb-head { flex-direction: column; }
    .owlypia-sfb-head-side { align-items: flex-start; }
    .owlypia-sfb-unofficial { text-align: left; }
    .owlypia-sfb-criteria { grid-template-columns: 1fr; }
    .owlypia-sfb-title { font-size: 24px; }
    .owlypia-sfb-score-main { font-size: 52px; }
    .owlypia-sfb-owl { width: 72px; }
}

.owlypia-evaluation-results-heading {
    margin-top: 1.75em;
}

.owlypia-score-display {
    margin: 10px 0;
    font-size: 20px;
}

.owlypia-score-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.2;
}

.owlypia-score-badge.owlypia-score-good {
    background: #d4edda;
    color: #155724;
}

.owlypia-score-badge.owlypia-score-medium {
    background: #fff3cd;
    color: #856404;
}

.owlypia-score-badge.owlypia-score-low {
    background: #f8d7da;
    color: #721c24;
}

.owlypia-feedback,
.owlypia-improved-text,
.owlypia-submitted-transcript {
    margin-top: 14px;
    line-height: 1.6;
}

.owlypia-ai-detection-wrap {
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 3px solid #6c757d;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .owlypia-record-bar {
        grid-template-columns: 1fr auto 1fr;
        min-height: 94px;
    }

    .owlypia-task-mascot {
        width: 94px;
        max-height: 94px;
    }

    .owlypia-record-main {
        grid-column: 2;
    }
}
