/* =========================================================
   SmartNote English Hub — website styles
   Layout follows the Lovable prototype; colours and fonts
   follow the SmartNote brand guide. Change the theme here.
   ========================================================= */

:root {
    /* brand palette */
    --plum: #6B2D4F;
    --coral: #D9707F;
    --teal: #3F97A3;
    --soft-pink: #F4B3B6;
    --mint: #9ED8CF;
    --cream: #FBF4F1;
    --ink: #2B1B26;

    /* roles */
    --background: #FFFFFF;
    --page: var(--cream);
    --foreground: var(--ink);
    --card: #FFFFFF;
    --primary: var(--coral);
    --primary-text: #B8506A;            /* coral dark enough for small text */
    --primary-foreground: #FFFFFF;
    --secondary: var(--teal);
    --muted: #F6ECEE;
    --muted-foreground: #6E5C68;
    --border: #EBDDE2;
    --input: #EADBE1;

    --gradient-hero: linear-gradient(135deg, var(--coral), var(--teal));
    --gradient-bar: linear-gradient(135deg, #E39AAE, #6DB4BE);   /* page bars: soft coral → soft teal */
    --gradient-soft: linear-gradient(160deg, #FDEFF1, #E3F5F2);
    --hero-surface: linear-gradient(125deg, #F9EEF6, #E9F7F2 58%, #FFF4EF);

    --shadow-soft: 0 10px 30px -10px rgba(217, 112, 127, .35);
    --shadow-card: 0 12px 32px -18px rgba(65, 48, 94, .28);
    --shadow-card-strong: 0 20px 50px -24px rgba(60, 33, 97, .38);

    --radius: .625rem;
    --radius-xl: .875rem;
    --radius-2xl: 1rem;

    --font: "Poppins", "Cairo", system-ui, sans-serif; /* Poppins for English, Cairo for Arabic */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* hidden always wins over component display rules */
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--foreground);
    background: var(--page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.sn-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.sn-icon-xs { width: .875rem; height: .875rem; }
.sn-icon-lg { width: 1.5rem; height: 1.5rem; }

.sn-container {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}
.sn-visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- header ---------- */
.sn-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(235, 221, 226, .7);
    background: rgba(251, 244, 241, .9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
.sn-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}
.sn-header__logo img { height: 2.375rem; width: auto; }
.sn-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius);
    transition: background-color .2s;
}
.sn-icon-btn:hover { background: var(--muted); }

/* ---------- buttons ---------- */
.sn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 3rem;
    padding-inline: 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
    transition: transform .15s, background-color .2s, box-shadow .2s;
}
.sn-btn:active { transform: scale(.98); }
.sn-btn--primary {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-card);
}
.sn-btn--primary:hover { background: #CE6373; }

/* ---------- home hero ---------- */
.sn-hero {
    border-bottom: 1px solid var(--border);
    background: var(--hero-surface);
}
.sn-hero__grid {
    display: grid;
    align-items: center;
    min-height: 640px;
    padding-block: 1.5rem;
}
.sn-hero__text { order: 2; text-align: center; }
.sn-hero__art {
    order: 1;
    width: 100%;
    max-width: 180px;
    margin-inline: auto;
}
.sn-hero__art img { width: 100%; aspect-ratio: 1; object-fit: contain; }

.sn-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: .375rem .75rem;
    border: 1px solid rgba(217, 112, 127, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    color: var(--primary-text);
    font-size: .75rem;
    font-weight: 700;
}
.sn-hero__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.3;
}
.sn-hero__title .sn-icon { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.sn-hero__tagline {
    margin-top: .75rem;
    color: var(--primary-text);
    font-size: .875rem;
    font-weight: 700;
}
.sn-hero__desc {
    margin-top: .5rem;
    color: var(--muted-foreground);
    font-size: .875rem;
}
.sn-hero__actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: 1.5rem;
}
.sn-hero__points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted-foreground);
    font-size: .8125rem;
    font-weight: 600;
}

/* ---------- ask-the-teacher card (home) ---------- */
.sn-section { padding: 2rem 1rem; }
.sn-teacher-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 56rem;
    margin-inline: auto;
    padding: 1.5rem;
    border: 1px solid rgba(217, 112, 127, .22);
    border-radius: var(--radius);
    background: var(--gradient-soft);
    box-shadow: var(--shadow-card);
    text-align: start;
    transition: transform .3s, box-shadow .3s;
}
.sn-teacher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-strong); }
.sn-teacher-card__body { flex: 1; min-width: 0; }
.sn-teacher-card__title { display: block; font-size: 1.25rem; font-weight: 900; line-height: 1.4; }
.sn-teacher-card__text { display: block; margin-top: .25rem; color: var(--muted-foreground); font-size: .875rem; }
.sn-teacher-card .sn-icon { color: var(--primary); transition: transform .2s; }
.sn-teacher-card:hover .sn-icon { transform: translateX(-4px); }

.sn-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--gradient-hero);
    box-shadow: var(--shadow-soft);
    line-height: 1;
}
.sn-avatar--lg { width: 3.5rem; height: 3.5rem; font-size: 1.875rem; }
.sn-avatar--md { width: 2.5rem; height: 2.5rem; font-size: 1.25rem; }

/* ---------- floating ask-your-teacher button ---------- */
.sn-teacher-fab {
    position: fixed;
    bottom: 1.25rem;
    inset-inline-end: 1.25rem;    /* left in Arabic, right in English */
    z-index: 50;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem;
    border-radius: 999px;
    background: var(--gradient-hero);
    box-shadow: var(--shadow-soft);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    transition: transform .2s;
}
.sn-teacher-fab:hover { transform: translateY(-2px); }
.sn-teacher-fab:active { transform: scale(.95); }
.sn-teacher-fab__face {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: #fff;
    font-size: 1.125rem;
    line-height: 1;
}
.sn-teacher-fab__label { display: none; }

/* ---------- ask-your-teacher dialog ---------- */
.sn-dialog[hidden] { display: none; }
.sn-dialog {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: .75rem;
}
.sn-dialog__overlay {
    position: absolute;
    inset: 0;
    background: rgba(43, 27, 38, .6);
    animation: sn-fade .2s ease-out;
}
.sn-dialog__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 32rem;
    max-height: 90svh;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: var(--background);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
    animation: sn-zoom .2s ease-out;
}
.sn-dialog__head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--gradient-soft);
}
.sn-dialog__head h2 { font-size: 1.125rem; font-weight: 900; }
.sn-dialog__head p { color: var(--muted-foreground); font-size: .75rem; }
.sn-dialog__close {
    margin-inline-start: auto;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: .5rem;
    opacity: .7;
}
.sn-dialog__close:hover { opacity: 1; background: rgba(255, 255, 255, .6); }
.sn-dialog__body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.sn-dialog__hint { color: var(--muted-foreground); font-size: .875rem; }
.sn-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    margin-top: .75rem;
}
.sn-chip {
    padding: .625rem .75rem;
    border: 1px solid rgba(217, 112, 127, .22);
    border-radius: var(--radius-xl);
    background: var(--card);
    text-align: start;
    font-size: .75rem;
    font-weight: 700;
    transition: border-color .2s, background-color .2s;
}
.sn-chip:hover { border-color: var(--primary); background: var(--muted); }
.sn-dialog__reply {
    margin-top: 1rem;
    padding: .75rem 1rem;
    border-radius: var(--radius-xl);
    background: var(--muted);
    font-size: .875rem;
}
.sn-dialog__foot { padding: .75rem; border-top: 1px solid var(--border); background: var(--card); }
.sn-textarea {
    display: block;
    width: 100%;
    min-height: 60px;
    padding: .5rem .75rem;
    border: 1px solid var(--input);
    border-radius: var(--radius-xl);
    background: transparent;
    resize: none;
    font-size: 1rem;
}
.sn-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.sn-dialog__send {
    width: 100%;
    height: 2.25rem;
    margin-top: .5rem;
    border-radius: var(--radius-xl);
    background: var(--gradient-hero);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
}
.sn-dialog__send:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- footer ---------- */
.sn-footer {
    margin-top: 1rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    background: var(--background);
}
.sn-footer__grid { display: grid; gap: 2rem; }
.sn-footer__brand img { height: 2.5rem; width: auto; }
.sn-footer__brand p { margin-top: .75rem; max-width: 26rem; color: var(--muted-foreground); font-size: .875rem; }
.sn-footer__title { margin: 0 0 .75rem; font-size: .95rem; font-weight: 800; color: var(--plum); }
.sn-footer__links { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; font-size: .875rem; }
.sn-footer__links a, .sn-footer__links button { color: var(--muted-foreground); transition: color .2s; }
.sn-footer__links a:hover, .sn-footer__links button:hover { color: var(--primary-text); }
.sn-footer__bottom {
    margin-top: 2rem;
    padding: 1.25rem 1rem 5.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}
.sn-footer__motto { color: var(--primary-text); font-weight: 800; }
.sn-footer__rights { margin-top: .25rem; color: var(--muted-foreground); font-size: .8125rem; }
.sn-footer__rights strong { color: var(--plum); }
.sn-footer__credit { margin-top: .25rem; color: var(--muted-foreground); font-size: .75rem; }
.sn-footer__credit a { color: var(--primary-text); font-weight: 700; font-family: "Poppins", var(--font); }
.sn-footer__credit a:hover { text-decoration: underline; }
.sn-footer__contacts a { display: inline-flex; align-items: center; gap: .5rem; }
.sn-footer__socials { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.sn-footer__socials a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; border-radius: 999px;
    border: 1px solid var(--border); color: var(--plum); background: var(--card);
    transition: color .2s, border-color .2s, transform .2s;
}
.sn-footer__socials a:hover { color: var(--primary-text); border-color: var(--primary-text); transform: translateY(-2px); }
.sn-footer__socials .sn-icon { width: 1.05rem; height: 1.05rem; }
.sn-footer__legal { margin-top: .5rem; display: flex; justify-content: center; gap: .5rem; font-size: .8125rem; color: var(--muted-foreground); }
.sn-footer__legal a { color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 3px; }
.sn-footer__legal a:hover { color: var(--primary-text); }
.sn-auth__consent { margin: .75rem 0 0; text-align: center; font-size: .8125rem; color: var(--muted-foreground); }
.sn-auth__consent a { color: var(--primary-text); font-weight: 700; }

/* ---------- header: menu, actions, mobile drawer ---------- */
.sn-nav { display: none; }
.sn-nav__link {
    padding: .375rem .75rem;
    border-radius: 999px;
    color: var(--muted-foreground);
    font-size: .875rem;
    font-weight: 700;
    transition: color .2s, background-color .2s;
}
.sn-nav__link:hover { color: var(--foreground); background: var(--muted); }
.sn-nav__link.is-active { color: var(--primary-text); background: rgba(217, 112, 127, .12); }
.sn-header__actions { display: flex; align-items: center; gap: .25rem; }
.sn-header__auth { display: none; align-items: center; gap: .5rem; }
.sn-hello { color: var(--muted-foreground); font-size: .875rem; font-weight: 700; }

.sn-drawer[hidden] { display: none; }
.sn-drawer { position: fixed; inset: 0; z-index: 55; }
.sn-drawer__overlay { position: absolute; inset: 0; background: rgba(43, 27, 38, .5); animation: sn-fade .2s ease-out; }
.sn-drawer__panel {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: min(20rem, 86vw);
    padding: 1rem;
    background: var(--page);
    box-shadow: var(--shadow-card-strong);
    overflow-y: auto;
    animation: sn-slide-in .25s ease-out;
}
.sn-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.sn-drawer__head img { height: 2.25rem; width: auto; }
.sn-drawer__hello { font-weight: 800; }
.sn-drawer__nav { display: grid; gap: .25rem; }
.sn-drawer__nav a, .sn-drawer__nav button {
    padding: .75rem 1rem;
    border-radius: var(--radius);
    text-align: start;
    font-weight: 700;
}
.sn-drawer__nav a:hover, .sn-drawer__nav button:hover { background: var(--muted); }
.sn-drawer__nav a.is-active { color: var(--primary-text); background: rgba(217, 112, 127, .12); }
.sn-drawer__auth { display: grid; gap: .5rem; margin-top: auto; }
.sn-drawer__auth form, .sn-drawer__auth .sn-btn { width: 100%; }

