/* ═══════════════════════════════════════════════
   ARABOO LMS — SHARED STYLES
   Used by player, dashboard, and gradebook
═══════════════════════════════════════════════ */

/* Google Fonts — Arabic.
   Noto Sans Arabic is the player's single face (covers Arabic + Latin),
   loaded with the weights the player needs. Cairo + Noto Naskh Arabic
   stay so dashboard/student/gradebook surfaces that share this stylesheet
   keep their existing typography. */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Noto+Sans+Arabic:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Noto+Naskh+Arabic:wght@400;600;700&display=swap');

/* ── Reset & Base ── */
.araboo-wrap * { box-sizing: border-box; }
.araboo-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    color: #1d2327;
    line-height: 1.6;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Full width cards inside shortcode */
.araboo-wrap .araboo-card {
    border-radius: 8px;
    margin-bottom: 16px;
}

/* ── Dashboard tab strip (J7) ───────────────────────────────────
   Four-tab nav at the very top of the dashboard. Each tab
   carries its own accent colour through the
   --tab-accent / --tab-soft / --tab-deep CSS variables on the
   modifier class. The icon is always tinted in the accent
   (subtle identity for inactive tabs); the active state fills
   the whole pill with the soft band + an accent border. */
.ar-dash-tabs {
    display: flex;
    gap: 8px;
    margin: 16px 0 22px;
    padding: 6px;
    background: #f1f5f9;
    border-radius: 14px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.ar-dash-tabs::-webkit-scrollbar { height: 6px; }
.ar-dash-tabs::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.ar-dash-tab {
    appearance: none;
    background: transparent;
    border: 1.5px solid transparent;
    padding: 10px 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13.5px; font-weight: 700; letter-spacing: .01em;
    color: #475569;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: 10px;
    transition: background .15s ease, color .15s ease,
                border-color .15s ease, transform .05s ease,
                box-shadow .15s ease;
    white-space: nowrap;
    /* Natural width + scroll — never cram tabs to fit the row. */
    flex: 0 0 auto;
    justify-content: center;
    min-width: 0;
    /* Default accent — overridden per-tab below. */
    --tab-accent: #2271b1;
    --tab-soft:   #dbeafe;
    --tab-deep:   #0f4c81;
}
.ar-dash-tab i.ph-bold {
    color: var(--tab-accent);
    font-size: 16px;
    transition: color .15s ease, transform .15s ease;
    flex-shrink: 0;
}
.ar-dash-tab:hover {
    color: #0f172a;
    background: #fff;
    border-color: var(--tab-soft);
}
.ar-dash-tab:hover i.ph-bold { transform: scale(1.08); }
.ar-dash-tab:active { transform: translateY(1px); }
.ar-dash-tab.is-active {
    background: var(--tab-soft);
    color: var(--tab-deep);
    border-color: var(--tab-accent);
    box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--tab-accent) 60%, transparent),
                inset 0 -2px 0 var(--tab-accent);
}
.ar-dash-tab.is-active i.ph-bold {
    color: var(--tab-deep);
    transform: scale(1.05);
}

/* Per-tab accent palettes — each tab gets its own colour
   identity so the strip reads as a colourful nav, not a row
   of grey buttons. */
.ar-dash-tab--home {
    --tab-accent: #2271b1;
    --tab-soft:   #dbeafe;
    --tab-deep:   #0f4c81;
}
.ar-dash-tab--practise {
    --tab-accent: #16a34a;
    --tab-soft:   #dcfce7;
    --tab-deep:   #166534;
}
.ar-dash-tab--games {
    --tab-accent: #db2777;
    --tab-soft:   #fce7f3;
    --tab-deep:   #9d174e;
}
.ar-dash-tab--library {
    --tab-accent: #7c3aed;
    --tab-soft:   #ede9fe;
    --tab-deep:   #5b21b6;
}
.ar-dash-tab--past-papers {
    --tab-accent: #d97706;
    --tab-soft:   #fef3c7;
    --tab-deep:   #92400e;
}

/* Count chip — picks up the tab's accent on active state. */
.ar-dash-tab-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px;
    padding: 0 7px;
    background: #fff;
    color: var(--tab-accent);
    border: 1px solid var(--tab-soft);
    border-radius: 999px;
    font-size: 11.5px; font-weight: 800;
    transition: background .15s, color .15s, border-color .15s;
}
.ar-dash-tab.is-active .ar-dash-tab-count {
    background: var(--tab-accent);
    color: #fff;
    border-color: var(--tab-accent);
}

@media (max-width: 640px) {
    .ar-dash-tab { padding: 8px 10px; font-size: 12.5px; }
    .ar-dash-tab > span:first-of-type { display: none; }   /* hide label, keep icon */
    .ar-dash-tab i.ph-bold { font-size: 18px; }
}

