/* ═══════════════════════════════════════════════════════════════════════════
   🎨 شكل اللوحات (كريم 2026-11-08 — على التصميم اللي اختاره): قايمة زرقا على اليمين، والمحتوى في
   كارت فاتح كبير بحواف مدوّرة، والعنصر النشط في القايمة «لسان» فاتح لازق في الكارت.

   بيتحمّل من App\Filament\KiddyLook (السوبر أدمن والحضانة والمدرس والدكتور) بعد ثيم Vite المشترك،
   فبيكسب عليه من غير ما نبني الثيم من جديد. ملف CSS عادي: الرجوع للشكل القديم = شيل سطر واحد من الـProvider.
   كلاسات الرئيسيات: kd-  · اللوجو: kt-brand  · الجرس: kt-bell
   ═══════════════════════════════════════════════════════════════════════════ */

body.fi-body {
    --s2-shell: #3E549F;
    --s2-shell-deep: #34488C;
    --s2-shell-ink: #FFFFFF;
    --s2-shell-dim: rgba(255, 255, 255, .78);
    --s2-shell-mute: rgba(255, 255, 255, .52);
    --s2-shell-hover: rgba(255, 255, 255, .10);

    --s2-canvas: #F6F7F9;
    --s2-card: #FFFFFF;
    --s2-line: #ECEEF3;
    --s2-head: #DCE1EE;
    --s2-soft: #F0F2F6;

    --s2-ink: #1E2333;
    --s2-dim: #5C6375;
    --s2-mute: #9399A8;

    --s2-accent: #3E549F;
    --s2-accent-soft: #E7EBF6;

    --s2-ok: #2E8A63;   --s2-ok-soft: #E2F4EC;
    --s2-wait: #3D72C9; --s2-wait-soft: #E5EEFB;
    --s2-bad: #D0454E;  --s2-bad-soft: #FBE8E9;
    --s2-warn: #C97A1E; --s2-warn-soft: #FCF1E2;
    --s2-today: #C8706B;

    --s2-radius: 28px;
    --s2-gap: 14px;
    --s2-card-radius: 20px;
    --s2-shadow: 0 1px 2px rgba(30, 40, 80, .05), 0 10px 24px -14px rgba(30, 40, 80, .28);

    /* الكروت والجداول بتاعة فيلامنت في باقي الصفحات بتاخد نفس الأسطح */
    --kt-bg: var(--s2-canvas);
    --kt-surface: var(--s2-card);
    --kt-surface-2: #F8F9FC;
    --kt-border: rgba(120, 130, 160, .20);
    --kt-border-strong: rgba(120, 130, 160, .34);
}

.dark body.fi-body {
    --s2-shell: #18203F;
    --s2-shell-deep: #131A35;
    --s2-shell-dim: rgba(226, 232, 255, .74);
    --s2-shell-mute: rgba(226, 232, 255, .46);
    --s2-shell-hover: rgba(255, 255, 255, .06);

    --s2-canvas: #0F131C;
    --s2-card: #161B26;
    --s2-line: rgba(148, 163, 184, .14);
    --s2-head: #1E2536;
    --s2-soft: #1B2130;

    --s2-ink: #E8ECF3;
    --s2-dim: #A3AEC0;
    --s2-mute: #6B7688;

    --s2-accent: #93A6F2;
    --s2-accent-soft: rgba(147, 166, 242, .14);

    --s2-ok: #4FC08D;   --s2-ok-soft: rgba(79, 192, 141, .14);
    --s2-wait: #7FA8F0; --s2-wait-soft: rgba(127, 168, 240, .14);
    --s2-bad: #F07A82;  --s2-bad-soft: rgba(240, 122, 130, .14);
    --s2-warn: #F0B05A; --s2-warn-soft: rgba(240, 176, 90, .14);
    --s2-today: #E0908A;
    --s2-shadow: none;

    --kt-surface-2: #1C222D;
    --kt-border: rgba(148, 163, 184, .14);
    --kt-border-strong: rgba(148, 163, 184, .26);
}

