/*
 * Precision Education shared multicolour interface layer.
 * Scoped to plugin-owned surfaces so host-theme content remains unchanged.
 */
:root {
    --pe-mc-blue: #155eef;
    --pe-mc-cyan: #0891b2;
    --pe-mc-teal: #0f9f8f;
    --pe-mc-violet: #7c3aed;
    --pe-mc-orange: #f59e0b;
    --pe-mc-rose: #e84a72;
    --pe-mc-green: #16a66a;
    --pe-mc-ink: #102a56;
    --pe-mc-muted: #60708b;
    --pe-mc-line: #dbe7f5;
    --pe-mc-paper: rgba(255, 255, 255, .96);
    --pe-mc-shadow: 0 18px 45px rgba(21, 60, 110, .10);
}

:where(.pe-dashboard, .pe-tests-page, .pe-results-page, .pe-profile-page,
    .pe-result-page, .pe-exam-container, .pe-eval-page, .pe-student-leaderboard,
    .pe-spoken, .pe-analytics, .pf-auth, .precision-ai-inquiry-form,
    .pe-exam-creator-dashboard, .precision-admin-dashboard, .pe-admin-leaderboard) {
    color: var(--pe-mc-ink);
}

:where(.pe-dashboard, .pe-tests-page, .pe-results-page, .pe-profile-page,
    .pe-result-page, .pe-exam-container, .pe-eval-page, .pe-student-leaderboard,
    .pe-spoken, .pe-analytics, .pf-auth, .pe-exam-creator-dashboard) {
    isolation: isolate;
    position: relative;
}