/* Past Papers tab body */
.ar-pp-tab-head { margin: 18px 0 14px; }
.ar-pp-tab-title {
    margin: 0 0 4px;
    font-size: 22px; font-weight: 800; color: #0f172a;
    display: inline-flex; align-items: center; gap: 10px;
}
.ar-pp-tab-title i { color: #2271b1; }
.ar-pp-tab-sub {
    margin: 0; color: #64748b; font-size: 13.5px;
}
.ar-pp-tab-counts {
    display: flex; gap: 18px; margin: 12px 0 18px; padding: 12px 16px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
    font-size: 13px; color: #475569;
}
.ar-pp-tab-counts b { color: #0f172a; font-weight: 700; margin-right: 4px; }
.ar-pp-tab-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: start;
}
.ar-pp-sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    position: sticky;
    top: 16px;
}
.ar-pp-side-section { margin-bottom: 14px; }
.ar-pp-side-section:last-child { margin-bottom: 0; }
.ar-pp-side-label {
    display: block;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: #64748b; margin-bottom: 6px;
}
.ar-pp-side-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    background: #fff;
    color: #0f172a;
    outline: none;
}
.ar-pp-side-select:focus { border-color: #2271b1; box-shadow: 0 0 0 3px rgba(34,113,177,0.12); }
.ar-pp-side-clear {
    margin-top: 14px;
    width: 100%;
    padding: 8px 12px;
    background: #fff; color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 12.5px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.ar-pp-side-clear:hover { background: #fef2f2; }
/* Compact 3–4 column grid — one full-width row per resource burns a
   lot of vertical space when the student has 196 of them. Each card
   is its own self-contained tile with a small status pill, level
   chip, slim progress track and a Start CTA bottom-right. */
.ar-pp-tab-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    align-content: start;
}
.ar-pp-card {
    display: flex;
    flex-direction: column;
    padding: 14px 15px 13px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    position: relative;
    min-height: 148px;
}
.ar-pp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -8px rgba(15,23,42,0.18);
    border-color: #94a3b8;
    color: #0f172a;
}
.ar-pp-card-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
    margin-bottom: 8px;
}
.ar-pp-card-title {
    margin: 0; font-size: 13.5px; font-weight: 700; color: #0f172a; line-height: 1.35;
    flex: 1; min-width: 0;
    /* 2-line clamp keeps cards uniform without truncating mid-title
         the way a single-line ellipsis did. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ar-pp-card-status {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px; font-weight: 700;
    border: 1px solid;
    flex-shrink: 0;
    white-space: nowrap;
}
/* Compact pill icon — text gets reduced via .ar-pp-status-text being
   hidden on this small surface (the icon + colour communicate state
   already; expanded text lives in the legend / drill-down view). */
.ar-pp-card-status i { font-size: 12px; }
.ar-pp-card-status--not_started { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.ar-pp-card-status--in_progress { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.ar-pp-card-status--completed   { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.ar-pp-card-tags {
    display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px;
}
.ar-pp-card-chip {
    display: inline-flex; align-items: center;
    padding: 1px 7px; border-radius: 999px;
    font-size: 10.5px; font-weight: 600;
    border: 1px solid;
    line-height: 1.6;
}
.ar-pp-card-chip--skill { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.ar-pp-card-chip--level { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.ar-pp-card-progress { margin-top: auto; margin-bottom: 8px; }
.ar-pp-card-progress-track {
    height: 5px; background: #e2e8f0; border-radius: 999px; overflow: hidden;
}
.ar-pp-card-progress-fill {
    height: 100%; background: linear-gradient(90deg, #2271b1, #4f8fcf);
    border-radius: 999px;
    transition: width .35s ease;
}
.ar-pp-card-progress-meta {
    display: flex; justify-content: space-between;
    margin-top: 4px;
    font-size: 11px; color: #64748b;
}
.ar-pp-card-progress-meta b { color: #0f172a; font-weight: 700; font-size: 11.5px; }
/* Drop the "N/M questions" sub-line in compact mode — too much copy
   for the tight footprint. The percent number alone carries the
   progress signal. */
.ar-pp-card-progress-q { display: none; }
.ar-pp-card-cta {
    font-size: 12px; font-weight: 700; color: #2271b1;
    display: inline-flex; align-items: center; gap: 4px;
    align-self: flex-start;
}
.ar-pp-empty {
    grid-column: 1 / -1;
    padding: 32px 18px;
    text-align: center;
    color: #94a3b8;
    background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px;
}

@media (max-width: 1100px) {
    .ar-pp-tab-main { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 720px) {
    .ar-pp-tab-body  { grid-template-columns: 1fr; }
    .ar-pp-sidebar   { position: static; }
    .ar-pp-tab-main  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ar-pp-card      { min-height: 130px; }
    .ar-pp-card-title{ font-size: 13px; }
}
@media (max-width: 420px) {
    .ar-pp-tab-main { grid-template-columns: 1fr; }
}

/* ── Dashboard search bar + section dividers (J5) ──────────────
   Search bar lives directly under the header so it's the first
   thing a returning student sees. Section dividers replace the
   implicit flow of cards with explicit "Your work" /
   "Independent practice" headings for the two-mode layout. */
.ar-dash-search {
    margin: 18px 0 22px;
}
.ar-dash-search-wrap {
    position: relative;
    width: 100%;
}
.ar-dash-search-input {
    width: 100%;
    /* Icon is right-aligned — pad the right edge so the
       placeholder / typed text doesn't run under it. */
    padding: 13px 48px 13px 16px;
    background: #FFFFFF;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: #0f172a;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
    /* Defensive — host themes sometimes set line-height:0 on
       `[type=search]` which collapses the placeholder vertically
       and makes the icon look like it's overlapping the text. */
    line-height: 1.4;
}
.ar-dash-search-input::-webkit-search-decoration,
.ar-dash-search-input::-webkit-search-cancel-button,
.ar-dash-search-input::-webkit-search-results-button,
.ar-dash-search-input::-webkit-search-results-decoration { -webkit-appearance: none; }
.ar-dash-search-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 4px rgba(34,113,177,0.12), 0 1px 3px rgba(15,23,42,0.04);
}
.ar-dash-search-icon {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}
.ar-dash-search-results {
    position: absolute;
    top: calc(100% + 6px); left: 0; right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 24px -8px rgba(15,23,42,0.18);
    max-height: 360px;
    overflow-y: auto;
    z-index: 50;
    padding: 6px;
}
.ar-dash-search-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a;
    transition: background .12s ease;
}
.ar-dash-search-row:hover { background: #f8fafc; }
.ar-dash-search-row-title {
    font-size: 14px; font-weight: 600; color: #0f172a;
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ar-dash-search-row-chips {
    display: inline-flex; gap: 4px; flex-shrink: 0;
}
.ar-dash-search-chip {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px; font-weight: 600;
    border: 1px solid;
}
.ar-dash-search-chip--skill { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.ar-dash-search-chip--level { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.ar-dash-search-loading,
.ar-dash-search-empty {
    padding: 14px 12px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.ar-dash-section-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 28px 0 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px; font-weight: 700; color: #0f172a;
    text-transform: uppercase; letter-spacing: .03em;
}
.ar-dash-section-divider > span:first-child {
    display: inline-flex; align-items: center; gap: 8px;
    flex-shrink: 0;
}
.ar-dash-section-divider > span:first-child i { color: #2271b1; }
.ar-dash-section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #e2e8f0, transparent);
}

.ar-dash-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px;
    padding: 0 7px;
    background: #dc2626; color: #fff;
    border-radius: 999px;
    font-size: 12px; font-weight: 800;
    margin-left: 4px;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.18);
}

.ar-dash-empty {
    padding: 22px 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}
.ar-dash-empty i { color: #16a34a; font-size: 18px; margin-right: 6px; }

/* Pending-assignments rail — horizontal scroll on overflow so
   long lists don't blow the dashboard height. */
.ar-dash-rail {
    display: flex; gap: 12px;
    overflow-x: auto;
    padding: 4px 4px 14px;
    margin-bottom: 14px;
    scrollbar-width: thin;
}
.ar-dash-rail::-webkit-scrollbar { height: 8px; }
.ar-dash-rail::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.ar-dash-assign-card {
    flex: 0 0 280px;
    display: flex; align-items: center; gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2271b1;
    border-radius: 10px;
    text-decoration: none;
    color: #0f172a;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.ar-dash-assign-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -8px rgba(15,23,42,0.18);
    border-color: #94a3b8;
    border-left-color: #2271b1;
}
.ar-dash-assign-card.is-overdue {
    border-left-color: #dc2626;
}
.ar-dash-assign-card.is-overdue:hover {
    border-left-color: #dc2626;
}
.ar-dash-assign-cover {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.ar-dash-assign-card.is-overdue .ar-dash-assign-cover {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #b91c1c;
}
.ar-dash-assign-body { flex: 1; min-width: 0; }
.ar-dash-assign-title {
    font-size: 14px; font-weight: 700; color: #0f172a;
    line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    margin-bottom: 4px;
}
.ar-dash-assign-meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 11.5px; color: #64748b;
}
.ar-dash-assign-group {
    display: inline-flex; align-items: center; gap: 4px;
}
.ar-dash-assign-cta {
    flex-shrink: 0;
    font-size: 12.5px; font-weight: 700; color: #2271b1;
    display: inline-flex; align-items: center; gap: 4px;
}

/* ── Skill radar (J1) ───────────────────────────────────────────
   Dashboard navigation hub. Square SVG with axis labels, ringed
   reference lines, a translucent polygon for the student's scores
   and click targets on every axis label. Headline pills below
   match the same band palette as the polygon dots. */
.ar-radar-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 22px 18px;
    margin-bottom: 22px;
}
.ar-radar-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 6px;
}
.ar-radar-title {
    margin: 0; font-size: 16px; font-weight: 700; color: #0f172a;
    display: inline-flex; align-items: center; gap: 8px;
}
.ar-radar-title i { color: #2271b1; }
.ar-radar-overall {
    font-size: 12.5px; color: #64748b; font-weight: 500;
}
.ar-radar-overall b { color: #0f172a; font-weight: 700; }
.ar-radar-hint {
    margin: 0 0 10px; font-size: 12.5px; color: #64748b;
    line-height: 1.4;
}
.ar-radar-wrap {
    display: flex; justify-content: center; align-items: center;
    padding: 12px 0 8px;
}
.ar-radar-svg {
    /* Wider viewBox now includes 90px label padding on each side
       (see renderSkillRadar). Max-width bumped to ~520 so the
       chart itself stays roughly the same visual size as before. */
    width: 100%; max-width: 540px; height: auto; overflow: visible;
}
.ar-radar-ringlbl {
    font-size: 9.5px; fill: #94a3b8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ar-radar-label {
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}
.ar-radar-label:hover,
.ar-radar-label:focus {
    transform: scale(1.04);
    outline: none;
}
.ar-radar-label:hover .ar-radar-lbl-ar,
.ar-radar-label:focus .ar-radar-lbl-ar {
    fill: #2271b1;
}
.ar-radar-lbl-ar {
    font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
    font-size: 16px; font-weight: 600; fill: #0f172a;
    transition: fill .15s ease;
}
.ar-radar-lbl-en {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11px; fill: #64748b; letter-spacing: .01em;
}
.ar-radar-lbl-score {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: .01em;
}

/* Headline stats row — three band-coloured pills. */
.ar-radar-headline {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.ar-radar-stat {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600;
    border: 1px solid transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ar-radar-stat b { font-weight: 800; }
.ar-radar-stat--expert {
    background: #f0fdf4; color: #166534; border-color: #bbf7d0;
}
.ar-radar-stat--secure {
    background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe;
}
.ar-radar-stat--needs {
    background: #fef2f2; color: #b91c1c; border-color: #fecaca;
}
@media (max-width: 520px) {
    .ar-radar-svg { max-width: 320px; }
    .ar-radar-lbl-ar { font-size: 13px; }
    .ar-radar-lbl-en, .ar-radar-lbl-score { font-size: 10px; }
}

/* ── BravoBravo skill rings (I1) ────────────────────────────────
   Companion to the radar. Same source data, but each skill
   gets its own donut ring + score so the student sees a
   discrete "how am I doing on X?" tile per skill. */
.ar-rings-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 22px;
}
.ar-rings-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.ar-rings-title {
    margin: 0; font-size: 15px; font-weight: 700; color: #0f172a;
    display: inline-flex; align-items: center; gap: 8px;
}
.ar-rings-title i { color: #2271b1; }
.ar-rings-hint { font-size: 12px; color: #64748b; }
.ar-rings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.ar-rings-tile {
    appearance: none;
    background: linear-gradient(180deg, #FAFBFD 0%, #F1F5F9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 10px;
    cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.ar-rings-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -10px rgba(15,23,42,0.18);
    border-color: #94a3b8;
}
.ar-rings-svg { display: block; }
.ar-rings-num {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 22px; font-weight: 800;
}
.ar-rings-label {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    min-width: 0; text-align: center;
}
.ar-rings-label-ar {
    font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
    font-size: 14px; font-weight: 700; color: #0f172a;
}
.ar-rings-label-en { font-size: 11.5px; color: #64748b; }
.ar-rings-label-band {
    font-size: 11px; font-weight: 700; letter-spacing: .03em;
    text-transform: uppercase; margin-top: 2px;
}

/* ── BravoBravo performance loop (I2) ───────────────────────────
   Six-step strip — Learn → Practise → Check → Master → Apply →
   Reflect — with the current step highlighted in indigo and
   completed steps tinted green. Pure informational; doesn't
   navigate on click. */
.ar-perfloop-wrap {
    margin-bottom: 22px;
    background: linear-gradient(135deg, #EEF2FF 0%, #DBEAFE 100%);
    border: 1px solid #C7D2FE;
    border-radius: 14px;
    padding: 14px 16px;
}
.ar-perfloop-wrap .ar-perfloop {
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 0;
}
.ar-perfloop {
    display: flex; align-items: stretch; flex-wrap: wrap; gap: 4px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #EEF2FF 0%, #DBEAFE 100%);
    border: 1px solid #C7D2FE;
    border-radius: 14px;
    margin-bottom: 22px;
}
.ar-perfloop-step.is-clickable {
    cursor: pointer;
    outline: none;
    transition: background .15s, color .15s, transform .12s, box-shadow .15s;
}
.ar-perfloop-step.is-clickable:hover {
    background: #312E81;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -6px rgba(49, 46, 129, 0.55);
}
.ar-perfloop-step.is-clickable:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45),
                0 6px 14px -6px rgba(67, 56, 202, 0.45);
}
.ar-perfloop-hint {
    display: flex; align-items: center; gap: 8px;
    margin-top: 12px; padding-top: 10px;
    border-top: 1px dashed rgba(67, 56, 202, 0.25);
    font-family: 'Inter', sans-serif;
    font-size: 12.5px; color: #312E81;
    line-height: 1.4;
}
.ar-perfloop-hint > i { color: #4338CA; font-size: 14px; flex-shrink: 0; }
.ar-perfloop-hint-step {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 10.5px;
    color: #4338CA;
    margin-right: 2px;
}
.ar-perfloop-step {
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 6px;
    border-radius: 10px;
    color: #475569;
    transition: background .15s, color .15s;
    min-width: 80px;
}
.ar-perfloop-step.is-done {
    color: #16a34a;
    background: rgba(220,252,231,0.55);
}
.ar-perfloop-step.is-active {
    background: #4338CA;
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(67,56,202,0.45);
}
.ar-perfloop-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
    color: inherit;
}
.ar-perfloop-step.is-active .ar-perfloop-icon {
    background: rgba(255,255,255,0.18);
}
.ar-perfloop-num {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px; font-weight: 800; opacity: 0.6;
    letter-spacing: .04em;
}
.ar-perfloop-step.is-active .ar-perfloop-num { opacity: 0.9; }
.ar-perfloop-label {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px; font-weight: 700;
}
.ar-perfloop-arrow {
    display: inline-flex; align-items: center;
    color: #93C5FD; font-size: 14px; flex-shrink: 0;
}
@media (max-width: 720px) {
    .ar-perfloop { flex-wrap: wrap; gap: 6px; }
    .ar-perfloop-arrow { display: none; }
    .ar-perfloop-step { min-width: 30%; }
}

/* ── Teacher skill matrix (I3) ──────────────────────────────────
   Bird's-eye student × skill table inside the gradebook. */
.ag-skill-wrap {
    padding: 18px 20px;
    margin: 18px 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.ag-skill-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.ag-skill-head h3 {
    margin: 0; font-size: 15px; font-weight: 700; color: #0f172a;
    display: inline-flex; align-items: center; gap: 8px;
}
.ag-skill-head i { color: #2271b1; }
.ag-skill-hint { font-size: 12px; color: #64748b; }
.ag-skill-scroll { overflow-x: auto; }
.ag-skill-table {
    width: 100%; border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}
.ag-skill-table th,
.ag-skill-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
}
.ag-skill-table thead th {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: #475569;
    background: #f8fafc;
    position: sticky; top: 0;
}
.ag-skill-table thead th:first-child { text-align: left; }
.ag-skill-name {
    text-align: left !important;
    font-weight: 600; color: #0f172a;
}
.ag-skill-h-ar {
    display: block;
    font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
    font-size: 13px; font-weight: 700; color: #0f172a;
}
.ag-skill-h-en {
    display: block; font-size: 10.5px; color: #64748b; margin-top: 2px;
}
.ag-skill-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid;
    font-weight: 700;
    font-size: 12px;
}
.ag-skill-c.is-empty { color: #cbd5e1; }
.ag-skill-overall { font-size: 14px; color: #0f172a; }

/* Skill matrix toolbar + pagination (scales the table to
   hundreds of students by searching / sorting / band-filtering
   / paging 25 rows at a time). */
.ag-skill-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding: 10px 12px;
    margin: 0 0 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
}
.ag-skill-search {
    position: relative;
    flex: 1 1 220px;
    min-width: 180px;
}
.ag-skill-search i {
    position: absolute;
    right: 11px; top: 50%; transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13.5px;
    pointer-events: none;
}
.ag-skill-search input {
    width: 100%;
    padding: 7px 32px 7px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #0f172a;
    outline: none;
    transition: border-color .12s, box-shadow .12s;
}
.ag-skill-search input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,.12);
}
.ag-skill-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ag-skill-select {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #0f172a;
    cursor: pointer;
    outline: none;
}
.ag-skill-select:focus { border-color: #2271b1; }
.ag-skill-bandfilter {
    display: inline-flex; align-items: center; gap: 6px;
}
.ag-skill-bandfilter-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: #64748b;
}
.ag-skill-clear {
    appearance: none;
    background: #fff; color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 6px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px; font-weight: 600;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
    transition: background .12s, border-color .12s;
}
.ag-skill-clear:hover { background: #fef2f2; border-color: #fca5a5; }

/* Click-to-sort header cells */
.ag-skill-h:hover,
.ag-skill-h-name:hover,
.ag-skill-h-overall:hover {
    background: #eff6ff !important;
}
.ag-skill-h.is-sorted,
.ag-skill-h-name.is-sorted,
.ag-skill-h-overall.is-sorted {
    color: #2271b1 !important;
    background: #eff6ff !important;
}

/* Empty / pager rows */
.ag-skill-empty {
    padding: 28px 14px !important;
    text-align: center !important;
    color: #94a3b8;
    font-style: italic;
    background: #f8fafc;
}
.ag-skill-pager {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap;
    margin-top: 12px; padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.ag-skill-count {
    font-size: 13px; color: #64748b;
}
.ag-skill-count b { color: #0f172a; font-weight: 700; }
.ag-skill-pager-btns {
    display: inline-flex; align-items: center; gap: 8px;
}
.ag-skill-pager-btns button {
    appearance: none;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px; font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
    transition: background .12s, border-color .12s;
}
.ag-skill-pager-btns button:hover:not([disabled]) {
    background: #f8fafc;
    border-color: #94a3b8;
}
.ag-skill-pager-btns button[disabled] {
    opacity: .45; cursor: not-allowed;
}
.ag-skill-pageno {
    font-size: 12.5px; color: #475569; font-weight: 600;
}

@media (max-width: 720px) {
    .ag-skill-toolbar { flex-direction: column; align-items: stretch; }
    .ag-skill-bandfilter { flex-wrap: wrap; }
    .ag-skill-pager { flex-direction: column; align-items: stretch; }
    .ag-skill-pager-btns { justify-content: space-between; }
}

/* ── Adaptive recommendation panel (I4) ─────────────────────────
   Sits above the results card. Prereq variant (red-tinted) on
   fail; next-step variant (green-tinted) on pass. */
.ap-reco {
    margin: 14px 0 18px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid;
    animation: ap-reco-in .25s ease;
}
@keyframes ap-reco-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.ap-reco--prereq { background: #FEF2F2; border-color: #FECACA; }
.ap-reco--next   { background: #ECFDF5; border-color: #A7F3D0; }
.ap-reco-head {
    margin-bottom: 10px;
    display: flex; flex-direction: column; gap: 2px;
}
.ap-reco-head-ar {
    font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
    font-size: 17px; font-weight: 700;
}
.ap-reco--prereq .ap-reco-head-ar { color: #991B1B; }
.ap-reco--next   .ap-reco-head-ar { color: #065F46; }
.ap-reco-head-en {
    font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em;
}
.ap-reco--prereq .ap-reco-head-en { color: #B91C1C; }
.ap-reco--next   .ap-reco-head-en { color: #16A34A; }
.ap-reco-loading {
    padding: 10px 14px; font-size: 13px; color: #64748b;
    display: inline-flex; align-items: center; gap: 8px;
}
.ap-reco-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}
.ap-reco-card {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 10px;
    text-decoration: none; color: #0f172a;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.ap-reco-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -10px rgba(15,23,42,0.18);
}
.ap-reco--prereq .ap-reco-card:hover { border-color: #FCA5A5; }
.ap-reco--next   .ap-reco-card:hover { border-color: #6EE7B7; }
.ap-reco-cover {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 8px;
    background-size: cover; background-position: center;
    background-color: #DBEAFE;
}
.ap-reco-cover--ph {
    display: flex; align-items: center; justify-content: center;
    color: #1D4ED8; font-size: 20px;
}
.ap-reco-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-reco-title {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px; font-weight: 700; color: #0f172a;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ap-reco-meta { display: inline-flex; gap: 6px; align-items: center; }
.ap-reco-chip {
    padding: 1px 7px;
    border-radius: 999px;
    background: #EFF6FF; color: #1D4ED8;
    font-size: 10.5px; font-weight: 700;
    border: 1px solid #BFDBFE;
}
.ap-reco-q {
    font-size: 11px; color: #64748b;
}
.ap-reco-why {
    font-size: 11.5px; color: #64748b; font-style: italic;
}
.ap-reco-cta {
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px; font-weight: 700; color: #2271b1;
    display: inline-flex; align-items: center; gap: 4px;
}

/* ── Photo-prompted recorder (E) ─────────────────────────────────
   Optional image surfaced above the recorder controls when a
   teacher sets data.photo_prompt_url on a recorder block. The
   student sees the image + a bilingual caption ("Describe this
   image in Arabic") and records a spoken response. */
.ap-rec-photo {
    margin: 0 0 14px;
    border-radius: 10px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid #e2e8f0;
}
.ap-rec-photo img {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}
.ap-rec-photo-cap {
    margin: 0;
    padding: 8px 14px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    background: #0f172a;
    color: #f8fafc;
}
.ap-rec-photo-cap-ar {
    font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
    font-size: 16px; font-weight: 600;
}
.ap-rec-photo-cap-en {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px; font-weight: 500;
    opacity: 0.75;
    text-transform: uppercase; letter-spacing: .04em;
}

/* ── Workspace Library tab (G) ──────────────────────────────────
   Card grid of school-published resources. Emerald accent
   matches the workspace's per-tab palette for Library. */
.alb-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f172a;
}
.alb-head { margin-bottom: 14px; }
.alb-title {
    margin: 0 0 4px;
    font-size: 22px; font-weight: 800;
    display: inline-flex; align-items: center; gap: 10px;
}
.alb-title i { color: #047857; }
.alb-sub { margin: 0; font-size: 13.5px; color: #64748b; }

.alb-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding: 10px 12px;
    margin: 0 0 16px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
}
.alb-search {
    position: relative;
    flex: 1 1 220px;
    min-width: 180px;
}
.alb-search input {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 13.5px;
    color: #0f172a;
    outline: none;
    transition: border-color .12s, box-shadow .12s;
    line-height: 1.4;
}
.alb-search input:focus {
    border-color: #047857;
    box-shadow: 0 0 0 3px rgba(4,120,87,.12);
}
.alb-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.alb-search i {
    position: absolute;
    right: 11px; top: 50%; transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13.5px;
    pointer-events: none;
}
.alb-select {
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: #0f172a;
    cursor: pointer;
    outline: none;
}
.alb-select:focus { border-color: #047857; }
.alb-clear {
    appearance: none;
    background: #fff; color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12.5px; font-weight: 600;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
}
.alb-clear:hover { background: #fef2f2; }

.alb-loading,
.alb-empty,
.alb-error {
    padding: 36px 18px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
}
.alb-empty i.ph-bold { font-size: 32px; color: #94a3b8; display: block; margin-bottom: 8px; }
.alb-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alb-loading i.ph-bold { margin-right: 6px; }

.alb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.alb-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.alb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(15,23,42,0.18);
    border-color: #94a3b8;
}
.alb-card-link { display: block; }
.alb-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #D5EAE0 0%, #A7D3C1 100%);
    background-size: cover; background-position: center;
}
.alb-cover--ph {
    display: flex; align-items: center; justify-content: center;
    color: #047857; font-size: 36px;
}
.alb-card-body {
    padding: 12px 14px 14px;
    display: flex; flex-direction: column; gap: 8px;
    flex: 1;
}
.alb-card-title {
    margin: 0;
    font-size: 14.5px; font-weight: 700; line-height: 1.35;
}
.alb-card-title a {
    color: #0f172a;
    text-decoration: none;
}
.alb-card-title a:hover { color: #047857; }
.alb-card-chips {
    display: flex; flex-wrap: wrap; gap: 4px;
}
.alb-chip {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    border: 1px solid;
}
.alb-chip--skill { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.alb-chip--level { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.alb-card-stats {
    display: flex; flex-wrap: wrap; gap: 8px;
    font-size: 11.5px; color: #64748b;
}
.alb-stat { display: inline-flex; align-items: center; gap: 3px; }
.alb-stat i { color: #94a3b8; }
.alb-card-author {
    font-size: 11.5px; color: #94a3b8;
    display: inline-flex; align-items: center; gap: 4px;
}
.alb-clone {
    margin-top: auto;
    appearance: none;
    background: linear-gradient(135deg, #047857 0%, #065F46 100%);
    color: #fff; border: none;
    border-radius: 8px;
    padding: 9px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 700;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: filter .12s, transform .05s;
}
.alb-clone:hover:not([disabled]) { filter: brightness(1.08); }
.alb-clone:active:not([disabled]) { transform: translateY(1px); }
.alb-clone[disabled] { opacity: .7; cursor: not-allowed; }
.alb-clone.is-ok {
    background: linear-gradient(135deg, #16A34A 0%, #166534 100%);
}
.alb-clone-arrow { margin-left: 2px; }
.alb-clone-err {
    margin-top: 6px;
    font-size: 11.5px; color: #b91c1c;
    background: #fef2f2; border: 1px solid #fecaca;
    padding: 4px 8px; border-radius: 6px;
}


/* ── View toggle (Library vs My Resources) ──
   Classes carry an `aw-` twin (.aw-alb-view-btn) so Funcare's
   catch-all <button> exclusion list catches them — see comment
   block in funcare/style.css. Without that the segmented control
   collapses into two identical sage pills with no active state. */
.alb-view-toggle {
    display: inline-flex;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}
.alb-view-btn {
    appearance: none;
    background: transparent;
    border: none;
    color: #475569;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .12s, color .12s;
}
.alb-view-btn:hover { color: #0f172a; background: rgba(15,23,42,.04); }
.alb-view-btn.is-active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 0 0 1px rgba(15,23,42,.06);
}
.alb-view-btn i { font-size: 14px; }


/* ── Mine view chips + meta strip ─────────── */
.alb-mine-meta {
    display: flex; flex-wrap: wrap; gap: 5px;
    margin: 4px 0 12px;
}
.alb-pill {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10.5px; font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.alb-pill--source { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }
.alb-pill--draft  { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }
.alb-pill--pub    { background: #ecfdf5; color: #15803d; border: 1px solid #86efac; }
.alb-pill--pub i  { font-size: 11px; }


/* ── Mine view action strip — Edit + Delete ──
   `.aw-alb-action` twin so Funcare's button-catch-all leaves
   these alone. */
.alb-actions {
    margin-top: auto;
    display: flex; gap: 8px;
}
.alb-action {
    appearance: none;
    flex: 1 1 0;
    text-decoration: none;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background .12s, border-color .12s, color .12s, transform .05s;
}
.alb-action:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.alb-action[disabled] { opacity: .65; cursor: not-allowed; }
.alb-action--edit:hover {
    border-color: #1F9F94;
    color: #1F9F94;
}
.alb-action--delete {
    color: #b91c1c;
    border-color: #fecaca;
}
.alb-action--delete:hover:not([disabled]) {
    background: #fef2f2;
    border-color: #b91c1c;
}


/* ── Delete confirmation modal ────────────── */
.alb-delete-overlay {
    position: fixed; inset: 0; z-index: 5000;
    background: rgba(15, 23, 42, .55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: alb-fade .14s ease-out;
}
@keyframes alb-fade { from { opacity: 0; } to { opacity: 1; } }
.alb-delete-modal {
    background: #fff;
    border-radius: 14px;
    padding: 24px 24px 18px;
    width: 100%; max-width: 440px;
    box-shadow: 0 20px 60px -10px rgba(15,23,42,.35);
}
.alb-delete-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fef2f2;
    color: #b91c1c;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}
.alb-delete-title {
    margin: 0 0 6px;
    font-size: 17px; font-weight: 800;
    color: #0f172a;
}
.alb-delete-body {
    margin: 0 0 14px;
    font-size: 13.5px; line-height: 1.5;
    color: #475569;
}
.alb-delete-body strong { color: #0f172a; }
.alb-delete-err {
    margin-bottom: 12px;
    font-size: 12.5px; color: #b91c1c;
    background: #fef2f2; border: 1px solid #fecaca;
    padding: 6px 10px; border-radius: 6px;
}
.alb-delete-actions {
    display: flex; gap: 8px;
    justify-content: flex-end;
}
.alb-delete-actions .alb-action { flex: 0 0 auto; min-width: 96px; }


.alb-pager {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap;
    margin-top: 18px; padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.alb-pager-count { font-size: 13px; color: #64748b; }
.alb-pager-count b { color: #0f172a; font-weight: 700; }
.alb-pager-btns { display: inline-flex; align-items: center; gap: 8px; }
.alb-pager-btns button {
    appearance: none;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 13px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px; font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
    transition: background .12s, border-color .12s;
}
.alb-pager-btns button:hover:not([disabled]) {
    background: #f8fafc; border-color: #94a3b8;
}
.alb-pager-btns button[disabled] { opacity: .45; cursor: not-allowed; }
.alb-pager-no { font-size: 12.5px; color: #475569; font-weight: 600; }

@media (max-width: 720px) {
    .alb-toolbar { flex-direction: column; align-items: stretch; }
    .alb-pager { flex-direction: column; align-items: stretch; }
    .alb-pager-btns { justify-content: space-between; }
}

/* ── Workspace competition form (H) ─────────────────────────────
   Inline mini-form that expands beneath each group's header
   when "Start competition" is clicked. */
.atg-comp-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    border-radius: 999px;
    color: #92400E;
    font-size: 12px; font-weight: 600;
}
.atg-comp-status i { color: #B45309; }
.atg-comp-form {
    margin-top: 10px;
    padding: 12px 14px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 10px;
}
.atg-comp-form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr auto;
    gap: 10px;
    align-items: end;
}
.atg-comp-form-row label {
    display: flex; flex-direction: column; gap: 4px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: #92400E;
}
.atg-comp-form-row input,
.atg-comp-form-row select {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    padding: 7px 10px;
    border: 1px solid #FCD34D;
    border-radius: 8px;
    background: #fff; color: #0f172a;
    outline: none;
}
.atg-comp-form-row input:focus,
.atg-comp-form-row select:focus {
    border-color: #B45309;
    box-shadow: 0 0 0 3px rgba(180,83,9,.12);
}
.atg-comp-form-status {
    margin-top: 8px;
    font-size: 12.5px;
}
@media (max-width: 720px) {
    .atg-comp-form-row { grid-template-columns: 1fr; }
}

/* ── Competition banner + leaderboard modal (H) ─────────────────
   Compact banner at the top of the Home tab. Amber-warm
   palette matches the trophy system; rank chip is the only
   high-contrast call-out. Modal opens a centred leaderboard. */
/* Home tab — Competition banner + Reward tier as side-by-side,
   equal-height cards; they stack on narrow screens. */
.ar-home-duo {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 18px;
}
.ar-home-duo > * {
    flex: 1 1 320px;
    min-width: 0;
    margin-bottom: 0 !important;
}

.ar-comp-banner {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #FACC15;
    border-radius: 12px;
    margin: 0 0 18px;
    box-shadow: 0 4px 14px -6px rgba(202,138,4,0.35);
}
.ar-comp-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255,255,255,0.85);
    color: #B45309;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.ar-comp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-comp-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px; font-weight: 700; color: #78350F;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ar-comp-meta {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px; color: #92400E;
}
.ar-comp-rank {
    background: #FFFFFF; color: #B45309;
    border: 1px solid #FCD34D; border-radius: 999px;
    padding: 1px 8px; font-weight: 800; font-size: 11.5px;
    display: inline-block; margin-left: 2px;
}
.ar-comp-cta {
    flex-shrink: 0;
    background: #1F2937; color: #FFFFFF;
    border: none; border-radius: 999px;
    padding: 8px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 700;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: filter .12s ease, transform .05s;
}
.ar-comp-cta:hover { filter: brightness(1.1); }
.ar-comp-cta:active { transform: translateY(1px); }

.ar-comp-modal {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.55);
    z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: ar-comp-modal-in .2s ease;
}
@keyframes ar-comp-modal-in { from { opacity: 0; } to { opacity: 1; } }
.ar-comp-modal-card {
    background: #fff;
    border-radius: 16px;
    width: 100%; max-width: 520px;
    max-height: 80vh;
    display: flex; flex-direction: column;
    box-shadow: 0 24px 48px -16px rgba(15,23,42,0.4);
    overflow: hidden;
}
.ar-comp-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.ar-comp-modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: #0f172a; }
.ar-comp-modal-close {
    background: none; border: none; font-size: 24px;
    cursor: pointer; color: #64748b; padding: 4px 10px; border-radius: 6px;
    line-height: 1; transition: background .12s;
}
.ar-comp-modal-close:hover { background: #f1f5f9; color: #0f172a; }
.ar-comp-modal-body {
    flex: 1; overflow-y: auto;
    padding: 18px 20px 22px;
}
.ar-comp-modal-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 4px;
}
.ar-comp-modal-sub {
    font-size: 12.5px; color: #64748b; margin-bottom: 14px;
}
.ar-comp-loading {
    padding: 24px; text-align: center; color: #64748b; font-size: 13.5px;
}
.ar-comp-empty {
    padding: 24px; text-align: center; color: #94a3b8;
    background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px;
    font-size: 13.5px;
}
.ar-comp-board {
    list-style: none; padding: 0; margin: 0;
}
.ar-comp-board-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 6px;
    background: #fff;
    transition: border-color .12s, background .12s;
}
.ar-comp-board-row.is-me {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-color: #FACC15;
}
.ar-comp-board-rank {
    width: 36px; flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 800; color: #0f172a;
}
.ar-comp-board-avatar {
    width: 32px; height: 32px; flex-shrink: 0;
    border-radius: 50%;
    background: #DBEAFE; color: #1D4ED8;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 700;
}
.ar-comp-board-row.is-me .ar-comp-board-avatar {
    background: #FACC15; color: #78350F;
}
.ar-comp-board-name {
    flex: 1; min-width: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 600; color: #0f172a;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ar-comp-board-name em {
    font-style: normal; font-weight: 400; color: #92400E;
    font-size: 12px; margin-left: 4px;
}
.ar-comp-board-score {
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px; font-weight: 800; color: #0f172a;
}

/* ── Trophy toast + shelf (J6) ──────────────────────────────────
   Toast appears above the player results card on first unlock;
   shelf lives below the dashboard radar showing earned vs
   locked milestones. */
.ap-trophy-toast {
    margin: 0 0 14px;
    display: flex; flex-direction: column; gap: 8px;
    animation: ap-trophy-pop .35s cubic-bezier(.4,0,.2,1);
}
.ap-trophy-toast.is-dismissing {
    animation: ap-trophy-fade .35s ease forwards;
}
@keyframes ap-trophy-pop {
    from { opacity: 0; transform: translateY(-8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ap-trophy-fade {
    from { opacity: 1; }
    to   { opacity: 0; transform: translateY(-4px); }
}
.ap-trophy-toast-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1.5px solid #FACC15;
    border-radius: 14px;
    box-shadow: 0 8px 24px -10px rgba(202,138,4,0.45);
}
.ap-trophy-toast-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.85);
    color: #B45309;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 28px;
    box-shadow: inset 0 0 0 1px rgba(180,83,9,0.25);
}
.ap-trophy-toast-body {
    display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.ap-trophy-toast-eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: #92400E;
}
.ap-trophy-toast-ar {
    font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
    font-size: 18px; font-weight: 700; color: #78350F;
}
.ap-trophy-toast-en {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13.5px; color: #92400E;
}

/* Dashboard trophy shelf */
.ar-trophy-shelf {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 22px;
}
.ar-trophy-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.ar-trophy-title {
    margin: 0; font-size: 16px; font-weight: 700; color: #0f172a;
    display: inline-flex; align-items: center; gap: 8px;
}
.ar-trophy-title i { color: #B45309; }
.ar-trophy-count {
    font-size: 12.5px; color: #64748b; font-weight: 600;
}
.ar-trophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
    gap: 10px;
    justify-content: center;
}
.ar-trophy {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: transform .12s ease, box-shadow .12s ease;
}
.ar-trophy.is-earned {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-color: #FDE68A;
    box-shadow: 0 4px 12px -8px rgba(202,138,4,0.35);
}
.ar-trophy.is-earned:hover { transform: translateY(-2px); }
.ar-trophy.is-locked { opacity: 0.55; }
.ar-trophy-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.7);
    font-size: 18px;
    color: #B45309;
}
.ar-trophy.is-locked .ar-trophy-icon {
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 16px;
}
.ar-trophy-q {
    font-family: 'Inter', sans-serif;
    font-size: 18px; font-weight: 800;
}
.ar-trophy-label {
    display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
.ar-trophy-label-ar {
    font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
    font-size: 13.5px; font-weight: 600; color: #0f172a;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ar-trophy.is-locked .ar-trophy-label-ar { color: #64748b; }
.ar-trophy-label-en {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px; color: #64748b;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Live feedback (J3) ─────────────────────────────────────────
   Per-question Check button + result card. Sits inside each
   .ap-q card under the answer surface. Verdict variants colour
   the card; the answer surface is locked via is-live-checked.
*/
.ap-q-livefb {
    margin: 12px 18px 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.ap-q-livefb-btn {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    background: #FFFFFF;
    color: #0f172a;
    border: 1.5px solid var(--ap-line2);
    border-radius: 999px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13.5px; font-weight: 700; cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.ap-q-livefb-btn:hover { background: #FAF6EC; border-color: #C9C2B1; }
.ap-q-livefb-btn[disabled] {
    background: #F7F4EA; border-color: var(--ap-line2);
    color: var(--ap-ink4); cursor: not-allowed; opacity: .9;
}
.ap-q-livefb-result {
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    animation: ap-q-livefb-pop .25s cubic-bezier(.4,0,.2,1);
}
@keyframes ap-q-livefb-pop {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ap-q-livefb-result.is-correct {
    background: #ECFDF5; border: 1px solid #A7F3D0; color: #166534;
}
.ap-q-livefb-result.is-wrong {
    background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B;
}
.ap-q-livefb-result.is-deferred {
    background: #EFF6FF; border: 1px solid #BFDBFE; color: #1D4ED8;
}
.ap-q-livefb-verdict {
    display: flex; align-items: center; gap: 8px;
    font-size: 14.5px; font-weight: 700;
}
.ap-q-livefb-verdict i { font-size: 18px; }
.ap-q-livefb-pts {
    margin-left: auto;
    background: rgba(255,255,255,0.7);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12.5px; font-weight: 800;
    color: inherit;
    animation: ap-q-livefb-bump .35s cubic-bezier(.4,0,.2,1);
}
@keyframes ap-q-livefb-bump {
    0%   { transform: scale(0.6); opacity: 0; }
    60%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}
.ap-q-livefb-reveal {
    margin-top: 8px;
    font-size: 13px;
    color: #475569;
}
.ap-q-livefb-reveal-lbl {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: #64748b; margin-right: 4px;
}
.ap-q-livefb-reveal b { color: #0f172a; font-weight: 700; }
.ap-q-livefb-msg {
    display: flex; align-items: center; gap: 8px;
    font-size: 13.5px; font-weight: 600;
}

/* Lock the card after checking — interactions disabled (the user
   can still scroll / read but every interactive child is muted).
   Pointer-events:none on the inner answer surface; the Check
   button + result stay clickable because they sit OUTSIDE the
   .ap-q-content wrapper. */
.ap-q.is-live-checked .ap-q-content,
.ap-q.is-live-checked .ap-opts {
    pointer-events: none;
    opacity: 0.78;
}

/* J4 — Hint button + bilingual hint card. Sits in the same
   chrome as the J3 Check button so the two share a row. */
.ap-q-livefb-btnrow {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.ap-q-hint-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: #FFFBEB;
    color: #92400E;
    border: 1.5px solid #FDE68A;
    border-radius: 999px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13.5px; font-weight: 700; cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.ap-q-hint-btn:hover {
    background: #FEF3C7; border-color: #FCD34D; color: #78350F;
}
.ap-q-hint-btn[disabled] {
    opacity: 0.6; cursor: not-allowed;
}
.ap-q-hint-btn.is-limit {
    background: #F3F4F6; color: #9CA3AF; border-color: #E5E7EB;
}
.ap-q-hint-card {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13.5px;
    color: #78350F;
    animation: ap-q-hint-pop .25s cubic-bezier(.4,0,.2,1);
}
@keyframes ap-q-hint-pop {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ap-q-hint-card.is-loading {
    background: #FAFAF8; border-color: #E5E7EB; color: #6B7280;
}
.ap-q-hint-card.is-limit {
    background: #F3F4F6; border-color: #E5E7EB; color: #4B5563;
}
.ap-q-hint-card.is-error {
    background: #FEF2F2; border-color: #FECACA; color: #991B1B;
}
.ap-q-hint-loading {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: #6B7280;
}
.ap-q-hint-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    color: #78350F;
}
.ap-q-hint-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.ap-q-hint-remaining {
    margin-left: auto;
    background: rgba(255,255,255,0.7);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10.5px; font-weight: 700;
    color: #92400E;
    text-transform: none; letter-spacing: 0;
}
.ap-q-hint-close {
    background: none; border: none; cursor: pointer;
    color: #92400E; font-size: 16px; padding: 0 4px;
    line-height: 1; transition: color .12s;
}
.ap-q-hint-close:hover { color: #1F2937; }
.ap-q-hint-row {
    margin-top: 4px;
    line-height: 1.6;
}
.ap-q-hint-row[dir="rtl"] {
    font-family: 'Noto Sans Arabic', 'Cairo', sans-serif;
    font-size: 16px;
    color: #1F2937;
}
.ap-q-hint-row[dir="ltr"] {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #4B5563;
}

/* ── Arabic text ── */
.araboo-arabic,
.araboo-wrap [style*="direction: rtl"],
.araboo-wrap [style*="direction:rtl"],
.araboo-wrap [dir="rtl"] {
    font-family: 'Noto Sans Arabic', 'Noto Naskh Arabic', 'Traditional Arabic', serif !important;
    direction: rtl;
    text-align: right;
    line-height: 1.6 !important;
    /* Player Arabic default — calibrated baseline (24px on the
       reading body, 17px / 15px on question stem / options). The
       --ap-ar-scale variable lets the student-side A− / A+ pill
       resize every Arabic surface from one knob; the explicit
       .araboo-arabic rule lower down (below the .ap-q.is-rtl block)
       carries the calc() so this declaration only handles fallback. */
    font-size: calc(24px * var(--ap-ar-scale, 1)) !important;
}
/* Force the single Arabic face onto every descendant of an Arabic text
   block (Quill writes per-span inline `style="font-family:..."` and per-
   element `.ql-font-*` classes when the toolbar's font picker is used;
   without !important on descendants the saved face wins over the wrapper
   rule above and the text block displays a different font from the
   question options). Player canon: one Arabic face, everywhere. */
.araboo-arabic,
.araboo-arabic * {
    font-family: 'Noto Sans Arabic', 'Noto Naskh Arabic', 'Traditional Arabic', serif !important;
}

/* ── Cards ── */
.araboo-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* ── Buttons ── */
.araboo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .15s;
    text-decoration: none;
}
.araboo-btn-primary { background: #2271b1; color: #fff; }
.araboo-btn-primary:hover { background: #135e96; color: #fff; }
.araboo-btn-success { background: #00a32a; color: #fff; }
.araboo-btn-success:hover { background: #007017; }
.araboo-btn-outline {
    background: #fff;
    color: #2271b1;
    border: 2px solid #2271b1;
}
.araboo-btn-outline:hover { background: #f0f5fb; }
.araboo-btn:disabled { opacity: .5; cursor: not-allowed; }
.araboo-btn-full { width: 100%; }

/* ── Badges ── */
.araboo-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.araboo-badge-blue { background:#e8f0fb; color:#1a56a4; }
.araboo-badge-green { background:#edfaef; color:#166534; }
.araboo-badge-red { background:#fef2f2; color:#991b1b; }
.araboo-badge-grey { background:#f3f4f6; color:#555; }

/* ── Progress bar ── */
.araboo-progress-wrap {
    background: #f3f4f6;
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
    margin: 8px 0;
    width: 100%;
}
.araboo-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #0ea5e9);
    border-radius: 20px;
    transition: width .4s ease;
}

/* ── Score display ── */
.araboo-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
}
.araboo-score-circle .score-pct {
    font-size: 2.2em;
    line-height: 1;
}
.araboo-score-circle .score-label {
    font-size: 12px;
    opacity: .8;
}
.araboo-score-pass {
    background: linear-gradient(135deg, #00a32a, #16a34a);
    color: #fff;
}
.araboo-score-fail {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
}

/* ── Alerts ── */
.araboo-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}
.araboo-alert-info { background:#e8f0fb; color:#1a56a4; border:1px solid #c3d9f7; }
.araboo-alert-success { background:#edfaef; color:#166534; border:1px solid #86efac; }
.araboo-alert-error { background:#fef2f2; color:#991b1b; border:1px solid #fca5a5; }
.araboo-alert-warning { background:#fffbeb; color:#92400e; border:1px solid #fcd34d; }

/* ── Loading spinner ── */
.araboo-spinner-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
    color: #888;
}
.araboo-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: araboo-spin .8s linear infinite;
}
@keyframes araboo-spin { to { transform: rotate(360deg); } }

/* ── Accordion block ── */
.araboo-accordion {
    padding: 0;
    overflow: hidden;
    margin-top: 18px;
}
.araboo-accordion-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #e0f2fe !important;
    border: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    color: #0c4a6e !important;
    text-align: left;
    transition: background .15s;
}
.araboo-accordion-toggle:hover { background: #bae6fd !important; }
.araboo-accordion-toggle:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}
.araboo-accordion-chevron {
    display: inline-block;
    flex-shrink: 0;
    font-size: 14px;
    color: #64748b;
    transition: transform .2s ease;
}
.araboo-accordion.is-open .araboo-accordion-chevron {
    transform: rotate(180deg);
}
.araboo-accordion-title {
    flex: 1;
    font-size: 15px;
}
/* Grid-template-rows trick: animates from 0 (collapsed) to natural content
   height with NO max cap — the old `max-height: 4000px` truncated long
   pasted content. The child needs `min-height: 0; overflow: hidden` so the
   row can collapse to zero. */
.araboo-accordion-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}
.araboo-accordion.is-open .araboo-accordion-panel {
    grid-template-rows: 1fr;
}
.araboo-accordion.is-open .araboo-accordion-toggle {
    border-bottom-color: #7dd3fc;
}
.araboo-accordion-content {
    min-height: 0;
    overflow: hidden;
    padding: 0 18px;
    transition: padding .3s ease;
}
.araboo-accordion.is-open .araboo-accordion-content {
    padding: 14px 18px;
}

/* ── Per-block countdown block ── */
.araboo-countdown {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 1px solid #fcd34d;
    padding: 18px 22px;
}
.araboo-countdown-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.araboo-countdown-icon {
    font-size: 1.8em;
    color: #b45309;
    flex-shrink: 0;
}
.araboo-countdown-meta {
    flex: 1;
    min-width: 0;
}
.araboo-countdown-label {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}
.araboo-countdown-status {
    font-size: 12px;
    color: #92400e;
    font-weight: 500;
}
.araboo-countdown-display {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-feature-settings: "tnum";
    font-size: 1.8em;
    font-weight: 800;
    color: #0f172a;
    min-width: 96px;
    text-align: center;
    letter-spacing: .02em;
    flex-shrink: 0;
}
.araboo-countdown.is-running .araboo-countdown-display {
    color: #b45309;
}
.araboo-countdown.is-expired {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #fca5a5;
}
.araboo-countdown.is-expired .araboo-countdown-icon,
.araboo-countdown.is-expired .araboo-countdown-display {
    color: #b91c1c;
}
.araboo-countdown.is-expired .araboo-countdown-status {
    color: #b91c1c;
    font-weight: 600;
}
.araboo-countdown-btn {
    flex-shrink: 0;
}

/* ── Late-answer highlight (question card during activity) ── */
.araboo-answer-late {
    border-color: #f59e0b !important;
    border-left-color: #f59e0b !important;
    background: #fffbeb !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, .18);
}
.araboo-answer-late::before {
    content: "\23F1\FE0F  Late";
    display: inline-block;
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* ── Late-answer badge (results review) ── */
.araboo-late-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: help;
}
.araboo-result-late {
    box-shadow: inset 4px 0 0 0 #f59e0b;
}

/* ── Countdown timer ── */
.araboo-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Noto Sans Arabic', sans-serif;
    font-feature-settings: "tnum";
    font-size: 14px;
    font-weight: 700;
    background: #f3f4f6;
    color: #1d2327;
    min-width: 64px;
    letter-spacing: .02em;
    transition: background .2s, color .2s;
}
.araboo-timer--warn {
    background: #fffbeb;
    color: #92400e;
}
.araboo-timer--danger {
    background: #fef2f2;
    color: #991b1b;
    animation: araboo-timer-pulse 1s ease-in-out infinite;
}
@keyframes araboo-timer-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .7; }
}

/* ═══════════════════════════════════════════════
   STUDENT DASHBOARD — layout & components
═══════════════════════════════════════════════ */

/* ── Stats row ── */
.araboo-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.araboo-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.araboo-stat-value {
    font-size: 1.9em;
    font-weight: 700;
    line-height: 1.1;
    color: #1d2327;
    margin-bottom: 4px;
}
.araboo-stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 500;
}

/* ── Two-column layout ── */
.araboo-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    margin-bottom: 0;
    align-items: start;
}
.araboo-col-left,
.araboo-col-right {
    min-width: 0;
}

/* ── Resource grid ── */
.araboo-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.araboo-resource-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    font-size: 13px;
    transition: box-shadow .15s;
}
.araboo-resource-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

/* ── Streak dots ── */
.araboo-streak-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 2px solid #d1d5db;
    transition: background .2s, border-color .2s;
}
.araboo-streak-dot--active {
    background: #f59e0b;
    border-color: #d97706;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .araboo-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .araboo-two-col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
@media (max-width: 540px) {
    .araboo-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .araboo-resource-grid {
        grid-template-columns: 1fr 1fr;
    }
    .araboo-stat-value {
        font-size: 1.5em;
    }
}

/* ── Teacher dashboard — groups grid ── */
.araboo-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.araboo-group-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: box-shadow .15s;
}
.araboo-group-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

@media (max-width: 540px) {
    .araboo-groups-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Due-date badges (used on dashboard and teacher-groups) ── */
.araboo-due-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .02em;
    white-space: nowrap;
    line-height: 1.5;
}
.araboo-due-grey  { background: #f1f5f9; color: #475569; }
.araboo-due-amber { background: #fef3c7; color: #92400e; }
.araboo-due-red   { background: #fee2e2; color: #b91c1c; }

/* ── Upcoming deadlines strip (student dashboard) ── */
.araboo-deadlines-strip {
    padding: 18px 22px;
    margin-bottom: 16px;
}
.araboo-deadlines-title {
    margin: 0 0 12px;
    font-size: .95em;
    font-weight: 700;
    color: #1d2327;
}
.araboo-deadlines-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.araboo-deadline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #fafbfc;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    flex-wrap: wrap;
}
.araboo-deadline-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}
.araboo-deadline-title {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    line-height: 1.4;
}
.araboo-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ── My Results table (student dashboard) ──────────
   Hidden entirely when there are no attempts; sourced from
   GET /scores/me by dashboard.js's renderMyResults(). */
.araboo-results-card {
    /* Inherits .araboo-card padding; horizontal scroll guard
       so very narrow viewports don't crush the columns. */
    overflow: hidden;
}
.araboo-results-table-wrap {
    /* Theme stylesheets sometimes set table-layout:fixed on
       .wrap tables. Wrap in a scroll container so we keep
       full width on desktop and gracefully scroll on mobile. */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;       /* breathing room against the card edge */
}
.araboo-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #0f172a;
}
.araboo-results-table thead th {
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    white-space: nowrap;
}
.araboo-results-table tbody td {
    padding: 11px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    background: transparent !important;
}
.araboo-results-table tbody tr:last-child td {
    border-bottom: none;
}
.araboo-results-table tbody tr:hover td {
    background: #f8fafc !important;
}
.araboo-results-title {
    font-weight: 600;
    color: #0f172a !important;
    max-width: 360px;
}
.araboo-results-score {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.araboo-results-score-num {
    font-weight: 700;
    color: #0f172a;
}
.araboo-results-score-max {
    font-weight: 500;
    color: #94a3b8;
}
.araboo-results-score-pct {
    display: inline-block;
    margin-left: 8px;
    color: #64748b;
    font-size: 12px;
}
.araboo-results-date,
.araboo-results-time {
    color: #475569;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.araboo-results-time {
    text-align: right;
    font-weight: 600;
}
@media (max-width: 600px) {
    .araboo-results-table thead th,
    .araboo-results-table tbody td {
        padding: 8px 6px;
    }
    .araboo-results-score-pct { display: none; }   /* keep just raw/max on phones */
    .araboo-results-title { max-width: 180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}

/* Quill output (text/instruction/accordion content blocks) — alignment
   and list classes Quill writes into the saved HTML. The wrapper's
   text-align would otherwise win on the player, so these need !important
   to flip the writing direction per-paragraph. */
.araboo-arabic .ql-align-center,
.araboo-card    .ql-align-center { text-align: center !important; }
.araboo-arabic .ql-align-right,
.araboo-card    .ql-align-right  { text-align: right  !important; }
.araboo-arabic .ql-align-justify,
.araboo-card    .ql-align-justify{ text-align: justify !important; }
/* List rendering — Quill 2 emits <li data-list="ordered|bullet"> inside
   <ol> wrappers and relies on its own CSS counters.  Without that CSS
   the numbers either disappear or every <li> reads "1.".  We replicate
   the counter logic with a single counter scoped per text block, so
   numbering stays continuous even when Quill splits paragraphs into
   separate <ol> elements. */
.araboo-arabic, .araboo-card {
    counter-reset: araboo-ol-counter;
}
.araboo-arabic ul, .araboo-card ul { list-style: disc inside !important; padding-inline-start: 1.25em !important; margin: 0.4em 0 !important; }
.araboo-arabic ol, .araboo-card ol { list-style: decimal inside !important; padding-inline-start: 1.25em !important; margin: 0.4em 0 !important; }
.araboo-arabic ul li, .araboo-arabic ol li,
.araboo-card    ul li, .araboo-card    ol li { line-height: 1.6 !important; margin: 0.15em 0 !important; list-style: inherit !important; }

/* Quill data-list format — disable native marker, use CSS counter so
   numbering survives paragraph splits and mixed bullet/ordered runs. */
.araboo-arabic li[data-list],
.araboo-card    li[data-list] {
    list-style: none !important;
    padding-inline-start: 0 !important;
}
.araboo-arabic li[data-list="ordered"],
.araboo-card    li[data-list="ordered"] {
    counter-increment: araboo-ol-counter;
}
.araboo-arabic li[data-list="ordered"]::before,
.araboo-card    li[data-list="ordered"]::before {
    content: counter(araboo-ol-counter) ". ";
    margin-inline-end: 6px;
    font-weight: 500;
    color: inherit;
}
.araboo-arabic li[data-list="bullet"]::before,
.araboo-card    li[data-list="bullet"]::before {
    content: "•";
    margin-inline-end: 8px;
    font-weight: 700;
    color: inherit;
}
/* Strip the contenteditable=false placeholder Quill leaves in each
   list item for its own UI cursor — invisible but takes width on
   the player and shifts numbers off-axis. */
.araboo-arabic li[data-list] > .ql-ui,
.araboo-card    li[data-list] > .ql-ui {
    display: none !important;
}

/* Tables embedded in text blocks. Borders + padding ride on inline
   styles authored in the Resource Creator, but the host theme often
   sets table-layout:fixed or stripped borders, so the wrapper rules
   below restore predictable rendering for students. The arc-table-embed
   wrapper is a contentEditable=false DIV in the editor; on the player
   it's rendered as raw HTML inside .araboo-arabic. */
.araboo-arabic .arc-table-embed,
.araboo-card    .arc-table-embed { margin: 12px 0; overflow-x: auto; }
.araboo-arabic .arc-table-embed table,
.araboo-card    .arc-table-embed table {
    border-collapse: collapse !important;
    width: 100%;
    table-layout: auto !important;
}
.araboo-arabic .arc-table-embed[data-arc-borders="0"] td,
.araboo-arabic .arc-table-embed[data-arc-borders="0"] th,
.araboo-card    .arc-table-embed[data-arc-borders="0"] td,
.araboo-card    .arc-table-embed[data-arc-borders="0"] th {
    padding: 6px 8px !important;
}
.araboo-arabic .arc-table-embed[data-arc-stripe="1"] tbody > tr:nth-child(even) > td,
.araboo-arabic .arc-table-embed[data-arc-stripe="1"]         > tr:nth-child(even) > td,
.araboo-card    .arc-table-embed[data-arc-stripe="1"] tbody > tr:nth-child(even) > td,
.araboo-card    .arc-table-embed[data-arc-stripe="1"]         > tr:nth-child(even) > td {
    background: #f8fafc !important;
}
.araboo-arabic .arc-table-embed[data-arc-fullwidth="0"] table,
.araboo-card    .arc-table-embed[data-arc-fullwidth="0"] table {
    width: auto !important;
}
/* The inline "Edit" overlay is editor-only chrome; hide on the player. */
.araboo-arabic .arc-table-toolbar,
.araboo-card    .arc-table-toolbar { display: none !important; }

/* ─────────────────────────────────────────────────────────────
   Activity Player — redesigned student view (design handoff
   "Activity Player.html"). Cream-on-ink palette, sticky header
   combining title + progress + audio, tinted question cards with
   gradient header, Q01 chip, segmented options list, branded
   submit card.
   ───────────────────────────────────────────────────────────── */
/* When the player is mounted, kill any transform/filter/contain the host
   theme set on <body> — those create a containing block and demote
   position:fixed inside body to body-relative instead of viewport-relative. */
body.araboo-player-active {
    transform: none !important;
    filter: none !important;
    perspective: none !important;
    contain: none !important;
    will-change: auto !important;
}

/* Tokens — declared on :root and on .ap-sticky directly so they survive
   the JS reparent-to-body trick (when the sticky leaves .ap-page scope). */
:root, .ap-page, .ap-sticky {
    --ap-ink:        #14171C;
    --ap-ink2:       #3A3F4A;
    --ap-ink3:       #6B7280;
    --ap-ink4:       #9AA0AC;
    --ap-line:       #E5E1D7;
    --ap-line2:      #D6D1C2;
    --ap-cream:      #FAF6EE;
    --ap-cream2:     #F2EDE2;
    --ap-card:       #FFFFFF;
    --ap-accent:     #2266A8;
    --ap-accentSoft: #E7EFF8;
    --ap-accentDeep: #15406F;
    --ap-coral:      #D9543E;
    --ap-coralSoft:  #FBE9E4;
    --ap-ok:         #1F8A4C;
    --ap-okSoft:     #E2F2E8;
    --ap-warn:       #B8740F;
    --ap-warnSoft:   #FBEED4;
    --ap-danger:     #B23B2C;
}
.ap-page {
    min-height: 100vh;
    background: #F4F6F8;
    font-family: 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ap-ink);
    /* No top padding — the .ap-shell padding-top set by JS already
       accounts for the fixed sticky bar.  Was producing a doubled gap. */
    padding: 0 16px 80px;
}
.ap-shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
/* Pull questions further apart than the chrome (sticky/hero/submit). */
.ap-q + .ap-q { margin-top: 16px; }

/* Sticky header — title + counter + timer + progress + audio.
   We use `position: fixed` (not `sticky`) because Local-by-Flywheel /
   theme wrappers around the player tend to clip overflow or set
   `transform`/`contain` on parents, both of which kill `position:
   sticky`.  Fixed positioning is immune.  A spacer below restores the
   layout space the bar would have occupied. */
.ap-sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--ap-card);
    border: none;
    border-bottom: 1px solid var(--ap-line2);
    border-radius: 0;
    padding: 8px 16px 10px;
    box-shadow: 0 4px 16px -8px rgba(20,23,28,0.18);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* Inner cap so on wide screens the sticky content stays within reading
   width while the bar itself spans the full viewport. */
.ap-sticky-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* Reserve space for the fixed bar so the first content row isn't
   hidden behind it.  JS sets the precise value after measuring; this
   sensible default covers the audio + progress + title rows. */
.ap-shell { padding-top: 90px; }
.ap-shell.has-audio { padding-top: 130px; }
.ap-sticky-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 24px;
}
.ap-title {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--ap-ink);
    letter-spacing: -0.005em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ap-counter {
    font-size: 11px;
    font-weight: 600;
    color: var(--ap-ink3);
    font-feature-settings: "tnum";
    white-space: nowrap;
}
.ap-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ap-progress-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ap-ink3);
    flex-shrink: 0;
}
.ap-progress-pct {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-feature-settings: "tnum";
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ap-accent);
    flex-shrink: 0;
    min-width: 32px;
    text-align: right;
}
.ap-progress {
    flex: 1;
    height: 6px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
}
.ap-progress > div,
.ap-progress > .araboo-progress-bar {
    height: 100% !important;
    background: #2266A8 !important;
    border-radius: 4px;
    transition: width .25s ease;
    display: block;
}
.ap-timer {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-feature-settings: "tnum";
    font-size: 11px;
    font-weight: 700;
    color: var(--ap-ink);
    background: var(--ap-cream);
    border: 1px solid var(--ap-line2);
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}
.ap-timer--warn   { color: #7A4B05; background: var(--ap-warnSoft); border-color: #F1D896; }
.ap-timer--danger { color: #7A2419; background: #F7E1DD; border-color: #ECB7AE; }
.ap-sticky-audio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
    border-top: 1px solid var(--ap-line);
}
.ap-sticky-audio .ap-audio-icon {
    width: 28px; height: 28px; border-radius: 6px;
    background: #E7EFF8;
    color: #2266A8;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ap-sticky-audio .ap-audio-icon svg {
    width: 16px; height: 16px;
    display: block;
    color: inherit;
    stroke: currentColor;
}
.ap-sticky-audio .ap-audio-icon i {
    font-size: 14px;
    color: #2266A8;
    line-height: 1;
}
.ap-sticky-audio audio { flex: 1; height: 28px; }
.ap-plays {
    font-size: 10px;
    font-weight: 700;
    color: #7A4B05;
    background: var(--ap-warnSoft);
    border: 1px solid #F1D896;
    padding: 2px 7px;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.ap-plays--danger {
    color: #7A2419; background: #F7E1DD; border-color: #ECB7AE;
}

/* Hero — resource title at the top of the activity */
.ap-hero {
    text-align: center;
    padding: 4px 16px 6px;
}
.ap-hero-eyebrow {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
    color: var(--ap-ink3); text-transform: uppercase;
    margin-bottom: 8px;
}
.ap-hero-title {
    margin: 0;
    font-family: 'Noto Sans Arabic', -apple-system, sans-serif;
    font-size: 26px; font-weight: 700; letter-spacing: -0.01em;
    color: var(--ap-ink);
    line-height: 1.4;
    text-wrap: balance;
}
.ap-hero-title.is-rtl {
    direction: rtl;
    font-size: 28px;
}

/* Question card — tinted cyan accent surface */
.ap-q {
    background: #E8F4F7;
    border: 1.5px solid #A8C7CE;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-shadow: 0 1px 0 rgba(20,23,28,0.02), 0 4px 14px -10px rgba(20,23,28,0.12);
}
.ap-q.is-answered {
    border-color: #9BC9AC;
    box-shadow: 0 0 0 3px rgba(31,138,76,0.08);
}
.ap-q-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 18px 12px;
    border-bottom: 1px solid #B7D5DB;
    background: linear-gradient(180deg, #D6EBEF 0%, #E8F4F7 100%);
}
.ap-q-num {
    flex-shrink: 0;
    font-family: 'Noto Sans Arabic', sans-serif;
    font-feature-settings: "tnum";
    font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
    color: var(--ap-ink3); text-transform: uppercase;
    padding: 4px 8px;
    background: var(--ap-card);
    border: 1px solid var(--ap-line2);
    border-radius: 6px;
    display: flex; align-items: baseline; gap: 3px;
    line-height: 1;
}
.ap-q-num b {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-feature-settings: "tnum";
    font-size: 14px; font-weight: 700; color: var(--ap-ink);
    letter-spacing: -0.01em; line-height: 1;
}
.ap-q-body { flex: 1; min-width: 0; }
.ap-q-text {
    font-size: 17.5px; font-weight: 600; color: var(--ap-ink);
    line-height: 1.5; letter-spacing: -0.005em;
    margin: 0 0 8px;
}
.ap-q-meta {
    display: flex; flex-wrap: wrap; gap: 6px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.04em;
}
.ap-tag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 8px; border-radius: 999px;
    background: rgba(255,255,255,0.7);
    color: var(--ap-ink2);
    border: 1px solid #B7D5DB;
    font-weight: 600; font-size: 10.5px;
}
.ap-tag--mark { background: var(--ap-accentSoft); color: var(--ap-accentDeep); border-color: #BCD3EA; }
.ap-tag--type { text-transform: uppercase; font-size: 10px; letter-spacing: 0.08em; }

/* Instruction / hint blocks above the body content */
.ap-instruction {
    margin: 12px 18px 0;
    padding: 10px 14px;
    background: #FFFFFF;
    border: 1px solid #B7D5DB;
    border-left: 3px solid #2266A8;
    border-radius: 8px;
    font-size: 13px; color: var(--ap-ink2); font-weight: 500; line-height: 1.5;
}
/* Inline variant — sits inside .ap-q-body, above the question text. */
.ap-instruction--inline {
    margin: 0 0 10px;
    background: rgba(255,255,255,0.7);
}
.ap-hint {
    margin: 12px 18px 0;
    padding: 10px 14px;
    background: var(--ap-warnSoft);
    border: 1px solid #F1D896;
    border-radius: 8px;
    font-size: 13px; color: #7A4B05; font-weight: 500; line-height: 1.5;
    display: flex; align-items: flex-start; gap: 8px;
}

/* Body wrapper — sits on white below the tinted header */
.ap-q-content {
    background: var(--ap-card);
    padding: 16px 18px;
}

/* Options list — segmented row style */
.ap-opts {
    list-style: none !important;
    margin: 0;
    padding: 0;
    background: var(--ap-card);
}
.ap-opt {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 18px;
    border-top: 1px solid var(--ap-line);
    cursor: pointer;
    transition: background .15s ease;
    position: relative;
    margin: 0 !important;
    list-style: none !important;
}
.ap-opt::before, .ap-opt::marker { content: none !important; }
.ap-opt:first-child { border-top: none; }
.ap-opt:hover { background: #FBF8F1; }
.ap-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ap-opt-radio {
    width: 18px; height: 18px; border-radius: 50%;
    border: 1.5px solid var(--ap-line2);
    background: var(--ap-card);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s ease;
}
.ap-opt-radio::after {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--ap-accent);
    transform: scale(0);
    transition: transform .15s ease;
}
.ap-opt input:checked + .ap-opt-radio { border-color: var(--ap-accent); }
.ap-opt input:checked + .ap-opt-radio::after,
.ap-opt.is-checked .ap-opt-radio::after { transform: scale(1); }
.ap-opt.is-checked .ap-opt-radio { border-color: var(--ap-accent); }

/* Square checkbox indicator for multiple-choice questions */
.ap-opt-check {
    width: 18px; height: 18px; border-radius: 4px;
    border: 1.5px solid var(--ap-line2);
    background: var(--ap-card);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s ease;
    position: relative;
}
.ap-opt-check::after {
    content: '';
    width: 10px; height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0) translateY(-1px);
    transform-origin: center;
    transition: transform .15s ease;
    margin-top: -1px;
}
.ap-opt input:checked + .ap-opt-check,
.ap-opt.is-checked .ap-opt-check {
    background: var(--ap-accent);
    border-color: var(--ap-accent);
}
.ap-opt input:checked + .ap-opt-check::after,
.ap-opt.is-checked .ap-opt-check::after {
    transform: rotate(-45deg) scale(1) translateY(-1px);
}
.ap-opt-letter {
    width: 24px; height: 24px; border-radius: 6px;
    background: var(--ap-cream); color: var(--ap-ink2);
    border: 1px solid var(--ap-line);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Noto Sans Arabic', sans-serif;
    font-feature-settings: "tnum";
    font-size: 11px; font-weight: 700; flex-shrink: 0;
    transition: all .15s ease;
}
.ap-opt input:checked ~ .ap-opt-letter,
.ap-opt.is-checked .ap-opt-letter {
    background: var(--ap-accent); color: #fff; border-color: var(--ap-accent);
}
.ap-opt-text {
    flex: 1; font-size: 16px; color: var(--ap-ink);
    font-weight: 500; line-height: 1.45;
}
.ap-opt-text img {
    max-height: 120px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--ap-line);
    display: block;
    margin-bottom: 6px;
}
.ap-opt.is-checked { background: #F4F8FC; }
.ap-opt.is-checked .ap-opt-text { color: var(--ap-ink); font-weight: 600; }

/* RTL adjustments — base font is already Noto Sans Arabic for the
   whole player, so the .is-rtl block only bumps reading sizes.
   The --ap-ar-scale variable lets the student-side A− / A+ pill
   (see .ap-fs-toolbar) scale every Arabic surface in proportion
   from a single knob. 1 = the calibrated defaults below. */
:root { --ap-ar-scale: 1; }
.ap-q.is-rtl .ap-q-text   { font-size: calc(17px * var(--ap-ar-scale)); line-height: 1.6; }
.ap-q.is-rtl .ap-opt-text { font-size: calc(15px * var(--ap-ar-scale)); line-height: 1.6; }

/* ── Student-side A− / A+ font-size toolbar ──────────────────
   Floating pill on the player surface (top right of the question
   stack). Three sizes — Small / Medium / Large — set the
   --ap-ar-scale on :root which the rules above + .araboo-arabic
   pick up. Preference persists across lessons via localStorage. */
.ap-fs-toolbar {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    border: 1px solid var(--ap-line);
    border-radius: 999px;
    padding: 3px;
    margin: 8px 0 14px;
    font-family: 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 12px;
}
.ap-fs-toolbar-label {
    padding: 0 8px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 800;
}
.ap-fs-btn {
    appearance: none;
    background: transparent;
    border: 0;
    color: #475569;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    transition: background .12s, color .12s;
    line-height: 1;
}
.ap-fs-btn:hover { background: rgba(15,23,42,0.06); color: #0f172a; }
.ap-fs-btn.is-active {
    background: var(--ap-accent, #2271b1);
    color: #fff;
}
.ap-fs-btn[data-scale="0.85"] { font-size: 11px; }
.ap-fs-btn[data-scale="1"]    { font-size: 13px; }
.ap-fs-btn[data-scale="1.2"]  { font-size: 15px; }

/* Form controls inside any question card — themes routinely reassert
   font-family on <select>/<option>/<input>, so pin them all to Noto
   Sans Arabic. <option> doesn't always inherit from <select>, hence
   the explicit selector. */
.ap-q select,
.ap-q option,
.ap-q input,
.ap-q textarea {
    font-family: 'Noto Sans Arabic', sans-serif !important;
}

/* Submit card */
.ap-submit-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #FCFAF4 100%);
    border: 1px solid var(--ap-line2);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.ap-submit-status {
    font-size: 13px; color: var(--ap-ink3); font-weight: 500;
}
.ap-submit-status b { color: var(--ap-ink); font-weight: 700; }
.ap-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: 10px;
    background: var(--ap-accent); color: #fff;
    border: 1px solid var(--ap-accent);
    font-family: inherit; font-size: 14.5px; font-weight: 700;
    letter-spacing: -0.005em; cursor: pointer;
    box-shadow: 0 1px 2px rgba(20,23,28,0.04), 0 8px 18px -6px rgba(34,102,168,0.45);
    transition: filter .15s ease, transform .05s ease;
    min-width: 220px;
}
.ap-btn:hover  { filter: brightness(1.04); }
.ap-btn:active { transform: translateY(1px); }
.ap-btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ────────────────────────────────────────────────────────────
   One-at-a-time stepper
   Activated via resource meta araboo_question_display='one'.
   .ap-stepper-head sits above #araboo-questions, .ap-stepper-nav
   below; together they wrap the visible question card so the
   student always has Progress + Prev / Next within thumb reach.
   ──────────────────────────────────────────────────────────── */
.ap-stepper-head {
    margin: 4px 0 14px;
    padding: 14px 18px 12px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF6EC 100%);
    border: 1px solid var(--ap-line2);
    border-radius: 14px;
    box-shadow: 0 1px 0 rgba(20,23,28,0.02), 0 12px 22px -18px rgba(20,23,28,0.18);
}
.ap-stepper-head-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.ap-stepper-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px 6px 10px;
    background: var(--ap-accentSoft);
    color: var(--ap-accentDeep);
    border-radius: 999px;
    font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ap-stepper-pill svg { opacity: .8; }
.ap-stepper-pill b { font-weight: 800; letter-spacing: -0.005em; }
.ap-stepper-meta {
    font-size: 12px; color: var(--ap-ink3); font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.01em; text-transform: uppercase;
}
.ap-stepper-track {
    height: 6px; border-radius: 999px;
    background: #EFEAD9; overflow: hidden;
    position: relative;
}
.ap-stepper-fill {
    height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--ap-accent) 0%, #4F8FCF 100%);
    transition: width .35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 0 8px -2px rgba(34,102,168,0.55);
}

/* Nav row — Prev | dots | Next.  Dot row scrolls horizontally
   on narrow screens (long quizzes) so the chrome height stays
   stable.  Buttons share a unified outlined treatment; Next
   promotes to a filled accent button when it isn't the last
   question, so the primary forward action is always obvious. */
.ap-stepper-nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    margin: 18px 0 6px;
    padding: 12px 14px;
    background: #FFFFFF;
    border: 1px solid var(--ap-line2);
    border-radius: 14px;
    box-shadow: 0 1px 0 rgba(20,23,28,0.02), 0 14px 26px -22px rgba(20,23,28,0.22);
}
.ap-stepper-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: #FFFFFF;
    color: var(--ap-ink);
    border: 1px solid var(--ap-line2);
    border-radius: 999px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13.5px; font-weight: 700; letter-spacing: -0.005em;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease,
                box-shadow .15s ease, transform .05s ease;
}
.ap-stepper-btn:hover {
    background: #FAF6EC;
    border-color: #C9C2B1;
}
.ap-stepper-btn:active { transform: translateY(1px); }
.ap-stepper-btn[disabled] {
    opacity: .45; cursor: not-allowed; background: #F7F4EA;
    color: var(--ap-ink4);
}
.ap-stepper-btn[disabled]:hover { background: #F7F4EA; border-color: var(--ap-line2); }
.ap-stepper-btn.is-primary {
    background: var(--ap-accent);
    color: #FFFFFF;
    border-color: var(--ap-accent);
    box-shadow: 0 1px 2px rgba(20,23,28,0.04), 0 10px 20px -8px rgba(34,102,168,0.5);
}
.ap-stepper-btn.is-primary:hover {
    background: var(--ap-accentDeep);
    border-color: var(--ap-accentDeep);
}

.ap-stepper-dots {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    justify-content: center; flex: 1;
}
.ap-stepper-dot {
    appearance: none;
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
    background: #FFFFFF;
    color: var(--ap-ink3);
    border: 1px solid var(--ap-line2);
    border-radius: 999px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12.5px; font-weight: 700;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease,
                transform .12s ease, box-shadow .15s ease;
}
.ap-stepper-dot:hover {
    transform: translateY(-1px);
    border-color: #B7AF99;
    color: var(--ap-ink);
}
.ap-stepper-dot.is-answered {
    background: #E7F6EE;
    color: #166534;
    border-color: #B6DDC4;
}
.ap-stepper-dot.is-answered:hover {
    background: #D6EFE0;
    border-color: #8FCBA6;
}
.ap-stepper-dot.is-current {
    background: var(--ap-accent);
    color: #FFFFFF;
    border-color: var(--ap-accent);
    box-shadow: 0 0 0 4px rgba(34,102,168,0.18),
                0 8px 16px -6px rgba(34,102,168,0.5);
    transform: translateY(-1px);
}
.ap-stepper-dot.is-current.is-answered {
    background: #15803D;
    border-color: #15803D;
    color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(21,128,61,0.18),
                0 8px 16px -6px rgba(21,128,61,0.5);
}
.ap-stepper-dot.is-current svg,
.ap-stepper-dot.is-answered svg { stroke: currentColor; }

/* Narrow viewports — stack header pill above meta, and let the
   dot row scroll horizontally if it overflows.  Nav buttons keep
   their full label; the row wraps if it has to. */
@media (max-width: 560px) {
    .ap-stepper-head-row { flex-direction: column; align-items: flex-start; gap: 6px; }
    .ap-stepper-nav { gap: 10px; }
    .ap-stepper-dots {
        flex-wrap: nowrap; overflow-x: auto;
        scrollbar-width: thin; padding-bottom: 2px;
    }
    .ap-stepper-dots::-webkit-scrollbar { height: 4px; }
    .ap-stepper-dots::-webkit-scrollbar-thumb { background: #D6D1C2; border-radius: 999px; }
    .ap-stepper-btn { padding: 9px 14px; font-size: 13px; }
}


/* ─────────────────────────────────────────────────────────────────
   AVIA — Home tab redesign
   Soft warm palette, Nunito chrome, rounded cards, gentle shadows.
   Scoped under .ar-avia so the rest of the dashboard's chrome (tab
   strip, Practise/Library/Games tabs, modal surfaces) keeps the
   original Inter + tighter card vocabulary.
   ───────────────────────────────────────────────────────────────── */

.ar-avia {
    /* Soft, nature-inspired palette. Pre-token (2026-04): the layer
       carried its own private hex literals for everything. May 2026
       token retint: the two anchor accents — terracotta and navy —
       now reference the brand tokens (var(--accent-coral) +
       var(--teal-deep)) so a future palette change ripples here
       automatically. The sand / cream / sage / sky / gold values
       stay Avia-private — they're warmer / softer than the brand's
       sage-pale and don't have a 1:1 token equivalent. */
    --ava-sand:       #F7F4F0;
    --ava-cream:      #FFFDF9;
    --ava-terracotta: var(--accent-coral);    /* was #E07A5F */
    --ava-terra-soft: #FBE6DE;
    --ava-sage:       #81B29A;
    --ava-sage-soft:  #E4EFE7;
    --ava-navy:       var(--teal-deep);       /* was #3D405B */
    --ava-sky:        #A8DADC;
    --ava-sky-soft:   #E5F1F2;
    --ava-gold:       #F4A261;
    --ava-gold-soft:  #FCE6CC;
    --ava-line:       #EDE7DD;
    --ava-ink-soft:   #6B6D80;
    /* Shadow rgba updated to match the new --ava-navy (teal-deep
       #16363B = rgb(22,54,59)) so the soft drop matches the slab
       it falls from. */
    --ava-shadow:     0 4px 20px -2px rgba(22, 54, 59, 0.05);
    --ava-shadow-lg:  0 10px 25px -5px rgba(22, 54, 59, 0.10);

    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ava-navy);
    display: block;
    margin-top: 4px;
}
.ar-avia *, .ar-avia *::before, .ar-avia *::after { box-sizing: border-box; }

/* ── Hero band — deep-teal slab with greeting + medallion ──────── */
.ar-avia-hero {
    position: relative;
    /* Was `var(--ava-navy)` which since the C.5 token migration
       resolves to --teal-deep (#16363B). Against Funcare's
       `body h1 { color: var(--ink-deep) !important }` rule (also
       #16363B), the H1 "Hello," text vanished into the slab.
       Lighten to a visibly distinct teal so white text reads
       cleanly even when host-theme overrides land on it.
       Variable kept as a local override so the rest of the Avia
       layer's --ava-navy usages (body text, stat heads) stay at
       the canonical ink-deep tone. */
    background: #1F4D58;
    color: #ffffff;
    border-radius: 26px;
    padding: 36px 36px;
    overflow: hidden;
    box-shadow: var(--ava-shadow-lg);
    margin-bottom: 26px;
}
.ar-avia-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(36px);
    pointer-events: none;
}
.ar-avia-hero-glow-1 {
    top: -120px; right: -80px;
    width: 280px; height: 280px;
    background: rgba(255, 255, 255, 0.06);
}
.ar-avia-hero-glow-2 {
    bottom: -80px; left: 40px;
    width: 200px; height: 200px;
    background: rgba(168, 218, 220, 0.12);
}
.ar-avia-hero-inner {
    position: relative; z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
}
.ar-avia-hero-text { flex: 1 1 320px; min-width: 0; }
.ar-avia-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--ava-sky);
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 14px;
}
.ar-avia-hero-eyebrow i { font-size: 16px; }
.ar-avia-hero-title {
    margin: 0 0 18px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(34px, 4.6vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    /* `!important` to out-specify Funcare's `body h1 { color:
       var(--ink-deep) !important }` heading rule — without it the
       "Hello," text inherits ink-deep and disappears against the
       slab. */
    color: #ffffff !important;
}
.ar-avia-hero-emph { color: var(--ava-sky); }
.ar-avia-hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.ar-avia-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 13px; font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.ar-avia-pill i { font-size: 14px; }
.ar-avia-pill-ar {
    opacity: 0.7;
    font-size: 11px;
    font-weight: 500;
    margin-left: 2px;
}
.ar-avia-pill-accent {
    background: var(--ava-terracotta);
    border-color: var(--ava-terracotta);
    /* rgba matches the new --ava-terracotta (accent-coral #E97A4F = rgb(233,122,79)) */
    box-shadow: 0 4px 10px -2px rgba(233, 122, 79, 0.35);
}
/* Placement-level pill — shows CEFR band + a small "Retake" pillet
   on the right that wipes placement state and re-opens the modal. */
.ar-avia-pill-placement {
    background: rgba(168, 218, 220, 0.18);
    border-color: rgba(168, 218, 220, 0.45);
    padding-right: 4px;
    gap: 6px;
}
.ar-avia-pill-retake {
    appearance: none;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 999px;
    cursor: pointer;
    margin-left: 4px;
    transition: background .15s, border-color .15s;
}
.ar-avia-pill-retake:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.45);
}

/* Hero medal cluster — circle + sub-text on the right. */
.ar-avia-hero-medal {
    display: flex; flex-direction: column; align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
}
.ar-avia-hero-medal .ar-avia-medal-frame {
    width: 110px; height: 110px;
    margin-bottom: 14px;
}
.ar-avia-medal-frame {
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    filter: drop-shadow(0 8px 18px rgba(244, 162, 97, 0.25));
}
.ar-avia-medal-svg { width: 100%; height: 100%; display: block; }
.ar-avia-medal-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-avia-hero-sub-title {
    font-size: 16px; font-weight: 800;
    color: #ffffff;
}
.ar-avia-hero-sub-meta {
    color: rgba(168, 218, 220, 0.85);
    font-size: 13px; font-weight: 600;
    margin-top: 2px;
}

/* ── Stat tiles row ──────────────────────────────────────────── */
.ar-avia-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}
.ar-avia-stat {
    background: var(--ava-cream);
    border: 1px solid var(--ava-line);
    border-radius: 20px;
    padding: 20px 22px;
    display: flex; flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
    box-shadow: var(--ava-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.ar-avia-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--ava-shadow-lg);
}
.ar-avia-stat-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 14px;
    color: var(--ava-ink-soft);
}
.ar-avia-stat-head i { font-size: 22px; }
.ar-avia-stat-label {
    display: flex; flex-direction: column; gap: 2px;
    font-size: 12px; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.ar-avia-stat-label-ar {
    font-family: 'Cairo', 'Noto Sans Arabic', sans-serif;
    direction: rtl;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    opacity: 0.7;
}
.ar-avia-stat-value {
    font-size: 38px; font-weight: 800;
    line-height: 1;
    color: var(--ava-navy);
    letter-spacing: -0.02em;
}
.ar-avia-stat-unit {
    font-size: 16px; font-weight: 500;
    color: var(--ava-ink-soft);
    margin-left: 2px;
}
.ar-avia-stat-sub {
    font-size: 12.5px; font-weight: 600;
    color: var(--ava-ink-soft);
    margin-top: 6px;
}
/* Tinted stat variants — light wash, tinted icon + sub-text. */
.ar-avia-stat--sky        { background: var(--ava-sky-soft);   border-color: rgba(168, 218, 220, 0.45); }
.ar-avia-stat--sky .ar-avia-stat-head i  { color: #4F8C90; }
.ar-avia-stat--sky .ar-avia-stat-label   { color: #2B5A5D; }
.ar-avia-stat--gold       { background: var(--ava-gold-soft);  border-color: rgba(244, 162, 97, 0.35); }
.ar-avia-stat--gold .ar-avia-stat-head i { color: var(--ava-gold); }
.ar-avia-stat--gold .ar-avia-stat-label  { color: #92571B; }
.ar-avia-stat--gold .ar-avia-stat-sub    { color: var(--ava-gold); font-weight: 700; }
.ar-avia-stat--sage       { background: var(--ava-sage-soft);  border-color: rgba(129, 178, 154, 0.35); }
.ar-avia-stat--sage .ar-avia-stat-head i { color: var(--ava-sage); }
.ar-avia-stat--sage .ar-avia-stat-label  { color: #3F6F5A; }
.ar-avia-stat--terracotta { background: var(--ava-terra-soft); border-color: rgba(233, 122, 79, 0.30); }
.ar-avia-stat--terracotta .ar-avia-stat-head i { color: var(--ava-terracotta); }
.ar-avia-stat--terracotta .ar-avia-stat-label  { color: #8C4733; }

/* ── Section heading (eyebrow strip above each block) ──────────── */
.ar-avia-section-h {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 22px; font-weight: 800;
    color: var(--ava-navy);
    margin: 0 0 16px;
    letter-spacing: -0.005em;
}
.ar-avia-section-h i { font-size: 22px; }
.ar-avia-section-h--terracotta i { color: var(--ava-terracotta); }
.ar-avia-section-h--sage       i { color: var(--ava-sage); }
.ar-avia-section-ar {
    font-family: 'Cairo', 'Noto Sans Arabic', sans-serif;
    direction: rtl;
    font-size: 14px; font-weight: 600;
    color: var(--ava-ink-soft);
    margin-left: 2px;
}

/* ── 2-column body grid ─────────────────────────────────────── */
.ar-avia-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 26px;
    margin-bottom: 24px;
}
.ar-avia-col-main, .ar-avia-col-side {
    display: flex; flex-direction: column; gap: 18px;
}

/* ── Jump-back-in continue card ─────────────────────────────── */
.ar-avia-continue {
    display: flex; align-items: center; gap: 22px;
    padding: 22px 24px;
    background: var(--ava-cream);
    border: 1px solid var(--ava-line);
    border-radius: 24px;
    box-shadow: var(--ava-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform .18s, box-shadow .18s;
}
.ar-avia-continue:hover {
    transform: translateY(-2px);
    box-shadow: var(--ava-shadow-lg);
    color: inherit;
}
.ar-avia-continue-ring {
    position: relative;
    width: 92px; height: 92px;
    flex-shrink: 0;
}
.ar-avia-ring-svg { width: 100%; height: 100%; }
.ar-avia-ring-icon {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--ava-sage);
    font-size: 28px;
}
.ar-avia-continue-body { flex: 1; min-width: 0; }
.ar-avia-continue-eyebrow {
    font-size: 11.5px; font-weight: 800;
    color: var(--ava-ink-soft);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.ar-avia-continue-title {
    margin: 0 0 8px;
    font-size: 19px; font-weight: 800;
    color: var(--ava-navy);
    line-height: 1.25;
}
.ar-avia-continue-bar {
    background: var(--ava-sand);
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
    margin-bottom: 6px;
}
.ar-avia-continue-bar span {
    display: block;
    background: var(--ava-sage);
    height: 100%;
    border-radius: 999px;
    transition: width .8s ease;
}
.ar-avia-continue-meta {
    margin: 0;
    font-size: 12.5px; color: var(--ava-ink-soft);
    font-weight: 600;
}
.ar-avia-continue-cta {
    flex-shrink: 0;
    align-self: center;
    background: var(--ava-navy);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 22px;
    border-radius: 999px;
    display: inline-flex; align-items: center; gap: 6px;
    transition: background .15s;
}
.ar-avia-continue:hover .ar-avia-continue-cta { background: #2D3047; }
.ar-avia-continue--empty .ar-avia-continue-ring {
    background: var(--ava-sage-soft);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ava-sage); font-size: 34px;
}

/* ── Practice shortcut tiles ────────────────────────────────── */
.ar-avia-practice {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.ar-avia-tile {
    appearance: none;
    background: #ffffff;
    border: 1px solid var(--ava-line);
    border-radius: 18px;
    padding: 16px 18px;
    display: flex; align-items: center; gap: 14px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: var(--ava-navy);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ar-avia-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--ava-shadow-lg);
}
.ar-avia-tile-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.ar-avia-tile-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ar-avia-tile-title {
    font-size: 15px; font-weight: 800;
    color: var(--ava-navy);
}
.ar-avia-tile-sub {
    font-size: 12px; font-weight: 600;
    color: var(--ava-ink-soft);
}
.ar-avia-tile--sky    .ar-avia-tile-icon { background: var(--ava-sky-soft);   color: #2B5A5D; }
.ar-avia-tile--sky:hover                 { border-color: var(--ava-sky); }
.ar-avia-tile--terra  .ar-avia-tile-icon { background: var(--ava-terra-soft); color: var(--ava-terracotta); }
.ar-avia-tile--terra:hover               { border-color: var(--ava-terracotta); }

/* ── Right column "Today" panel ──────────────────────────────── */
.ar-avia-today {
    background: var(--ava-cream);
    border: 1px solid var(--ava-line);
    border-radius: 24px;
    padding: 22px 22px 18px;
    box-shadow: var(--ava-shadow);
}
.ar-avia-today-greet {
    display: flex; align-items: center; gap: 12px;
    background: var(--ava-sand);
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 18px;
}
.ar-avia-today-medal {
    width: 48px; height: 48px;
    background: #ffffff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(22, 54, 59, 0.08);
    flex-shrink: 0;
}
.ar-avia-today-medal .ar-avia-medal-frame { width: 32px; height: 32px; filter: none; }
.ar-avia-today-line1 { margin: 0; font-size: 13.5px; font-weight: 800; color: var(--ava-navy); }
.ar-avia-today-line2 { margin: 2px 0 0; font-size: 11.5px; color: var(--ava-ink-soft); font-weight: 600; }

.ar-avia-today-stats {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.ar-avia-today-stat {
    background: var(--ava-sand);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex; flex-direction: column; gap: 2px;
}
.ar-avia-today-stat-n {
    font-size: 24px; font-weight: 800;
    color: var(--ava-navy);
    line-height: 1;
}
.ar-avia-today-stat-l {
    font-size: 11px; font-weight: 700;
    color: var(--ava-ink-soft);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.ar-avia-today-sub {
    font-size: 11px; font-weight: 800;
    color: var(--ava-ink-soft);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.ar-avia-rewards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ar-avia-rewards-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px;
    background: var(--ava-sand);
    border-radius: 10px;
    font-size: 13px;
}
.ar-avia-rewards-icon { color: var(--ava-gold); font-size: 14px; }
.ar-avia-rewards-text { flex: 1; color: var(--ava-navy); font-weight: 600; }
.ar-avia-rewards-pts  { font-weight: 800; color: var(--ava-terracotta); }
.ar-avia-rewards-empty {
    margin: 0; font-size: 12.5px; color: var(--ava-ink-soft); font-weight: 600;
    background: var(--ava-sand);
    padding: 12px 14px;
    border-radius: 10px;
}

/* ── Responsive collapse ────────────────────────────────────── */
@media (max-width: 960px) {
    .ar-avia-stats { grid-template-columns: repeat(2, 1fr); }
    .ar-avia-grid  { grid-template-columns: 1fr; }
    .ar-avia-hero  { padding: 28px 24px; border-radius: 22px; }
    .ar-avia-hero-inner { align-items: flex-start; }
    .ar-avia-hero-medal { align-items: flex-start; text-align: left; }
}
@media (max-width: 560px) {
    .ar-avia-continue { flex-direction: column; align-items: flex-start; gap: 16px; }
    .ar-avia-continue-cta { align-self: stretch; justify-content: center; }
    .ar-avia-practice { grid-template-columns: 1fr; }
    .ar-avia-hero-title { font-size: 32px; }
    .ar-avia-stat-value { font-size: 30px; }
}

/* ── Arabic Dictionary FAB ─────────────────────────────────────
   Sliding pill anchored to the right edge, mid-height. Collapsed
   default shows only the icon column (~44px wide); on hover/focus
   the pill slides leftward to reveal the bilingual label. Below
   the WP admin bar (z-index < 99999), above page content. Theme
   bleed hardened — host themes love to repaint anchor chrome. */
.araboo-dict-fab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translate(calc(100% - 46px), -50%);
    display: flex !important;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 14px !important;
    background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 23px 0 0 23px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .22);
    text-decoration: none !important;
    font-family: 'Poppins', 'Cairo', system-ui, sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    white-space: nowrap;
    z-index: 9000;
    transition: transform .25s ease, box-shadow .2s ease;
}
.araboo-dict-fab:hover,
.araboo-dict-fab:focus,
.araboo-dict-fab:focus-visible {
    transform: translate(0, -50%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .32);
    color: #ffffff !important;
    text-decoration: none !important;
    outline: none;
}
.araboo-dict-fab i {
    font-size: 22px !important;
    flex: 0 0 auto;
    color: #ffffff !important;
    line-height: 1 !important;
}
.araboo-dict-fab-label {
    color: #ffffff !important;
    font-family: 'Poppins', 'Cairo', system-ui, sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 1 !important;
}
@media (max-width: 640px) {
    /* On narrow screens, collapse to a circular FAB bottom-right so
       it stays thumb-reachable. Touch devices lack :hover, so we
       drop the slide and keep the icon visible permanently. */
    .araboo-dict-fab {
        top: auto;
        right: 18px;
        bottom: 18px;
        transform: none;
        width: 52px;
        height: 52px;
        padding: 0 !important;
        border-radius: 50% !important;
        justify-content: center;
    }
    .araboo-dict-fab:hover,
    .araboo-dict-fab:focus,
    .araboo-dict-fab:focus-visible {
        transform: none;
    }
    .araboo-dict-fab-label { display: none !important; }
}

/* ── Bundled Islamic geometric patterns — defining motif ───────
   Two PNG assets ship under assets/images/:
   - pattern-tessellation.png : full Islamic 8-point interlace,
     for large decorative placements (hero corners, watermarks,
     empty-state backdrops, email headers).
   - pattern-medallion.png    : cleaner two-square 8-point star,
     for chrome / icon use (section heads, chips, list bullets,
     workspace header glyph).
   Both are white-on-transparent so the CSS mask pattern below
   recolours them via background-color (or currentColor). Set the
   colour, set width/height, done. PHP side: araboo_pattern_url()
   in includes/cpt/lesson-redirects.php returns the canonical
   URL and exposes a filter for host overrides. */
.araboo-pattern {
    display: inline-block;
    aspect-ratio: 1 / 1;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: contain;
            mask-size: contain;
    background: currentColor;
    vertical-align: middle;
    pointer-events: none;
}
.araboo-pattern--tessellation {
    -webkit-mask-image: url("../images/pattern-tessellation.png");
            mask-image: url("../images/pattern-tessellation.png");
}
.araboo-pattern--medallion {
    -webkit-mask-image: url("../images/pattern-medallion.png");
            mask-image: url("../images/pattern-medallion.png");
}
/* Halo wrapper — soft radial glow behind the pattern. Drives the
   "medallion on a halo" composition used by the workspace header,
   dashboard hero, and placement banner. Each placement tunes the
   palette via the --pattern-color + --halo-color custom props. */
.araboo-pattern-halo {
    --pattern-color: #1d3557;
    --halo-color:    rgba(244, 162, 97, 0.32);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}
.araboo-pattern-halo::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        var(--halo-color) 0%, transparent 65%);
    pointer-events: none;
}
.araboo-pattern-halo > .araboo-pattern {
    position: relative;
    z-index: 1;
    width: 70%;
    height: 70%;
    background: var(--pattern-color);
}
/* Watermark utility — large faint pattern as a decorative
   backdrop. Use on a positioning ancestor; place via positioning
   on the pseudo-element. Default colour is a soft ink mix that
   reads as a "ghosted" Islamic motif against a light surface. */
.araboo-pattern-watermark {
    position: relative;
    overflow: hidden;
}
.araboo-pattern-watermark::before {
    content: "";
    position: absolute;
    inset: var(--pattern-inset, auto -10% -10% auto);
    width: var(--pattern-size, 280px);
    height: var(--pattern-size, 280px);
    background: var(--pattern-color, rgba(28, 56, 116, 0.06));
    -webkit-mask-image: url("../images/pattern-tessellation.png");
            mask-image: url("../images/pattern-tessellation.png");
    -webkit-mask-size: contain;
            mask-size: contain;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    pointer-events: none;
}


/* ── School portal · Curriculum scope picker ──────────────────────
   `aw-cur-*` prefix escapes Funcare's catch-all <button> rule that
   would otherwise paint these sage. Self-contained so a fresh school
   portal carries the picker without extra enqueues. */
.aw-cur-scopecard select.aw-cur-scopesel {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 14px 0 4px !important;
    font: inherit !important;
    color: #0f172a !important;
    cursor: pointer !important;
    outline: none !important;
    min-width: 180px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path fill='%2364748b' d='M1 3l4 4 4-4z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 2px center !important;
}
.aw-cur-scopechip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    border-radius: 999px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
}
.aw-cur-scopechip:hover {
    border-color: #2271b1 !important;
    color: #2271b1 !important;
    background: #f8fafc !important;
}
.aw-cur-scopechip.is-active {
    background: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.25) !important;
}
.aw-cur-scopechip.is-active:hover {
    background: #1d6499 !important;
    color: #ffffff !important;
}
.aw-cur-scopepick {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    transition: all 0.15s ease;
}
.aw-cur-scopepick:hover {
    border-color: #94a3b8;
}
.aw-cur-scopepick.is-active {
    border-color: #2271b1;
    background: #eff6ff;
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.15);
}
.aw-cur-scopepick-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.aw-cur-scopepick.is-active .aw-cur-scopepick-label {
    color: #2271b1;
}
.aw-cur-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
    margin-left: 2px;
}
