/* dr-v2-shell.css — إطار لوحة التحكم بتصميم Stitch (Desktop\DELETE\3\code.html + DESIGN.md).
   يُحمَّل فقط حين يكون ui_v2_shell مفعّلاً، وكل القواعد تحت body.drv2-shell.
   القائمة الجانبية لكل الأدوار (الطبيب/السكرتيرة sb-*، السوبر أدمن adm-sb-*، المريض/الوسيط lm-*) بنفس الروابط والصلاحيات:
   رأس كحلي بالشعار، صندوق سياق رمادي فاتح (العيادة/الحساب + الحالة)، قائمة مسطّحة بأيقونات خطية،
   العنصر الحالي بخلفية كحلية ونص أبيض، تذييل صغير. */

@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/ibm-plex-sans-arabic/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

body.drv2-shell.drv2-shell[class] {
    /* ألوان القائمة كما في code.html */
    --sb-primary: #031546;        /* primary: رأس القائمة والعناوين */
    --sb-active: #1c2b5b;         /* primary-container: العنصر الحالي */
    --sb-text: #45464f;           /* on-surface-variant: نص العناصر */
    --sb-text-strong: #191c1f;    /* on-surface: عند المرور */
    --sb-low: #f2f3f7;            /* surface-container-low: صندوق السياق */
    --sb-hover: #e7e8ec;          /* surface-container-high: خلفية المرور */
    --sb-coral: #fd6e5e;          /* secondary-container: مربع الشعار والشارات */
    --sb-coral-ink: #ac3329;      /* secondary: نص التذييل */
    --sb-fixed: #dce1ff;          /* primary-fixed: النص الثانوي في الرأس */
    --sb-fixed-dim: #b6c4fe;      /* primary-fixed-dim: علامة التوثيق */
    --sb-lift: 0 1px 8px rgba(0, 0, 0, .04);
    /* ألوان الشريط العلوي (كما كانت) */
    --sh-ink: #1C2B5B; --sh-ink-2: #3D4768; --sh-muted: #5A6382;
    --sh-line: #E3E6EF; --sh-chip: #E9ECF6; --sh-canvas: #F6F7FB; --sh-coral: #F86A5B;
}

/* ───────── الحاوية: لوح أبيض واحد، الرأس من الحافة إلى الحافة ───────── */
body.drv2-shell.drv2-shell[class] .sb-col,
body.drv2-shell.drv2-shell[class] .adm-sb-col,
body.drv2-shell.drv2-shell[class] .lm-wrap {
    font-family: 'IBM Plex Sans Arabic', Tajawal, sans-serif;
}
body.drv2-shell.drv2-shell[class] .sb-col { padding: 16px 8px 16px 4px; }
body.drv2-shell.drv2-shell[class] .sb-sticky,
body.drv2-shell.drv2-shell[class] .adm-sidebar,
body.drv2-shell.drv2-shell[class] .lm-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: var(--sb-lift) !important;
    overflow: hidden;
    padding: 0 !important;
}

/* البطاقات القديمة التي حلّ محلّها رأس v2 (نفس معلوماتها معروضة في صندوق السياق) */
body.drv2-shell.drv2-shell[class] .sb-sticky > .v2sb-head + div,
body.drv2-shell.drv2-shell[class] .adm-sb-header,
body.drv2-shell.drv2-shell[class] .lm-profile { display: none !important; }