/* ---------- more buttons ---------- */
.sn-btn--sm { height: 2.25rem; padding-inline: 1rem; font-size: .8125rem; }
.sn-btn--block { width: 100%; }
.sn-btn--ghost {
    border: 1px solid rgba(217, 112, 127, .35);
    background: rgba(255, 255, 255, .7);
    color: var(--primary-text);
}
.sn-btn--ghost:hover { background: #fff; border-color: var(--primary); }
.sn-btn--light { background: #fff; color: var(--plum); }
.sn-btn--light:hover { background: var(--cream); }
.sn-btn--outline-light { border: 1px solid rgba(255, 255, 255, .7); color: #fff; }
.sn-btn--outline-light:hover { background: rgba(255, 255, 255, .12); }

.sn-flash {
    margin: 1rem 0 0;
    padding: .75rem 1rem;
    border-radius: var(--radius);
    background: #E3F5F2;
    color: #1F5F57;
    font-weight: 700;
}

/* ---------- sections ---------- */
.sn-section--tint { background: var(--background); border-block: 1px solid var(--border); }
.sn-container--narrow { max-width: 48rem; }
.sn-heading { max-width: 40rem; margin: 0 auto 1.75rem; text-align: center; }
.sn-heading__kicker { color: var(--secondary); font-size: .8125rem; font-weight: 800; }
.sn-heading h2 { margin-top: .25rem; font-size: 1.5rem; font-weight: 900; line-height: 1.35; }
.sn-heading p:not(.sn-heading__kicker) { margin-top: .5rem; color: var(--muted-foreground); font-size: .9rem; }

/* grades */
.sn-grades { display: grid; gap: .875rem; max-width: 56rem; margin-inline: auto; }
.sn-grade {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    background: var(--card);
    box-shadow: var(--shadow-card);
}
.sn-grade.is-open { border: 2px solid var(--primary); transition: transform .2s, box-shadow .2s; }
.sn-grade.is-open:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-strong); }
.sn-grade.is-locked { background: #FCFAF7; color: var(--muted-foreground); }
.sn-grade__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: var(--radius-xl);
    background: #EFE7FB;
    color: var(--plum);
}
.sn-grade.is-locked .sn-grade__icon { background: #F5EDE6; color: #9C8A80; }
.sn-grade__body { display: grid; flex: 1; }
.sn-grade__name { font-size: 1.125rem; font-weight: 900; color: var(--foreground); }
.sn-grade.is-locked .sn-grade__name { color: var(--muted-foreground); }
.sn-grade__meta { color: var(--muted-foreground); font-size: .8125rem; }
.sn-chip-status {
    padding: .25rem .625rem;
    border-radius: 999px;
    background: rgba(217, 112, 127, .14);
    color: var(--primary-text);
    font-size: .6875rem;
    font-weight: 800;
    white-space: nowrap;
}

/* platform areas */
.sn-areas { display: grid; gap: .75rem; }
/* phones: icon beside the text; larger screens: stacked card */
.sn-area {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: .875rem;
    row-gap: .125rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    background: var(--page);
    text-align: start;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.sn-area:hover { transform: translateY(-3px); border-color: rgba(217, 112, 127, .45); box-shadow: var(--shadow-card); }
.sn-area__emoji {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: .25rem;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-card);
    font-size: 1.375rem;
    line-height: 1;
    grid-row: span 2;
}
.sn-area__title { font-size: 1.0625rem; font-weight: 900; }
.sn-area__text { color: var(--muted-foreground); font-size: .875rem; }
.sn-area--teacher { background: var(--gradient-soft); border-color: rgba(63, 151, 163, .3); }

/* steps */
.sn-steps { display: grid; gap: .875rem; max-width: 56rem; margin: 0 auto; padding: 0; list-style: none; }
.sn-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    border-radius: var(--radius-2xl);
    background: var(--card);
    box-shadow: var(--shadow-card);
}
.sn-step__num {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--gradient-hero);
    color: #fff;
    font-weight: 900;
}
.sn-step__title { font-weight: 800; }

/* platform tour */
.sn-tour {
    display: flex;
    gap: 1rem;
    padding: .5rem 1rem 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.sn-tour__item {
    flex: 0 0 auto;
    width: 13.5rem;
    margin: 0;
    scroll-snap-align: center;
}
.sn-tour__item img {
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-card-strong);
    background: var(--muted);
}
.sn-tour__item figcaption { display: grid; gap: .125rem; margin-top: .75rem; text-align: center; }
.sn-tour__item strong { font-weight: 900; font-size: .95rem; }
.sn-tour__item span { color: var(--muted-foreground); font-size: .8125rem; }

/* FAQ */
.sn-faq { display: grid; gap: .625rem; }
.sn-faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
}
.sn-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}
.sn-faq__item summary::-webkit-details-marker { display: none; }
.sn-faq__item summary .sn-icon { transition: transform .2s; color: var(--primary-text); }
.sn-faq__item[open] summary .sn-icon { transform: rotate(180deg); }
.sn-faq__item p { padding: 0 1.25rem 1.125rem; color: var(--muted-foreground); font-size: .9rem; }

/* closing call to action */
.sn-cta {
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, var(--plum), #8E3F68 55%, var(--coral));
    box-shadow: var(--shadow-card-strong);
    color: #fff;
    text-align: center;
}
.sn-cta h2 { font-size: 1.375rem; font-weight: 900; }
.sn-cta p { margin-top: .5rem; opacity: .9; }
.sn-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.25rem; }

/* ---------- student login / register ---------- */
.sn-auth {
    display: grid;
    place-items: center;
    min-height: calc(100svh - 4rem);
    padding: 2rem 1rem;
    background: var(--hero-surface);
}
.sn-auth__card {
    width: 100%;
    max-width: 28rem;
    padding: 1.75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--card);
    box-shadow: var(--shadow-card-strong);
}
.sn-auth__head { display: grid; justify-items: center; gap: .375rem; margin-bottom: 1.5rem; text-align: center; }
.sn-auth__head h1 { font-size: 1.5rem; font-weight: 900; }
.sn-auth__head p { color: var(--muted-foreground); font-size: .875rem; }
.sn-auth__switch { margin-top: 1.25rem; text-align: center; color: var(--muted-foreground); font-size: .875rem; }
.sn-auth__switch a { color: var(--primary-text); font-weight: 800; }

.sn-form { display: grid; gap: 1rem; }
.sn-form__row { display: grid; gap: 1rem; }
.sn-field { display: grid; gap: .375rem; }
.sn-field label { font-size: .875rem; font-weight: 700; }
.sn-field__optional { color: var(--muted-foreground); font-weight: 400; }
.sn-input {
    width: 100%;
    height: 2.875rem;
    padding: 0 .875rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background: #fff;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}
[dir="rtl"] .sn-input[dir="ltr"] { text-align: right; }
.sn-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(217, 112, 127, .18); }
.sn-input.is-invalid { border-color: #D64545; }
.sn-field__error { color: #C03838; font-size: .8125rem; }
.sn-check { display: flex; align-items: center; gap: .5rem; font-size: .875rem; cursor: pointer; }
.sn-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--primary); }