/* ═══ الهيكل: خلفية زرقا والمحتوى كارت كبير ═══ */
html body.fi-body { background-color: var(--s2-shell) !important; }
body.fi-body .fi-layout { background-color: var(--s2-shell); }

body.fi-body .fi-main-ctn {
    background-color: var(--s2-canvas);
    border-radius: 22px;
    margin: 8px;
    min-width: 0;
    min-height: calc(100vh - 16px);
}

/* ═══ القايمة الجانبية ═══ */
body.fi-body aside.fi-sidebar {
    background-color: var(--s2-shell) !important;
    border: 0 !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000;
}
body.fi-body .fi-sidebar-header {
    background: transparent !important;
    box-shadow: none !important;
    height: auto;
    min-height: 4rem;
    padding: 22px 20px 6px;
    justify-content: center;
}
body.fi-body .fi-logo { height: auto !important; }

body.fi-body .fi-sidebar-nav {
    padding-inline-end: 0;
    padding-top: 1.25rem;
    scrollbar-gutter: auto !important;
    scrollbar-width: none;
}
body.fi-body .fi-sidebar-nav::-webkit-scrollbar { display: none; }
body.fi-body .fi-sidebar-nav-groups { margin-inline-end: 0; row-gap: 1.1rem; }

body.fi-body .fi-sidebar-group-label,
body.fi-body .fi-sidebar-group-button .fi-sidebar-group-label { color: var(--s2-shell-mute) !important; }
body.fi-body .fi-sidebar-group-icon,
body.fi-body .fi-sidebar-group-collapse-button,
body.fi-body .fi-sidebar-group-collapse-button svg { color: var(--s2-shell-mute) !important; }
body.fi-body .fi-sidebar-group-collapse-button:hover { background-color: var(--s2-shell-hover) !important; }

body.fi-body .fi-sidebar-item-button {
    margin-inline-end: 14px;
    border-radius: 14px !important;
    padding: .55rem .8rem;
    background-color: transparent !important;
}
body.fi-body .fi-sidebar-item-label { color: var(--s2-shell-dim) !important; font-weight: 700; }
body.fi-body .fi-sidebar-item-icon { color: var(--s2-shell-mute) !important; }
body.fi-body .fi-sidebar-item:not(.fi-active) > .fi-sidebar-item-button:hover,
body.fi-body .fi-sidebar-item:not(.fi-active) > .fi-sidebar-item-button:focus-visible {
    background-color: var(--s2-shell-hover) !important;
}
body.fi-body .fi-sidebar-item:not(.fi-active) > .fi-sidebar-item-button:hover .fi-sidebar-item-label { color: var(--s2-shell-ink) !important; }

/* الصفحات الفرعية (الوحدات والدروس تحت كتب المنهج…): الخط والنقطة */
body.fi-body .fi-sidebar-item-grouped-border > div { background-color: rgba(255, 255, 255, .28) !important; }

/* الشارات (العدّادات) على الأزرق */
body.fi-body .fi-sidebar .fi-badge {
    background-color: rgba(255, 255, 255, .16) !important;
    color: #FFFFFF !important;
    --tw-ring-color: transparent !important;
}

/* العنصر النشط: لسان فاتح لازق في الكارت */
body.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-button {
    background-color: var(--s2-canvas) !important;
    margin-inline-end: 0;
    border-start-end-radius: 0 !important;
    border-end-end-radius: 0 !important;
}
body.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-button .fi-sidebar-item-label { color: var(--s2-accent) !important; font-weight: 800; }
body.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-button .fi-sidebar-item-icon { color: var(--s2-accent) !important; }
body.fi-body .fi-sidebar-item.fi-active .fi-sidebar-item-grouped-border .rounded-full { background-color: var(--s2-accent) !important; }
body.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-button .fi-badge {
    background-color: var(--s2-accent-soft) !important;
    color: var(--s2-accent) !important;
}