:where(.pe-dashboard, .pe-tests-page, .pe-results-page, .pe-profile-page,
    .pe-result-page, .pe-exam-container, .pe-eval-page, .pe-student-leaderboard,
    .pe-spoken, .pe-analytics, .pf-auth, .pe-exam-creator-dashboard)::before {
    background:
        radial-gradient(circle at 10% 14%, rgba(21, 94, 239, .11), transparent 24%),
        radial-gradient(circle at 89% 8%, rgba(15, 159, 143, .12), transparent 22%),
        radial-gradient(circle at 76% 72%, rgba(124, 58, 237, .07), transparent 25%);
    border-radius: 32px;
    content: "";
    inset: -12px;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

/* Shared cards and panels */
:where(.pe-dash-hero, .pe-dash-section, .pe-mini-card, .pe-exam-card-small,
    .pe-tests-hero, .pe-tests-filter, .pe-test-card, .pe-results-hero,
    .pe-results-card, .pe-profile-hero, .pe-profile-section, .pe-result-header,
    .pe-result-card, .pe-eval-card, .pe-sl-hero, .pe-sl-section, .pe-spoken-card,
    .pe-analytics-card, .pf-auth-panel, .pe-creator-home-card, .pe-creator-panel,
    .pe-admin-card, .pe-admin-panel) {
    background: var(--pe-mc-paper);
    border-color: var(--pe-mc-line) !important;
    box-shadow: var(--pe-mc-shadow);
}

:where(.pe-mini-card, .pe-exam-card-small, .pe-test-card, .pe-results-card,
    .pe-profile-section, .pe-result-card, .pe-eval-card, .pe-sl-section,
    .pe-spoken-card, .pe-analytics-card, .pe-creator-home-card, .pe-admin-card) {
    overflow: hidden;
    position: relative;
}

:where(.pe-mini-card, .pe-exam-card-small, .pe-test-card, .pe-results-card,
    .pe-profile-section, .pe-result-card, .pe-eval-card, .pe-sl-section,
    .pe-spoken-card, .pe-analytics-card, .pe-creator-home-card, .pe-admin-card)::after {
    background: linear-gradient(90deg, var(--pe-mc-blue), var(--pe-mc-cyan));
    content: "";
    height: 4px;
    inset: 0 0 auto;
    position: absolute;
}

:where(.pe-mini-card, .pe-exam-card-small, .pe-test-card, .pe-results-card,
    .pe-result-card, .pe-eval-card, .pe-creator-home-card, .pe-admin-card):nth-child(4n+2)::after {
    background: linear-gradient(90deg, var(--pe-mc-teal), #38cfae);
}
:where(.pe-mini-card, .pe-exam-card-small, .pe-test-card, .pe-results-card,
    .pe-result-card, .pe-eval-card, .pe-creator-home-card, .pe-admin-card):nth-child(4n+3)::after {
    background: linear-gradient(90deg, var(--pe-mc-violet), #a66cff);
}
:where(.pe-mini-card, .pe-exam-card-small, .pe-test-card, .pe-results-card,
    .pe-result-card, .pe-eval-card, .pe-creator-home-card, .pe-admin-card):nth-child(4n+4)::after {
    background: linear-gradient(90deg, var(--pe-mc-orange), var(--pe-mc-rose));
}

/* Hero areas */
:where(.pe-dash-hero, .pe-tests-hero, .pe-results-hero, .pe-profile-hero,
    .pe-result-header, .pe-eval-page-head, .pe-sl-page-head, .pe-creator-header) {
    background:
        radial-gradient(circle at 92% 12%, rgba(20, 184, 166, .18), transparent 25%),
        linear-gradient(125deg, #f4f8ff 0%, #ffffff 55%, #edfffa 100%) !important;
    border: 1px solid #d9e8f7 !important;
    box-shadow: var(--pe-mc-shadow);
}

:where(.pe-dash-kicker, .pe-results-eyebrow, .pe-result-eyebrow, .pe-sl-eyebrow,
    .pe-eval-page-copy > span, .pe-eval-card-kicker, .pe-spoken-kicker) {
    color: var(--pe-mc-blue) !important;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Icon tiles: existing SVG and emoji graphics receive a consistent treatment. */
:where(.pe-mini-icon, .pe-action-icon, .pe-profile-icon, .pe-test-icon,
    .pe-results-icon, .pe-result-icon, .pe-sl-source-icon, .pe-dash-logo,
    .pe-stat-icon, .pe-creator-card-icon) {
    align-items: center;
    background: linear-gradient(145deg, #e9f2ff, #f5f8ff) !important;
    border: 1px solid rgba(21, 94, 239, .10);
    border-radius: 14px;
    color: var(--pe-mc-blue) !important;
    display: inline-flex;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(21, 94, 239, .10);
}

:where(.pe-mini-card, .pe-test-card, .pe-results-card, .pe-admin-card):nth-child(4n+2)
    :where(.pe-mini-icon, .pe-action-icon, .pe-test-icon, .pe-results-icon, .pe-stat-icon) {
    background: #e6fbf7 !important;
    color: var(--pe-mc-teal) !important;
}
:where(.pe-mini-card, .pe-test-card, .pe-results-card, .pe-admin-card):nth-child(4n+3)
    :where(.pe-mini-icon, .pe-action-icon, .pe-test-icon, .pe-results-icon, .pe-stat-icon) {
    background: #f2ebff !important;
    color: var(--pe-mc-violet) !important;
}
:where(.pe-mini-card, .pe-test-card, .pe-results-card, .pe-admin-card):nth-child(4n+4)
    :where(.pe-mini-icon, .pe-action-icon, .pe-test-icon, .pe-results-icon, .pe-stat-icon) {
    background: #fff3e3 !important;
    color: #d97706 !important;
}

/* Buttons and controls */
:where(.pe-dashboard, .pe-tests-page, .pe-results-page, .pe-profile-page,
    .pe-result-page, .pe-exam-container, .pe-eval-page, .pe-student-leaderboard,
    .pe-spoken, .pe-analytics, .pf-auth, .pe-exam-creator-dashboard)
    :where(button, .pe-dash-btn, .pf-form-submit, .pe-result-dashboard-btn,
    .pe-result-print-btn, .pe-download-paper, a[class*="btn"]) {
    border-radius: 12px;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

:where(.pe-dashboard, .pe-tests-page, .pe-results-page, .pe-profile-page,
    .pe-result-page, .pe-exam-container, .pe-eval-page, .pe-student-leaderboard,
    .pe-spoken, .pe-analytics, .pf-auth, .pe-exam-creator-dashboard)
    :where(button, .pe-dash-btn, .pf-form-submit, .pe-result-dashboard-btn,
    .pe-download-paper):not(.button-link-delete):not([disabled]) {
    background: linear-gradient(105deg, var(--pe-mc-blue), var(--pe-mc-cyan)) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(21, 94, 239, .20);
}

:where(.pe-dashboard, .pe-tests-page, .pe-results-page, .pe-profile-page,
    .pe-result-page, .pe-exam-container, .pe-eval-page, .pe-student-leaderboard,
    .pe-spoken, .pe-analytics, .pf-auth, .pe-exam-creator-dashboard)
    :where(button, .pe-dash-btn, .pf-form-submit, .pe-result-dashboard-btn,
    .pe-download-paper):not([disabled]):hover {
    filter: saturate(1.1) brightness(1.03);
    transform: translateY(-2px);
}

:where(.pe-dashboard, .pe-tests-page, .pe-results-page, .pe-profile-page,
    .pe-result-page, .pe-exam-container, .pe-eval-page, .pe-student-leaderboard,
    .pe-spoken, .pe-analytics, .pf-auth, .pe-exam-creator-dashboard)
    :where(input, select, textarea) {
    background-color: #fbfdff;
    border-color: #cadcf0 !important;
    border-radius: 11px !important;
}

:where(.pe-dashboard, .pe-tests-page, .pe-results-page, .pe-profile-page,
    .pe-result-page, .pe-exam-container, .pe-eval-page, .pe-student-leaderboard,
    .pe-spoken, .pe-analytics, .pf-auth, .pe-exam-creator-dashboard)
    :where(input, select, textarea):focus {
    border-color: var(--pe-mc-blue) !important;
    box-shadow: 0 0 0 4px rgba(21, 94, 239, .11) !important;
    outline: 0;
}

/* Status chips retain meaning in colour and text. */
:where(.is-complete, .is-passed, .pe-status-pass, .pe-profile-account-badge) {
    background: #e3f9f0 !important;
    color: #087a55 !important;
}
:where(.is-pending, .pe-status-pending) {
    background: #fff4dd !important;
    color: #a55b00 !important;
}
:where(.is-failed, .pe-status-fail) {
    background: #fff0f3 !important;
    color: #c52d53 !important;
}

/* Fixed student navigation becomes a polished, colourful app dock. */
.pe-student-bottom-nav {
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid #dce7f4 !important;
    box-shadow: 0 -8px 30px rgba(30, 64, 110, .12) !important;
    backdrop-filter: blur(14px);
}
.pe-student-bottom-nav a { border-radius: 13px; color: #74839a !important; }
.pe-student-bottom-nav a:nth-child(2) svg { color: var(--pe-mc-teal); }
.pe-student-bottom-nav a:nth-child(3) svg { color: var(--pe-mc-violet); }
.pe-student-bottom-nav a:nth-child(4) svg { color: var(--pe-mc-orange); }
.pe-student-bottom-nav a:nth-child(5) svg { color: var(--pe-mc-rose); }
.pe-student-bottom-nav a.is-active {
    background: linear-gradient(145deg, #edf4ff, #f1fffc) !important;
    color: var(--pe-mc-blue) !important;
}

/* Admin reporting surfaces use the same visual language without altering WP chrome. */
.precision-admin-dashboard .pe-admin-grid .pe-admin-card:nth-child(4n+1) strong { color: var(--pe-mc-blue); }
.precision-admin-dashboard .pe-admin-grid .pe-admin-card:nth-child(4n+2) strong { color: var(--pe-mc-teal); }
.precision-admin-dashboard .pe-admin-grid .pe-admin-card:nth-child(4n+3) strong { color: var(--pe-mc-violet); }
.precision-admin-dashboard .pe-admin-grid .pe-admin-card:nth-child(4n+4) strong { color: #d97706; }

@media (max-width: 680px) {
    :where(.pe-dashboard, .pe-tests-page, .pe-results-page, .pe-profile-page,
        .pe-result-page, .pe-exam-container, .pe-eval-page, .pe-student-leaderboard,
        .pe-spoken, .pe-analytics, .pf-auth, .pe-exam-creator-dashboard)::before {
        border-radius: 22px;
        inset: -6px;
    }

    :where(.pe-dash-hero, .pe-tests-hero, .pe-results-hero, .pe-profile-hero,
        .pe-result-header, .pe-eval-page-head, .pe-sl-page-head, .pe-creator-header) {
        border-radius: 20px !important;
    }

    :where(.pe-mini-card, .pe-exam-card-small, .pe-test-card, .pe-results-card,
        .pe-profile-section, .pe-result-card, .pe-eval-card, .pe-sl-section,
        .pe-spoken-card, .pe-analytics-card, .pe-creator-home-card) {
        border-radius: 18px !important;
    }

    .pe-student-bottom-nav a { min-height: 56px; padding: 7px 3px !important; }
    .pe-student-bottom-nav svg { height: 21px; width: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    :where(.pe-dashboard, .pe-tests-page, .pe-results-page, .pe-profile-page,
        .pe-result-page, .pe-exam-container, .pe-eval-page, .pe-student-leaderboard,
        .pe-spoken, .pe-analytics, .pf-auth, .pe-exam-creator-dashboard) * {
        transition: none !important;
    }
}

/* 2026 student mobile polish: readable type, aligned grids and richer visual tiles. */
:where(.pe-dashboard, .pe-tests-page, .pe-results-page, .pe-profile-page,
    .pe-result-page, .pe-eval-page, .pe-student-leaderboard) {
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 16px;
    line-height: 1.5;
}

:where(.pe-dashboard, .pe-tests-page, .pe-results-page, .pe-profile-page,
    .pe-result-page, .pe-eval-page, .pe-student-leaderboard) * {
    font-family: inherit;
}

.pe-student-welcome {
    overflow: hidden;
    padding: 28px !important;
    background:
        radial-gradient(circle at 92% 10%, rgba(8, 145, 178, .18), transparent 25%),
        radial-gradient(circle at 4% 105%, rgba(124, 58, 237, .10), transparent 32%),
        linear-gradient(125deg, #f4f8ff, #fff 56%, #ecfff9) !important;
}
.pe-student-welcome::after {
    border: 14px solid rgba(21, 94, 239, .055);
    border-radius: 50%;
    content: "";
    height: 104px;
    pointer-events: none;
    position: absolute;
    right: -42px;
    top: -48px;
    width: 104px;
}
.pe-student-welcome-copy { padding: 2px; }
.pe-student-welcome-copy p { font-size: 15px !important; line-height: 1.5; }
.pe-student-welcome-copy small { font-size: 13px !important; }
.pe-student-motivation { padding: 18px 20px !important; }
.pe-profile-link { text-decoration: none !important; }

.pe-dashboard-compact .pe-dash-section { padding-inline: 2px; }
.pe-dashboard-compact .pe-dash-section-head { margin-bottom: 14px; }
.pe-dashboard-compact .pe-dash-section-head h3 { font-size: 24px !important; line-height: 1.2; }
.pe-dashboard-compact .pe-student-stats .pe-stat-card {
    min-width: 0;
    padding: 24px 26px !important;
}
.pe-student-stats .pe-stat-card:nth-child(1) > i { color: var(--pe-mc-blue); background: #eaf2ff; }
.pe-student-stats .pe-stat-card:nth-child(2) > i { color: var(--pe-mc-teal); background: #e5faf5; }
.pe-student-stats .pe-stat-card:nth-child(3) > i { color: var(--pe-mc-violet); background: #f2ebff; }
.pe-dashboard-compact .pe-student-stats .pe-stat-card > span { font-size: 12px !important; }

.pe-dashboard-compact .pe-dash-actions-short > .pe-mini-card {
    border-width: 1px !important;
    gap: 14px !important;
    padding: 24px !important;
}
.pe-dashboard-compact .pe-dash-actions-short > .pe-mini-card:nth-child(1) {
    background: linear-gradient(145deg, #fff, #f1f7ff) !important;
}
.pe-dashboard-compact .pe-dash-actions-short > .pe-mini-card:nth-child(2) {
    background: linear-gradient(145deg, #fff, #edfcf8) !important;
}
.pe-dashboard-compact .pe-mini-card-copy > strong { font-size: 17px !important; line-height: 1.35; }
.pe-dashboard-compact .pe-mini-card-copy > span { font-size: 14px !important; line-height: 1.55; }
.pe-dashboard-compact .pe-mini-card > b { align-self: end; }

.pe-ranking-grid { gap: 16px !important; }
.pe-ranking-card {
    border: 1px solid var(--pe-mc-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 28px rgba(21, 60, 110, .08) !important;
    overflow: hidden;
    padding: 20px !important;
    position: relative;
}
.pe-ranking-card::before {
    background: linear-gradient(90deg, var(--pe-mc-violet), var(--pe-mc-blue), var(--pe-mc-teal));
    content: "";
    height: 4px;
    inset: 0 0 auto;
    position: absolute;
}
.pe-ranking-card-head { align-items: flex-start !important; gap: 12px !important; }
.pe-ranking-card-head > div { min-width: 0; padding-top: 2px; }
.pe-ranking-card-head small { font-size: 11px !important; line-height: 1.35; }
.pe-ranking-card-head h4 { font-size: 17px !important; line-height: 1.35 !important; overflow-wrap: anywhere; }
.pe-ranking-medal {
    align-items: center;
    background: linear-gradient(145deg, #eee8ff, #f7f3ff) !important;
    border-radius: 14px !important;
    color: var(--pe-mc-violet) !important;
    display: inline-flex;
    flex: 0 0 46px;
    height: 46px;
    justify-content: center;
}
.pe-ranking-card-stats { gap: 12px !important; margin-top: 16px !important; }
.pe-ranking-card-stats span { padding: 11px 12px; border-radius: 11px; background: #f6f9fd; }
.pe-ranking-card > p { font-size: 13px !important; line-height: 1.5; }
.pe-ranking-actions { align-items: stretch; gap: 9px !important; }
.pe-ranking-actions a {
    align-items: center;
    border-radius: 11px !important;
    display: inline-flex;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px !important;
    text-align: center;
}
.pe-ranking-actions a:first-child {
    background: linear-gradient(105deg, var(--pe-mc-blue), var(--pe-mc-cyan)) !important;
    border-color: transparent !important;
    color: #fff !important;
}
.pe-ranking-actions a:last-child:not(:first-child) {
    background: #f1f6fd !important;
    border-color: #d7e4f4 !important;
    color: var(--pe-mc-blue) !important;
}

/* Available-test tiles */
.pe-tests-nav { padding: 22px 24px !important; border-radius: 20px; }
.pe-tests-title h1 { font-size: clamp(30px, 5vw, 42px) !important; line-height: 1.12; }
.pe-tests-title p { font-size: 15px !important; }
.pe-tests-summary { background: transparent !important; border: 0 !important; padding: 0 !important; }
.pe-tests-summary article {
    align-items: center !important;
    border: 1px solid var(--pe-mc-line) !important;
    border-radius: 18px !important;
    overflow: hidden;
    padding: 22px !important;
    position: relative;
}
.pe-tests-summary article::after { content: ""; height: 4px; inset: 0 0 auto; position: absolute; }
.pe-tests-summary article:nth-child(1)::after { background: var(--pe-mc-blue); }
.pe-tests-summary article:nth-child(2)::after { background: var(--pe-mc-teal); }
.pe-tests-summary article:nth-child(3)::after { background: var(--pe-mc-orange); }
.pe-tests-summary article:nth-child(4)::after { background: var(--pe-mc-violet); }
.pe-tests-summary article > div { min-width: 0; }
.pe-tests-summary article span { font-size: 12px !important; line-height: 1.3; }
.pe-tests-summary article strong { line-height: 1.05; }
.pe-tests-filters { gap: 16px !important; padding: 22px !important; }
.pe-tests-filters > label > span { display: block; margin-bottom: 7px; font-size: 13px !important; font-weight: 800; }
.pe-tests-subject-group > header { align-items: center !important; gap: 11px !important; padding: 12px 4px !important; }
.pe-tests-subject-group > header i { align-items: center; display: inline-flex; justify-content: center; }
.pe-tests-card { border: 1px solid var(--pe-mc-line) !important; box-shadow: var(--pe-mc-shadow) !important; }
.pe-tests-card-main { min-width: 0; }
.pe-tests-card-main h3 { overflow-wrap: anywhere; }
.pe-tests-meta span { line-height: 1.35; }

/* Results cards */
.pe-result-item { overflow: hidden; position: relative; }
.pe-result-item::before {
    background: linear-gradient(90deg, var(--pe-mc-blue), var(--pe-mc-violet));
    content: "";
    height: 4px;
    inset: 0 0 auto;
    position: absolute;
}
.pe-results-list .pe-result-item:nth-child(even)::before {
    background: linear-gradient(90deg, var(--pe-mc-teal), var(--pe-mc-cyan));
}
.pe-result-heading { align-items: flex-start !important; }
.pe-result-heading > div { padding-top: 2px; }
.pe-result-item-icon { flex: 0 0 auto; }
.pe-result-meta span { padding: 12px 14px !important; }
.pe-view-result { background: linear-gradient(105deg, var(--pe-mc-blue), var(--pe-mc-violet)) !important; }

/* Profile page: generous, aligned information tiles. */
.pe-profile-card, .pe-profile-security { padding: 24px !important; }
.pe-profile-grid { gap: 14px !important; }
.pe-profile-row { min-height: 78px; padding: 16px !important; }
.pe-profile-row:nth-child(2) i { color: var(--pe-mc-teal); background: #e5faf5; }
.pe-profile-row:nth-child(3) i { color: var(--pe-mc-violet); background: #f2ebff; }
.pe-profile-row:nth-child(4) i { color: #d97706; background: #fff3e3; }
.pe-profile-row strong { font-size: 11px !important; }
.pe-profile-row span { font-size: 15px !important; line-height: 1.45 !important; }

@media (max-width: 680px) {
    .pe-student-welcome { gap: 18px 12px !important; padding: 20px !important; }
    .pe-student-welcome-copy h2 { font-size: 29px !important; }
    .pe-student-welcome > .pe-profile-link { min-height: 42px !important; padding: 10px 16px !important; }
    .pe-student-motivation { padding: 15px !important; }

    .pe-dashboard-compact .pe-student-stats .pe-stat-card { padding: 16px !important; }
    .pe-dashboard-compact .pe-dash-actions-short > .pe-mini-card { min-height: 182px; padding: 17px !important; }
    .pe-dashboard-compact .pe-dash-section-head h3 { font-size: 22px !important; }

    .pe-ranking-grid { grid-template-columns: 1fr !important; }
    .pe-ranking-card { padding: 18px !important; }
    .pe-ranking-actions { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }

    .pe-tests-nav { padding: 18px !important; }
    .pe-tests-summary article { min-height: 112px !important; padding: 16px !important; }
    .pe-tests-filters { padding: 17px !important; }
    .pe-tests-card { padding: 18px !important; }
    .pe-tests-card-actions > a { min-height: 48px; font-size: 14px; }

    .pe-result-item { padding: 20px !important; }
    .pe-result-item h3 { font-size: 19px !important; }
    .pe-view-result { min-height: 48px; font-size: 14px; }

    .pe-profile-card, .pe-profile-security { padding: 18px !important; }
    .pe-profile-row { min-height: 76px; padding: 15px !important; }
}

@media (max-width: 390px) {
    .pe-dashboard-compact .pe-dash-actions-short { grid-template-columns: 1fr !important; }
    .pe-dashboard-compact .pe-dash-actions-short > .pe-mini-card { min-height: 150px; }
    .pe-ranking-actions { grid-template-columns: 1fr; }
    .pe-tests-summary { grid-template-columns: 1fr 1fr !important; }
    .pe-tests-summary article { padding: 14px !important; }
}

/* Teacher dashboard and workspaces */
.pe-teacher-dashboard .pe-dash-hero {
    overflow: hidden;
    padding: 28px !important;
    position: relative;
}
.pe-teacher-dashboard .pe-dash-hero::after {
    background:
        linear-gradient(45deg, transparent 42%, rgba(255,255,255,.35) 43% 48%, transparent 49%),
        linear-gradient(-45deg, transparent 42%, rgba(15,159,143,.13) 43% 48%, transparent 49%);
    background-size: 28px 28px;
    border-radius: 50%;
    content: "";
    height: 180px;
    opacity: .75;
    position: absolute;
    right: -44px;
    top: -72px;
    width: 180px;
}
.pe-teacher-dashboard .pe-dash-actions-teacher {
    display: grid !important;
    gap: 16px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin-top: 20px !important;
}
.pe-teacher-dashboard .pe-teacher-tool {
    align-content: start !important;
    border: 1px solid var(--pe-mc-line) !important;
    border-radius: 18px !important;
    box-shadow: var(--pe-mc-shadow) !important;
    gap: 16px !important;
    min-height: 190px !important;
    overflow: hidden;
    padding: 22px !important;
    position: relative;
}
.pe-teacher-dashboard .pe-teacher-tool::after {
    content: "";
    height: 5px;
    inset: 0 0 auto;
    position: absolute;
}
.pe-teacher-dashboard .pe-accent-blue { background: linear-gradient(145deg,#fff,#eef5ff) !important; }
.pe-teacher-dashboard .pe-accent-blue::after { background: var(--pe-mc-blue); }
.pe-teacher-dashboard .pe-accent-violet { background: linear-gradient(145deg,#fff,#f5efff) !important; }
.pe-teacher-dashboard .pe-accent-violet::after { background: var(--pe-mc-violet); }
.pe-teacher-dashboard .pe-accent-cyan { background: linear-gradient(145deg,#fff,#eafaff) !important; }
.pe-teacher-dashboard .pe-accent-cyan::after { background: var(--pe-mc-cyan); }
.pe-teacher-dashboard .pe-accent-green { background: linear-gradient(145deg,#fff,#ecfbf3) !important; }
.pe-teacher-dashboard .pe-accent-green::after { background: var(--pe-mc-green); }
.pe-teacher-dashboard .pe-accent-teal { background: linear-gradient(145deg,#fff,#eafbf8) !important; }
.pe-teacher-dashboard .pe-accent-teal::after { background: var(--pe-mc-teal); }
.pe-teacher-dashboard .pe-accent-magenta { background:linear-gradient(145deg,#fff,#fff0fb) !important; }
.pe-teacher-dashboard .pe-accent-magenta::after { background:linear-gradient(90deg,#7c3aed,#d946ef); }
.pe-teacher-dashboard .pe-teacher-tool .pe-mini-icon {
    height: 54px !important;
    width: 54px !important;
}
.pe-teacher-dashboard .pe-teacher-tool .pe-mini-icon svg { height: 26px; width: 26px; }
.pe-teacher-dashboard .pe-teacher-tool strong { font-size: 17px !important; line-height: 1.3; }
.pe-teacher-dashboard .pe-teacher-tool .pe-mini-card-copy > span { font-size: 14px !important; line-height: 1.5; }

/* Learning Analytics */
.pe-analytics { font-family: Inter,"Segoe UI",Roboto,Arial,sans-serif !important; }
.pe-analytics-hero {
    overflow: hidden;
    padding: 30px !important;
    position: relative;
}
.pe-analytics-hero::after {
    border: 22px solid rgba(255,255,255,.10);
    border-radius: 50%;
    content: "";
    height: 150px;
    position: absolute;
    right: -55px;
    top: -58px;
    width: 150px;
}
.pe-analytics > .pe-metric-grid {
    gap: 16px !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    margin-top: 18px !important;
}
.pe-analytics > .pe-metric-grid > .pe-metric {
    align-items: center;
    border: 1px solid var(--pe-mc-line) !important;
    border-radius: 18px !important;
    box-shadow: var(--pe-mc-shadow) !important;
    display: grid;
    gap: 14px;
    grid-template-columns: 52px minmax(0,1fr);
    min-height: 150px;
    overflow: hidden;
    padding: 22px !important;
    position: relative;
}
.pe-analytics > .pe-metric-grid > .pe-metric::after {
    content: "";
    height: 5px;
    inset: 0 0 auto;
    position: absolute;
}
.pe-analytics > .pe-metric-grid > .pe-metric:nth-child(1)::after { background: var(--pe-mc-blue); }
.pe-analytics > .pe-metric-grid > .pe-metric:nth-child(2)::after { background: var(--pe-mc-teal); }
.pe-analytics > .pe-metric-grid > .pe-metric:nth-child(3)::after { background: var(--pe-mc-orange); }
.pe-analytics > .pe-metric-grid > .pe-metric:nth-child(4)::after { background: var(--pe-mc-violet); }
.pe-metric-icon {
    align-items: center;
    background: #eaf2ff;
    border-radius: 15px;
    color: var(--pe-mc-blue);
    display: inline-flex;
    height: 52px;
    justify-content: center;
    width: 52px;
}
.pe-metric:nth-child(2) .pe-metric-icon { background:#e5faf5; color:var(--pe-mc-teal); }
.pe-metric:nth-child(3) .pe-metric-icon { background:#fff3e3; color:#d97706; }
.pe-metric:nth-child(4) .pe-metric-icon { background:#f2ebff; color:var(--pe-mc-violet); }
.pe-metric-icon svg { fill:none; height:25px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; width:25px; }
.pe-analytics > .pe-metric-grid > .pe-metric > div { min-width:0; }
.pe-analytics .pe-metric span { font-size: 12px !important; font-weight: 800; }
.pe-analytics .pe-metric strong { font-size: 30px !important; line-height: 1.1; }
.pe-analytics .pe-metric small { font-size: 13px !important; line-height: 1.45; }
.pe-analytics-layout { gap: 18px !important; }
.pe-analytics .pe-panel {
    border: 1px solid var(--pe-mc-line) !important;
    border-radius: 20px !important;
    box-shadow: var(--pe-mc-shadow) !important;
    overflow: hidden;
    padding: 24px !important;
}
.pe-analytics .pe-panel h3 { font-size: 22px !important; margin-bottom: 16px !important; }
.pe-subject-row,.pe-performer-row { min-height: 66px; padding: 13px 4px !important; }
.pe-subject-row:nth-of-type(2n) .pe-chip { background:#e5faf5; color:var(--pe-mc-teal); }
.pe-subject-row:nth-of-type(3n) .pe-chip { background:#f2ebff; color:var(--pe-mc-violet); }

/* Answer Evaluation teacher workflow */
.pe-eval-page-head { overflow:hidden; padding:26px !important; position:relative; }
.pe-eval-page-head::after {
    background: radial-gradient(circle,rgba(21,94,239,.14) 0 3px,transparent 4px);
    background-size: 18px 18px;
    content:"";
    height:110px;
    opacity:.65;
    position:absolute;
    right:-12px;
    top:-18px;
    width:145px;
}
.pe-eval-page-copy h1 { font-size: clamp(28px,4vw,40px) !important; line-height:1.15; }
.pe-eval-page-copy p { font-size:15px !important; line-height:1.55; }
.pe-eval-progress {
    background:#fff !important;
    border:1px solid var(--pe-mc-line) !important;
    border-radius:20px !important;
    box-shadow:var(--pe-mc-shadow);
    gap:10px !important;
    padding:14px !important;
}
.pe-eval-progress > * { border-radius:14px !important; min-height:62px; padding:12px !important; }
.pe-eval-progress > *:nth-child(1) { background:#e9f2ff !important; color:var(--pe-mc-blue) !important; }
.pe-eval-progress > *:nth-child(2) { background:#e5faf5 !important; color:var(--pe-mc-teal) !important; }
.pe-eval-progress > *:nth-child(3) { background:#f2ebff !important; color:var(--pe-mc-violet) !important; }
.pe-eval-progress > *:nth-child(4) { background:#fff3e3 !important; color:#b86400 !important; }
.pe-eval-workflow {
    border:1px solid var(--pe-mc-line) !important;
    border-radius:20px !important;
    box-shadow:var(--pe-mc-shadow) !important;
    padding:14px !important;
}
.pe-eval-workflow ol { gap:10px !important; }
.pe-eval-workflow li { border-radius:14px !important; min-height:66px; padding:12px !important; }
.pe-eval-workflow li:nth-child(1) { background:#e9f2ff !important; border-color:#c9dcff !important; }
.pe-eval-workflow li:nth-child(2) { background:#e5faf5 !important; border-color:#bde9dd !important; }
.pe-eval-workflow li:nth-child(3) { background:#f2ebff !important; border-color:#ddcdfc !important; }
.pe-eval-workflow li:nth-child(4) { background:#fff3e3 !important; border-color:#f5d7a9 !important; }
.pe-eval-card,.pe-eval-info-card {
    border:1px solid var(--pe-mc-line) !important;
    border-radius:20px !important;
    box-shadow:var(--pe-mc-shadow) !important;
    padding:22px !important;
}
.pe-question-paper-facts { gap:10px !important; }
.pe-question-paper-facts > span { border-radius:13px !important; padding:14px !important; }
.pe-question-paper-facts > span:nth-child(1) { background:#eef5ff !important; }
.pe-question-paper-facts > span:nth-child(2) { background:#eafbf8 !important; }
.pe-question-paper-facts > span:nth-child(3) { background:#fff5e8 !important; }
.pe-question-paper-facts > span:nth-child(4) { background:#f4efff !important; }

/* Content Creator dashboard */
.pe-exam-creator-dashboard { font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif !important; }
.pe-exam-creator-hero {
    overflow:hidden;
    padding:24px !important;
    position:relative;
}
.pe-exam-creator-hero::after {
    background:linear-gradient(135deg,transparent 20%,rgba(255,255,255,.13) 21% 24%,transparent 25% 45%,rgba(255,255,255,.10) 46% 49%,transparent 50%);
    content:"";
    height:170px;
    pointer-events:none;
    position:absolute;
    right:-38px;
    top:-42px;
    transform:rotate(12deg);
    width:170px;
    z-index:0;
}
.pe-exam-creator-hero > * {
    position:relative;
    z-index:1;
}
.pe-exam-creator-logout {
    pointer-events:auto !important;
    position:relative !important;
    z-index:2 !important;
}
.pe-creator-nav { box-shadow:0 10px 26px rgba(21,60,110,.08); }
.pe-creator-nav a { border-radius:12px !important; min-height:46px !important; }
.pe-creator-home-grid { gap:16px !important; }
.pe-creator-card {
    border:1px solid var(--pe-mc-line) !important;
    border-radius:20px !important;
    box-shadow:var(--pe-mc-shadow) !important;
    overflow:hidden;
    padding:24px !important;
    position:relative;
}
.pe-creator-card--account { background:linear-gradient(145deg,#fff,#edf5ff) !important; }
.pe-creator-card--exam { background:linear-gradient(145deg,#fff,#eafbf8) !important; }
.pe-creator-card--worksheet { background:linear-gradient(145deg,#fff,#f4efff) !important; }
.pe-creator-card--document { background:linear-gradient(145deg,#fff,#fff0fb) !important; }
.pe-creator-card--document::after { background:linear-gradient(90deg,#7c3aed,#d946ef);content:'';height:5px;inset:0 0 auto;position:absolute; }
.pe-creator-card--account::after,.pe-creator-card--exam::after,.pe-creator-card--worksheet::after {
    content:"";
    height:5px;
    inset:0 0 auto;
    position:absolute;
}
.pe-creator-card--account::after { background:var(--pe-mc-blue); }
.pe-creator-card--exam::after { background:var(--pe-mc-teal); }
.pe-creator-card--worksheet::after { background:var(--pe-mc-violet); }
.pe-creator-card-icon { height:56px !important; width:56px !important; }
.pe-creator-card-icon svg { height:27px !important; width:27px !important; }
.pe-creator-card h2 { font-size:20px !important; line-height:1.3; }
.pe-creator-card p { font-size:14px !important; line-height:1.55; }
.pe-creator-primary-link,.pe-creator-profile-toggle {
    background:linear-gradient(105deg,var(--pe-mc-blue),var(--pe-mc-cyan)) !important;
    border:0 !important;
    border-radius:12px !important;
    box-shadow:0 10px 22px rgba(21,94,239,.18);
    min-height:46px !important;
}

@media(max-width:960px) {
    .pe-teacher-dashboard .pe-dash-actions-teacher { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
    .pe-analytics > .pe-metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}

@media(max-width:600px) {
    .pe-teacher-dashboard .pe-dash-hero { padding:20px !important; }
    .pe-teacher-dashboard .pe-dash-actions-teacher { gap:11px !important; }
    .pe-teacher-dashboard .pe-teacher-tool { min-height:170px !important; padding:17px !important; }
    .pe-teacher-dashboard .pe-teacher-tool strong { font-size:16px !important; }

    .pe-analytics-hero { padding:22px !important; }
    .pe-analytics > .pe-metric-grid { gap:11px !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
    .pe-analytics > .pe-metric-grid > .pe-metric { grid-template-columns:1fr; min-height:160px; padding:17px !important; }
    .pe-metric-icon { height:46px; width:46px; }
    .pe-analytics .pe-panel { padding:18px !important; }

    .pe-eval-page-head { padding:20px !important; }
    .pe-eval-progress { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
    .pe-eval-card,.pe-eval-info-card { padding:18px !important; }

    .pe-exam-creator-hero { padding:18px !important; }
    .pe-creator-card { padding:19px !important; }
}

@media(max-width:390px) {
    .pe-teacher-dashboard .pe-dash-actions-teacher { grid-template-columns:1fr !important; }
    .pe-teacher-dashboard .pe-teacher-tool { min-height:145px !important; }
    .pe-analytics > .pe-metric-grid { grid-template-columns:1fr !important; }
    .pe-analytics > .pe-metric-grid > .pe-metric { grid-template-columns:48px minmax(0,1fr); min-height:132px; }
}

/* Strong header highlights: clean colour bands with unobstructed content. */
:where(.pe-student-welcome,.pe-tests-hero,.pe-results-hero,.pe-profile-hero,
    .pe-result-header,.pe-sl-header,.pe-eval-page-head,.pe-spoken-focus-head,
    .pe-spoken-hero,.pe-resource-hero,.pe-dash-hero,.pe-analytics-hero,
    .pe-exam-creator-hero,.pe-admin-hero,.pe-lb-head) {
    border: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 14px 32px rgba(13,49,112,.18) !important;
    color: #fff !important;
    isolation: isolate;
    overflow: hidden !important;
    position: relative;
}

:where(.pe-student-welcome,.pe-tests-hero,.pe-results-hero,.pe-profile-hero,
    .pe-result-header,.pe-sl-header,.pe-eval-page-head,.pe-spoken-focus-head,
    .pe-spoken-hero,.pe-resource-hero,.pe-dash-hero,.pe-analytics-hero,
    .pe-exam-creator-hero,.pe-admin-hero,.pe-lb-head)::before {
    background:
        radial-gradient(circle,rgba(255,255,255,.2) 0 2px,transparent 3px) 0 0/18px 18px;
    border: 0;
    border-radius: 0;
    content: "";
    display: block;
    height: 74px;
    inset: auto -18px -28px auto;
    opacity: .55;
    pointer-events: none;
    position: absolute;
    transform: rotate(-8deg);
    width: 180px;
    z-index: 0;
}

:where(.pe-student-welcome,.pe-tests-hero,.pe-results-hero,.pe-profile-hero,
    .pe-result-header,.pe-sl-header,.pe-eval-page-head,.pe-spoken-focus-head,
    .pe-spoken-hero,.pe-resource-hero,.pe-dash-hero,.pe-analytics-hero,
    .pe-exam-creator-hero,.pe-admin-hero,.pe-lb-head)::after {
    background: rgba(255,255,255,.72);
    border: 0;
    border-radius: 999px;
    bottom: 0;
    content: "";
    height: 5px;
    inset-inline: 18px;
    pointer-events: none;
    position: absolute;
    right: 18px;
    top: auto;
    width: auto;
    z-index: 2;
}

:where(.pe-student-welcome,.pe-tests-hero,.pe-results-hero,.pe-profile-hero,
    .pe-result-header,.pe-sl-header,.pe-eval-page-head,.pe-spoken-focus-head,
    .pe-spoken-hero,.pe-resource-hero,.pe-dash-hero,.pe-analytics-hero,
    .pe-exam-creator-hero,.pe-admin-hero,.pe-lb-head) > * {
    position: relative;
    z-index: 1;
}

/* Distinct, high-contrast palettes by destination. */
.pe-student-welcome,.pe-dash-hero {
    background: linear-gradient(120deg,#1647ef 0%,#0879d9 48%,#0aa58e 100%) !important;
}
.pe-tests-hero {
    background: linear-gradient(120deg,#155eef 0%,#2563eb 52%,#0891b2 100%) !important;
}
.pe-results-hero,.pe-result-header {
    background: linear-gradient(120deg,#5b35d5 0%,#7047eb 48%,#155eef 100%) !important;
}
.pe-profile-hero {
    background: linear-gradient(120deg,#087f8c 0%,#0f9f8f 50%,#16a66a 100%) !important;
}
.pe-sl-header {
    background: linear-gradient(120deg,#6d3be7 0%,#155eef 52%,#0891b2 100%) !important;
}
.pe-eval-page-head {
    background: linear-gradient(120deg,#075f9c 0%,#0891b2 50%,#0f9f8f 100%) !important;
}
.pe-spoken-focus-head,.pe-spoken-hero {
    background: linear-gradient(120deg,#087f8c 0%,#0f9f8f 52%,#14b8a6 100%) !important;
}
.pe-resource-hero {
    background: linear-gradient(120deg,#087956 0%,#16a66a 50%,#0891b2 100%) !important;
}
.pe-teacher-dashboard .pe-dash-hero {
    background: linear-gradient(120deg,#5730c7 0%,#7047eb 46%,#155eef 100%) !important;
}
.pe-analytics-hero {
    background: linear-gradient(120deg,#07356f 0%,#075f9c 50%,#078c86 100%) !important;
}
.pe-exam-creator-hero {
    background: linear-gradient(120deg,#0b397d 0%,#155eef 50%,#0f9f8f 100%) !important;
}
.pe-admin-hero,.pe-lb-head {
    background: linear-gradient(120deg,#082f63 0%,#0b5cab 50%,#0f8b8d 100%) !important;
}

:where(.pe-student-welcome,.pe-tests-hero,.pe-results-hero,.pe-profile-hero,
    .pe-result-header,.pe-sl-header,.pe-eval-page-head,.pe-spoken-focus-head,
    .pe-spoken-hero,.pe-resource-hero,.pe-dash-hero,.pe-analytics-hero,
    .pe-exam-creator-hero,.pe-admin-hero,.pe-lb-head)
    :where(h1,h2,h3,p,strong,small) {
    color: #fff !important;
}
:where(.pe-student-welcome,.pe-tests-hero,.pe-results-hero,.pe-profile-hero,
    .pe-result-header,.pe-sl-header,.pe-eval-page-head,.pe-spoken-focus-head,
    .pe-spoken-hero,.pe-resource-hero,.pe-dash-hero,.pe-analytics-hero,
    .pe-exam-creator-hero,.pe-admin-hero,.pe-lb-head)
    :where([class*="kicker"],[class*="eyebrow"]) {
    color: #dff8ff !important;
}

/* White controls and information tiles remain readable on strong colour. */
:where(.pe-student-welcome,.pe-tests-hero,.pe-results-hero,.pe-profile-hero,
    .pe-result-header,.pe-sl-header,.pe-eval-page-head,.pe-spoken-focus-head,
    .pe-resource-hero,.pe-dash-hero,.pe-exam-creator-hero)
    :where(a,button,.pe-results-count,.pe-profile-account-badge,.pe-sl-page-head>span,
    .pe-eval-stage-badge,.pe-resource-count) {
    border-color: rgba(255,255,255,.5) !important;
    background: #fff !important;
    color: #123b7a !important;
    box-shadow: 0 7px 18px rgba(4,31,82,.14) !important;
}
.pe-student-welcome .pe-student-motivation {
    border: 1px solid rgba(255,255,255,.7) !important;
    background: rgba(255,255,255,.96) !important;
}
.pe-student-welcome .pe-student-motivation :where(strong,p) {
    color: var(--pe-mc-ink) !important;
}
.pe-sl-header .pe-sl-page-head>span,
.pe-profile-hero .pe-profile-account-badge { color:#087956 !important; }

@media(max-width:680px) {
    :where(.pe-student-welcome,.pe-tests-hero,.pe-results-hero,.pe-profile-hero,
        .pe-result-header,.pe-sl-header,.pe-eval-page-head,.pe-spoken-focus-head,
        .pe-spoken-hero,.pe-resource-hero,.pe-dash-hero,.pe-analytics-hero,
        .pe-exam-creator-hero,.pe-admin-hero,.pe-lb-head) {
        border-radius: 17px !important;
        box-shadow: 0 10px 24px rgba(13,49,112,.16) !important;
    }
    :where(.pe-student-welcome,.pe-tests-hero,.pe-results-hero,.pe-profile-hero,
        .pe-result-header,.pe-sl-header,.pe-eval-page-head,.pe-spoken-focus-head,
        .pe-spoken-hero,.pe-resource-hero,.pe-dash-hero,.pe-analytics-hero,
        .pe-exam-creator-hero,.pe-admin-hero,.pe-lb-head)::before {
        height: 58px;
        width: 130px;
    }
}

/* Native WordPress logout link: visible, reliable and consistent with the theme. */
.pe-logout .pe-logout-link {
    align-items:center;
    background:linear-gradient(105deg,#e54863,#c92f52) !important;
    border:0 !important;
    border-radius:12px;
    box-shadow:0 9px 20px rgba(201,47,82,.18);
    color:#fff !important;
    display:inline-flex;
    font-size:14px;
    font-weight:850;
    justify-content:center;
    min-height:44px;
    padding:10px 20px;
    text-decoration:none !important;
}
.pe-logout .pe-logout-link:hover { filter:brightness(1.05); transform:translateY(-1px); }

/* Spoken English lesson workspace, shared by desktop and mobile. */
.pe-spoken-focus {
    --sp-navy:#092d55;
    --sp-blue:#1263b8;
    --sp-teal:#079b96;
    --sp-green:#10a96f;
    --sp-violet:#7957d5;
    background:
        radial-gradient(circle at 8% 7%,rgba(18,99,184,.08),transparent 22%),
        radial-gradient(circle at 94% 4%,rgba(7,155,150,.10),transparent 23%);
    font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif !important;
    max-width:1440px !important;
    padding:10px 0 24px;
}
.pe-spoken-focus::before { display:none; }
.pe-spoken-focus-head {
    border-radius:20px !important;
    box-shadow:0 14px 36px rgba(16,54,90,.08) !important;
    min-height:92px;
    padding:16px 22px !important;
}
.pe-spoken-focus-head>div:first-child { min-width:0; }
.pe-spoken-focus-head .pe-spoken-brand-lockup {
    flex:0 0 auto;
    max-width:none !important;
    overflow:visible;
}
.pe-spoken-focus-head .precify-brand__mark {
    display:inline-block !important;
    width:auto !important;
    min-width:132px;
    color:var(--sp-navy);
    font-size:25px;
    overflow:visible;
}
.pe-spoken-focus-head>div:first-child>span {
    display:grid;
    gap:2px;
    padding-left:18px !important;
}
.pe-spoken-focus-head>div:first-child>span>strong { color:var(--sp-navy); font-size:19px; line-height:1.25; }
.pe-spoken-focus-head>div:first-child>span>small { color:var(--sp-muted); font-size:12px; font-weight:650; white-space:nowrap; }
.pe-spoken-focus-head>div:first-child>span b { color:var(--sp-teal); }
.pe-spoken-focus-head>a {
    background:#edf5ff;
    border-radius:11px;
    color:var(--sp-blue) !important;
    justify-self:center !important;
    padding:10px 14px;
}
.pe-spoken-focus-level { min-width:220px !important; }
.pe-spoken-focus-level strong { color:var(--sp-teal) !important; font-size:15px; }
.pe-spoken-focus-level>i { height:7px !important; }
.pe-spoken-focus-level>i>b { background:linear-gradient(90deg,var(--sp-teal),#17c0b3) !important; border-radius:99px; }

.pe-spoken-focus-grid {
    gap:18px !important;
    grid-template-columns:minmax(0,3fr) minmax(280px,1fr) !important;
    margin-top:18px !important;
}
.pe-spoken-focus-main,.pe-spoken-focus-side>section {
    border-color:#dce8f1 !important;
    border-radius:20px !important;
    box-shadow:0 14px 36px rgba(16,54,90,.07) !important;
}
.pe-spoken-focus-main { min-width:0; padding:24px !important; }
.pe-spoken-choices {
    border:1px solid #dce8f1;
    border-radius:16px;
    padding:14px;
}
.pe-spoken-choices form { grid-template-columns:1fr 1fr auto !important; gap:13px !important; }
.pe-spoken-choices label { font-size:11px !important; }
.pe-spoken-choices select { border:0 !important; font-size:15px; min-height:46px !important; padding-inline:12px 32px; }
.pe-spoken-choices button {
    background:linear-gradient(105deg,var(--sp-teal),#0bb6a8) !important;
    border-radius:11px !important;
    min-height:46px !important;
    padding-inline:18px !important;
}
.pe-spoken-scenario-head { margin:18px 0 10px !important; }
.pe-spoken-scenario-head h1 { font-size:clamp(24px,3vw,34px) !important; }

.pe-spoken-objective {
    align-items:center;
    background:linear-gradient(105deg,#edf8fb,#f3fbff);
    border:1px solid #d4ebf1;
    border-radius:15px;
    display:grid;
    gap:14px;
    grid-template-columns:48px minmax(0,1fr);
    margin:12px 0 18px;
    padding:15px 18px;
}
.pe-spoken-objective>i {
    align-items:center;
    background:#dff5f5;
    border-radius:14px;
    color:var(--sp-teal);
    display:inline-flex;
    height:48px;
    justify-content:center;
    width:48px;
}
.pe-spoken-objective svg { fill:none; height:25px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; width:25px; }
.pe-spoken-objective p { color:#31546c; font-size:14px; line-height:1.55; margin:0 !important; }
.pe-spoken-objective p strong { color:var(--sp-teal); }
.pe-spoken-objective p span { display:block; }

.pe-spoken-chat-row {
    align-items:flex-start;
    display:flex;
    gap:12px;
    margin:12px 0;
    max-width:78%;
}
.pe-spoken-chat-row[hidden] { display:none !important; }
.pe-spoken-chat-row--student { flex-direction:row-reverse; margin-left:auto; }
.pe-spoken-chat-avatar {
    align-items:center;
    background:linear-gradient(145deg,#dff7f7,#edf4ff);
    border:1px solid #d4e8ec;
    border-radius:50%;
    color:var(--sp-blue);
    display:inline-flex;
    flex:0 0 56px;
    font-size:28px;
    font-weight:900;
    height:56px;
    justify-content:center;
    width:56px;
}
.pe-spoken-chat-row--student .pe-spoken-chat-avatar { background:linear-gradient(145deg,var(--sp-blue),var(--sp-violet)); color:#fff; font-size:20px; }
.pe-spoken-chat-row .pe-spoken-latest {
    background:#eaf6fb !important;
    border:0 !important;
    border-radius:6px 16px 16px 16px !important;
    min-width:240px;
    padding:15px 18px !important;
}
.pe-spoken-chat-row--student .pe-spoken-latest { background:#eaf8ef !important; border-radius:16px 6px 16px 16px !important; text-align:right; }
.pe-spoken-chat-row .pe-spoken-latest p { font-size:16px !important; font-weight:650 !important; line-height:1.55; }
.pe-spoken-chat-row .pe-spoken-latest small { font-size:10px; }
.pe-spoken-focus-main>.pe-spoken-conversation {
    border-top:1px solid #e4edf3;
    margin-top:14px !important;
    max-height:190px !important;
    padding:12px 4px !important;
}

.pe-spoken-focus .pe-spoken-mic-area {
    background:linear-gradient(180deg,#fbfdff,#f3f9fb) !important;
    border:1px solid #dce8ef;
    border-radius:18px !important;
    margin-top:16px !important;
    padding:18px !important;
}
.pe-spoken-focus .pe-spoken-mic {
    background:linear-gradient(145deg,#08afa6,#047e8d) !important;
    border:9px solid #d9f5f3 !important;
    box-shadow:0 0 0 7px rgba(7,155,150,.08);
    height:104px !important;
    min-height:104px !important;
    width:104px !important;
}
.pe-spoken-mic-area>strong { font-size:17px; }
.pe-spoken-voice-controls button { border-radius:11px !important; min-height:44px !important; }
.pe-spoken-voice-controls [data-spoken-live] { background:linear-gradient(105deg,var(--sp-teal),#0cb7a9) !important; }

.pe-spoken-focus-side { gap:14px !important; }
.pe-spoken-focus-side>section { padding:20px !important; }
.pe-spoken-focus-side h2 { color:var(--sp-teal) !important; font-size:18px !important; margin-bottom:14px !important; }
.pe-spoken-feedback p {
    align-items:center;
    border-bottom:1px solid #e6edf3;
    display:grid !important;
    gap:12px;
    grid-template-columns:44px minmax(0,1fr);
    justify-content:start !important;
    margin:0 !important;
    padding:11px 0;
}
.pe-spoken-feedback p:last-child { border-bottom:0; }
.pe-spoken-feedback p>i {
    align-items:center;
    background:#e5f8f6;
    border-radius:50%;
    color:var(--sp-teal);
    display:inline-flex;
    font-size:18px;
    font-style:normal;
    font-weight:900;
    height:42px;
    justify-content:center;
    width:42px;
}
.pe-spoken-feedback p:nth-child(3)>i { background:#e9f7ee; color:var(--sp-green); }
.pe-spoken-feedback p:nth-child(4)>i { background:#eef1ff; color:var(--sp-violet); }
.pe-spoken-feedback p:nth-child(5)>i { background:#fff3e4; color:#d97706; }
.pe-spoken-feedback p>span { display:grid; }
.pe-spoken-feedback p strong { color:var(--sp-navy); font-size:13px; }
.pe-spoken-feedback p small { color:var(--sp-muted); font-size:11px; }
.pe-spoken-progress-title { display:flex; justify-content:space-between; gap:10px; }
.pe-spoken-progress-title strong { color:var(--sp-navy); font-size:12px; }
.pe-spoken-progress-title small { color:var(--sp-muted); font-size:10px; }
.pe-spoken-progress-stats { display:grid; gap:7px; grid-template-columns:repeat(3,1fr); margin-top:15px; }
.pe-spoken-progress-stats>span { background:#f6f9fc; border-radius:10px; padding:9px 5px; text-align:center; }
.pe-spoken-progress-stats b,.pe-spoken-progress-stats small { display:block; }
.pe-spoken-progress-stats b { color:var(--sp-navy); font-size:18px; }
.pe-spoken-progress-stats small { color:var(--sp-muted); font-size:8px; }
.pe-spoken-next-icon { align-items:center; background:#e7f8f2; border-radius:50%; color:var(--sp-green); display:inline-flex; float:left; height:42px; justify-content:center; margin:0 11px 12px 0; width:42px; }
.pe-spoken-tip {
    align-items:center;
    background:linear-gradient(90deg,#edf9fb,#f8fcff);
    border:1px solid #d9edf1;
    border-radius:14px;
    color:#315b6c;
    display:flex;
    gap:8px;
    margin-top:16px;
    padding:13px 18px;
}
.pe-spoken-tip strong { color:var(--sp-teal); }

@media(max-width:980px) {
    .pe-spoken-focus-grid { grid-template-columns:1fr !important; }
    .pe-spoken-focus-side { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
}

@media(max-width:680px) {
    .pe-spoken-focus { width:calc(100% - 14px) !important; margin-top:7px !important; }
    .pe-spoken-focus-head { grid-template-columns:1fr auto !important; min-height:0; padding:14px !important; }
    .pe-spoken-focus-head>div:first-child>span { border-left:0 !important; padding-left:0 !important; }
    .pe-spoken-focus-head .precify-brand__mark { min-width:104px; font-size:20px; }
    .pe-spoken-focus-head>div:first-child>span>strong { font-size:16px; }
    .pe-spoken-focus-head>div:first-child>span>small { font-size:10px; white-space:normal; }
    .pe-spoken-focus-head>a { grid-column:1; grid-row:2; justify-self:start !important; }
    .pe-spoken-focus-level { grid-column:2; grid-row:2; min-width:135px !important; }
    .pe-spoken-focus-grid { margin-top:10px !important; }
    .pe-spoken-focus-main { padding:13px !important; }
    .pe-spoken-choices { padding:10px; }
    .pe-spoken-choices form { grid-template-columns:1fr 1fr !important; }
    .pe-spoken-choices button { grid-column:1/-1; }
    .pe-spoken-objective { grid-template-columns:40px minmax(0,1fr); padding:12px; }
    .pe-spoken-objective>i { height:40px; width:40px; }
    .pe-spoken-chat-row { max-width:94%; }
    .pe-spoken-chat-avatar { flex-basis:45px; font-size:23px; height:45px; width:45px; }
    .pe-spoken-chat-row .pe-spoken-latest { min-width:0; padding:13px !important; }
    .pe-spoken-chat-row .pe-spoken-latest p { font-size:14px !important; }
    .pe-spoken-focus-main>.pe-spoken-conversation { display:grid !important; max-height:170px !important; }
    .pe-spoken-focus .pe-spoken-mic { height:88px !important; min-height:88px !important; width:88px !important; }
    .pe-spoken-focus-side { grid-template-columns:1fr !important; }
    .pe-spoken-focus-side>section { padding:17px !important; }
    .pe-spoken-feedback { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .pe-spoken-feedback h2 { grid-column:1/-1; }
    .pe-spoken-feedback p { border:0; padding:7px 0; }
    .pe-spoken-tip { font-size:12px; padding:11px 13px; }
    .pe-logout,.pe-logout .pe-logout-link { width:100%; }
}

@media(max-width:390px) {
    .pe-spoken-choices form { grid-template-columns:1fr !important; }
    .pe-spoken-feedback { grid-template-columns:1fr; }
    .pe-spoken-feedback h2 { grid-column:1; }
    .pe-spoken-voice-controls { grid-template-columns:1fr !important; }
}

/* Keep the Spoken English header on the shared highlighted-header palette. */
.pe-spoken-focus-head {
    background:linear-gradient(120deg,#087f8c 0%,#0f9f8f 52%,#14b8a6 100%) !important;
    box-shadow:0 14px 32px rgba(13,49,112,.18) !important;
}
.pe-spoken-focus-head :where(.precify-brand__mark,h1,h2,h3,p,strong,small) {
    color:#fff !important;
}
.pe-spoken-focus-head > a {
    background:#fff !important;
    border-color:rgba(255,255,255,.5) !important;
    color:#123b7a !important;
}
.pe-spoken-focus-head .pe-spoken-focus-level > i {
    background:rgba(255,255,255,.35) !important;
}
.pe-spoken-focus-head .pe-spoken-focus-level > i > b {
    background:#fff !important;
}

/* Student dashboard: unobstructed welcome header and colourful overview grid. */
.pe-student-welcome::before,
.pe-student-welcome::after {
    content:none !important;
    display:none !important;
}
.pe-student-welcome-copy > span {
    color:#dff8ff !important;
    font-size:13px !important;
    letter-spacing:.035em;
    text-transform:uppercase;
}
.pe-student-welcome-copy {
    position:relative;
    z-index:1;
}

.pe-student-stats .pe-stat-grid {
    background:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    gap:14px !important;
    overflow:visible !important;
}
.pe-dashboard-compact .pe-student-stats .pe-stat-card {
    border:1px solid transparent !important;
    border-radius:17px !important;
    box-shadow:0 10px 24px rgba(20,47,96,.10) !important;
    min-height:116px;
    overflow:hidden;
    position:relative;
}
.pe-dashboard-compact .pe-student-stats .pe-stat-card::after {
    border-radius:999px;
    content:"";
    height:84px;
    opacity:.45;
    pointer-events:none;
    position:absolute;
    right:-30px;
    top:-34px;
    width:84px;
}
.pe-dashboard-compact .pe-student-stats .pe-stat-card:nth-child(1) {
    background:linear-gradient(145deg,#eef5ff,#dfeaff) !important;
    border-color:#c9dcff !important;
}
.pe-dashboard-compact .pe-student-stats .pe-stat-card:nth-child(1)::after {
    background:#82adff;
}
.pe-dashboard-compact .pe-student-stats .pe-stat-card:nth-child(2) {
    background:linear-gradient(145deg,#eafbf7,#d9f7ef) !important;
    border-color:#bcebdd !important;
}
.pe-dashboard-compact .pe-student-stats .pe-stat-card:nth-child(2)::after {
    background:#58d8bb;
}
.pe-dashboard-compact .pe-student-stats .pe-stat-card:nth-child(3) {
    background:linear-gradient(145deg,#f7efff,#eee2ff) !important;
    border-color:#ddc8ff !important;
}
.pe-dashboard-compact .pe-student-stats .pe-stat-card:nth-child(3)::after {
    background:#b58aff;
}
.pe-dashboard-compact .pe-student-stats .pe-stat-card > i,
.pe-dashboard-compact .pe-student-stats .pe-stat-card > span,
.pe-dashboard-compact .pe-student-stats .pe-stat-card > strong {
    position:relative;
    z-index:1;
}
.pe-dashboard-compact .pe-student-stats .pe-stat-card > strong {
    color:#092d55 !important;
}

@media(max-width:560px) {
    .pe-student-welcome {
        padding:22px !important;
    }
    .pe-student-welcome-copy > span {
        margin-bottom:4px;
    }
    .pe-student-stats .pe-stat-grid {
        gap:12px !important;
    }
    .pe-dashboard-compact .pe-student-stats .pe-stat-card {
        border:1px solid transparent !important;
        min-height:104px;
        padding:15px !important;
    }
    .pe-dashboard-compact .pe-student-stats .pe-stat-card:last-child {
        border-top:1px solid #ddc8ff !important;
    }
}

/* Authoritative page-header colours. Repeated classes intentionally outrank
   page-level component styles that are loaded before or after this stylesheet. */
.pe-student-welcome.pe-student-welcome,
.pe-dash-hero.pe-dash-hero {
    background:linear-gradient(120deg,#1647ef 0%,#0879d9 48%,#0aa58e 100%) !important;
}
.pe-tests-hero.pe-tests-hero,
.pe-exam-hero.pe-exam-hero {
    background:linear-gradient(120deg,#155eef 0%,#2563eb 52%,#0891b2 100%) !important;
}
.pe-results-hero.pe-results-hero,
.pe-result-header.pe-result-header {
    background:linear-gradient(120deg,#5b35d5 0%,#7047eb 48%,#155eef 100%) !important;
}
.pe-profile-hero.pe-profile-hero {
    background:linear-gradient(120deg,#087f8c 0%,#0f9f8f 50%,#16a66a 100%) !important;
}
.pe-sl-header.pe-sl-header,
.pe-sl-hero.pe-sl-hero,
.pe-lb-head.pe-lb-head {
    background:linear-gradient(120deg,#6d3be7 0%,#155eef 52%,#0891b2 100%) !important;
}
.pe-eval-page-head.pe-eval-page-head,
.pe-report-header.pe-report-header {
    background:linear-gradient(120deg,#075f9c 0%,#0891b2 50%,#0f9f8f 100%) !important;
}
.pe-spoken-focus-head.pe-spoken-focus-head,
.pe-spoken-hero.pe-spoken-hero {
    background:linear-gradient(120deg,#087f8c 0%,#0f9f8f 52%,#14b8a6 100%) !important;
}
.pe-resource-hero.pe-resource-hero {
    background:linear-gradient(120deg,#087956 0%,#16a66a 50%,#0891b2 100%) !important;
}
.pe-ai-tutor-hero.pe-ai-tutor-hero,
.pe-ai-teacher-hero.pe-ai-teacher-hero {
    background:linear-gradient(120deg,#5730c7 0%,#7047eb 46%,#155eef 100%) !important;
}
.pe-analytics-hero.pe-analytics-hero {
    background:linear-gradient(120deg,#07356f 0%,#075f9c 50%,#078c86 100%) !important;
}
.pe-exam-creator-hero.pe-exam-creator-hero,
.pe-designed-hero.pe-designed-hero {
    background:linear-gradient(120deg,#0b397d 0%,#155eef 50%,#0f9f8f 100%) !important;
}
.pe-admin-hero.pe-admin-hero {
    background:linear-gradient(120deg,#082f63 0%,#0b5cab 50%,#0f8b8d 100%) !important;
}

.pe-student-welcome.pe-student-welcome,
.pe-dash-hero.pe-dash-hero,
.pe-tests-hero.pe-tests-hero,
.pe-exam-hero.pe-exam-hero,
.pe-results-hero.pe-results-hero,
.pe-result-header.pe-result-header,
.pe-profile-hero.pe-profile-hero,
.pe-sl-header.pe-sl-header,
.pe-sl-hero.pe-sl-hero,
.pe-lb-head.pe-lb-head,
.pe-eval-page-head.pe-eval-page-head,
.pe-report-header.pe-report-header,
.pe-spoken-focus-head.pe-spoken-focus-head,
.pe-spoken-hero.pe-spoken-hero,
.pe-resource-hero.pe-resource-hero,
.pe-ai-tutor-hero.pe-ai-tutor-hero,
.pe-ai-teacher-hero.pe-ai-teacher-hero,
.pe-analytics-hero.pe-analytics-hero,
.pe-exam-creator-hero.pe-exam-creator-hero,
.pe-designed-hero.pe-designed-hero,
.pe-admin-hero.pe-admin-hero {
    border-color:transparent !important;
    box-shadow:0 14px 32px rgba(13,49,112,.18) !important;
    color:#fff !important;
}

.pe-student-welcome.pe-student-welcome::before,
.pe-student-welcome.pe-student-welcome::after,
.pe-dash-hero.pe-dash-hero::before,
.pe-dash-hero.pe-dash-hero::after,
.pe-tests-hero.pe-tests-hero::before,
.pe-tests-hero.pe-tests-hero::after,
.pe-exam-hero.pe-exam-hero::before,
.pe-exam-hero.pe-exam-hero::after,
.pe-results-hero.pe-results-hero::before,
.pe-results-hero.pe-results-hero::after,
.pe-result-header.pe-result-header::before,
.pe-result-header.pe-result-header::after,
.pe-profile-hero.pe-profile-hero::before,
.pe-profile-hero.pe-profile-hero::after,
.pe-sl-header.pe-sl-header::before,
.pe-sl-header.pe-sl-header::after,
.pe-sl-hero.pe-sl-hero::before,
.pe-sl-hero.pe-sl-hero::after,
.pe-eval-page-head.pe-eval-page-head::before,
.pe-eval-page-head.pe-eval-page-head::after,
.pe-spoken-focus-head.pe-spoken-focus-head::before,
.pe-spoken-focus-head.pe-spoken-focus-head::after,
.pe-spoken-hero.pe-spoken-hero::before,
.pe-spoken-hero.pe-spoken-hero::after,
.pe-resource-hero.pe-resource-hero::before,
.pe-resource-hero.pe-resource-hero::after {
    content:none !important;
    display:none !important;
}

.pe-student-welcome.pe-student-welcome :is(h1,h2,h3,p,small),
.pe-dash-hero.pe-dash-hero :is(h1,h2,h3,p,small),
.pe-tests-hero.pe-tests-hero :is(h1,h2,h3,p,small),
.pe-exam-hero.pe-exam-hero :is(h1,h2,h3,p,small),
.pe-results-hero.pe-results-hero :is(h1,h2,h3,p,small),
.pe-result-header.pe-result-header :is(h1,h2,h3,p,small),
.pe-profile-hero.pe-profile-hero :is(h1,h2,h3,p,small),
.pe-sl-header.pe-sl-header :is(h1,h2,h3,p,small),
.pe-sl-hero.pe-sl-hero :is(h1,h2,h3,p,small),
.pe-eval-page-head.pe-eval-page-head :is(h1,h2,h3,p,small),
.pe-spoken-focus-head.pe-spoken-focus-head :is(h1,h2,h3,p,small),
.pe-spoken-hero.pe-spoken-hero :is(h1,h2,h3,p,small),
.pe-resource-hero.pe-resource-hero :is(h1,h2,h3,p,small),
.pe-ai-tutor-hero.pe-ai-tutor-hero :is(h1,h2,h3,p,small),
.pe-ai-teacher-hero.pe-ai-teacher-hero :is(h1,h2,h3,p,small),
.pe-analytics-hero.pe-analytics-hero :is(h1,h2,h3,p,small),
.pe-exam-creator-hero.pe-exam-creator-hero :is(h1,h2,h3,p,small),
.pe-admin-hero.pe-admin-hero :is(h1,h2,h3,p,small) {
    color:#fff !important;
}

/* Available Tests uses a navigation header rather than the generic hero class. */
.pe-tests-page .pe-tests-nav.pe-tests-nav {
    background:linear-gradient(120deg,#155eef 0%,#2563eb 52%,#0891b2 100%) !important;
    border-color:transparent !important;
    box-shadow:0 14px 32px rgba(13,49,112,.18) !important;
    color:#fff !important;
}
.pe-tests-page .pe-tests-nav.pe-tests-nav :is(h1,p) {
    color:#fff !important;
}
.pe-tests-page .pe-tests-nav.pe-tests-nav > a,
.pe-tests-page .pe-tests-nav.pe-tests-nav .pe-tests-context > a {
    background:#fff !important;
    border-color:rgba(255,255,255,.55) !important;
    color:#155eef !important;
    box-shadow:0 7px 18px rgba(4,31,82,.14) !important;
}
.pe-tests-page .pe-tests-nav.pe-tests-nav .pe-tests-context > span {
    background:rgba(255,255,255,.16) !important;
    border:1px solid rgba(255,255,255,.38) !important;
    color:#fff !important;
}

/* The page heading belongs directly on the leaderboard gradient, not in a
   second pale hero panel. */
.pe-sl-header.pe-sl-header .pe-sl-page-head.pe-sl-page-head {
    background:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
}
.pe-sl-header.pe-sl-header .pe-sl-page-head :is(h1,p,.pe-sl-eyebrow) {
    color:#fff !important;
}
.pe-sl-header.pe-sl-header .pe-sl-page-head > span {
    background:#fff !important;
    color:#345083 !important;
}

/* Results overview tiles sit inside a dark hero but remain light information
   cards, so their labels and values must use dark ink. */
.pe-results-hero.pe-results-hero .pe-results-overview > div {
    background:rgba(255,255,255,.92) !important;
    border-color:rgba(255,255,255,.72) !important;
}
.pe-results-hero.pe-results-hero .pe-results-overview > div > span {
    color:#607095 !important;
}
.pe-results-hero.pe-results-hero .pe-results-overview > div > strong {
    color:#071f66 !important;
}

/* Final contrast corrections for Results, Answer Evaluation and Creator. */
.pe-results-page .pe-results-hero.pe-results-hero {
    background:linear-gradient(120deg,#123fc4 0%,#3658dc 52%,#087f9c 100%) !important;
}
.pe-results-page .pe-results-hero.pe-results-hero h2 {
    color:#fff !important;
    font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif !important;
    font-size:clamp(28px,4vw,36px) !important;
    letter-spacing:-.025em !important;
}
.pe-results-page .pe-results-hero.pe-results-hero .pe-results-overview strong {
    color:#071f66 !important;
    -webkit-text-fill-color:#071f66 !important;
    opacity:1 !important;
    text-shadow:none !important;
}

.pe-eval-page .pe-eval-workflow .pe-eval-workflow__number {
    background:#087f8c !important;
    border:2px solid #087f8c !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    font-size:14px !important;
    font-weight:900 !important;
    opacity:1 !important;
    text-shadow:none !important;
}
.pe-eval-page .pe-eval-workflow li.is-current .pe-eval-workflow__number {
    background:#155eef !important;
    border-color:#155eef !important;
    box-shadow:0 0 0 4px rgba(21,94,239,.13) !important;
}
.pe-eval-page .pe-eval-workflow li.is-future .pe-eval-workflow__number {
    background:#6d3be7 !important;
    border-color:#6d3be7 !important;
}

.pe-exam-creator-hero.pe-exam-creator-hero .pe-exam-creator-logout.pe-exam-creator-logout {
    background:#fff !important;
    border-color:rgba(255,255,255,.72) !important;
    color:#0b397d !important;
    -webkit-text-fill-color:#0b397d !important;
    opacity:1 !important;
    text-shadow:none !important;
}

/* Consistent, unobstructed highlighted headers throughout user dashboards. */
:where(.pe-tests-hero,.pe-results-hero,.pe-profile-hero,.pe-result-header,
    .pe-sl-header,.pe-eval-page-head,.pe-spoken-focus-head,.pe-spoken-hero,
    .pe-resource-hero,.pe-lb-head)::before,
:where(.pe-tests-hero,.pe-results-hero,.pe-profile-hero,.pe-result-header,
    .pe-sl-header,.pe-eval-page-head,.pe-spoken-focus-head,.pe-spoken-hero,
    .pe-resource-hero,.pe-lb-head)::after {
    content:none !important;
    display:none !important;
}

:where(.pe-tests-hero,.pe-results-hero,.pe-profile-hero,.pe-result-header,
    .pe-sl-header,.pe-eval-page-head,.pe-spoken-focus-head,.pe-spoken-hero,
    .pe-resource-hero,.pe-lb-head) {
    padding:clamp(20px,3vw,30px) !important;
}

:where(.pe-tests-hero,.pe-results-hero,.pe-profile-hero,.pe-result-header,
    .pe-sl-header,.pe-eval-page-head,.pe-spoken-focus-head,.pe-spoken-hero,
    .pe-resource-hero,.pe-lb-head)
    :where([class*="kicker"],[class*="eyebrow"],.pe-profile-label,
    .pe-result-label,.pe-sl-label) {
    color:#dff8ff !important;
    font-weight:800 !important;
    letter-spacing:.035em;
}

:where(.pe-tests-hero,.pe-results-hero,.pe-profile-hero,.pe-result-header,
    .pe-sl-header,.pe-eval-page-head,.pe-spoken-focus-head,.pe-spoken-hero,
    .pe-resource-hero,.pe-lb-head) :where(a,button) {
    position:relative;
    z-index:1;
}

@media(max-width:560px) {
    :where(.pe-tests-hero,.pe-results-hero,.pe-profile-hero,.pe-result-header,
        .pe-sl-header,.pe-eval-page-head,.pe-spoken-focus-head,.pe-spoken-hero,
        .pe-resource-hero,.pe-lb-head) {
        padding:20px !important;
    }
}
/* Mobile typography roles. This file is intentionally loaded after module CSS. */
@media screen and (max-width: 768px) {
  :where(.pe-dashboard,.pe-tests-page,.pe-results-page,.pe-profile-page,.pe-result-page,.pe-exam-container,.pe-eval-page,.pe-student-leaderboard,.pe-analytics,.pe-doc-app,.pe-iw-app) :where(p,li,dd) { font-size:var(--pf-mobile-body); line-height:1.55; }
  :where(.pe-dashboard,.pe-tests-page,.pe-results-page,.pe-profile-page,.pe-result-page,.pe-exam-container,.pe-eval-page,.pe-student-leaderboard,.pe-analytics,.pe-doc-app,.pe-iw-app) :where(small,[class*="meta"],[class*="kicker"],[class*="eyebrow"],[class*="badge"],[class*="status"],[class*="note"]) { font-size:var(--pf-mobile-meta); line-height:1.45; }
  :where(.pe-dashboard,.pe-tests-page,.pe-results-page,.pe-profile-page,.pe-result-page,.pe-exam-container,.pe-eval-page,.pe-student-leaderboard,.pe-analytics,.pe-doc-app,.pe-iw-app) :where(button,.pe-dash-btn,[class*="-btn"]) { font-size:var(--pf-mobile-meta); line-height:1.25; }
  :where(.pe-dashboard,.pe-tests-page,.pe-results-page,.pe-profile-page,.pe-result-page,.pe-exam-container,.pe-eval-page,.pe-student-leaderboard,.pe-analytics,.pe-doc-app,.pe-iw-app) :where(h3,h4) { font-size:var(--pf-mobile-card-title); line-height:1.3; }
}

/* Teacher logout belongs in the hero, matching Content Creator. */
.pe-teacher-dashboard .pe-teacher-hero-logout{position:relative;z-index:2;min-width:94px;min-height:40px;padding:9px 16px!important;border:1px solid rgba(255,255,255,.42)!important;border-radius:10px!important;background:#fff!important;color:#08245f!important;box-shadow:0 7px 18px rgba(8,36,95,.14);font-size:14px!important;font-weight:900!important}
.pe-teacher-dashboard .pe-teacher-hero-logout:hover{background:#f3f8ff!important;transform:translateY(-1px)}
@media(max-width:600px){.pe-teacher-dashboard .pe-dash-hero{grid-template-columns:auto minmax(0,1fr) auto!important}.pe-teacher-dashboard .pe-teacher-hero-logout{grid-column:3!important;grid-row:1!important;width:auto!important;min-width:78px!important;align-self:start;padding:8px 12px!important}.pe-teacher-dashboard .pe-dash-hero>.pf-brand-lockup,.pe-teacher-dashboard .pe-dash-hero>.precify-brand{grid-column:1}.pe-teacher-dashboard .pe-dash-hero>div{grid-column:2}}
@media(max-width:430px){.pe-teacher-dashboard .pe-dash-hero{grid-template-columns:auto minmax(0,1fr)!important}.pe-teacher-dashboard .pe-teacher-hero-logout{grid-column:1/-1!important;grid-row:auto!important;width:100%!important;margin-top:4px}}
/* Persistent student-account navigation dock across every student module. */
.pe-student-bottom-nav{position:fixed!important;left:50%!important;right:auto!important;bottom:max(10px,env(safe-area-inset-bottom))!important;z-index:9996!important;width:min(900px,calc(100vw - 24px))!important;margin:0!important;padding:8px 7px!important;border-radius:16px!important;transform:translateX(-50%)!important;box-shadow:0 14px 38px rgba(7,31,102,.2)!important}
:where(.pe-dashboard,.pe-tests-page,.pe-results-page,.pe-profile-page,.pe-result-page,.pe-exam-container,.pe-student-leaderboard,.pe-eval-student-page):has(.pe-student-bottom-nav){padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}
@media(max-width:560px){.pe-student-bottom-nav{bottom:max(7px,env(safe-area-inset-bottom))!important;width:calc(100vw - 16px)!important;padding:6px 4px!important;border-radius:14px!important}.pe-student-bottom-nav a{min-height:50px!important;padding:4px 2px!important}.pe-student-bottom-nav svg{width:21px!important;height:21px!important}:where(.pe-dashboard,.pe-tests-page,.pe-results-page,.pe-profile-page,.pe-result-page,.pe-exam-container,.pe-student-leaderboard,.pe-eval-student-page):has(.pe-student-bottom-nav){padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}}
@media print{.pe-student-bottom-nav{display:none!important}}
/* Trial shared floating dock for teacher and Content Creator accounts. */
.pe-staff-bottom-nav{position:fixed!important;left:50%!important;bottom:max(10px,env(safe-area-inset-bottom))!important;z-index:9996!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;width:min(900px,calc(100vw - 24px));margin:0!important;padding:8px 7px;border:1px solid #dce7f4;border-radius:16px;background:rgba(255,255,255,.96);box-shadow:0 14px 38px rgba(7,31,102,.2);backdrop-filter:blur(14px);transform:translateX(-50%)}
.pe-staff-bottom-nav--creator{grid-template-columns:repeat(4,minmax(0,1fr))}
.pe-staff-bottom-nav a{display:grid;place-items:center;gap:5px;min-width:0;min-height:54px;padding:5px 3px;border-radius:11px;color:#74839a!important;font-size:11px;font-weight:800;line-height:1.2;text-align:center;text-decoration:none!important}.pe-staff-bottom-nav a:hover,.pe-staff-bottom-nav a.is-active{background:linear-gradient(145deg,#edf4ff,#effcf9);color:#1557e8!important}.pe-staff-bottom-nav svg{width:22px;height:22px}.pe-staff-bottom-nav a:nth-child(2) svg{color:#09a39b}.pe-staff-bottom-nav a:nth-child(3) svg{color:#7048d7}.pe-staff-bottom-nav a:nth-child(4) svg{color:#d97706}.pe-staff-bottom-nav a:nth-child(5) svg{color:#0e9fba}
.pe-teacher-dashboard:has(.pe-staff-bottom-nav),.pe-exam-creator-dashboard:has(.pe-staff-bottom-nav){padding-bottom:96px!important}
@media(max-width:560px){.pe-staff-bottom-nav{bottom:max(7px,env(safe-area-inset-bottom))!important;width:calc(100vw - 16px);padding:6px 4px;border-radius:14px}.pe-staff-bottom-nav a{min-height:50px;padding:4px 2px;font-size:9px}.pe-staff-bottom-nav svg{width:20px;height:20px}.pe-teacher-dashboard:has(.pe-staff-bottom-nav),.pe-exam-creator-dashboard:has(.pe-staff-bottom-nav){padding-bottom:88px!important}}
@media(max-width:380px){.pe-staff-bottom-nav a span{font-size:8px;overflow-wrap:anywhere}}
@media print{.pe-staff-bottom-nav{display:none!important}}
/* Teacher header: light wordmark-matched treatment with accessible contrast. */
.pe-teacher-dashboard .pe-dash-hero.pe-dash-hero{
    background:
        radial-gradient(circle at 92% 18%,rgba(10,165,142,.16),transparent 28%),
        radial-gradient(circle at 5% 100%,rgba(21,87,232,.12),transparent 34%),
        linear-gradient(120deg,#ffffff 0%,#f4f8ff 54%,#ecfbf8 100%)!important;
    border:1px solid #d7e5f4!important;
    box-shadow:0 14px 32px rgba(8,36,95,.13)!important;
    color:#08245f!important;
}
.pe-teacher-dashboard .pe-dash-hero.pe-dash-hero::after{
    content:""!important;
    display:block!important;
    position:absolute;
    right:-54px;
    top:-78px;
    width:190px;
    height:190px;
    border-radius:50%;
    background:linear-gradient(145deg,rgba(21,87,232,.1),rgba(10,165,142,.16));
    opacity:1;
    pointer-events:none;
}
.pe-teacher-dashboard .pe-dash-hero .precify-brand,
.pe-teacher-dashboard .pe-dash-hero .pf-brand-lockup{position:relative;z-index:1}
.pe-teacher-dashboard .pe-dash-hero .precify-brand__image{width:150px;max-height:52px}
.pe-teacher-dashboard .pe-dash-hero.pe-dash-hero h2{color:#08245f!important;text-shadow:none!important}
.pe-teacher-dashboard .pe-dash-hero.pe-dash-hero p{color:#3f5577!important;text-shadow:none!important;font-weight:600}
.pe-teacher-dashboard .pe-dash-hero .pe-dash-kicker{
    border:1px solid #b9e8e1!important;
    background:#e9faf7!important;
    color:#087d76!important;
    box-shadow:none!important;
}
.pe-teacher-dashboard .pe-teacher-hero-logout{
    border:0!important;
    background:linear-gradient(135deg,#1557e8,#0aa58e)!important;
    color:#fff!important;
    box-shadow:0 8px 20px rgba(21,87,232,.22)!important;
}
.pe-teacher-dashboard .pe-teacher-hero-logout:hover{background:linear-gradient(135deg,#0e47c7,#078f7b)!important;color:#fff!important}
/* Teacher header: colorful wordmark-free layout. */
.pe-teacher-dashboard .pe-dash-hero.pe-dash-hero{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:24px!important;
    background:
        radial-gradient(circle at 88% 18%,rgba(56,224,201,.24),transparent 25%),
        radial-gradient(circle at 8% 115%,rgba(130,86,255,.3),transparent 36%),
        linear-gradient(120deg,#123fbd 0%,#176ee5 42%,#0898b4 72%,#0aa58e 100%)!important;
    border:0!important;
    box-shadow:0 14px 34px rgba(13,62,151,.22)!important;
    color:#fff!important;
}
.pe-teacher-dashboard .pe-dash-hero.pe-dash-hero>div{position:relative;z-index:2;grid-column:1!important}
.pe-teacher-dashboard .pe-dash-hero.pe-dash-hero h2{color:#fff!important;text-shadow:0 2px 12px rgba(4,31,91,.18)!important}
.pe-teacher-dashboard .pe-dash-hero.pe-dash-hero p{color:rgba(255,255,255,.9)!important;text-shadow:none!important;font-weight:600}
.pe-teacher-dashboard .pe-dash-hero .pe-dash-kicker{border:1px solid rgba(255,255,255,.32)!important;background:rgba(255,255,255,.16)!important;color:#fff!important;box-shadow:none!important;backdrop-filter:blur(8px)}
.pe-teacher-dashboard .pe-teacher-hero-logout{position:relative;z-index:2;grid-column:2!important;border:1px solid rgba(255,255,255,.48)!important;background:#fff!important;color:#08245f!important;box-shadow:0 9px 22px rgba(4,31,91,.2)!important}
.pe-teacher-dashboard .pe-teacher-hero-logout:hover{background:#eef7ff!important;color:#08245f!important}
@media(max-width:600px){.pe-teacher-dashboard .pe-dash-hero.pe-dash-hero{grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important}.pe-teacher-dashboard .pe-dash-hero.pe-dash-hero>div{grid-column:1!important}.pe-teacher-dashboard .pe-teacher-hero-logout{grid-column:2!important;grid-row:1!important}}
@media(max-width:430px){.pe-teacher-dashboard .pe-dash-hero.pe-dash-hero{grid-template-columns:1fr!important}.pe-teacher-dashboard .pe-teacher-hero-logout{grid-column:1!important;grid-row:auto!important}}
/* Search lens shared by every floating footer navigation. */
.pe-student-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.pe-staff-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.pe-staff-bottom-nav--creator{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.pe-page-search-toggle{display:grid!important;place-items:center!important;gap:5px;min-width:0!important;min-height:54px!important;margin:0!important;padding:5px 3px!important;border:0!important;border-radius:11px!important;background:transparent!important;box-shadow:none!important;color:#74839a!important;font:inherit!important;font-size:11px!important;font-weight:800!important;line-height:1.2!important;text-align:center!important;cursor:pointer!important}
.pe-student-bottom-nav .pe-page-search-toggle{min-height:54px!important;color:#7b88a8!important;font-size:10px!important;font-weight:750!important}
.pe-page-search-toggle:hover,.pe-page-search-toggle[aria-expanded="true"]{background:linear-gradient(145deg,#edf4ff,#effcf9)!important;color:#1557e8!important;transform:none!important}
.pe-page-search-toggle svg{width:22px!important;height:22px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important}
.pe-page-search-panel{position:fixed;left:50%;bottom:92px;z-index:9997;display:grid;grid-template-columns:minmax(190px,1fr) auto 38px 38px 38px;align-items:center;gap:7px;width:min(680px,calc(100vw - 24px));padding:9px;border:1px solid #c9daf0;border-radius:15px;background:rgba(255,255,255,.98);box-shadow:0 16px 40px rgba(7,31,102,.24);backdrop-filter:blur(14px);transform:translateX(-50%)}
.pe-page-search-panel[hidden]{display:none!important}.pe-page-search-panel label{position:relative;display:block}.pe-page-search-panel label svg{position:absolute;left:12px;top:50%;width:19px;height:19px;fill:none;stroke:#607394;stroke-width:2;transform:translateY(-50%);pointer-events:none}.pe-page-search-panel input{width:100%;min-height:42px;padding:9px 12px 9px 39px!important;border:1px solid #cad8ec!important;border-radius:10px!important;background:#fafdff!important;color:#08245f!important;font-size:14px!important;box-shadow:none!important}.pe-page-search-panel output{min-width:58px;color:#536b91;font-size:11px;font-weight:800;text-align:center}.pe-page-search-panel>button{display:grid;width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0!important;place-items:center;border:0!important;border-radius:9px!important;background:#edf4ff!important;color:#1557e8!important;font-size:18px!important;font-weight:900!important;line-height:1!important;box-shadow:none!important;cursor:pointer!important}.pe-page-search-panel>button:hover{background:#1557e8!important;color:#fff!important;transform:none!important}
mark.pe-page-search-match{padding:1px 2px;border-radius:3px;background:#ffe680;color:inherit;box-decoration-break:clone;-webkit-box-decoration-break:clone}mark.pe-page-search-match.is-current{background:#ff9f43;outline:3px solid rgba(255,159,67,.28)}
@media(max-width:560px){.pe-page-search-toggle{min-height:50px!important;padding:4px 1px!important;font-size:9px!important}.pe-student-bottom-nav .pe-page-search-toggle{font-size:8px!important}.pe-page-search-toggle svg{width:20px!important;height:20px!important}.pe-page-search-panel{bottom:82px;grid-template-columns:minmax(0,1fr) 34px 34px 34px;padding:7px;gap:5px}.pe-page-search-panel output{grid-column:1/-1;grid-row:2;justify-self:start;padding-left:4px}.pe-page-search-panel>button{width:34px!important;min-width:34px!important;height:38px!important;min-height:38px!important}}
@media(max-width:390px){.pe-page-search-toggle span{font-size:8px;overflow-wrap:anywhere}.pe-page-search-panel input{font-size:13px!important}}
@media print{.pe-page-search-toggle,.pe-page-search-panel{display:none!important}mark.pe-page-search-match{padding:0;background:transparent;outline:0}}
/* Context-aware Content Creator dock: links and page actions share one visual language. */
.pe-staff-bottom-nav--creator{grid-template-columns:repeat(auto-fit,minmax(70px,1fr))!important}
.pe-staff-bottom-nav .pe-creator-nav-action{display:grid!important;place-items:center!important;gap:5px;min-width:0!important;min-height:54px!important;margin:0!important;padding:5px 3px!important;border:0!important;border-radius:11px!important;background:transparent!important;box-shadow:none!important;color:#74839a!important;font:inherit!important;font-size:11px!important;font-weight:800!important;line-height:1.2!important;text-align:center!important;cursor:pointer!important}
.pe-staff-bottom-nav .pe-creator-nav-action:hover,.pe-staff-bottom-nav .pe-creator-nav-action:focus-visible{background:linear-gradient(145deg,#edf4ff,#effcf9)!important;color:#1557e8!important;transform:none!important}
.pe-staff-bottom-nav .pe-creator-nav-action--save{color:#087f78!important}.pe-staff-bottom-nav .pe-creator-nav-action--save:hover,.pe-staff-bottom-nav .pe-creator-nav-action--save:focus-visible{background:#e8fbf7!important;color:#087f78!important}
.pe-staff-bottom-nav .pe-creator-nav-action svg{width:22px!important;height:22px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.pe-staff-bottom-nav .pe-creator-nav-action:disabled{opacity:.42;cursor:not-allowed!important}
@media(max-width:560px){.pe-staff-bottom-nav .pe-creator-nav-action{min-height:50px!important;padding:4px 2px!important;font-size:9px!important}.pe-staff-bottom-nav .pe-creator-nav-action svg{width:20px!important;height:20px!important}}
@media(max-width:380px){.pe-staff-bottom-nav .pe-creator-nav-action span{font-size:8px;overflow-wrap:anywhere}}

/* Student mobile readability + clean search dock action — 2026-09-04. */
@media screen and (max-width: 768px) {
  .pe-student-bottom-nav a,
  .pe-student-bottom-nav a span,
  .pe-student-bottom-nav .pe-page-search-toggle,
  .pe-student-bottom-nav .pe-page-search-toggle span {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  .pe-student-bottom-nav .pe-page-search-toggle {
    min-width: 0 !important;
    min-height: 50px !important;
    padding: 4px 2px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #74839a !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transform: none !important;
  }

  .pe-student-bottom-nav .pe-page-search-toggle svg {
    width: 21px !important;
    height: 21px !important;
    stroke: #1557e8 !important;
    stroke-width: 1.8 !important;
  }

  .pe-student-bottom-nav .pe-page-search-toggle:hover,
  .pe-student-bottom-nav .pe-page-search-toggle:focus-visible,
  .pe-student-bottom-nav .pe-page-search-toggle[aria-expanded="true"] {
    background: linear-gradient(145deg, #edf4ff, #f1fffc) !important;
    color: #1557e8 !important;
    box-shadow: none !important;
  }

  .pe-page-search-panel output {
    font-size: 11px !important;
  }
}

@media screen and (max-width: 390px) {
  .pe-student-bottom-nav a,
  .pe-student-bottom-nav a span,
  .pe-student-bottom-nav .pe-page-search-toggle,
  .pe-student-bottom-nav .pe-page-search-toggle span {
    font-size: 10.5px !important;
  }
}

/* Component exceptions loaded last — 2026-09-04.
 * Do not let the shared gradient-button rule override exam palette states
 * or the compact navigation search action.
 */
.pe-exam-container .pe-palette-btn.unanswered{background:#eef2f7!important;border-color:#d8e1ec!important;color:#223653!important;box-shadow:none!important;filter:none!important;transform:none}
.pe-exam-container .pe-palette-btn.answered{background:#10a978!important;border-color:#10a978!important;color:#fff!important;box-shadow:none!important;filter:none!important}
.pe-exam-container .pe-palette-btn.review{background:#f28a14!important;border-color:#f28a14!important;color:#fff!important;box-shadow:none!important;filter:none!important}
.pe-exam-container .pe-palette-btn.current.unanswered{background:#1167ef!important;border-color:#1167ef!important;color:#fff!important;box-shadow:0 0 0 3px rgba(17,103,239,.17)!important}
.pe-exam-container .pe-palette-btn.current.answered{background:#10a978!important;border-color:#0d8f67!important;color:#fff!important;box-shadow:0 0 0 3px rgba(17,103,239,.20)!important}
.pe-exam-container .pe-palette-btn.current.review{background:#f28a14!important;border-color:#df7607!important;color:#fff!important;box-shadow:0 0 0 3px rgba(17,103,239,.20)!important}
.pe-exam-container .pe-mark-review,.pe-exam-container .pe-report-issue,.pe-exam-container .pe-issue-close,.pe-exam-container .pe-modal-btn-light{background:#fff!important;box-shadow:none!important;filter:none!important}
.pe-exam-container .pe-mark-review{border-color:#f0a246!important;color:#b96200!important}
.pe-exam-container .pe-mark-review.is-active{background:#fff1dc!important;border-color:#f28a14!important;color:#9d4f00!important}
.pe-exam-container .pe-report-issue{border-color:#ef7a82!important;color:#c82e3a!important}
.pe-exam-container .pe-report-issue.is-reported{background:#f3f5f8!important;border-color:#d8e0ea!important;color:#66758d!important}

.pe-student-bottom-nav .pe-page-search-toggle{
    display:grid!important;
    place-items:center!important;
    gap:5px!important;
    min-width:0!important;
    min-height:54px!important;
    margin:0!important;
    padding:5px 3px!important;
    border:0!important;
    border-radius:13px!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#74839a!important;
    filter:none!important;
    transform:none!important;
    appearance:none!important;
    -webkit-appearance:none!important;
    font-size:11px!important;
    font-weight:800!important;
    line-height:1.2!important;
}
.pe-student-bottom-nav .pe-page-search-toggle svg{
    width:22px!important;
    height:22px!important;
    fill:none!important;
    stroke:#1557e8!important;
    stroke-width:1.8!important;
}
.pe-student-bottom-nav .pe-page-search-toggle:hover,
.pe-student-bottom-nav .pe-page-search-toggle:focus-visible,
.pe-student-bottom-nav .pe-page-search-toggle[aria-expanded="true"]{
    background:linear-gradient(145deg,#edf4ff,#effcf9)!important;
    color:#1557e8!important;
    box-shadow:none!important;
    filter:none!important;
    transform:none!important;
}
@media(max-width:560px){
    .pe-student-bottom-nav .pe-page-search-toggle{min-height:50px!important;padding:4px 2px!important;font-size:11px!important}
    .pe-student-bottom-nav .pe-page-search-toggle span{font-size:11px!important}
    .pe-student-bottom-nav .pe-page-search-toggle svg{width:21px!important;height:21px!important}
}
@media(max-width:390px){
    .pe-student-bottom-nav .pe-page-search-toggle,
    .pe-student-bottom-nav .pe-page-search-toggle span{font-size:10.5px!important}
}

/* 2026-09 student dashboard polish: compact welcome and subject-colour cards. */
.pe-student-welcome.pe-student-welcome {
    grid-template-columns: minmax(0,1fr) auto !important;
    gap: 18px !important;
}

.pe-student-welcome.pe-student-welcome .pe-student-welcome-copy {
    max-width: 760px;
}

.pe-student-subject-card.pe-student-subject-card {
    border-width: 1px !important;
    box-shadow: 0 9px 22px rgba(21,60,110,.07) !important;
}

.pe-student-subject-card.pe-subject-english {
    background: linear-gradient(145deg,#f7fbff 0%,#edf5ff 100%) !important;
    border-color: #b9d4ff !important;
}
.pe-student-subject-card.pe-subject-gk {
    background: linear-gradient(145deg,#f7fffc 0%,#eafaf5 100%) !important;
    border-color: #afe6d5 !important;
}
.pe-student-subject-card.pe-subject-marathi {
    background: linear-gradient(145deg,#fcf9ff 0%,#f3edff 100%) !important;
    border-color: #d9c4ff !important;
}
.pe-student-subject-card.pe-subject-mat {
    background: linear-gradient(145deg,#fffdf9 0%,#fff3e7 100%) !important;
    border-color: #ffd3a9 !important;
}
.pe-student-subject-card.pe-subject-maths {
    background: linear-gradient(145deg,#f7fbff 0%,#edf5ff 100%) !important;
    border-color: #b9d4ff !important;
}
.pe-student-subject-card.pe-subject-science {
    background: linear-gradient(145deg,#f6fffc 0%,#e9faf5 100%) !important;
    border-color: #afe6d5 !important;
}

.pe-student-subject-card.pe-student-subject-card h4 {
    color: var(--pe-subject-accent) !important;
    font-weight: 900 !important;
}

.pe-student-subject-card.pe-student-subject-card .pe-subject-card-count {
    background: rgba(255,255,255,.78) !important;
    border: 1px solid currentColor !important;
    color: var(--pe-subject-accent) !important;
}

.pe-student-subject-card.pe-student-subject-card .pe-subject-card-actions .pe-subject-tests-link {
    background: var(--pe-subject-accent) !important;
    border-color: var(--pe-subject-accent) !important;
    color: #fff !important;
    box-shadow: 0 7px 16px color-mix(in srgb,var(--pe-subject-accent) 18%,transparent) !important;
}

.pe-student-subject-card.pe-student-subject-card .pe-subject-card-actions a:not(.pe-subject-tests-link) {
    background: rgba(255,255,255,.88) !important;
    border-color: var(--pe-subject-accent) !important;
    color: var(--pe-subject-accent) !important;
}

@media(max-width:560px) {
    .pe-student-welcome.pe-student-welcome {
        grid-template-columns: minmax(0,1fr) auto !important;
        gap: 12px !important;
        padding: 20px !important;
    }
    .pe-student-welcome.pe-student-welcome .pe-student-welcome-copy h2 {
        font-size: 29px !important;
    }
    .pe-student-subject-card.pe-student-subject-card {
        box-shadow: 0 7px 18px rgba(21,60,110,.06) !important;
    }
}

/* ============================================================
 * v33 Shared workspace header cleanup
 * - Remove theme/WordPress gap before Precision page headers.
 * - Keep floating student/staff navigation at five real items.
 * ============================================================ */
body.pe-colorful-ui .wp-site-blocks,
body.pe-colorful-ui .wp-site-blocks > main,
body.pe-colorful-ui main.wp-block-group,
body.pe-colorful-ui .wp-block-post-content,
body.pe-colorful-ui .entry-content,
body.pe-colorful-ui article.wp-block-post {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    padding-top: 0 !important;
}

body.pe-colorful-ui .wp-block-post-content > :first-child,
body.pe-colorful-ui .entry-content > :first-child,
body.pe-colorful-ui main.wp-block-group > :first-child {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* Precision workspace roots must begin flush with their page content area. */
body.pe-colorful-ui :is(
    .pe-dashboard,
    .pe-tests-page,
    .pe-results-page,
    .pe-profile-page,
    .pe-result-page,
    .pe-student-leaderboard,
    .pe-public-resources,
    .pe-exam-creator-dashboard,
    .pe-teacher-dashboard,
    .pe-student-portal,
    .pe-online-coaching,
    .pe-online-coaching-page,
    .precision-online-coaching,
    .precision-online-coaching-page
) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* The old page-search control is no longer part of bottom navigation. */
.pe-student-bottom-nav .pe-page-search-toggle,
.pe-staff-bottom-nav .pe-page-search-toggle,
.pe-page-search-panel {
    display: none !important;
}

.pe-student-bottom-nav,
.pe-staff-bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

/* ============================================================
 * v37 Shared workspace header safe gutter
 * Keep every Precision workspace hero inside the viewport with
 * consistent side breathing room, without restoring top spacing.
 * ============================================================ */
body.pe-colorful-ui :where(
    .pe-student-welcome,
    .pe-student-creator-hero,
    .pe-dash-hero,
    .pe-tests-page-hero,
    .pe-tests-hero,
    .pe-exam-hero,
    .pe-results-hero,
    .pe-profile-hero,
    .pe-result-header,
    .pe-sl-header,
    .pe-lib-hero,
    .pe-resource-hero,
    .pe-exam-creator-hero,
    .pe-designed-hero,
    .pe-eval-page-head,
    .pe-report-header,
    .pe-spoken-focus-head,
    .pe-spoken-hero,
    .pe-ai-tutor-hero,
    .pe-ai-teacher-hero,
    .pe-analytics-hero,
    .pe-admin-hero,
    .pe-online-coaching-hero-compact
) {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: min(1120px, calc(100% - 20px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    padding-left: clamp(18px, 2.4vw, 30px) !important;
    padding-right: clamp(18px, 2.4vw, 30px) !important;
    overflow: hidden !important;
}

/* Online Coaching is enhanced after DOM load; keep its generated hero safe too. */
body.pe-online-coaching-compact .pe-online-coaching-hero-compact {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: min(1120px, calc(100% - 20px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    padding-left: clamp(18px, 2.4vw, 30px) !important;
    padding-right: clamp(18px, 2.4vw, 30px) !important;
    overflow: hidden !important;
}

@media (max-width: 700px) {
    body.pe-colorful-ui :where(
        .pe-student-welcome,
        .pe-student-creator-hero,
        .pe-dash-hero,
        .pe-tests-page-hero,
        .pe-tests-hero,
        .pe-exam-hero,
        .pe-results-hero,
        .pe-profile-hero,
        .pe-result-header,
        .pe-sl-header,
        .pe-lib-hero,
        .pe-resource-hero,
        .pe-exam-creator-hero,
        .pe-designed-hero,
        .pe-eval-page-head,
        .pe-report-header,
        .pe-spoken-focus-head,
        .pe-spoken-hero,
        .pe-ai-tutor-hero,
        .pe-ai-teacher-hero,
        .pe-analytics-hero,
        .pe-admin-hero,
        .pe-online-coaching-hero-compact
    ),
    body.pe-online-coaching-compact .pe-online-coaching-hero-compact {
        max-width: calc(100% - 14px) !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}


/* Teacher portal responsive navigation: inline beneath hero on desktop,
   fixed bottom dock on mobile. Creator/student docks are unaffected. */
@media (min-width:769px) {
  .pe-staff-bottom-nav--teacher {
    position:relative!important;
    inset:auto!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    transform:none!important;
    width:100%!important;
    max-width:none!important;
    margin:12px 0 18px!important;
    display:grid!important;
    grid-template-columns:repeat(var(--account-nav-columns,2),minmax(0,1fr))!important;
    box-shadow:0 5px 22px rgba(7,31,102,.08)!important;
    z-index:1!important;
  }
  .pe-staff-bottom-nav--teacher a {
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:9px!important;
    min-height:44px!important;
    font-size:13px!important;
    padding:8px 6px!important;
  }
  .pe-staff-bottom-nav--teacher svg {width:19px!important;height:19px!important;flex-shrink:0}
  .pe-teacher-dashboard:has(.pe-staff-bottom-nav--teacher) {padding-bottom:0!important}
}
@media (min-width:769px) and (max-width:1024px) {
  .pe-staff-bottom-nav--teacher a {font-size:11px!important;gap:5px!important}
  .pe-staff-bottom-nav--teacher svg {width:17px!important;height:17px!important}
}
@media (max-width:768px) {
  .pe-staff-bottom-nav--teacher {
    position:fixed!important;
    left:50%!important;
    bottom:max(7px,env(safe-area-inset-bottom))!important;
    transform:translateX(-50%)!important;
    z-index:9996!important;
    grid-template-columns:repeat(var(--account-nav-columns,2),minmax(0,1fr))!important;
  }
  .pe-teacher-dashboard:has(.pe-staff-bottom-nav--teacher) {padding-bottom:96px!important}
}