/* ---------- learning path pages (grades → terms → units) ---------- */
.sn-pagebar {
    background: var(--gradient-bar, linear-gradient(135deg, #E39AAE, #6DB4BE));
    color: #fff;
    padding: 1.5rem 1.25rem;
}
.sn-pagebar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 40rem;
    margin-inline: auto;
}
.sn-pagebar__back { display: inline-flex; align-items: center; gap: .25rem; font-size: .875rem; opacity: .95; }
.sn-pagebar__back:hover { opacity: 1; text-decoration: underline; }
.sn-pagebar__title { font-size: 1.125rem; font-weight: 800; }

.sn-path { max-width: 40rem; margin-inline: auto; padding: 1.5rem 1.25rem 3rem; }
.sn-path__heading { font-size: 1.25rem; font-weight: 900; }
.sn-path__sub { margin-top: .25rem; color: var(--muted-foreground); font-size: .875rem; }
.sn-path__crumb { margin-bottom: .75rem; color: var(--muted-foreground); font-size: .8125rem; font-weight: 700; }
.sn-empty {
    padding: 2rem 1rem;
    border: 1px dashed var(--border);
    border-radius: 1.5rem;
    background: var(--card);
    color: var(--muted-foreground);
    text-align: center;
    font-weight: 700;
}

.sn-flash--notice { background: #FCEFF1; color: var(--primary-text); }

/* grade cards */
.sn-path-grades { display: grid; gap: .75rem; margin-top: 1rem; }
.sn-pgrade {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--card);
}
.sn-pgrade.is-open { border: 2px solid rgba(217, 112, 127, .55); box-shadow: var(--shadow-soft); transition: transform .2s; }
.sn-pgrade.is-open:hover { transform: translateY(-2px); border-color: var(--primary); }
.sn-pgrade.is-locked { opacity: .7; }
.sn-pgrade__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: .75rem;
}
.sn-tint-0 .sn-pgrade__icon { background: #FCE6DC; color: #7A3E2B; }
.sn-tint-1 .sn-pgrade__icon { background: #DDF3EE; color: #1F5F57; }
.sn-tint-2 .sn-pgrade__icon { background: #EFE7FB; color: var(--plum); }
.sn-pgrade__body { display: grid; flex: 1; }
.sn-pgrade__name { font-weight: 800; }
.sn-pgrade__meta { color: var(--muted-foreground); font-size: .75rem; font-weight: 700; }

/* term cards */
.sn-terms { display: grid; gap: 1rem; }
.sn-term {
    display: grid;
    justify-items: center;
    gap: .25rem;
    padding: 1.5rem;
    border: 2px solid rgba(217, 112, 127, .3);
    border-radius: 1.5rem;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform .2s, border-color .2s;
}
.sn-term:not(.is-locked):hover { transform: translateY(-2px); border-color: var(--primary); }
.sn-term.is-locked { border-color: var(--border); box-shadow: none; opacity: .7; }
.sn-term__emoji { font-size: 2.25rem; line-height: 1.2; }
.sn-term__name { margin-top: .5rem; font-size: 1.125rem; font-weight: 900; }
.sn-term__range { display: inline-flex; align-items: center; gap: .25rem; color: var(--muted-foreground); font-size: .875rem; }

/* unit cards */
.sn-units { display: grid; gap: .75rem; }
.sn-unit {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    transition: transform .2s;
}
a.sn-unit:hover { transform: translateY(-2px); }
.sn-unit.is-locked { box-shadow: none; opacity: .7; }
.sn-unit__media {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}
.sn-unit__media--emoji {
    display: grid;
    place-items: center;
    background: var(--gradient-soft);
    font-size: 1.625rem;
    line-height: 1;
}
.sn-unit__body { display: grid; flex: 1; min-width: 0; text-align: right; }
.sn-unit__body bdi { text-align: right; }  /* English lines keep their own direction but line up with the Arabic */
.sn-unit__num { color: var(--muted-foreground); font-size: .75rem; }
.sn-unit__en, .sn-unit__ar { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-unit__en { font-family: "Poppins", var(--font); font-weight: 700; }
.sn-unit__ar { color: var(--muted-foreground); font-size: .75rem; }
.sn-unit__arrow { color: var(--muted-foreground); }
.sn-unit__soon { display: inline-flex; align-items: center; gap: .25rem; color: var(--muted-foreground); font-size: .75rem; font-weight: 700; }

/* ---------- unit page ---------- */
.sn-mt { margin-top: 1.75rem; margin-bottom: .75rem; }
.sn-unit-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1.5rem;
    background: var(--gradient-soft);
    border: 1px solid rgba(217, 112, 127, .2);
    box-shadow: var(--shadow-soft);
}
.sn-unit-hero__media {
    width: 5.5rem;
    height: 5.5rem;
    flex-shrink: 0;
    border-radius: 1.25rem;
    object-fit: cover;
    box-shadow: var(--shadow-card);
    font-size: 2.5rem;
}
.sn-unit-hero__body { min-width: 0; }
.sn-unit-hero__kicker { color: var(--primary-text); font-size: .8125rem; font-weight: 800; }
.sn-unit-hero__title { font-family: "Poppins", var(--font); font-size: 1.5rem; font-weight: 800; line-height: 1.25; }
.sn-unit-hero__desc { margin-top: .375rem; color: var(--muted-foreground); font-size: .875rem; }

.sn-lessons { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.sn-lesson {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    transition: transform .2s, border-color .2s;
}
a.sn-lesson:hover { transform: translateY(-2px); border-color: rgba(217, 112, 127, .5); }
.sn-lesson.is-locked { box-shadow: none; opacity: .7; }
.sn-lesson__step {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: .8125rem;
    font-weight: 800;
}
.sn-lesson__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: .875rem;
    background: var(--gradient-soft);
    font-size: 1.375rem;
    line-height: 1;
}
.sn-lesson__body { display: grid; flex: 1; min-width: 0; }
.sn-lesson__type { color: var(--secondary); font-size: .75rem; font-weight: 800; }
.sn-lesson__title { font-weight: 800; }
.sn-lesson__meta { color: var(--muted-foreground); font-size: .75rem; }

/* previous / next lesson */
.sn-lesson-nav { display: grid; gap: .5rem; margin-top: 2rem; }
.sn-lesson-nav__next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 1.25rem;
    background: var(--gradient-hero);
    color: #fff;
    box-shadow: var(--shadow-soft);
}
.sn-lesson-nav__next > span { display: grid; }
.sn-lesson-nav__kicker { font-size: .75rem; opacity: .9; }
.sn-lesson-nav__title { font-weight: 800; }
.sn-lesson-nav__prev { display: inline-flex; align-items: center; gap: .25rem; justify-self: start; color: var(--muted-foreground); font-size: .8125rem; }

/* ---------- vocabulary lesson ---------- */
.sn-hint {
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #FDEFF1, #E3F5F2);
    font-size: .875rem;
    text-align: center;
}
.sn-modes { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.sn-mode {
    height: 2.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    font-size: .875rem;
    font-weight: 700;
}
.sn-mode.is-active { border-color: transparent; background: var(--primary); color: #fff; box-shadow: var(--shadow-soft); }

.sn-groupbar {
    padding: .875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    scroll-margin-top: 5rem;
}
.sn-groupbar__top { display: flex; justify-content: space-between; font-size: .875rem; font-weight: 800; }
.sn-groupbar__count { color: var(--muted-foreground); font-size: .75rem; }
.sn-groupbar__segments { display: flex; gap: .25rem; margin-top: .5rem; }
.sn-groupbar__seg { flex: 1; height: .5rem; border-radius: 999px; background: rgba(217, 112, 127, .25); }
.sn-groupbar__seg.is-seen { background: rgba(217, 112, 127, .55); }
.sn-groupbar__seg.is-current { background: var(--primary); }
.sn-groupbar__stats { margin-top: .5rem; color: var(--muted-foreground); font-size: .75rem; }
.sn-group-title { margin: 1.25rem 0 .75rem; font-size: 1.125rem; font-weight: 900; }

.sn-words { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.sn-word {
    padding: .75rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--card);
    box-shadow: var(--shadow-soft);
}
.sn-word__top { display: flex; gap: .75rem; }
.sn-word__img {
    width: 6rem;
    height: 6rem;
    flex-shrink: 0;
    border-radius: .875rem;
    object-fit: cover;
    background: var(--muted);
}
.sn-word__img--letter {
    display: grid;
    place-items: center;
    background: var(--gradient-hero);
    color: #fff;
    font-family: "Poppins", var(--font);
    font-size: 2rem;
    font-weight: 800;
}
.sn-word__main { flex: 1; min-width: 0; }
.sn-word__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.sn-word__en { font-family: "Poppins", var(--font); font-size: 1.125rem; font-weight: 800; text-align: right; }
.sn-word__num { margin-inline-end: .25rem; color: var(--muted-foreground); font-size: .75rem; font-weight: 600; }
.sn-word__ar { color: var(--primary-text); font-size: .9rem; font-weight: 800; }
.sn-word__opp { margin-top: .125rem; color: var(--muted-foreground); font-size: .75rem; }
.sn-word__example { margin-top: .5rem; padding: .5rem .625rem; border-radius: .75rem; background: rgba(246, 236, 238, .6); font-size: .875rem; }
.sn-word__exrow { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.sn-word__exrow p { text-align: left; flex: 1; }
.sn-word__extr { color: var(--muted-foreground); }

.sn-speak {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 999px;
    color: var(--primary-text);
    transition: background-color .2s, transform .2s;
}
.sn-speak:hover { background: var(--muted); }
.sn-speak--sm { width: 1.75rem; height: 1.75rem; }
.sn-speak.is-playing { background: rgba(217, 112, 127, .18); transform: scale(1.1); }

.sn-challenge {
    display: grid;
    justify-items: center;
    gap: .25rem;
    margin-top: 1.25rem;
    padding: 1.25rem;
    border-radius: 1.5rem;
    background: var(--gradient-hero);
    box-shadow: var(--shadow-soft);
    color: #fff;
    text-align: center;
}
.sn-challenge__icon { font-size: 1.5rem; line-height: 1; }
.sn-challenge h3 { font-size: 1.125rem; font-weight: 900; }
.sn-challenge p { font-size: .875rem; opacity: .9; }
.sn-challenge .sn-btn { margin-top: .5rem; border-radius: 999px; }
.sn-groupnav { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1rem; }
.sn-groupnav .sn-btn:disabled { opacity: .45; cursor: not-allowed; }

.sn-quiz {
    margin-top: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    text-align: center;
    scroll-margin-top: 5rem;
}
.sn-quiz__count { color: var(--secondary); font-size: .8125rem; font-weight: 800; }
.sn-quiz__hint { margin-top: .25rem; color: var(--muted-foreground); font-size: .8125rem; }
.sn-quiz__q { margin: .75rem 0 1rem; font-family: "Poppins", var(--font); font-size: 1.125rem; }
.sn-quiz__options { display: grid; gap: .5rem; }
.sn-quiz__opt {
    min-height: 2.875rem;
    padding: .5rem 1rem;
    border: 1px solid var(--border);
    border-radius: .875rem;
    background: #fff;
    font-weight: 700;
    transition: border-color .2s, background-color .2s;
}
.sn-quiz__opt:not(:disabled):hover { border-color: var(--primary); background: var(--muted); }
.sn-quiz__opt.is-correct { border-color: #2E9E7A; background: #E3F5F2; color: #1F5F57; }
.sn-quiz__opt.is-wrong { border-color: #D64545; background: #FDECEC; color: #A33232; }
.sn-quiz__feedback { min-height: 1.5rem; margin-top: .75rem; font-weight: 800; }
.sn-quiz__feedback.is-correct { color: #1F7A5E; }
.sn-quiz__feedback.is-wrong { color: #B83A3A; }
.sn-quiz__next { margin-top: .5rem; }
.sn-quiz__score { font-family: "Poppins", var(--font); font-size: 2.5rem; font-weight: 800; color: var(--primary-text); }
.sn-quiz__msg { margin-top: .25rem; font-weight: 700; }
.sn-quiz__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1rem; }

.sn-toast {
    position: fixed;
    bottom: 5.5rem;
    left: 50%;
    z-index: 70;
    max-width: calc(100% - 2rem);
    padding: .625rem 1rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity .2s, transform .2s;
}
.sn-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- grammar lesson ---------- */
.g-s { color: #0465AF; font-weight: 800; }   /* subject */
.g-a { color: #C13C3B; font-weight: 800; }   /* auxiliary */
.g-v { color: #007E46; font-weight: 800; }   /* verb */
.g-x { color: #D13D91; font-weight: 900; }   /* suffix */
.g-o { color: #007A75; font-weight: 800; }   /* object */
.g-n { color: #C13C3B; font-weight: 800; text-decoration: underline; }  /* negative */

.sn-grammar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.sn-gcard__body > *, .sn-gloose > * { min-width: 0; }
.sn-grammar > .sn-lesson-nav { margin-top: .75rem; }
.sn-toc { padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 1.25rem; background: var(--card); }
.sn-toc__title { margin-bottom: .5rem; color: var(--secondary); font-size: .8125rem; font-weight: 800; }
.sn-toc ol { display: grid; gap: .375rem; margin: 0; padding-inline-start: 1.25rem; font-size: .875rem; font-weight: 700; }
.sn-toc a:hover { color: var(--primary-text); text-decoration: underline; }

.sn-gloose { display: grid; gap: 1rem; }
.sn-gcard {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    scroll-margin-top: 5rem;
}
.sn-gcard__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: .875rem; padding: 1rem; }

.sn-gtitle { padding: 1rem 1.25rem; background: var(--primary); color: #fff; }
.sn-gtitle__kicker { font-size: .625rem; font-weight: 800; letter-spacing: .06em; opacity: .9; }
.sn-gtitle h2 { font-size: 1.25rem; font-weight: 900; line-height: 1.35; }
.sn-gtitle__sub { font-size: .8125rem; font-weight: 600; opacity: .95; }
.sn-gtitle--rule { padding: 1rem 1rem 0; background: none; color: var(--foreground); }
.sn-gtitle--rule h2 { font-size: 1.0625rem; }
.sn-gtitle--rule p { color: var(--muted-foreground); font-size: .75rem; font-weight: 700; }

.sn-gsummary { padding: 1rem 1.25rem; background: var(--hero-surface); border-bottom: 1px solid var(--border); }
.sn-gsummary__kicker { color: var(--primary-text); font-size: .625rem; font-weight: 900; letter-spacing: .06em; }
.sn-gsummary h3 { font-family: "Poppins", var(--font); font-size: 1.25rem; font-weight: 800; text-align: left; }
.sn-gsummary p:last-child { color: var(--muted-foreground); font-size: .75rem; font-weight: 700; }

.sn-glossary { border: 1px solid var(--border); border-radius: 1.25rem; background: var(--card); }
.sn-glossary summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.25rem; cursor: pointer; font-weight: 800; list-style: none;
}
.sn-glossary summary::-webkit-details-marker { display: none; }
.sn-glossary[open] summary .sn-icon { transform: rotate(180deg); }
.sn-glossary dl { display: grid; gap: .375rem; margin: 0; padding: 0 1.25rem 1rem; }
.sn-glossary dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .375rem .625rem; border-radius: .625rem; background: var(--muted); font-size: .875rem; }
.sn-glossary dt { font-family: "Poppins", var(--font); font-weight: 700; }
.sn-glossary dd { margin: 0; color: var(--muted-foreground); }

.sn-note { padding: .875rem 1rem; border-radius: 1rem; background: var(--muted); }
.sn-note__label { margin-bottom: .25rem; color: var(--muted-foreground); font-size: .6875rem; font-weight: 900; }
.sn-note__body { display: flex; gap: .5rem; }
.sn-note__emoji { font-size: 1.125rem; line-height: 1.5; }
.sn-note__en { font-weight: 700; text-align: left; }
.sn-note__ar { font-size: .875rem; }
.sn-note--use { background: linear-gradient(135deg, #FDEFF1, #F4F0FB); }
.sn-note--key { border: 2px solid #F2C14E; background: #FFF6DB; }
.sn-note--key .sn-note__label { color: #7A5A00; }
.sn-note--key .sn-note__ar { font-weight: 700; }
.sn-note--tip { background: #FFF6DB; }
.sn-note--memory { border: 2px dashed rgba(63, 151, 163, .45); background: #EAF6F7; }
.sn-note--timeline { border: 1px solid var(--border); background: var(--card); text-align: center; }
.sn-note--timeline .sn-note__body { justify-content: center; }
.sn-note--timeline .sn-note__en { text-align: center; }

.sn-timeline { margin: .5rem 0; }
.sn-timeline__labels { display: grid; grid-template-columns: repeat(3, 1fr); font-size: .6875rem; font-weight: 900; color: var(--muted-foreground); }
.sn-timeline__labels .is-now { color: var(--primary-text); }
.sn-timeline__track { position: relative; height: .5rem; margin-top: .375rem; border-radius: 999px; background: var(--muted); }
.sn-timeline__track i { position: absolute; top: 50%; width: .875rem; height: .875rem; border: 2px solid #fff; border-radius: 999px; background: var(--primary); transform: translate(-50%, -50%); }

.sn-formula { padding: 1rem; border: 2px dashed rgba(217, 112, 127, .3); border-radius: 1rem; background: var(--gradient-soft); }
.sn-formula--visual { background: rgba(217, 112, 127, .05); }
.sn-formula__title { margin-bottom: .5rem; color: var(--primary-text); font-size: .6875rem; font-weight: 900; text-align: center; }
.sn-formula__parts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .375rem; }
.sn-formula__join { color: var(--muted-foreground); font-size: 1.125rem; font-weight: 900; }
.sn-formula__example { margin-top: .5rem; color: var(--muted-foreground); font-size: .8125rem; font-weight: 600; text-align: center; }
.sn-chip-g { padding: .3rem .625rem; border: 2px solid transparent; border-radius: .75rem; font-weight: 900; font-size: .95rem; }
.sn-chip-g--primary { background: rgba(217, 112, 127, .12); border-color: rgba(217, 112, 127, .3); color: var(--primary-text); }
.sn-chip-g--v1 { background: #CFF7DB; border-color: rgba(0, 136, 75, .3); color: #00884B; }
.sn-chip-g--accent { background: #FFF1C9; border-color: #F2C14E; color: #5C4300; }
.sn-chip-g--v2 { background: #D7EFFF; border-color: rgba(0, 119, 189, .3); color: #0077BD; }
.sn-chip-g--muted { background: var(--muted); color: var(--foreground); }
.sn-chip-g--success { background: #E3F5F2; color: #1F7A5E; }
.sn-formula--visual .sn-chip-g { border: 0; }

.sn-forms { display: grid; gap: .5rem; }
.sn-form-box { padding: .75rem .875rem; border: 2px solid; border-radius: 1rem; }
.sn-form-box__label { font-size: .6875rem; font-weight: 900; }
.sn-form-box__text { font-weight: 700; text-align: left; }
.sn-form-box__ar { color: var(--muted-foreground); font-size: .8125rem; }
.sn-form-box--positive { border-color: rgba(0, 136, 75, .3); background: rgba(207, 247, 219, .6); }
.sn-form-box--negative { border-color: rgba(214, 69, 69, .25); background: rgba(214, 69, 69, .05); }
.sn-form-box--question { border-color: rgba(0, 119, 189, .3); background: rgba(215, 239, 255, .6); }

.sn-verbkey { padding: .875rem 1rem; border: 1px solid var(--border); border-radius: 1rem; background: rgba(246, 236, 238, .45); }
.sn-verbkey__title { margin-bottom: .5rem; color: var(--muted-foreground); font-size: .6875rem; font-weight: 900; }
.sn-verbkey__items { display: grid; gap: .5rem; }
.sn-verbkey__item { display: flex; align-items: center; gap: .625rem; padding: .5rem .625rem; border-radius: .75rem; background: var(--card); }
.sn-verbkey__badge { padding: .25rem .5rem; border: 1px solid rgba(0, 136, 75, .3); border-radius: .5rem; background: #CFF7DB; color: #00884B; font-family: "Poppins", var(--font); font-size: .75rem; font-weight: 800; }
.sn-verbkey__en { font-size: .75rem; font-weight: 700; text-align: left; }
.sn-verbkey__ar { color: var(--muted-foreground); font-size: .6875rem; }
.sn-verbkey__ex { color: var(--muted-foreground); font-size: .75rem; font-weight: 600; text-align: left; }

.sn-examples { display: grid; gap: .5rem; }
.sn-examples__title { font-weight: 900; }
.sn-examples__sub { display: block; color: var(--muted-foreground); font-size: .8125rem; font-weight: 600; }
.sn-example { padding: .625rem .75rem; border-radius: .875rem; background: rgba(246, 236, 238, .6); }
.sn-example__en { display: flex; align-items: center; gap: .375rem; font-weight: 600; text-align: left; }
.sn-example__en .sn-speak { margin-inline-start: auto; }
.sn-example__label { color: var(--secondary); font-weight: 900; }
.sn-example__ar { color: var(--muted-foreground); font-size: .8125rem; }

.sn-gtable__scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 1rem; }
.sn-gtable table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.sn-gtable th, .sn-gtable td { padding: .5rem .625rem; border-bottom: 1px solid var(--border); text-align: start; white-space: nowrap; }
.sn-gtable th { background: var(--muted); font-weight: 800; }
.sn-gtable tr:last-child td { border-bottom: 0; }

.sn-scale__intro { font-weight: 800; }
.sn-scale__note { margin: .25rem 0 .5rem; color: var(--muted-foreground); font-size: .75rem; }
.sn-scale__items { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.sn-scale__items li { display: flex; align-items: center; gap: .625rem; }
.sn-scale__value { width: 3rem; flex-shrink: 0; font-family: "Poppins", var(--font); font-weight: 800; color: var(--primary-text); text-align: center; }
.sn-scale__text { display: grid; flex: 1; min-width: 0; }
.sn-scale__en { font-weight: 700; text-align: left; font-size: .875rem; }
.sn-scale__ar { color: var(--muted-foreground); font-size: .75rem; }
.sn-scale__bar { height: .375rem; margin-top: .25rem; border-radius: 999px; background: var(--muted); overflow: hidden; }
.sn-scale__bar i { display: block; height: 100%; border-radius: inherit; background: var(--gradient-hero); }

.sn-glist ul { display: grid; gap: .375rem; margin: .5rem 0 0; padding-inline-start: 1.25rem; font-size: .875rem; }
.sn-glist__sub { color: var(--muted-foreground); font-size: .8125rem; }

.sn-compare__grid { display: grid; gap: .5rem; margin-top: .5rem; }
.sn-compare__col { padding: .875rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--gradient-soft); }
.sn-compare__badge { font-family: "Poppins", var(--font); font-size: 1.125rem; font-weight: 900; color: var(--primary-text); }
.sn-compare__title { font-weight: 800; }
.sn-compare__line { font-size: .875rem; }
.sn-compare__examples { margin: .375rem 0 0; padding-left: 1.125rem; font-size: .8125rem; color: var(--muted-foreground); text-align: left; }
.sn-compare__grid--4 { grid-template-columns: 1fr 1fr; }
.sn-compare__grid--4 .sn-compare__col { text-align: center; }

.sn-mistake { padding: .875rem 1rem; border: 2px solid rgba(214, 69, 69, .2); border-radius: 1rem; background: #FFF7F7; }
.sn-mistake__title { color: #B83A3A; font-weight: 900; }
.sn-mistake__wrong { color: #A33232; text-align: left; margin-top: .25rem; }
.sn-mistake__right { color: #1F7A5E; font-weight: 700; text-align: left; }
.sn-mistake__remember { margin-top: .5rem; padding: .5rem .625rem; border-radius: .75rem; background: #FFF6DB; font-size: .8125rem; }

.sn-qc { padding: 1rem; border: 1px solid var(--border); border-radius: 1rem; background: #FFFDFC; }
.sn-qc__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.sn-qc__title { font-size: .875rem; font-weight: 900; }
.sn-qc__count { color: var(--muted-foreground); font-size: .75rem; }
.sn-qc__text { margin-bottom: .75rem; font-weight: 800; text-align: left; }
.sn-qc__options { display: grid; gap: .5rem; }
.sn-qc__opt {
    min-height: 2.75rem;
    padding: .5rem 1rem;
    border: 1px solid var(--input);
    border-radius: .75rem;
    background: #fff;
    text-align: left;
    font-weight: 700;
}
.sn-qc__opt:not(:disabled):hover { border-color: var(--primary); background: var(--muted); }
.sn-qc__opt.is-correct { border-color: #2E9E7A; background: #E3F5F2; color: #1F5F57; }
.sn-qc__opt.is-wrong { border-color: #D64545; background: #FDECEC; color: #A33232; }
.sn-qc__feedback { margin-top: .75rem; padding: .75rem; border-radius: .75rem; background: #FDECEC; font-size: .8125rem; }
.sn-qc__feedback.is-correct { background: #E3F5F2; }
.sn-qc__verdict { font-weight: 900; }
.sn-qc__explain { margin-top: .25rem; color: var(--muted-foreground); text-align: left; }
.sn-qc__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }

/* writing topics */
.sn-writing-head { padding: .25rem 0; }
.sn-writing-head h2 { font-size: 1.25rem; font-weight: 900; }
.sn-writing-head p { color: var(--muted-foreground); font-size: .875rem; }
.sn-wtopic {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    background: var(--card);
    box-shadow: var(--shadow-soft);
}
.sn-wtopic__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.sn-tag { padding: .25rem .75rem; border-radius: 999px; background: rgba(217, 112, 127, .12); color: var(--primary-text); font-size: .6875rem; font-weight: 800; }
.sn-tag--alt { background: rgba(63, 151, 163, .14); color: #2C6F78; }
.sn-wtopic__title { font-size: 1.125rem; font-weight: 900; }
.sn-wtopic__en { margin-top: -.75rem; color: var(--muted-foreground); font-size: .875rem; font-weight: 600; text-align: left; }
.sn-wtopic__model { padding: 1rem; border-radius: 1rem; background: var(--muted); }
.sn-wtopic__modelhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.sn-wtopic__modelhead span { color: var(--primary-text); font-size: .75rem; font-weight: 800; }
.sn-listen {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .75rem;
    background: var(--secondary);
    color: #fff;
    transition: transform .2s;
}
.sn-listen:hover { transform: scale(1.05); }
.sn-listen.is-playing { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(63, 151, 163, .25); }
.sn-wtopic__text { display: grid; gap: .5rem; text-align: left; line-height: 2; font-size: .95rem; }
.sn-wtopic__toggle { display: inline-flex; align-items: center; gap: .375rem; margin-top: .5rem; padding: .25rem .5rem; border-radius: .5rem; color: var(--primary-text); font-size: .8125rem; font-weight: 700; }
.sn-wtopic__toggle:hover { background: rgba(255, 255, 255, .6); }
.sn-wtopic__translation { margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed var(--border); line-height: 1.9; font-size: .9rem; }
.sn-wtopic__note { padding: .75rem 1rem; border-radius: 1rem; background: rgba(217, 112, 127, .06); font-size: .8125rem; }
.sn-wtopic__practice { display: grid; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.sn-wtopic__practice h4 { font-weight: 900; }
.sn-wtopic__prompt { font-size: .9rem; }
.sn-wtopic__rules { color: var(--muted-foreground); font-size: .75rem; font-weight: 700; }
.sn-wtopic__input { min-height: 9rem; text-align: left; line-height: 1.8; }
.sn-wtopic__meter { color: var(--muted-foreground); font-size: .8125rem; }
.sn-wtopic__meter b { color: var(--foreground); }
.sn-wtopic__range { margin-inline-start: .25rem; }
.sn-wtopic__checks { display: grid; gap: .375rem; margin: 0; padding: .75rem; border-radius: .875rem; background: var(--muted); list-style: none; font-size: .8125rem; }
.sn-wtopic__checks .is-bad { color: #A33232; }
.sn-wtopic__checks .is-ok { color: #1F6F57; }
.sn-wtopic__great { font-weight: 900; }
.sn-wtopic__hint { color: var(--muted-foreground); font-size: .6875rem; text-align: center; }
.sn-wtopic__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .5rem; }
.sn-wtopic__actions .sn-btn { min-width: 0; white-space: normal; }
.sn-wtopic__actions .sn-btn:only-child { grid-column: 1 / -1; }
.sn-wtopic__ai:empty { display: none; }
.sn-wtopic__loading { margin: 0; padding: .75rem; border-radius: .875rem; background: var(--muted); color: var(--muted-foreground); font-size: .8125rem; text-align: center; }
.sn-wtopic__error { margin: 0; padding: .75rem; border-radius: .875rem; background: #FCEFF1; color: #A33232; font-size: .8125rem; }

/* AI feedback on a paragraph */
.sn-wfb { display: grid; gap: .5rem; padding: 1rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); font-size: .875rem; }
.sn-wfb--great { border-color: #9ED8CF; background: #F2FBF8; }
.sn-wfb--good { border-color: #F4D9A6; background: #FFFBF2; }
.sn-wfb--low { border-color: #F4B3B6; background: #FFF6F7; }
.sn-wfb__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.sn-wfb__who { font-weight: 800; color: var(--plum); }
.sn-wfb__score { padding: .125rem .625rem; border-radius: 999px; background: var(--plum); color: #fff; font-weight: 800; font-size: .8125rem; }
.sn-wfb__summary { margin: 0; }
.sn-wfb__label { margin: .25rem 0 0; font-weight: 800; color: var(--plum); font-size: .8125rem; }
.sn-wfb__list, .sn-wfb__mistakes { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: .375rem; }
.sn-wfb__mistakes { list-style: none; padding: 0; }
.sn-wfb__mistakes li { display: grid; gap: .125rem; padding: .5rem .625rem; border-radius: .75rem; background: rgba(255, 255, 255, .7); }
.sn-wfb__fix { font-family: "Poppins", var(--font); text-align: left; }
.sn-wfb__fix s { color: #A33232; }
.sn-wfb__fix b { color: #1F6F57; }
.sn-wfb__why { color: var(--muted-foreground); font-size: .8125rem; }
.sn-wfb__corrected { margin: 0; padding: .625rem .75rem; border-radius: .75rem; background: rgba(255, 255, 255, .8); font-family: "Poppins", var(--font); line-height: 1.8; text-align: left; }
.sn-wfb__tip { margin: 0; padding: .5rem .75rem; border-radius: .75rem; background: #EAF6F7; color: #1F5F67; }
.sn-wfb__note { margin: 0; color: var(--muted-foreground); font-size: .6875rem; }
.sn-wteacher { padding: .875rem 1rem; border-radius: 1rem; border: 1px dashed var(--primary-text); background: #FDF3F5; }
.sn-wteacher__head { margin: 0 0 .25rem; font-weight: 800; color: var(--primary-text); font-size: .875rem; }
.sn-wteacher__text { margin: 0; font-size: .875rem; }

.sn-gimage img { width: 100%; border-radius: 1rem; }
.sn-gimage figcaption { margin-top: .375rem; color: var(--muted-foreground); font-size: .8125rem; text-align: center; }

/* ---------- coming-soon sections ---------- */
.sn-soon { display: grid; place-items: center; min-height: calc(100svh - 4rem); padding: 2rem 1rem; background: var(--hero-surface); }
.sn-soon__card {
    display: grid;
    justify-items: center;
    gap: .75rem;
    max-width: 26rem;
    padding: 2rem 1.5rem;
    border-radius: 1.25rem;
    background: var(--card);
    box-shadow: var(--shadow-card-strong);
    text-align: center;
}
.sn-soon__emoji { font-size: 2.5rem; line-height: 1; }
.sn-soon__card h1 { font-size: 1.5rem; font-weight: 900; }
.sn-soon__card p { color: var(--muted-foreground); }

/* ---------- motion ---------- */
.sn-reveal { animation: sn-reveal .6s ease-out both; }
.sn-auth__alert {
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border: 1px solid #F3C2C2;
    border-radius: var(--radius);
    background: #FDECEC;
    color: #A33232;
    font-size: .875rem;
    font-weight: 800;
    text-align: center;
}

.sn-nav__lock { width: .75rem; height: .75rem; margin-inline-start: .25rem; opacity: .55; vertical-align: -1px; }
.sn-members {
    display: grid;
    gap: .75rem;
    margin: .75rem 0 1rem;
    padding: 1rem;
    border: 1px dashed rgba(217, 112, 127, .5);
    border-radius: 1.25rem;
    background: #FCEFF1;
}
.sn-members__text { font-size: .875rem; font-weight: 700; }
.sn-members__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* home: the platform in numbers */
.sn-stats { padding: 1.25rem 0 .25rem; }
.sn-stats__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; margin-block: 0; list-style: none; }
.sn-stat {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: .125rem;
    padding: .875rem .5rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--card);
    box-shadow: var(--shadow-card);
    text-align: center;
}
.sn-stat__emoji { font-size: 1.375rem; line-height: 1.2; }
.sn-stat__num { font-family: "Poppins", var(--font); font-size: 1.625rem; font-weight: 800; line-height: 1.2; color: var(--primary-text); }
.sn-stat__label { color: var(--muted-foreground); font-size: .8125rem; font-weight: 700; line-height: 1.4; }
@media (min-width: 768px) {
    .sn-stats__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
}

/* page not found */
.sn-notfound { display: grid; justify-items: center; gap: .75rem; padding-block: 4rem; text-align: center; }
.sn-notfound__emoji { font-size: 3rem; }
.sn-notfound__title { font-size: 1.75rem; font-weight: 900; }
.sn-notfound__text { max-width: 26rem; color: var(--muted-foreground); }
.sn-notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .5rem; }

/* ---------- verb family (عائلة الأفعال) ---------- */
:root {
    --tense-past: #B4520F;      /* grandpa */
    --tense-present: #1F5FA8;   /* father */
    --tense-future: #1F7A5E;    /* son */
    --tense-v3: #7A3FB0;
}
.sn-tense-past { color: var(--tense-past); }
.sn-tense-present { color: var(--tense-present); }
.sn-tense-future { color: var(--tense-future); }
.sn-tense-v3 { color: var(--tense-v3); }
b.sn-tense-past, b.sn-tense-present, b.sn-tense-future, b.sn-tense-v3 { font-weight: 900; }

.sn-family-key { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.sn-family-key__item {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .25rem .75rem .25rem .25rem;
    border-radius: 999px;
    background: var(--card);
    box-shadow: var(--shadow-card);
    font-size: .8125rem;
    font-weight: 800;
}
.sn-family-key__item img { width: 2rem; height: 2rem; border-radius: 999px; object-fit: cover; }
.sn-family-key__item--past { color: var(--tense-past); }
.sn-family-key__item--present { color: var(--tense-present); }
.sn-family-key__item--future { color: var(--tense-future); }
.sn-verbs__count { margin: .75rem 0 1rem; color: var(--muted-foreground); font-size: .8125rem; font-weight: 700; text-align: center; }

.sn-search { display: block; margin-bottom: .875rem; }
.sn-search__label { display: block; margin-bottom: .375rem; font-weight: 900; }
.sn-search__box {
    display: flex;
    align-items: center;
    gap: .5rem;
    height: 3rem;
    padding-inline: 1rem;
    border: 2px solid var(--input);
    border-radius: 999px;
    background: var(--card);
    color: var(--muted-foreground);
}
.sn-search__box:focus-within { border-color: var(--primary); }
.sn-search__box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--foreground); }

.sn-verbs__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.sn-verbs__tabs .sn-mode { display: inline-flex; align-items: center; justify-content: center; gap: .25rem; height: auto; min-height: 2.75rem; padding: .375rem .5rem; font-size: .8125rem; line-height: 1.3; }
.sn-count-badge { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding-inline: .25rem; border-radius: 999px; background: var(--muted); color: var(--foreground); font-size: .6875rem; font-weight: 800; }
.sn-mode.is-active .sn-count-badge { background: rgba(255, 255, 255, .3); color: #fff; }

.sn-verb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.sn-verb-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
    background: var(--card);
    box-shadow: var(--shadow-card);
    transition: transform .2s, box-shadow .2s;
}
.sn-verb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-strong); }
.sn-verb-card__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--muted); }
.sn-verb-card__img--letter { display: grid; place-items: center; color: var(--primary-text); font-family: "Poppins", var(--font); font-size: 2.5rem; font-weight: 800; }
.sn-verb-card__body { display: grid; gap: .125rem; padding: .625rem .75rem .75rem; }
.sn-verb-card__en { font-family: "Poppins", var(--font); font-size: 1.125rem; font-weight: 800; text-align: left; }
.sn-verb-card__forms { font-family: "Poppins", var(--font); font-size: .75rem; font-weight: 700; text-align: left; }
.sn-verb-card__ar { color: var(--muted-foreground); font-size: .8125rem; }
.sn-verb-card__star { position: absolute; top: .5rem; inset-inline-end: .5rem; display: none; padding: .125rem .375rem; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: .8125rem; }
[data-saved] > .sn-verb-card .sn-verb-card__star { display: inline-block; }

/* one verb */
.sn-verb { display: grid; gap: 1rem; }
.sn-verb__back { justify-self: start; }
.sn-verb-hero { overflow: hidden; border-radius: 1.5rem; background: var(--card); box-shadow: var(--shadow-card); }
.sn-verb-hero__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sn-verb-hero__bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem; }
.sn-verb-hero__text { min-width: 0; }
.sn-verb-hero__en { font-family: "Poppins", var(--font); font-size: 1.875rem; font-weight: 800; line-height: 1.2; }
.sn-verb-hero__ar { color: var(--muted-foreground); font-weight: 700; }
.sn-verb-actions { display: flex; align-items: center; gap: .375rem; }
.sn-listen-pair { display: inline-flex; flex-shrink: 0; gap: .25rem; }
.sn-listen-pair .sn-speak, .sn-verb-star { background: var(--card); box-shadow: var(--shadow-card); }
.sn-verb-star[aria-pressed="true"] { background: #FFF1C9; color: #A86E00; }
.sn-verb-star[aria-pressed="true"] .sn-icon { fill: currentColor; }

.sn-verb-did { padding: .75rem 1rem; border-radius: 1rem; background: rgba(31, 95, 168, .08); font-size: .875rem; font-weight: 700; }

.sn-family { display: grid; gap: .75rem; }
.sn-family__member { padding: 1rem; border: 2px solid; border-radius: 1.5rem; scroll-margin-top: 5rem; }
.sn-family__member--past { border-color: rgba(180, 82, 15, .4); background: rgba(180, 82, 15, .07); }
.sn-family__member--present { border-color: rgba(31, 95, 168, .35); background: rgba(31, 95, 168, .06); }
.sn-family__member--future { border-color: rgba(31, 122, 94, .35); background: rgba(31, 122, 94, .07); }
.sn-family__member.is-focus, .sn-vforms.is-focus { box-shadow: 0 0 0 4px var(--primary); }
.sn-family__head { display: flex; align-items: center; gap: .75rem; }
.sn-family__avatar { width: 3.5rem; height: 3.5rem; flex-shrink: 0; border-radius: 1rem; object-fit: cover; }
.sn-family__title { flex: 1; min-width: 0; }
.sn-family__who { font-size: .75rem; font-weight: 900; }
.sn-family__member--past .sn-family__who, .sn-family__member--past .sn-family__form { color: var(--tense-past); }
.sn-family__member--present .sn-family__who, .sn-family__member--present .sn-family__form { color: var(--tense-present); }
.sn-family__member--future .sn-family__who, .sn-family__member--future .sn-family__form { color: var(--tense-future); }
.sn-family__form { display: block; font-family: "Poppins", var(--font); font-size: 1.375rem; font-weight: 800; line-height: 1.3; text-align: left; }
.sn-family__example { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-top: .75rem; padding: .75rem; border-radius: 1rem; background: var(--card); }
.sn-family__sentence { min-width: 0; flex: 1; }
.sn-family__sentence p[dir="ltr"] { font-family: "Poppins", var(--font); font-weight: 600; text-align: left; }
.sn-family__sentence u { text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 800; }
.sn-family__tr { margin-top: .25rem; color: var(--muted-foreground); font-size: .875rem; }
.sn-family__extra { margin-top: .5rem; font-size: .8125rem; font-weight: 800; }
.sn-verb-note { padding: .75rem 1rem; border-radius: 1rem; background: var(--muted); font-size: .875rem; font-weight: 700; }

.sn-vforms { display: grid; gap: .75rem; padding: 1rem; border-radius: 1.5rem; background: var(--card); box-shadow: var(--shadow-card); scroll-margin-top: 5rem; }
.sn-vforms__title { font-size: 1.125rem; font-weight: 900; }
.sn-vforms__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.sn-vform { display: grid; justify-items: center; gap: .125rem; padding: .625rem .25rem; border-radius: 1rem; text-align: center; }
.sn-vform__k { font-size: .6875rem; font-weight: 800; }
.sn-vform__f { font-family: "Poppins", var(--font); font-size: 1rem; font-weight: 800; overflow-wrap: anywhere; }
.sn-vform--v1 { background: rgba(31, 95, 168, .08); color: var(--tense-present); }
.sn-vform--v2 { background: rgba(180, 82, 15, .08); color: var(--tense-past); }
.sn-vform--v3 { background: rgba(122, 63, 176, .08); color: var(--tense-v3); }
.sn-vform:hover { filter: brightness(.96); }
.sn-vforms__note { font-size: .8125rem; font-weight: 700; }
.sn-vforms__example { margin-top: 0; background: rgba(122, 63, 176, .07); }

.sn-verb-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; margin-top: .5rem; }
.sn-verb-nav__link { display: inline-flex; align-items: center; gap: .25rem; justify-self: start; padding: .5rem .875rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-family: "Poppins", var(--font); font-weight: 700; }
.sn-verb-nav__link:last-child { justify-self: end; }
.sn-verb-nav__quiz { padding: .5rem .875rem; border-radius: 999px; background: var(--primary); color: #fff; font-size: .875rem; font-weight: 800; box-shadow: var(--shadow-soft); }

.sn-verb-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-inline: .25rem;
    padding: .125rem .625rem;
    border: 1px solid rgba(217, 112, 127, .45);
    border-radius: 999px;
    background: var(--card);
    color: var(--primary-text);
    font-family: var(--font);
    font-size: .75rem;
    font-weight: 800;
    vertical-align: middle;
}
.sn-verb-link:hover { background: var(--muted); }

/* verb self test */
.sn-vquiz__intro { margin-bottom: .75rem; text-align: center; }
.sn-vquiz__title { font-size: 1.125rem; font-weight: 900; }
.sn-vquiz__from { color: var(--muted-foreground); font-size: .8125rem; font-weight: 700; }
.sn-vquiz { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.sn-vq { padding: 1rem; border-radius: 1.5rem; background: var(--card); box-shadow: var(--shadow-card); }
.sn-vq__kind { margin-bottom: .5rem; color: var(--muted-foreground); font-size: .75rem; font-weight: 800; }
.sn-vq__img { display: block; width: 10rem; height: 10rem; margin: 0 auto .75rem; border-radius: 1rem; object-fit: cover; }
.sn-vq__prompt { margin-bottom: .625rem; font-weight: 700; }
.sn-vq__prompt--en { font-family: "Poppins", var(--font); font-weight: 600; text-align: left; }
.sn-vq__listen { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .625rem; }
.sn-vq__listen .sn-vq__prompt { flex-basis: 100%; margin: 0; }
.sn-vq__options { display: grid; gap: .5rem; }
.sn-vq__opt {
    padding: .625rem 1rem;
    border: 2px solid var(--border);
    border-radius: 1rem;
    background: var(--background);
    font-family: "Poppins", var(--font);
    font-size: .9375rem;
    text-align: left;
}
.sn-vq__opt:not(:disabled):hover { border-color: var(--primary); }
.sn-vq__opt.is-picked { border-color: var(--primary); background: rgba(217, 112, 127, .08); }
.sn-vq__opt.is-correct { border-color: #2E9E7A; background: #E3F5F2; color: #1F5F57; }
.sn-vq__opt.is-wrong { border-color: #D64545; background: #FDECEC; color: #A33232; }
.sn-vq__input {
    width: 100%;
    height: 2.75rem;
    padding-inline: 1rem;
    border: 2px solid var(--input);
    border-radius: 1rem;
    background: var(--background);
    font: inherit;
    font-size: 1rem;
    text-align: left;
}
.sn-vq__input:focus { border-color: var(--primary); outline: 0; }
.sn-vq__input.is-correct { border-color: #2E9E7A; }
.sn-vq__input.is-wrong { border-color: #D64545; }
.sn-vq__check { margin-top: .75rem; }
.sn-vq__feedback { display: grid; gap: .25rem; margin-top: .75rem; padding: .75rem; border-radius: 1rem; font-size: .8125rem; }
.sn-vq__feedback.is-correct { background: #E3F5F2; }
.sn-vq__feedback.is-wrong { background: #FDECEC; }
.sn-vq__verdict { font-weight: 800; }
.sn-vq__given { color: #B83A3A; text-decoration: line-through; }
.sn-vq__right { color: #1F7A5E; text-decoration: underline; }
.sn-vq__review { justify-self: start; color: var(--primary-text); font-weight: 800; text-decoration: underline; }
.sn-vquiz__result { display: grid; justify-items: center; gap: .5rem; margin-top: 1rem; padding: 1.25rem; border-radius: 1.5rem; background: var(--gradient-soft); text-align: center; }

@media (min-width: 640px) {
    .sn-verb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sn-vq__options { grid-template-columns: 1fr 1fr; }
    .sn-verbs__tabs .sn-mode { font-size: .875rem; }
}
@media (min-width: 1024px) {
    .sn-verbs.sn-path { max-width: 64rem; }
    .sn-verb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sn-verbs__tabs, .sn-search, .sn-verbs [data-verb-panel="quiz"] { max-width: 40rem; margin-inline: auto; }
}

/* ---------- language switch + English (left-to-right) pages ---------- */
.sn-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    height: 2.25rem;
    padding-inline: .625rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    font-size: .8125rem;
    font-weight: 800;
    transition: background-color .2s;
}
.sn-lang-btn:hover { background: var(--muted); }
.sn-lang-btn__long { display: none; }
.sn-drawer__lang { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); font-weight: 800; }
@media (min-width: 1024px) {
    .sn-lang-btn__short { display: none; }
    .sn-lang-btn__long { display: inline; }
}

/* arrows point the reading way */
[dir="ltr"] .sn-icon--dir { transform: scaleX(-1); }
[dir="ltr"] .sn-teacher-card:hover .sn-icon--dir { transform: scaleX(-1) translateX(-4px); }
[dir="ltr"] .sn-drawer__panel { animation-name: sn-slide-in-ltr; }
@keyframes sn-slide-in-ltr { from { transform: translateX(-100%); } to { transform: none; } }
/* Arabic learning content on English pages (meanings, translations, explanations):
   each paragraph takes its direction from its own text, so punctuation stays in place */
[dir="ltr"] main :is(p, li, h1, h2, h3, h4, dt, dd, td, th, figcaption, summary, label, blockquote) { unicode-bidi: plaintext; }
/* English lines that line up with Arabic on Arabic pages */
[dir="ltr"] .sn-unit__body, [dir="ltr"] .sn-unit__body bdi, [dir="ltr"] .sn-word__en { text-align: left; }

@keyframes sn-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sn-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sn-zoom { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
@keyframes sn-slide-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
    .sn-container { padding-inline: 1.5rem; }
    .sn-hero__art { max-width: 270px; }
    .sn-hero__title { font-size: 2.25rem; gap: .5rem; }
    .sn-hero__title .sn-icon { width: 2rem; height: 2rem; }
    .sn-hero__tagline, .sn-hero__desc { font-size: 1rem; }
    .sn-hero__actions { flex-direction: row; justify-content: center; }
    .sn-section { padding-inline: 1.5rem; }
    .sn-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .875rem; }
    .sn-area { display: flex; flex-direction: column; gap: .375rem; padding: 1.25rem; }
    .sn-form__row { grid-template-columns: 1fr 1fr; }
    .sn-auth__card { padding: 2rem; }
    .sn-tour { padding-inline: 1.5rem; }
    .sn-tour__item { width: 15rem; }
    .sn-cta { padding: 2.75rem 2rem; }
    .sn-cta h2 { font-size: 1.75rem; }
    .sn-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .sn-footer__grid--4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .sn-path-grades { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sn-pgrade { flex-direction: column; align-items: flex-start; }
    .sn-pgrade .sn-chip-status { position: absolute; top: .75rem; inset-inline-end: .75rem; }
    .sn-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sn-quiz__options { grid-template-columns: 1fr 1fr; }
    .sn-forms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sn-qc__options { grid-template-columns: 1fr 1fr; }
    .sn-verbkey__items { grid-template-columns: 1fr 1fr; }
    .sn-compare__grid--2 { grid-template-columns: 1fr 1fr; }
    .sn-compare__grid--3, .sn-compare__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sn-teacher-card { padding: 2rem; }
    .sn-teacher-card__title { font-size: 1.5rem; }
    .sn-teacher-fab { padding-inline-end: 1rem; }
    .sn-teacher-fab__label { display: inline; }
}
@media (min-width: 768px) {
    .sn-hero__grid {
        grid-template-columns: 1.05fr .95fr;
        gap: 2rem;
        min-height: calc(100svh - 4rem);
        padding-block: 3rem;
    }
    .sn-hero__text { order: 1; text-align: start; }
    .sn-hero__title { justify-content: flex-start; }
    .sn-hero__actions { justify-content: flex-start; }
    .sn-hero__points { justify-content: flex-start; }
    .sn-hero__art { order: 2; max-width: 430px; }
    .sn-section { padding-block: 3.5rem; }
    .sn-heading h2 { font-size: 1.875rem; }
    .sn-grades { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sn-grade { flex-direction: column; align-items: flex-start; }
    .sn-chip-status { position: absolute; top: 1rem; inset-inline-end: 1rem; }
    .sn-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sn-step { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1024px) {
    .sn-container { padding-inline: 2rem; }
    .sn-hero__grid { min-height: 640px; }
    .sn-hero__title { font-size: 3rem; }
    .sn-section { padding-inline: 2rem; }
    .sn-nav { display: flex; align-items: center; gap: .25rem; }
    .sn-header__auth { display: flex; margin-inline-start: .5rem; }
    .sn-menu-btn { display: none; }
    .sn-areas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sn-tour { justify-content: safe center; }
}

/* =========================================================
   Tests and exams (list, test page, results)
   ========================================================= */
.sn-tone--great { --tone: #1F7A5E; --tone-bg: #E3F5F2; }
.sn-tone--good  { --tone: #B8506A; --tone-bg: #FDEFF1; }
.sn-tone--fair  { --tone: #2E7F8A; --tone-bg: #E6F4F6; }
.sn-tone--low   { --tone: #B83A3A; --tone-bg: #FDECEC; }

/* lists */
.sn-test-grades { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.sn-test-grades .sn-mode { display: inline-flex; align-items: center; padding-inline: 1rem; }
.sn-test-group { margin: 1.25rem 0 .625rem; color: var(--secondary); font-size: .9375rem; font-weight: 800; }
.sn-test-card__best {
    justify-self: start;
    margin-top: .25rem;
    padding: .125rem .5rem;
    border-radius: 999px;
    background: var(--tone-bg, var(--muted));
    color: var(--tone, var(--foreground));
    font-size: .75rem;
    font-weight: 800;
}
.sn-test-card__best--great { --tone: #1F7A5E; --tone-bg: #E3F5F2; }
.sn-test-card__best--good  { --tone: #B8506A; --tone-bg: #FDEFF1; }
.sn-test-card__best--fair  { --tone: #2E7F8A; --tone-bg: #E6F4F6; }
.sn-test-card__best--low   { --tone: #B83A3A; --tone-bg: #FDECEC; }

/* test page */
.sn-test__title { font-family: var(--font); font-size: 1.375rem; }
.sn-test-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.sn-test-facts li {
    padding: .375rem .75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    font-size: .8125rem;
    font-weight: 700;
}
.sn-test-intro { margin-top: 1.25rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: 1.25rem; background: var(--card); box-shadow: var(--shadow-soft); }
.sn-test-intro__how { margin-bottom: 1rem; color: var(--muted-foreground); font-size: .9375rem; }
.sn-test-history { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.sn-test-history__title { font-size: 1rem; font-weight: 900; }
.sn-test-history__best { color: var(--primary-text); font-size: .875rem; font-weight: 800; }
.sn-test-history__list { display: grid; gap: .5rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.sn-test-history__item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .625rem .875rem;
    border-radius: .875rem;
    background: var(--muted);
    font-size: .875rem;
}
.sn-test-history__item:hover { background: #F1E1E5; }
.sn-test-history__score { font-weight: 800; }
.sn-test-history__percent { padding: .125rem .5rem; border-radius: 999px; background: var(--tone-bg); color: var(--tone); font-size: .75rem; font-weight: 800; }
.sn-test-history__review { display: inline-flex; align-items: center; gap: .125rem; margin-inline-start: auto; color: var(--primary-text); font-weight: 700; }

.sn-test-form { margin-top: 1rem; scroll-margin-top: 4.5rem; }
.sn-test-bar {
    position: sticky;
    top: 4rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-inline: -.25rem;
    padding: .625rem .875rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    font-size: .8125rem;
    font-weight: 800;
}
.sn-test-bar__count { white-space: nowrap; }
.sn-test-bar__track { flex: 1; height: .5rem; overflow: hidden; border-radius: 999px; background: var(--muted); }
.sn-test-bar__fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gradient-hero); transition: width .3s; }
.sn-test-bar__timer { display: inline-flex; align-items: center; gap: .25rem; color: var(--secondary); white-space: nowrap; }
.sn-test-bar__timer.is-ending { color: #C03838; animation: sn-pulse 1s infinite; }
@keyframes sn-pulse { 50% { opacity: .55; } }

.sn-test-part { margin-top: 1.5rem; }
.sn-test-part__head { margin-bottom: .75rem; }
.sn-test-part__title { color: var(--primary-text); font-size: 1.125rem; font-weight: 900; }
.sn-test-part__sub { color: var(--muted-foreground); font-size: .8125rem; font-weight: 700; }
.sn-test-part__note { margin-top: .25rem; color: var(--muted-foreground); font-size: .875rem; }

.sn-passage {
    margin-bottom: 1rem;
    padding: 1.125rem;
    border: 2px solid rgba(217, 112, 127, .2);
    border-radius: 1.25rem;
    background: var(--gradient-soft);
    font-family: "Poppins", var(--font);
    font-size: .9375rem;
    line-height: 1.8;
    text-align: left;
}
.sn-passage__img { width: 100%; max-height: 260px; margin-bottom: .75rem; border-radius: 1rem; object-fit: cover; }
.sn-passage__title { margin-bottom: .375rem; font-size: 1.0625rem; font-weight: 800; }
.sn-passage p + p { margin-top: .625rem; }
.sn-passage__listen { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; font-family: var(--font); font-size: .8125rem; font-weight: 700; color: var(--muted-foreground); }

/* one question */
.sn-tq {
    margin-top: .75rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    scroll-margin-top: 8rem;
    transition: border-color .2s, box-shadow .2s;
}
.sn-tq.is-missing { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(217, 112, 127, .25); }
.sn-tq.is-correct { border-color: rgba(46, 158, 122, .5); }
.sn-tq.is-wrong { border-color: rgba(214, 69, 69, .45); }
.sn-tq__head { display: flex; align-items: center; gap: .5rem; margin-bottom: .625rem; }
.sn-tq__num {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--muted);
    color: var(--primary-text);
    font-size: .8125rem;
    font-weight: 900;
}
.sn-tq.is-answered .sn-tq__num { background: var(--primary); color: #fff; }
.sn-tq__instruction { flex: 1; min-width: 0; color: var(--secondary); font-size: .8125rem; font-weight: 800; }
.sn-tq__marks { flex-shrink: 0; color: var(--muted-foreground); font-size: .75rem; font-weight: 700; }
.sn-tq__img { width: auto; max-width: min(100%, 320px); height: auto; max-height: 240px; margin: 0 auto .75rem; border-radius: 1rem; object-fit: contain; }
.sn-tq__prompt { margin-bottom: .75rem; font-family: "Poppins", var(--font); font-size: 1.0625rem; font-weight: 600; line-height: 1.7; text-align: left; }
.sn-tq__prompt--big { font-size: 1.75rem; font-weight: 800; letter-spacing: .12em; text-align: center; }
.sn-tq__input { font-family: "Poppins", var(--font); }
[dir="rtl"] .sn-tq__input[dir="ltr"] { text-align: left; }
.sn-tq__input--short { display: block; width: 7rem; margin-inline: auto; font-size: 1.375rem; font-weight: 800; text-align: center !important; }
.sn-tq__hint { margin-bottom: .5rem; color: var(--muted-foreground); font-size: .8125rem; }
.sn-tq__check { margin-top: .75rem; }
.sn-tq__feedback { margin-top: .75rem; padding: .75rem; border-radius: .875rem; background: #FDECEC; font-size: .875rem; }
.sn-tq__feedback.is-correct { background: #E3F5F2; }
.sn-tq__verdict { font-weight: 900; }
.sn-tq__explain { margin-top: .25rem; color: var(--muted-foreground); unicode-bidi: plaintext; }
.sn-blank { display: inline-block; min-width: 3.5rem; border-bottom: 2px solid var(--primary); color: transparent; line-height: 1.2; }

/* choices (multiple choice, true / false) */
.sn-choices { display: grid; gap: .5rem; }
.sn-choices--two { grid-template-columns: 1fr 1fr; }
.sn-choice { position: relative; display: block; cursor: pointer; }
.sn-choice input { position: absolute; opacity: 0; pointer-events: none; }
.sn-choice__text {
    display: flex;
    align-items: center;
    min-height: 2.875rem;
    padding: .5rem 1rem;
    border: 2px solid var(--border);
    border-radius: .875rem;
    background: #fff;
    font-weight: 700;
    transition: border-color .2s, background-color .2s;
}
.sn-choices[dir="ltr"] .sn-choice__text { font-family: "Poppins", var(--font); text-align: left; }
.sn-choices--two .sn-choice__text { justify-content: center; }
.sn-choice:hover .sn-choice__text { border-color: rgba(217, 112, 127, .6); }
.sn-choice input:focus-visible + .sn-choice__text { outline: 2px solid var(--primary); outline-offset: 2px; }
.sn-choice input:checked + .sn-choice__text { border-color: var(--primary); background: #FDEFF1; color: var(--primary-text); }
.sn-choice.is-correct .sn-choice__text { border-color: #2E9E7A; background: #E3F5F2; color: #1F5F57; }
.sn-choice.is-wrong .sn-choice__text { border-color: #D64545; background: #FDECEC; color: #A33232; }
.is-locked .sn-choice { cursor: default; }

/* word / letter order */
.sn-order__built {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .375rem;
    min-height: 3.25rem;
    padding: .5rem;
    border: 2px dashed rgba(217, 112, 127, .35);
    border-radius: .875rem;
    background: #FFF8F9;
}
.sn-order__placeholder { color: var(--muted-foreground); font-family: var(--font); font-size: .8125rem; }
.sn-order__bank { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .625rem; }
.sn-order__piece {
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: .25rem .75rem;
    border: 2px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-family: "Poppins", var(--font);
    font-weight: 700;
}
.sn-order__piece:not(:disabled):hover { border-color: var(--primary); }
.sn-order__piece:disabled { border-style: dashed; color: transparent; background: var(--muted); cursor: default; }
.sn-order__piece.is-placed { border-color: transparent; background: var(--primary); color: #fff; }
.sn-order__built--letters .sn-order__piece { min-width: 2.5rem; padding-inline: .5rem; font-size: 1.125rem; }
.is-locked .sn-order__piece.is-placed { background: var(--secondary); }
.sn-order__reset { display: inline-flex; align-items: center; gap: .25rem; margin-top: .5rem; color: var(--muted-foreground); font-size: .8125rem; font-weight: 700; }
.sn-order__reset:disabled { visibility: hidden; }

/* matching */
.sn-match { display: grid; gap: .5rem; }
.sn-match__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: center;
    gap: .5rem;
    padding: .5rem .625rem;
    border: 1px solid var(--border);
    border-radius: .875rem;
    background: #fff;
}
.sn-match__row.is-correct { border-color: #2E9E7A; background: #E3F5F2; }
.sn-match__row.is-wrong { border-color: #D64545; background: #FDECEC; }
.sn-match__word { font-family: "Poppins", var(--font); font-weight: 800; unicode-bidi: plaintext; }
.sn-match__select {
    width: 100%;
    min-height: 2.5rem;
    padding: 0 .5rem;
    border: 1px solid var(--input);
    border-radius: .625rem;
    background: #fff;
    font: inherit;
    font-size: .875rem;
}
.sn-match__select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(217, 112, 127, .18); }

.sn-test-submit { position: relative; margin-top: 1.5rem; }
.sn-test-submit__warn { margin-bottom: .75rem; padding: .75rem 1rem; border-radius: .875rem; background: #FFF4E5; color: #7A4B00; font-size: .875rem; font-weight: 700; }

/* result */
.sn-result {
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    text-align: center;
}
.sn-result__icon { width: 2.5rem; height: 2.5rem; margin-inline: auto; color: var(--tone, var(--primary)); }
.sn-result__test { margin-top: .5rem; color: var(--muted-foreground); font-size: .875rem; font-weight: 700; }
.sn-result__score { margin-top: .25rem; color: var(--tone, var(--primary-text)); font-family: "Poppins", var(--font); font-size: 3rem; font-weight: 800; line-height: 1.2; }
.sn-result__bar, .sn-result-parts__bar { display: block; height: .625rem; overflow: hidden; margin-top: .75rem; border-radius: 999px; background: var(--muted); }
.sn-result__bar span, .sn-result-parts__bar span { display: block; height: 100%; border-radius: inherit; background: var(--tone, var(--primary)); }
.sn-result__level { margin-top: .75rem; color: var(--tone); font-size: 1.125rem; font-weight: 900; }
.sn-result__msg { margin-top: .25rem; color: var(--muted-foreground); font-size: .9375rem; }
.sn-result__facts { justify-content: center; }
.sn-result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.sn-result-parts { display: grid; gap: .625rem; margin: 0; padding: 0; list-style: none; }
.sn-result-parts__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .25rem .75rem;
    padding: .875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--card);
}
.sn-result-parts__title { font-weight: 800; }
.sn-result-parts__score { font-weight: 800; color: var(--primary-text); }
.sn-result-parts__bar { grid-column: 1 / -1; margin-top: 0; height: .5rem; }

.sn-review-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.sn-review-filter { display: flex; gap: .5rem; }
.sn-review-filter .sn-mode { display: inline-flex; align-items: center; gap: .375rem; padding-inline: 1rem; height: 2.5rem; }
.sn-review-part { margin-top: 1rem; }
.sn-review-part__title { color: var(--primary-text); font-weight: 900; }
.sn-review {
    margin-top: .625rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-inline-start: 4px solid #D64545;
    border-radius: 1rem;
    background: var(--card);
}
.sn-review.is-correct { border-inline-start-color: #2E9E7A; }
.sn-review.is-partial { border-inline-start-color: #E0A100; }
.sn-review__line { margin-top: .375rem; font-size: .9375rem; }
.sn-review__label { font-weight: 800; }
.sn-review__given { font-family: "Poppins", var(--font); }
.is-wrong .sn-review__given { color: #A33232; text-decoration: line-through; text-decoration-color: rgba(163, 50, 50, .5); }
.is-partial .sn-review__given { color: #7A5A00; }
.sn-review__right { color: #1F7A5E; font-family: "Poppins", var(--font); font-weight: 800; }
.sn-review__empty { color: var(--muted-foreground); }
.sn-review__explain { margin-top: .5rem; padding: .625rem .75rem; border-radius: .75rem; background: var(--muted); color: var(--foreground); font-size: .875rem; }

@media (min-width: 640px) {
    .sn-choices:not(.sn-choices--two) { grid-template-columns: 1fr 1fr; }
    .sn-tq { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .sn-test-bar__timer.is-ending { animation: none; }
}
.sn-test-sub { margin: -.5rem 0 .75rem; }

/* =========================================================
   Progress (تقدّمي)
   ========================================================= */
.sn-mastery--great { --m: #1F7A5E; --m-bg: #E3F5F2; --m-border: rgba(46, 158, 122, .35); }
.sn-mastery--good  { --m: #2E7F8A; --m-bg: #E6F4F6; --m-border: rgba(63, 151, 163, .35); }
.sn-mastery--fair  { --m: #A85F00; --m-bg: #FFF4E0; --m-border: rgba(224, 161, 0, .45); }
.sn-mastery--low   { --m: #B83A3A; --m-bg: #FDECEC; --m-border: rgba(214, 69, 69, .35); }
.sn-mastery--none  { --m: var(--muted-foreground); --m-bg: #F7F2F5; --m-border: var(--border); }

.sn-progress-head { padding: 1.25rem; border: 1px solid var(--border); border-radius: 1.25rem; background: var(--card); box-shadow: var(--shadow-soft); }
.sn-progress-head__title { margin-top: .25rem; font-size: 1.25rem; font-weight: 900; }
.sn-progress-head__note { margin-top: .25rem; color: var(--muted-foreground); font-size: .875rem; }
.sn-progress-title { margin: 1.5rem 0 .625rem; color: var(--primary-text); font-size: 1.0625rem; font-weight: 900; }

.sn-mastery { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.sn-mastery__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .25rem .75rem;
    padding: .75rem 1rem;
    border: 1.5px solid var(--m-border);
    border-radius: 999px;
    background: var(--m-bg);
}
.sn-mastery__area { font-weight: 900; }
.sn-mastery__value { color: var(--m); font-size: .875rem; font-weight: 800; }

.sn-progress-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.sn-progress-stats li { display: grid; gap: .125rem; padding: .75rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); text-align: center; }
.sn-progress-stats b { color: var(--primary-text); font-family: "Poppins", var(--font); font-size: 1.375rem; font-weight: 800; line-height: 1.3; }
.sn-progress-stats span { color: var(--muted-foreground); font-size: .75rem; font-weight: 700; }
.sn-progress-start { margin-top: 1rem; }

.sn-meter { display: block; height: .5rem; overflow: hidden; border-radius: 999px; background: var(--muted); }
.sn-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--gradient-hero); }

.sn-progress-card { padding: 1rem 1.125rem; border: 1px solid var(--border); border-radius: 1.25rem; background: var(--card); box-shadow: var(--shadow-soft); }
.sn-progress-card__top { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; font-weight: 800; }
.sn-progress-card__percent { color: var(--primary-text); }
.sn-progress-card__note { margin-top: .5rem; color: var(--muted-foreground); font-size: .8125rem; }
.sn-progress-card__label { margin-top: .75rem; font-size: .875rem; font-weight: 800; }
.sn-progress-card__action { margin-top: .75rem; }

.sn-checklist { display: grid; gap: .375rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.sn-checklist__item { display: flex; align-items: center; gap: .625rem; padding: .5rem .625rem; border-radius: .75rem; }
.sn-checklist__item:hover { background: var(--muted); }
.sn-checklist__mark { flex-shrink: 0; font-size: 1.125rem; line-height: 1; }
.sn-checklist__body { display: grid; flex: 1; min-width: 0; }
.sn-checklist__title { font-weight: 800; font-size: .9375rem; }
.sn-checklist__detail { color: var(--muted-foreground); font-size: .75rem; }

.sn-progress-units { display: grid; gap: .625rem; }
.sn-progress-unit {
    display: grid;
    gap: .5rem;
    padding: .875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    transition: transform .2s, border-color .2s;
}
a.sn-progress-unit:hover { transform: translateY(-2px); border-color: rgba(217, 112, 127, .5); }
.sn-progress-unit.is-new { box-shadow: none; }
.sn-progress-unit__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-weight: 800; }
.sn-progress-unit__name { min-width: 0; }
.sn-progress-unit__percent { flex-shrink: 0; color: var(--primary-text); font-weight: 900; }
.sn-progress-unit__chips, .sn-progress-links { display: flex; flex-wrap: wrap; gap: .375rem; }
.sn-progress-links { margin-top: .5rem; }
.sn-progress-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .625rem;
    border: 1px solid var(--m-border, var(--border));
    border-radius: 999px;
    background: var(--m-bg, var(--muted));
    color: var(--m, var(--foreground));
    font-size: .75rem;
    font-weight: 800;
}
a.sn-progress-chip:hover { border-color: var(--primary); }
.sn-unit-progress { margin-top: 1rem; }

.sn-progress-attempt__name { flex: 1; min-width: 0; font-weight: 800; }
.sn-progress-attempt__meta { display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.sn-progress-attempt__date { color: var(--muted-foreground); font-size: .75rem; }
.sn-link { color: var(--primary-text); font-weight: 800; text-decoration: underline; }

.sn-saved-note { margin-top: .5rem; color: #1F7A5E; font-size: .8125rem; font-weight: 800; }
.sn-qc__saved { margin: 0; font-size: .75rem; }

@media (min-width: 640px) {
    .sn-progress-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* =========================================================
   اسألي معلمتك: AI teacher chat, message to the real teacher, رسائلي
   ========================================================= */
.sn-teacher__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .375rem; padding: .625rem .75rem 0; background: var(--card); }
.sn-teacher__tab {
    display: grid;
    gap: .125rem;
    padding: .5rem .625rem;
    border: 1.5px solid var(--border);
    border-bottom: 0;
    border-radius: .875rem .875rem 0 0;
    background: var(--muted);
    text-align: center;
    opacity: .75;
}
.sn-teacher__tab.is-active { border-color: var(--primary); background: var(--background); opacity: 1; }
.sn-teacher__tab[data-teacher-tab="teacher"].is-active { border-color: var(--secondary); }
.sn-teacher__tab-title { font-size: .875rem; font-weight: 900; }
.sn-teacher__tab-sub { color: var(--muted-foreground); font-size: .6875rem; font-weight: 700; }
.sn-teacher__panel { display: flex; flex: 1; min-height: 0; flex-direction: column; border-top: 1px solid var(--border); }
.sn-teacher__panel[hidden] { display: none; }
.sn-teacher--chat { height: min(42rem, 90svh); }
.sn-teacher__note { margin-bottom: .75rem; padding: .625rem .75rem; border-radius: .875rem; font-size: .8125rem; font-weight: 700; }
.sn-teacher__note--ai { background: #FDEFF1; color: #8A3550; }
.sn-teacher__note--human { background: #E6F4F6; color: #1F5F67; }
.sn-teacher__off { margin-bottom: .75rem; padding: .625rem .75rem; border-radius: .875rem; background: #FFF4E0; color: #7A4B00; font-size: .8125rem; font-weight: 700; }
.sn-teacher__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .375rem; color: var(--muted-foreground); font-size: .75rem; font-weight: 700; }
.sn-teacher__new { display: inline-flex; align-items: center; gap: .25rem; color: var(--primary-text); font-size: .75rem; font-weight: 800; }
.sn-teacher__form { display: grid; gap: .75rem; }
.sn-teacher__form .sn-textarea, .sn-message-form .sn-textarea { min-height: 7rem; resize: vertical; background: #fff; }
.sn-teacher__error { color: #C03838; font-size: .8125rem; font-weight: 700; }
.sn-teacher__done { margin-top: .75rem; padding: .75rem; border-radius: .875rem; background: #E3F5F2; color: #1F7A5E; font-size: .875rem; font-weight: 800; }
.sn-teacher__inbox { display: inline-block; margin-top: .75rem; font-size: .875rem; }
.sn-field__label { font-size: .875rem; font-weight: 700; }
button.sn-link { font: inherit; font-weight: 800; }

.sn-chat { display: grid; gap: .625rem; margin-top: .75rem; }
.sn-chat__msg { max-width: 92%; padding: .625rem .875rem; border-radius: 1rem; font-size: .9375rem; line-height: 1.7; }
.sn-chat__msg--student { justify-self: start; border-end-start-radius: .25rem; background: var(--primary); color: #fff; white-space: pre-wrap; }
.sn-chat__msg--student .sn-chat__text { unicode-bidi: plaintext; }
.sn-chat__msg--teacher { justify-self: end; border-end-end-radius: .25rem; background: var(--muted); }
.sn-chat__msg--notice, .sn-chat__msg--typing { justify-self: center; background: #FFF4E0; color: #7A4B00; font-size: .8125rem; }
.sn-chat__msg.is-typing { background: var(--muted); color: var(--muted-foreground); animation: sn-pulse 1.2s infinite; }
.sn-chat__msg.is-typing .sn-chat__who { display: none; }
.sn-chat__who { display: block; margin-bottom: .125rem; color: var(--primary-text); font-size: .6875rem; font-weight: 900; }
.sn-chat__text p + p, .sn-chat__text p + ul, .sn-chat__text ul + p { margin-top: .375rem; }
.sn-chat__text ul { margin: .25rem 0; padding-inline-start: 1.25rem; }
.sn-chat__text strong { color: var(--plum); }

/* header: رسائلي */
.sn-msg-btn { position: relative; }
.sn-msg-btn.is-active { background: var(--muted); }
.sn-msg-btn__badge {
    position: absolute;
    top: -.25rem;
    inset-inline-end: -.25rem;
    display: grid;
    place-items: center;
    min-width: 1.125rem;
    height: 1.125rem;
    padding-inline: .25rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: .625rem;
    font-weight: 900;
}

/* رسائلي page */
.sn-message-form { display: grid; gap: .75rem; margin-top: 1rem; }
.sn-message { margin-top: .75rem; padding: 1rem; border: 1px solid var(--border); border-inline-start: 4px solid #E0A100; border-radius: 1rem; background: var(--card); }
.sn-message.is-replied { border-inline-start-color: var(--secondary); }
.sn-message__head { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .375rem; }
.sn-message__topic { font-size: .8125rem; font-weight: 900; }
.sn-message__date { color: var(--muted-foreground); font-size: .75rem; }
.sn-message__body { white-space: pre-line; unicode-bidi: plaintext; text-align: start; }
.sn-message__page { margin-top: .25rem; color: var(--muted-foreground); font-size: .75rem; }
.sn-message__reply { margin-top: .75rem; padding: .75rem; border-radius: .875rem; background: #E6F4F6; }
.sn-message__reply-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .25rem; color: #1F5F67; font-size: .8125rem; font-weight: 900; }
.sn-message__reply-head .sn-message__date { margin-inline-start: auto; }
.sn-message__new { padding: .0625rem .5rem; border-radius: 999px; background: var(--primary); color: #fff; font-size: .6875rem; }
.sn-message__waiting { margin-top: .5rem; color: #7A4B00; font-size: .8125rem; font-weight: 700; }
.sn-pagination { margin-top: 1rem; }
.sn-pagination nav { display: flex; justify-content: center; gap: .5rem; }

/* test review: ask the AI teacher why */
.sn-review__ask { margin-top: .5rem; padding: .375rem .75rem; border: 1px solid rgba(217, 112, 127, .35); border-radius: 999px; background: #FDEFF1; color: var(--primary-text); font-size: .8125rem; font-weight: 800; }
.sn-review__ask:hover { border-color: var(--primary); }

/* ---------- account and password ---------- */
.sn-field__row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.sn-field__link { color: var(--primary-text); font-size: .8125rem; font-weight: 700; }
.sn-field__link:hover { text-decoration: underline; }
.sn-field__hint { color: var(--muted-foreground); font-size: .75rem; }
.sn-account-form { margin-top: 1rem; }
.sn-account-form__title { margin: 0; }
.sn-account-logout { margin-top: 1.25rem; }
.sn-hello { font-weight: 700; }
a.sn-hello:hover { color: var(--primary-text); }

/* ---------- text pages (terms, privacy) ---------- */
.sn-text-page { line-height: 1.9; }
.sn-text-page h2, .sn-text-page h3 { margin: 1.25rem 0 .5rem; color: var(--primary-text); font-size: 1.0625rem; font-weight: 900; }
.sn-text-page h2:first-child, .sn-text-page h3:first-child { margin-top: 0; }
.sn-text-page p + p { margin-top: .625rem; }
.sn-text-page ul, .sn-text-page ol { margin: .5rem 0; padding-inline-start: 1.25rem; }
.sn-text-page a { color: var(--primary-text); text-decoration: underline; }

/* ---------- search page (sn-find; .sn-search is the verbs list filter) ---------- */
.sn-find__form { display: grid; gap: .875rem; padding: 1rem; border: 1px solid var(--border); border-radius: 1.25rem; background: var(--card); box-shadow: var(--shadow-card); }
.sn-find__hint { margin: 0; color: var(--muted-foreground); font-size: .875rem; }
.sn-find__box { display: flex; align-items: center; gap: .5rem; padding-inline-start: .75rem; border: 1px solid var(--input); border-radius: 999px; background: var(--background); }
.sn-find__box > .sn-icon { color: var(--muted-foreground); }
.sn-find__box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(217, 112, 127, .18); }
.sn-find__input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none !important; padding-inline: 0; }
.sn-find__box .sn-btn { margin: .25rem; }
.sn-find__filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .5rem; }
.sn-find__types { margin: 0; }
.sn-find__count { margin: 1.25rem 0 .25rem; color: var(--muted-foreground); font-size: .875rem; }
.sn-find__heading { margin: 1.25rem 0 .5rem; font-size: 1rem; font-weight: 800; color: var(--plum); }
.sn-find__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.sn-find__item { display: flex; align-items: center; gap: .5rem; padding: .75rem .875rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); }
.sn-find__link { flex: 1; min-width: 0; display: grid; gap: .125rem; color: inherit; }
.sn-find__link:hover .sn-find__en, .sn-find__link:hover .sn-find__title { color: var(--primary-text); }
.sn-find__en { font-family: "Poppins", var(--font); font-weight: 700; color: var(--plum); }
.sn-find__title { font-weight: 800; color: var(--plum); }
.sn-find__ar { font-size: .875rem; }
.sn-find__ex { color: var(--muted-foreground); font-size: .8125rem; text-align: start; }
.sn-find__where { color: var(--muted-foreground); font-size: .75rem; }
.sn-word.is-found { box-shadow: 0 0 0 3px rgba(217, 112, 127, .45); }
.sn-anchor { display: block; position: relative; top: -5rem; visibility: hidden; }
.sn-unit-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .875rem; }
.sn-unit-tool { display: inline-flex; align-items: center; gap: .375rem; padding: .5rem .875rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--plum); font-size: .8125rem; font-weight: 700; transition: border-color .2s, color .2s; }
.sn-unit-tool:hover { border-color: var(--primary); color: var(--primary-text); }
.sn-practice-end { margin-top: 1rem; padding: 1.25rem; border-radius: 1.25rem; background: var(--gradient-soft); text-align: center; }
.sn-practice-end__score { margin: 0 0 .25rem; font-size: 1.25rem; font-weight: 900; color: var(--plum); }
.sn-practice-end p { margin: 0; }
.sn-practice-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.25rem; }
.sn-practice-card { display: flex; align-items: center; gap: .875rem; margin-top: 1rem; padding: 1rem 1.125rem; border-radius: 1.25rem; background: var(--gradient-soft); border: 1px solid var(--border); color: inherit; transition: transform .2s, box-shadow .2s; }
.sn-practice-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.sn-practice-card__emoji { font-size: 1.75rem; }
.sn-practice-card__body { flex: 1; display: grid; gap: .125rem; }
.sn-practice-card__title { font-weight: 800; color: var(--plum); }
.sn-practice-card__text { color: var(--muted-foreground); font-size: .8125rem; }
.sn-challenge--all { margin-top: .75rem; background: linear-gradient(135deg, #3F97A3, #6B2D4F); }
.sn-word__img--emoji { display: grid; place-items: center; font-size: 2.5rem; background: var(--gradient-soft); }
.sn-word__pos { display: inline-block; margin-inline-start: .375rem; padding: .05rem .5rem; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); font-family: "Poppins", var(--font); font-size: .6875rem; font-weight: 700; vertical-align: middle; }
.sn-word__def { margin: .25rem 0 0; color: var(--muted-foreground); font-family: "Poppins", var(--font); font-size: .8125rem; line-height: 1.6; text-align: left; }
.sn-word__def b { color: var(--plum); }
.sn-activities { margin-top: .75rem; padding: 1rem; border: 1px dashed var(--border); border-radius: 1.25rem; background: var(--card); text-align: center; }
.sn-activities h3 { margin: 0 0 .625rem; font-size: 1rem; color: var(--plum); }
.sn-activities__buttons { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.sn-quiz__blank { display: inline-block; min-width: 3.5rem; border-bottom: 2px solid var(--primary); color: transparent; }
.sn-match { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; margin-top: .5rem; }
.sn-match__col { display: grid; gap: .5rem; align-content: start; }
.sn-match__item { padding: .625rem .5rem; border: 1px solid var(--border); border-radius: .875rem; background: var(--card); font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.sn-match__item[dir="ltr"] { font-family: "Poppins", var(--font); }
.sn-match__item:hover:not(:disabled) { border-color: var(--primary); }
.sn-match__item.is-selected { border-color: var(--plum); background: #F6ECF2; }
.sn-match__item.is-correct { border-color: #9ED8CF; background: #EAF8F4; color: #1F6F57; cursor: default; }
.sn-match__item.is-wrong { border-color: #E89A9A; background: #FDEEEE; animation: sn-shake .4s; }
@keyframes sn-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.sn-progress-title__count { margin-inline-start: .375rem; color: var(--muted-foreground); font-size: .8125rem; font-weight: 700; }
.sn-badges { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; }
.sn-badge { display: grid; justify-items: center; gap: .125rem; padding: .75rem .5rem; border: 1px dashed var(--border); border-radius: 1rem; background: var(--card); text-align: center; opacity: .55; filter: grayscale(.9); }
.sn-badge.is-earned { opacity: 1; filter: none; border-style: solid; border-color: #F4D9A6; background: linear-gradient(160deg, #FFF8EC, #FDEFF1); }
.sn-badge__emoji { font-size: 1.75rem; line-height: 1.2; }
.sn-badge__title { font-weight: 800; color: var(--plum); font-size: .8125rem; }
.sn-badge__hint { color: var(--muted-foreground); font-size: .6875rem; }
.sn-progress-stats__points { grid-column: 1 / -1; }

/* ---------- vocabulary tools: filters, favourites, hidden translation, speed ---------- */
.sn-vtools { display: grid; gap: .625rem; margin: .875rem 0 0; }
.sn-vtools__chips { display: flex; flex-wrap: wrap; gap: .375rem; }
.sn-chip-filter { padding: .375rem .75rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--foreground); font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s; }
.sn-chip-filter:hover { border-color: var(--primary); }
.sn-chip-filter.is-active { border-color: var(--plum); background: var(--plum); color: #fff; }
.sn-chip-filter--tool { margin-inline-start: auto; }
.sn-speed { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; padding: .25rem .375rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); width: fit-content; max-width: 100%; }
.sn-speed__label { display: inline-flex; align-items: center; gap: .25rem; padding-inline: .375rem; color: var(--muted-foreground); font-size: .75rem; font-weight: 700; }
.sn-speed__btn { min-width: 2.75rem; padding: .25rem .5rem; border: 0; border-radius: 999px; background: transparent; color: var(--foreground); font-family: "Poppins", var(--font); font-size: .75rem; font-weight: 700; cursor: pointer; }
.sn-speed__btn:hover { background: var(--muted); }
.sn-speed__btn[aria-pressed="true"] { background: var(--primary); color: #fff; }
.sn-word__actions { display: inline-flex; align-items: center; gap: .25rem; flex-shrink: 0; }
.sn-speak--slow { opacity: .85; }
.sn-word__star { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--muted-foreground); cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.sn-word__star:hover { border-color: #E9B949; }
.sn-word__star[aria-pressed="true"] { border-color: #E9B949; background: #FFF6DC; color: #C98F00; }
.sn-word__star[aria-pressed="true"] svg { fill: currentColor; }
.is-hide-tr .sn-word__ar, .is-hide-tr .sn-word__extr { filter: blur(6px); cursor: pointer; user-select: none; transition: filter .2s; }
.is-hide-tr .sn-word.is-revealed .sn-word__ar, .is-hide-tr .sn-word.is-revealed .sn-word__extr { filter: none; }
.sn-verbs > .sn-speed, .sn-verb > .sn-speed, .sn-grammar > .sn-speed { margin: 0 auto .875rem; }
/* ---------- notifications ---------- */
.sn-notices { display: grid; gap: .625rem; }
.sn-notice { display: flex; gap: .75rem; padding: .875rem 1rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); }
.sn-notice.is-new { border-color: var(--primary); background: #FFF6F7; box-shadow: var(--shadow-soft); }
.sn-notice__emoji { font-size: 1.5rem; line-height: 1.3; }
.sn-notice__body { flex: 1; min-width: 0; display: grid; gap: .25rem; }
.sn-notice__title { margin: 0; font-weight: 800; color: var(--plum); }
.sn-notice__new { margin-inline-start: .375rem; padding: .05rem .5rem; border-radius: 999px; background: var(--primary); color: #fff; font-size: .6875rem; font-weight: 800; vertical-align: middle; }
.sn-notice__text { margin: 0; font-size: .875rem; overflow-wrap: anywhere; }
.sn-notice__meta { margin: 0; color: var(--muted-foreground); font-size: .75rem; }
.sn-notice__link { color: var(--primary-text); font-weight: 700; display: inline-flex; align-items: center; gap: .125rem; }