/* شريط البراند القديم بتاع الثيم المشترك (::before) مش محتاجينه هنا */
body.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-button::before,
body.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-button::after { content: none; }

/* الموبايل: القايمة بتطلع فوق المحتوى — اللسان يبقى حبة مدوّرة عادية */
@media (max-width: 1023.98px) {
    body.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-button {
        margin-inline-end: 14px;
        border-radius: 14px !important;
    }
}

/* الديسكتوب: الكارت لازق في القايمة + الركنتين المقعّرين حوالين اللسان */
@media (min-width: 1024px) {
    body.fi-body .fi-main-ctn {
        border-radius: var(--s2-radius);
        margin: var(--s2-gap);
        margin-inline-start: 0;
        min-height: calc(100vh - 2 * var(--s2-gap));
    }

    body.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-button::before,
    body.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-button::after {
        content: '';
        display: block;
        position: absolute;
        inset-inline-start: auto;
        inset-inline-end: 0;
        width: 18px;
        height: 18px;
        border-radius: 0;
        pointer-events: none;
    }
    body.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-button::before { top: -18px; bottom: auto; }
    body.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-button::after { bottom: -18px; top: auto; }

    [dir='rtl'] body.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-button::before {
        background: radial-gradient(circle at 100% 0, transparent 17.5px, var(--s2-canvas) 18px);
    }
    [dir='rtl'] body.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-button::after {
        background: radial-gradient(circle at 100% 100%, transparent 17.5px, var(--s2-canvas) 18px);
    }
    [dir='ltr'] body.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-button::before {
        background: radial-gradient(circle at 0 0, transparent 17.5px, var(--s2-canvas) 18px);
    }
    [dir='ltr'] body.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-button::after {
        background: radial-gradient(circle at 0 100%, transparent 17.5px, var(--s2-canvas) 18px);
    }
}

/* زرار طي القايمة (لوحة الحضانة) — في الركن فوق، والأيقونات فاتحة على الأزرق */
body.fi-body .fi-sidebar-header { position: relative; }
body.fi-body .fi-sidebar-header .fi-icon-btn { color: var(--s2-shell-dim) !important; }
body.fi-body .fi-sidebar-header .fi-icon-btn:hover { background-color: var(--s2-shell-hover) !important; color: var(--s2-shell-ink) !important; }
body.fi-body .fi-sidebar-header > .fi-icon-btn.ms-auto { position: absolute; top: 10px; inset-inline-end: 10px; }

/* القايمة مطوية (أيقونات بس): العناصر في النص، واللسان بيفضل لازق في الكارت */
@media (min-width: 1024px) {
    body.fi-body aside.fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-nav { padding-inline-start: .75rem; }
    body.fi-body aside.fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item-button { margin-inline-end: 10px; justify-content: center; }
    body.fi-body aside.fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item.fi-active > .fi-sidebar-item-button { margin-inline-end: 0; }
}