/* ───────── الرأس: شريط كحلي بالشعار ───────── */
body.drv2-shell.drv2-shell[class] .v2sb-head { margin: 0 0 16px !important; font-family: 'IBM Plex Sans Arabic', Tajawal, sans-serif; }
body.drv2-shell.drv2-shell[class] .v2sb-head *,
body.drv2-shell.drv2-shell[class] .v2sb-foot { box-sizing: border-box; }
body.drv2-shell.drv2-shell[class] .v2sb-brand {
    display: flex; align-items: center; gap: 8px;
    height: 80px; padding: 0 16px;
    background: var(--sb-primary);
    color: #fff !important; text-decoration: none !important;
}
body.drv2-shell.drv2-shell[class] .v2sb-brand__mark {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    background: var(--sb-coral); color: var(--sb-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 19px;
}
body.drv2-shell.drv2-shell[class] .v2sb-brand__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
body.drv2-shell.drv2-shell[class] .v2sb-brand__name { font-size: 18px; line-height: 1.3; font-weight: 700; color: #fff; white-space: nowrap; }
body.drv2-shell.drv2-shell[class] .v2sb-brand__role {
    font-size: 11px; line-height: 16px; font-weight: 500; color: var(--sb-fixed); opacity: .9;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.drv2-shell.drv2-shell[class] .v2sb-brand__ok { color: var(--sb-fixed-dim); font-size: 17px; flex: none; }
body.drv2-shell.drv2-shell[class] .v2sb-brand:focus-visible { outline: 3px solid var(--sb-coral); outline-offset: -3px; }

/* ───────── صندوق السياق (القسم الطبي في التصميم) ───────── */
body.drv2-shell.drv2-shell[class] .v2sb-ctx { padding: 16px; background: var(--sb-low); }
body.drv2-shell.drv2-shell[class] .v2sb-ctx__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.drv2-shell.drv2-shell[class] .v2sb-ctx__label { font-size: 11px; line-height: 16px; font-weight: 500; color: var(--sb-text); }
body.drv2-shell.drv2-shell[class] .v2sb-ctx__badge {
    font-size: 12px; line-height: 18px; font-weight: 500;
    padding: 2px 4px; border-radius: 4px; white-space: nowrap;
}
body.drv2-shell.drv2-shell[class] .v2sb-ctx__badge--ok,
body.drv2-shell.drv2-shell[class] .v2sb-ctx__badge--info { background: var(--sb-active); color: #fff; }
body.drv2-shell.drv2-shell[class] .v2sb-ctx__badge--off { background: #ffdad6; color: #93000a; }
body.drv2-shell.drv2-shell[class] .v2sb-ctx__name {
    margin-top: 4px; font-size: 14px; line-height: 22px; font-weight: 700; color: var(--sb-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.drv2-shell.drv2-shell[class] .v2sb-ctx__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
body.drv2-shell.drv2-shell[class] .v2sb-ctx__sub { font-size: 11px; line-height: 16px; color: var(--sb-text); }
body.drv2-shell.drv2-shell[class] .v2sb-ctx__edit {
    margin-inline-start: auto; font-size: 12px; line-height: 18px; font-weight: 600;
    color: var(--sb-primary) !important; text-decoration: underline !important; text-underline-offset: 3px;
}
body.drv2-shell.drv2-shell[class] .v2sb-ctx__edit:focus-visible { outline: 3px solid var(--sb-primary); outline-offset: 2px; border-radius: 4px; }

/* ───────── التذييل ───────── */
body.drv2-shell.drv2-shell[class] .v2sb-foot {
    margin-top: auto; padding: 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-family: 'IBM Plex Sans Arabic', Tajawal, sans-serif;
    font-size: 11px; line-height: 16px; font-weight: 500; color: var(--sb-text);
    background: #fff;
}
body.drv2-shell.drv2-shell[class] .v2sb-foot__dom { color: var(--sb-coral-ink); font-weight: 700; direction: ltr; }

/* ───────── قائمة مسطّحة: بلا بطاقات مجموعات ولا عناوين أقسام (كما في التصميم) ───────── */
body.drv2-shell.drv2-shell[class] .sb-nav-card,
body.drv2-shell.drv2-shell[class] .lm-card,
body.drv2-shell.drv2-shell[class] .lm-card.lm-primary {
    background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    padding: 0 8px !important; margin: 0 !important;
}
body.drv2-shell.drv2-shell[class] .adm-sb-nav { padding: 0 8px 16px !important; }
body.drv2-shell.drv2-shell[class] .sb-section-hd,
body.drv2-shell.drv2-shell[class] .adm-sb-section,
body.drv2-shell.drv2-shell[class] .lm-sec { display: none !important; }
body.drv2-shell.drv2-shell[class] .sb-sep,
body.drv2-shell.drv2-shell[class] .adm-sb-divider { height: 1px; background: var(--sb-hover) !important; margin: 8px 16px !important; }

/* زر «وضع مبسّط» (للأطباء الجدد) */
body.drv2-shell.drv2-shell[class] #sbModeToggle { border-bottom: 0 !important; padding: 0 8px 8px !important; }
body.drv2-shell.drv2-shell[class] #sbModeBtn {
    background: var(--sb-low) !important; border: 0 !important; color: var(--sb-primary) !important;
    border-radius: 8px !important; font-family: inherit !important; min-height: 40px; font-size: 13px !important;
}

/* ───────── عنصر القائمة (الأدوار الثلاثة) ───────── */
body.drv2-shell.drv2-shell[class] .sb-item,
body.drv2-shell.drv2-shell[class] .adm-sb-item,
body.drv2-shell.drv2-shell[class] .lm-item {
    display: flex !important; align-items: center !important;
    box-sizing: border-box !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    min-height: 40px;
    margin: 0 0 4px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--sb-text) !important;
    font-size: 14px !important; line-height: 22px !important; font-weight: 500 !important;
    box-shadow: none !important;
    transition: background-color .15s, color .15s !important;
    text-decoration: none !important;
}
body.drv2-shell.drv2-shell[class] .sb-item:hover,
body.drv2-shell.drv2-shell[class] .adm-sb-item:hover,
body.drv2-shell.drv2-shell[class] .lm-item:hover { background: var(--sb-hover) !important; color: var(--sb-text-strong) !important; }
body.drv2-shell.drv2-shell[class] .sb-item.active,
body.drv2-shell.drv2-shell[class] .adm-sb-item.active,
body.drv2-shell.drv2-shell[class] .lm-item.lm-active {
    background: var(--sb-active) !important; color: #fff !important; font-weight: 700 !important;
    box-shadow: var(--sb-lift) !important;
}
body.drv2-shell.drv2-shell[class] .sb-item.active::after,
body.drv2-shell.drv2-shell[class] .adm-sb-item.active::before,
body.drv2-shell.drv2-shell[class] .adm-sb-item.active::after,
body.drv2-shell.drv2-shell[class] .lm-item.lm-active::after { display: none !important; }

/* الأيقونة: خطية 20px بلون النص، بلا مربع ملوّن (تُلغى الخلفيات المضمّنة في القوالب) */
body.drv2-shell.drv2-shell[class] .sb-item .sb-ic,
body.drv2-shell.drv2-shell[class] .adm-sb-icon,
body.drv2-shell.drv2-shell[class] .lm-ico {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    width: 20px !important; height: 20px !important; flex: none !important;
    background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
    color: inherit !important; font-size: 16px !important; transform: none !important;
}
body.drv2-shell.drv2-shell[class] .sb-item .sb-ic *,
body.drv2-shell.drv2-shell[class] .adm-sb-icon i,
body.drv2-shell.drv2-shell[class] .lm-ico i { color: inherit !important; font-size: 16px !important; }

body.drv2-shell.drv2-shell[class] .sb-lbl,
body.drv2-shell.drv2-shell[class] .adm-sb-label,
body.drv2-shell.drv2-shell[class] .lm-lbl {
    flex: 1 !important; min-width: 0;
    font-size: 14px !important; line-height: 22px !important; font-weight: inherit !important; color: inherit !important;
}
body.drv2-shell.drv2-shell[class] .sb-arrow,
body.drv2-shell.drv2-shell[class] .lm-arr { display: none !important; }
body.drv2-shell.drv2-shell[class] .adm-sb-arrow { color: inherit !important; opacity: .6; font-size: 10px !important; }

/* الشارات (الأعداد): مرجانية بنص كحلي */
body.drv2-shell.drv2-shell[class] .sb-badge,
body.drv2-shell.drv2-shell[class] .adm-sb-count,
body.drv2-shell.drv2-shell[class] .lm-badge,
body.drv2-shell.drv2-shell[class] .lm-badge.urgent {
    background: var(--sb-coral) !important; color: var(--sb-primary) !important;
    border-radius: 999px !important; padding: 0 8px !important; box-shadow: none !important;
    font-size: 11px !important; font-weight: 700 !important; min-width: 20px; height: 20px; line-height: 20px !important;
    display: inline-flex; align-items: center; justify-content: center;
}
body.drv2-shell.drv2-shell[class] .sb-item.active .sb-badge,
body.drv2-shell.drv2-shell[class] .adm-sb-item.active .adm-sb-count { background: #fff !important; color: var(--sb-primary) !important; }

/* تسجيل الخروج: نفس شكل العناصر بلون أحمر هادئ */
body.drv2-shell.drv2-shell[class] .sb-item.sb-logout,
body.drv2-shell.drv2-shell[class] .adm-sb-logout,
body.drv2-shell.drv2-shell[class] .lm-item.lm-logout { color: #ba1a1a !important; }
body.drv2-shell.drv2-shell[class] .sb-item.sb-logout:hover,
body.drv2-shell.drv2-shell[class] .adm-sb-logout:hover,
body.drv2-shell.drv2-shell[class] .lm-item.lm-logout:hover { background: #ffdad6 !important; color: #93000a !important; }

/* زر «سجّل طبيباً جديداً» للوسيط: يبقى مميَّزاً بإطار كحلي */
body.drv2-shell.drv2-shell[class] .lm-item.lm-cta { color: var(--sb-primary) !important; border: 1px solid var(--sb-active) !important; }
body.drv2-shell.drv2-shell[class] .lm-item.lm-cta.lm-active { color: #fff !important; }

/* القوائم الفرعية للسوبر أدمن (الخطط، المحاسبة) */
body.drv2-shell.drv2-shell[class] .adm-sb-submenu {
    margin: 0 0 4px !important; padding: 4px !important;
    background: var(--sb-low) !important; border: 0 !important; border-radius: 8px !important;
}
body.drv2-shell.drv2-shell[class] .adm-sb-sub-item {
    gap: 8px !important; padding: 6px 12px !important; border-radius: 6px !important;
    font-size: 13px !important; color: var(--sb-text) !important; background: transparent !important;
}
body.drv2-shell.drv2-shell[class] .adm-sb-sub-item:hover { background: var(--sb-hover) !important; color: var(--sb-text-strong) !important; }
body.drv2-shell.drv2-shell[class] .adm-sb-sub-item.active { background: #fff !important; color: var(--sb-primary) !important; font-weight: 700 !important; }
body.drv2-shell.drv2-shell[class] .adm-sb-sub-item i,
body.drv2-shell.drv2-shell[class] .adm-sb-sub-item:hover i,
body.drv2-shell.drv2-shell[class] .adm-sb-sub-item.active i { color: inherit !important; }

/* ───────── الشريط العلوي (fd-topbar) — نفس الروابط والأزرار، بشكل Stitch ───────── */
body.drv2-shell.drv2-shell[class] .fd-topbar {
    background: #fff !important;
    border-bottom: 1px solid var(--sh-line) !important;
    box-shadow: none !important;
    font-family: 'IBM Plex Sans Arabic', Tajawal, sans-serif;
}
body.drv2-shell.drv2-shell[class] .fd-logo-text { color: var(--sh-ink) !important; font-weight: 700 !important; }
body.drv2-shell.drv2-shell[class] .fd-logo-text small { color: var(--sh-muted) !important; font-weight: 500 !important; }
/* البحث: حقل بحد رمادي وحواف 10، بلا ظل */
body.drv2-shell.drv2-shell[class] .fd-search-input-wrap {
    background: var(--sh-canvas) !important;
    border: 1px solid var(--sh-line) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
body.drv2-shell.drv2-shell[class] .fd-search-input-wrap:focus-within { border-color: var(--sh-ink) !important; background: #fff !important; }
body.drv2-shell.drv2-shell[class] .fd-search-input-wrap > i { color: var(--sh-muted) !important; }
body.drv2-shell.drv2-shell[class] .fd-search input { color: var(--sh-ink) !important; font-family: inherit !important; }
body.drv2-shell.drv2-shell[class] .fd-search input::placeholder { color: var(--sh-muted) !important; }
body.drv2-shell.drv2-shell[class] .fd-filter-btn {
    background: #fff !important; border: 1px solid var(--sh-line) !important; color: var(--sh-ink) !important;
    border-radius: 8px !important; box-shadow: none !important;
}
body.drv2-shell.drv2-shell[class] .fd-search-suggest {
    border: 1px solid var(--sh-line) !important; border-radius: 12px !important; box-shadow: none !important;
}
/* أيقونات التنقل في الوسط: حبر، والصفحة الحالية بخط سفلي حبر */
body.drv2-shell.drv2-shell[class] .fd-nav-item { color: var(--sh-ink-2) !important; border-radius: 10px !important; }
body.drv2-shell.drv2-shell[class] .fd-nav-item:hover { background: var(--sh-canvas) !important; color: var(--sh-ink) !important; }
body.drv2-shell.drv2-shell[class] .fd-nav-item.active { color: var(--sh-ink) !important; }
body.drv2-shell.drv2-shell[class] .fd-nav-item.active::after { background: var(--sh-ink) !important; }
/* أزرار الأيقونات (المحادثات، الباقات، الإشعارات، الحساب): مربعات بحد رمادي وحواف 10 كما في Stitch */
body.drv2-shell.drv2-shell[class] .fd-icon-btn {
    background: #fff !important;
    border: 1px solid var(--sh-line) !important;
    border-radius: 10px !important;
    color: var(--sh-ink) !important;
    box-shadow: none !important;
}
body.drv2-shell.drv2-shell[class] .fd-icon-btn:hover { background: var(--sh-canvas) !important; }
body.drv2-shell.drv2-shell[class] .fd-icon-btn-attn { animation: none !important; }
body.drv2-shell.drv2-shell[class] .fd-account-btn { border-radius: 10px !important; }
body.drv2-shell.drv2-shell[class] .fd-account-btn img,
body.drv2-shell.drv2-shell[class] .fd-account-btn .fd-avatar-fallback { border-radius: 9px !important; background: var(--sh-chip) !important; }
/* الشارات: مرجاني ونص حبر (لا أحمر صارخ ولا بنفسجي متدرج) */
body.drv2-shell.drv2-shell[class] .fd-icon-btn .fd-badge,
body.drv2-shell.drv2-shell[class] .fd-nav-item .fd-badge,
body.drv2-shell.drv2-shell[class] .fd-icon-btn .fd-badge.fd-badge-new {
    background: var(--sh-coral) !important;
    color: var(--sh-ink) !important;
    border: 2px solid #fff !important;
    border-radius: 8px !important;
}
/* القوائم المنسدلة (الإشعارات، الحساب، المزيد) */
body.drv2-shell.drv2-shell[class] .fd-dropdown {
    border: 1px solid var(--sh-line) !important; border-radius: 12px !important; box-shadow: none !important;
    font-family: 'IBM Plex Sans Arabic', Tajawal, sans-serif;
}
body.drv2-shell.drv2-shell[class] .fd-dropdown-item { color: var(--sh-ink-2) !important; border-radius: 8px !important; }
body.drv2-shell.drv2-shell[class] .fd-dropdown-item:hover { background: var(--sh-canvas) !important; color: var(--sh-ink) !important; }
body.drv2-shell.drv2-shell[class] .fd-dropdown-header .name { color: var(--sh-ink) !important; }
body.drv2-shell.drv2-shell[class] .fd-dropdown-divider { background: var(--sh-line) !important; }

/* ───────── الإطار على الشاشات الواسعة: قائمة ثابتة يميناً بكامل الارتفاع (w-72 = 288px)، والشريط والمحتوى بجانبها ───────── */
@media (min-width: 1200px) {
    body.drv2-shell.drv2-shell[class] { --sh-rail: 288px; }
    body.drv2-shell.drv2-shell[class] section > .container-fluid > .row > .sb-col,
    body.drv2-shell.drv2-shell[class] section > .container-fluid > .row > .adm-sb-col,
    body.drv2-shell.drv2-shell[class] section > .container-fluid > .row > .col-lg-3:has(> .lm-wrap) {
        position: fixed !important;
        top: 0 !important; right: 0 !important; bottom: 0 !important; left: auto !important;
        width: var(--sh-rail) !important; max-width: none !important;
        margin: 0 !important; padding: 0 !important;
        background: #fff !important;
        border: 0 !important;
        box-shadow: var(--sb-lift) !important;
        overflow-y: auto !important; overflow-x: hidden !important;
        scrollbar-width: none;
        z-index: 1001 !important;
        transform: none !important;
    }
    body.drv2-shell.drv2-shell[class] section > .container-fluid > .row > .sb-col::-webkit-scrollbar,
    body.drv2-shell.drv2-shell[class] section > .container-fluid > .row > .adm-sb-col::-webkit-scrollbar,
    body.drv2-shell.drv2-shell[class] section > .container-fluid > .row > .col-lg-3:has(> .lm-wrap)::-webkit-scrollbar { display: none; }
    body.drv2-shell.drv2-shell[class] .sb-col .sb-sticky,
    body.drv2-shell.drv2-shell[class] .adm-sb-col .adm-sidebar,
    body.drv2-shell.drv2-shell[class] .col-lg-3 > .lm-wrap {
        position: static !important; top: auto !important; max-height: none !important; overflow: visible !important;
        min-height: 100% !important;
        border: 0 !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important;
        background: #fff !important;
    }
    /* المحتوى: يتنحّى عن القائمة، وتسقط خانتها من الشبكة */
    body.drv2-shell.drv2-shell[class] section > .container-fluid {
        max-width: none !important; width: auto !important; margin: 0 var(--sh-rail) 0 0 !important; padding: 0 !important;
    }
    body.drv2-shell.drv2-shell[class] section > .container-fluid > .row {
        grid-template-columns: minmax(0, 1fr) 320px !important;
        max-width: 1440px; margin: 0 auto !important; padding: 24px !important;
    }
    body.drv2-shell.drv2-shell[class] section > .container-fluid > .row.no-left-rail {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    body.drv2-shell.drv2-shell[class] section > .container-fluid.wide-container > .row { max-width: none; }
    /* الشريط العلوي بجانب القائمة: الشعار انتقل إلى رأس القائمة، وأيقونات الوسط تُخفى كما في التصميم */
    body.drv2-shell.drv2-shell[class] .fd-topbar {
        margin-right: var(--sh-rail) !important;
        height: 64px !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        padding-inline: 24px !important;
    }
    body.drv2-shell.drv2-shell[class] .fd-topbar .fd-logo,
    body.drv2-shell.drv2-shell[class] .fd-topbar .fd-nav { display: none !important; }
    body.drv2-shell.drv2-shell[class] .fd-topbar .fd-search { flex: 1 1 auto; max-width: 560px; }
    body.drv2-shell.drv2-shell[class] .fd-topbar .fd-icon-btn {
        width: 36px !important; height: 36px !important; border: 0 !important; background: var(--sh-canvas) !important;
    }
    body.drv2-shell.drv2-shell[class] .fd-topbar .fd-icon-btn:hover { background: var(--sh-chip) !important; }
    body.drv2-shell.drv2-shell[class] .fd-topbar .fd-account-btn img,
    body.drv2-shell.drv2-shell[class] .fd-topbar .fd-account-btn .fd-avatar-fallback { width: 36px !important; height: 36px !important; border-radius: 50% !important; }
    body.drv2-shell.drv2-shell[class] .fd-topbar .fd-account-btn { border-radius: 50% !important; }
    /* شريط الإعلان القديم في أعلى بعض الصفحات */
    body.drv2-shell.drv2-shell[class] main > div[style*="border-bottom:2px solid"] { margin-right: var(--sh-rail); }
}

/* تركيز لوحة المفاتيح */
body.drv2-shell.drv2-shell[class] .sb-item:focus-visible,
body.drv2-shell.drv2-shell[class] .adm-sb-item:focus-visible,
body.drv2-shell.drv2-shell[class] .lm-item:focus-visible,
body.drv2-shell.drv2-shell[class] .adm-sb-sub-item:focus-visible,
body.drv2-shell.drv2-shell[class] .fd-icon-btn:focus-visible,
body.drv2-shell.drv2-shell[class] .fd-nav-item:focus-visible { outline: 3px solid var(--sb-primary); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    body.drv2-shell.drv2-shell[class] .sb-item,
    body.drv2-shell.drv2-shell[class] .adm-sb-item,
    body.drv2-shell.drv2-shell[class] .lm-item { transition: none !important; }
}