/* ═══ اللوجو ═══ */
.kt-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; line-height: 1.1; }
.kt-brand-mark {
    width: 62px; height: 62px; border-radius: 18px; background: #FFFFFF; padding: 4px;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35);
}
.kt-brand-mark.is-logo { object-fit: contain; padding: 6px; }
.kt-brand-text { display: flex; flex-direction: column; gap: 2px; }
.kt-brand-name { font-weight: 900; font-size: 1.15rem; color: var(--s2-ink, #1E2333); }
.kt-brand-sub { font-weight: 700; font-size: .72rem; color: var(--s2-mute, #9399A8); letter-spacing: .02em; }
body.fi-body .fi-sidebar .kt-brand-name { color: var(--s2-shell-ink); }
body.fi-body .fi-sidebar .kt-brand-sub { color: var(--s2-shell-mute); }

/* ═══ الشريط العلوي (جوّه الكارت) ═══ */
body.fi-body div.fi-topbar > nav {
    background-color: color-mix(in srgb, var(--s2-canvas) 90%, transparent) !important;
    backdrop-filter: blur(12px);
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000;
    border-bottom: 1px solid var(--s2-line) !important;
    border-radius: 22px 22px 0 0;
    height: 4.5rem;
}
@media (min-width: 1024px) {
    body.fi-body div.fi-topbar > nav { border-radius: var(--s2-radius) var(--s2-radius) 0 0; }
}
body.fi-body .fi-topbar > nav > .ms-auto { flex: 1 1 auto; min-width: 0; }
body.fi-body .fi-topbar .fi-global-search { flex: 1 1 auto; max-width: 640px; }
body.fi-body .fi-topbar .fi-global-search > div,
body.fi-body .fi-topbar .fi-global-search-field { width: 100%; }
body.fi-body .fi-topbar .fi-global-search-field .fi-input-wrp {
    border-radius: 999px !important;
    background-color: var(--s2-card);
    box-shadow: 0 0 0 1px var(--s2-line), 0 4px 14px -10px rgba(30, 40, 80, .35);
}
.kt-user-name {
    margin-inline-start: auto;
    font-weight: 800;
    font-size: .9rem;
    color: var(--s2-ink);
    white-space: nowrap;
}
@media (max-width: 767.98px) { .kt-user-name { display: none; } }

/* الجرس */
.kt-bell-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border-radius: 999px; color: var(--s2-dim); transition: background-color .15s ease;
}
.kt-bell-btn:hover { background-color: var(--s2-soft); color: var(--s2-ink); }
.kt-bell-icon { width: 1.5rem; height: 1.5rem; }
.kt-bell-dot {
    position: absolute; top: 3px; inset-inline-end: 2px; min-width: 1.05rem; height: 1.05rem; padding: 0 4px;
    border-radius: 999px; background: #DE404E; color: #FFFFFF; font-size: .62rem; font-weight: 900;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1;
    box-shadow: 0 0 0 2px var(--s2-canvas);
}
.kt-bell-head { padding: .7rem .9rem .3rem; font-weight: 900; font-size: .85rem; color: var(--s2-ink); }
.kt-bell .fi-dropdown-list-item { white-space: normal; text-align: start; }

/* ═══ جداول فيلامنت في كل الصفحات: رأس أزرق رمادي زي التصميم ═══ */
body.fi-body .fi-ta-header-cell { background-color: var(--s2-head) !important; color: var(--s2-ink); }

/* ═══ صفحة الدخول ═══ */
body.fi-body .fi-simple-layout { background-color: var(--s2-shell) !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   🏠 الرئيسية (resources/views/filament/super-admin/pages/dashboard.blade.php)
   ═══════════════════════════════════════════════════════════════════════════ */
.kd { display: flex; flex-direction: column; gap: 18px; color: var(--s2-ink); }
.kd-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1280px) { .kd-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
.kd-main, .kd-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (min-width: 768px) and (max-width: 1279.98px) {
    .kd-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
}

.kd-card {
    background-color: var(--s2-card);
    border-radius: var(--s2-card-radius);
    box-shadow: var(--s2-shadow);
}
.dark .kd-card { border: 1px solid var(--s2-line); }
.kd-ico { width: 1.25rem; height: 1.25rem; flex: none; }
.kd-ico-sm { width: 1rem; height: 1rem; flex: none; }
[x-cloak] { display: none !important; }

/* ترحيب */
.kd-hero { position: relative; display: flex; align-items: stretch; gap: 12px; padding: 22px 26px 0; overflow: hidden; min-height: 170px; }
.kd-hero-text { flex: 1; min-width: 0; padding-bottom: 22px; }
.kd-hero-date { font-size: .78rem; font-weight: 700; color: var(--s2-mute); }
.kd-hero-title { margin-top: 4px; font-size: 1.6rem; font-weight: 900; line-height: 1.25; letter-spacing: -.01em; color: var(--s2-ink); }
.kd-hero-sub { margin-top: 8px; font-size: .9rem; line-height: 1.75; color: var(--s2-dim); max-width: 46ch; }
.kd-hero-sub b { color: var(--s2-ink); font-weight: 800; }
.kd-btn {
    margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
    padding: .55rem 1.1rem; border-radius: 999px; font-weight: 800; font-size: .85rem;
    background-color: var(--s2-accent); color: #FFFFFF; transition: transform .15s ease, filter .15s ease;
}
.dark .kd-btn { color: #0F131C; }
.kd-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.kd-hero-art { position: relative; width: 190px; flex: none; display: flex; align-items: flex-end; justify-content: center; }
.kd-hero-blob {
    position: absolute; bottom: -40px; inset-inline-start: 50%; width: 210px; height: 210px; border-radius: 50%;
    transform: translateX(50%); background: var(--s2-accent-soft);
}
[dir='ltr'] .kd-hero-blob { transform: translateX(-50%); }
.kd-hero-art img { position: relative; width: 150px; height: 168px; object-fit: cover; object-position: top center; }
@media (max-width: 639.98px) {
    .kd-hero { padding: 18px 18px 0; }
    .kd-hero-art { width: 110px; }
    .kd-hero-art img { width: 100px; height: 132px; }
    .kd-hero-title { font-size: 1.3rem; }
}

/* الأرقام */
.kd-stats { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .kd-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kd-stat {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 18px 12px 16px; transition: transform .15s ease, box-shadow .15s ease;
}
a.kd-stat:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(30, 40, 80, .06), 0 16px 30px -16px rgba(30, 40, 80, .38); }
.kd-stat-icon { width: 1.9rem; height: 1.9rem; color: var(--kd-tone, var(--s2-accent)); }
.kd-stat-value { margin-top: 8px; font-size: 2rem; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; color: var(--s2-ink); font-variant-numeric: tabular-nums; }
.kd-stat-label { margin-top: 6px; font-size: .85rem; font-weight: 800; color: var(--s2-ink); }
.kd-stat-hint { margin-top: 2px; font-size: .7rem; color: var(--s2-mute); }

/* الجدول */
.kd-table { overflow: hidden; }
.kd-table-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 10px; }
.kd-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--s2-soft); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.kd-tabs::-webkit-scrollbar { display: none; }
.kd-tabs button {
    white-space: nowrap; flex: none;
    padding: .35rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 800; color: var(--s2-dim);
    transition: background-color .15s ease, color .15s ease;
}
.kd-tabs button.is-on { background: var(--s2-card); color: var(--s2-accent); box-shadow: 0 1px 3px rgba(30, 40, 80, .12); }
.kd-more { font-size: .8rem; font-weight: 800; color: var(--s2-accent); }
.kd-more:hover { text-decoration: underline; }
.kd-table-scroll { overflow-x: auto; }
.kd-table table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.kd-table th {
    background: var(--s2-head); color: var(--s2-ink); font-weight: 800; font-size: .8rem;
    text-align: start; padding: .7rem 1rem; white-space: nowrap;
}
.kd-table td { padding: .75rem 1rem; border-top: 1px solid var(--s2-line); white-space: nowrap; color: var(--s2-ink); }
.kd-table tbody tr:first-child td { border-top: 0; }
.kd-table tbody tr:hover td { background: color-mix(in srgb, var(--s2-accent) 4%, transparent); }
.kd-name { font-weight: 800; color: var(--s2-ink); }
a.kd-name:hover { color: var(--s2-accent); text-decoration: underline; }
.kd-dim { color: var(--s2-dim) !important; }
.kd-num { font-weight: 800; font-variant-numeric: tabular-nums; }
.kd-empty { text-align: center; color: var(--s2-mute) !important; padding: 1.5rem !important; }

.kd-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .8rem; }
.kd-status svg { width: 1.05rem; height: 1.05rem; }
.kd-tone-ok { --kd-tone: var(--s2-ok); color: var(--s2-ok); }
.kd-tone-wait { --kd-tone: var(--s2-wait); color: var(--s2-wait); }
.kd-tone-bad { --kd-tone: var(--s2-bad); color: var(--s2-bad); }
.kd-tone-warn { --kd-tone: var(--s2-warn); color: var(--s2-warn); }
.kd-tone-mute { --kd-tone: var(--s2-mute); color: var(--s2-mute); }
.kd-tone-accent { --kd-tone: var(--s2-accent); }
td.kd-tone-ok, td.kd-tone-bad { color: var(--kd-tone) !important; }

/* التقويم */
.kd-cal { padding: 16px 16px 14px; transition: opacity .15s ease; }
.kd-cal.is-busy { opacity: .55; }
.kd-cal-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kd-cal-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; color: var(--s2-bad); font-size: .95rem; }
.kd-cal-title .kd-ico { color: var(--s2-bad); }
.kd-cal-nav { display: inline-flex; gap: 6px; }
.kd-cal-nav button {
    width: 1.6rem; height: 1.6rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--s2-bad); color: #FFFFFF; transition: filter .15s ease;
}
.kd-cal-nav button:hover { filter: brightness(1.08); }
.kd-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; text-align: center; }
.kd-cal-dow { font-size: .62rem; font-weight: 800; color: var(--s2-mute); padding-bottom: 6px; }
.kd-cal-day { display: flex; align-items: center; justify-content: center; height: 2.05rem; font-size: .8rem; font-weight: 700; color: var(--s2-ink); font-variant-numeric: tabular-nums; }
.kd-cal-day span {
    position: relative; width: 1.85rem; height: 1.85rem; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
}
.kd-cal-day.is-muted { color: var(--s2-mute); opacity: .55; }
.kd-cal-day.mark-a span { background: var(--s2-ok-soft); color: var(--s2-ok); font-weight: 900; }
.kd-cal-day.mark-b span::after {
    content: ''; position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%);
    width: 5px; height: 5px; border-radius: 999px; background: var(--s2-wait);
}
.kd-cal-day.is-today span { background: var(--s2-today); color: #FFFFFF; font-weight: 900; }
.kd-cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--s2-line); font-size: .72rem; color: var(--s2-dim); }
.kd-cal-legend a:hover { color: var(--s2-accent); }
.kd-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 999px; margin-inline-end: 5px; vertical-align: middle; }
.kd-dot-a { background: var(--s2-ok); }
.kd-dot-b { background: var(--s2-wait); }
.kd-dot-today { background: var(--s2-today); }

/* محتاج انتباهك */
.kd-notes { padding: 14px 12px 12px; }
.kd-notes-title { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 900; font-size: .9rem; color: var(--s2-ink); padding-bottom: 10px; }
.kd-notes ul { display: flex; flex-direction: column; gap: 6px; }
.kd-note { display: flex; align-items: flex-start; gap: 10px; padding: .65rem .7rem; border-radius: 12px; background: var(--s2-soft); transition: background-color .15s ease; }
.kd-note:hover { background: var(--s2-accent-soft); }
.kd-note.is-done { background: transparent; }
.kd-note.is-done:hover { background: var(--s2-soft); }
.kd-note-icon {
    flex: none; width: 1.65rem; height: 1.65rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--s2-warn-soft); color: var(--s2-warn);
}
.kd-note.is-done .kd-note-icon { background: var(--s2-ok-soft); color: var(--s2-ok); }
.kd-note-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kd-note-title { font-size: .8rem; font-weight: 800; color: var(--s2-ink); line-height: 1.45; }
.kd-note.is-done .kd-note-title { color: var(--s2-dim); font-weight: 700; }
.kd-note-desc { font-size: .7rem; color: var(--s2-mute); line-height: 1.5; }

/* الشغل اليومي */
.kd-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.kd-link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; transition: transform .15s ease; }
.kd-link:hover { transform: translateY(-2px); }
.kd-link-icon { width: 1.6rem; height: 1.6rem; flex: none; color: var(--kd-tone, var(--s2-accent)); }
.kd-link-label { display: block; font-size: .82rem; font-weight: 800; color: var(--s2-ink); }
.kd-link-desc { display: block; font-size: .7rem; color: var(--s2-mute); }

.kd-foot { text-align: center; font-size: .72rem; color: var(--s2-mute); }
.kd-warn { color: var(--s2-warn); font-weight: 800; }

/* عنوان كارت */
.kd-section-title { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: .95rem; color: var(--s2-ink); margin-bottom: 12px; }
.kd-section-title .kd-ico { color: var(--s2-accent); }

/* ابدأوا من هنا (حضانة جديدة) */
.kd-steps { padding: 16px; }
.kd-steps-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.kd-step { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; background: var(--s2-soft); transition: transform .15s ease; }
.kd-step:hover { transform: translateY(-2px); }
.kd-step.is-done { background: var(--s2-ok-soft); }
.kd-step-num {
    width: 1.7rem; height: 1.7rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--s2-accent); color: #FFFFFF; font-weight: 900; font-size: .78rem;
}
.dark .kd-step-num { color: #0F131C; }
.kd-step.is-done .kd-step-num { background: var(--s2-ok); }
.kd-step-title { margin-top: 4px; font-weight: 900; font-size: .85rem; color: var(--s2-ink); }
.kd-step-desc { font-size: .72rem; line-height: 1.6; color: var(--s2-dim); }

/* منهجنا في التطبيق (الحضانة) */
.kd-cur { padding: 16px; }
.kd-cur-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kd-cur-grade { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--s2-soft); }
.kd-cur-name { font-weight: 900; font-size: .9rem; color: var(--s2-ink); }
.kd-cur-mode { font-size: .7rem; color: var(--s2-mute); }
.kd-cur-count { text-align: end; line-height: 1.1; }
.kd-cur-count b { display: block; font-size: 1.5rem; font-weight: 900; color: var(--s2-accent); }
.kd-cur-count span { font-size: .66rem; color: var(--s2-mute); }
.kd-cur-week { display: flex; flex-direction: column; justify-content: center; font-size: .78rem; line-height: 1.7; color: var(--s2-dim); }
.kd-cur-week b { color: var(--s2-ink); font-weight: 900; }
.kd-cur-taught { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--s2-wait-soft); font-size: .78rem; line-height: 1.8; color: var(--s2-ink); }
.kd-cur-taught-title { font-weight: 900; }
.kd-cur-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

/* بوابة المدرس: أزرار كبيرة للموبايل */
.kd-big { display: grid; gap: 12px; }
@media (min-width: 768px) { .kd-big { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kd-big-item { display: flex; align-items: center; gap: 14px; padding: 18px; transition: transform .15s ease; }
.kd-big-item:active { transform: scale(.99); }
.kd-big-icon {
    width: 3.4rem; height: 3.4rem; flex: none; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--kd-tone, var(--s2-accent)) 12%, transparent); color: var(--kd-tone, var(--s2-accent));
}
.kd-big-icon svg { width: 2rem; height: 2rem; }
.kd-big-label { display: block; font-size: 1.05rem; font-weight: 900; color: var(--s2-ink); }
.kd-big-desc { display: block; font-size: .8rem; color: var(--s2-dim); }

/* بوابة الدكتور */
.kd-doc { display: grid; gap: 14px; }
@media (min-width: 768px) { .kd-doc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kd-doc-card { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.kd-doc-card .fi-btn { align-self: flex-start; margin-top: 6px; }
.kd-doc-big { font-size: 2rem; font-weight: 900; line-height: 1.1; color: var(--s2-ink); }
.kd-doc-line { font-size: .85rem; color: var(--s2-dim); line-height: 1.7; }
.kd-doc-line b { color: var(--s2-ink); }
