/* =====================================================================
   10 هياكل جديدة ومستقلة هندسياً + تحويلات مساحة العمل + أنماط هاتف مخصّصة
   تعمل فوق جميع التيمات الـ 23 عبر متغيرات CSS (var(--primary), var(--surface)...)
   ===================================================================== */

/* =====================================================================
   1) DUAL_RAIL — السكة المزدوجة (حاسوب: سكة مزدوجة | هاتف: شريط سفلي + Bottom Sheet)
   ===================================================================== */
html[data-shell="dual_rail"] body {
    padding-inline-start: 284px;
    padding-top: 0;
}
html[data-shell="dual_rail"].dr-sub-hidden body {
    padding-inline-start: 68px;
}

.dr-primary-rail {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: 68px;
    background: var(--surface, #ffffff);
    border-inline-end: 1px solid var(--border, #e2e8f0);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
    z-index: 950;
}
.dr-brand-dot {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--primary, #4f46e5);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 6px;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary, #4f46e5) 35%, transparent);
}
.dr-rail-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    width: 100%;
    padding: 0 8px;
}
.dr-rail-list::-webkit-scrollbar { display: none; }
.dr-rail-item {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted, #64748b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.16s ease;
}
.dr-rail-item:hover {
    background: var(--bg-subtle, #f1f5f9);
    color: var(--text, #0f172a);
}
.dr-rail-item.active {
    background: var(--primary-soft, rgba(79, 70, 229, 0.12));
    color: var(--primary, #4f46e5);
    border-color: color-mix(in srgb, var(--primary, #4f46e5) 30%, transparent);
}
.dr-rail-item.active::before {
    content: "";
    position: absolute;
    inset-inline-start: -9px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 99px;
    background: var(--primary, #4f46e5);
}
.dr-rail-badge {
    position: absolute;
    top: 3px;
    inset-inline-end: 3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--danger, #ef4444);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dr-rail-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border, #e2e8f0);
    width: 100%;
}

.dr-secondary-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 68px;
    width: 216px;
    background: var(--bg-subtle, #f8fafc);
    border-inline-end: 1px solid var(--border, #e2e8f0);
    display: flex;
    flex-direction: column;
    z-index: 940;
}
html[data-shell="dual_rail"].dr-sub-hidden .dr-secondary-panel { display: none; }
.dr-sub-head {
    padding: 15px 14px 12px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.dr-sub-brand {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dr-sub-body { flex: 1; overflow-y: auto; padding: 12px 10px; }
.dr-sub-pane { display: none; flex-direction: column; gap: 4px; }
.dr-sub-pane.active { display: flex; }
.dr-sub-pane-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted, #64748b);
    padding: 4px 10px 8px;
}
.dr-sub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--text, #0f172a);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.14s ease, color 0.14s ease;
}
.dr-sub-link:hover {
    background: var(--surface, #ffffff);
    color: var(--primary, #4f46e5);
}
.dr-sub-link.active {
    background: var(--surface, #ffffff);
    color: var(--primary, #4f46e5);
    box-shadow: var(--shadow-sm);
    font-weight: 800;
}
.dr-topbar {
    position: sticky;
    top: 0;
    z-index: 910;
    background: var(--surface-glass, rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.dr-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 22px;
    min-height: 56px;
}

.dr-mob-bar,
.dr-mob-sheet-overlay,
.dr-mob-sheet { display: none; }

html[data-shell="dual_rail"] :is(body.page-admin, body.page-panel) .stats-grid {
    gap: 0 !important;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius, 14px);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
html[data-shell="dual_rail"] :is(body.page-admin, body.page-panel) .stat-card {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-inline-end: 1px solid var(--border, #e2e8f0) !important;
    border-bottom: 1px solid var(--border, #e2e8f0) !important;
    padding: 15px 18px !important;
}
html[data-shell="dual_rail"] :is(body.page-admin, body.page-panel) .data-table th,
html[data-shell="dual_rail"] :is(body.page-admin, body.page-panel) .data-table td {
    padding: 9px 12px !important;
    font-size: 0.85rem;
}

/* =====================================================================
   2) EXECUTIVE_OVERLAP — البانر المتداخل (يبقى متداخلاً على الهاتف أيضاً)
   ===================================================================== */
.eo-banner {
    background: linear-gradient(135deg, var(--primary, #1e3a8a) 0%, color-mix(in srgb, var(--primary, #1e3a8a) 68%, #020617) 100%);
    color: #ffffff;
    padding-bottom: 72px;
    position: relative;
    z-index: 910;
}
.eo-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.eo-banner .dyn-brand,
.eo-banner .dyn-text-link,
.eo-banner .dyn-hamburger { color: #ffffff !important; }
.eo-banner .dyn-icon-btn,
.eo-banner .dyn-chip-btn,
.eo-banner .dyn-balance-pill,
.eo-banner .dyn-profit-pill,
.eo-banner .dyn-cart-btn {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
}
.eo-banner .dyn-icon-btn:hover,
.eo-banner .dyn-chip-btn:hover { background: rgba(255, 255, 255, 0.24) !important; }
.eo-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 6px;
}
.eo-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.eo-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    list-style: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.eo-nav-btn::-webkit-details-marker { display: none; }
.eo-nav-btn:hover,
.eo-nav-btn.active { background: rgba(255, 255, 255, 0.2); color: #ffffff; }
.eo-banner-title { font-size: 1.18rem; font-weight: 800; color: #ffffff; opacity: 0.96; }

html[data-shell="executive_overlap"] :is(body.page-admin, body.page-panel) main.container {
    margin-top: -58px;
    position: relative;
    z-index: 915;
}
html[data-shell="executive_overlap"] :is(body.page-admin, body.page-panel) .stat-card {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
    border-top: 3px solid var(--accent, var(--primary)) !important;
}
html[data-shell="executive_overlap"] :is(body.page-admin, body.page-panel) .panel-card {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07) !important;
    padding: 24px !important;
}

/* =====================================================================
   3) FLOATING_CANVAS — إطار التطبيق العائم (يبقى عائماً بحواف مستديرة على الهاتف)
   ===================================================================== */
html[data-shell="floating_canvas"] body {
    background: color-mix(in srgb, var(--primary, #4f46e5) 6%, var(--bg, #f1f5f9)) !important;
    padding-inline-start: 274px;
    padding-top: 14px;
    padding-inline-end: 14px;
}
.fc-floating-sb {
    position: fixed;
    top: 14px;
    bottom: 14px;
    inset-inline-start: 14px;
    width: 246px;
    border-radius: 22px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 940;
}
.fc-sb-head {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fc-sb-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.fc-sb-foot {
    padding: 10px;
    border-top: 1px solid var(--border, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 6px;
}
.fc-floating-bar {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    padding: 10px 18px;
    margin: 0 auto 14px;
    max-width: 1280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 12px;
    z-index: 920;
}
html[data-shell="floating_canvas"] :is(body.page-admin, body.page-panel) .stats-grid { gap: 16px !important; }
html[data-shell="floating_canvas"] :is(body.page-admin, body.page-panel) .stat-card {
    border-radius: 20px !important;
    padding: 20px 22px !important;
}
@media (min-width: 900px) {
    html[data-shell="floating_canvas"] :is(body.page-admin, body.page-panel) .stats-grid .stat-card:first-child {
        grid-column: span 2;
        background: linear-gradient(135deg, var(--primary, #4f46e5), var(--accent, #06b6d4)) !important;
        color: #ffffff !important;
        border-color: transparent !important;
    }
    html[data-shell="floating_canvas"] :is(body.page-admin, body.page-panel) .stats-grid .stat-card:first-child .stat-label,
    html[data-shell="floating_canvas"] :is(body.page-admin, body.page-panel) .stats-grid .stat-card:first-child .stat-value,
    html[data-shell="floating_canvas"] :is(body.page-admin, body.page-panel) .stats-grid .stat-card:first-child .stat-sub {
        color: #ffffff !important;
    }
}
html[data-shell="floating_canvas"] :is(body.page-admin, body.page-panel) .panel-card { border-radius: 22px !important; }

/* =====================================================================
   4) TELEMETRY_HUD — كونسول المراقبة (شريط تبويبات IDE يبقى ظاهراً على الهاتف)
   ===================================================================== */
.hud-header {
    background: var(--surface, #ffffff);
    border-bottom: 2px solid var(--border, #e2e8f0);
    position: sticky;
    top: 0;
    z-index: 920;
}
.hud-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.hud-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Consolas, ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 3px;
    background: var(--primary-soft, rgba(79, 70, 229, 0.12));
    color: var(--primary, #4f46e5);
    letter-spacing: 0.04em;
}
.hud-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}
.hud-tabs-bar { background: var(--bg-subtle, #f8fafc); }
.hud-tabs-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hud-tabs-inner::-webkit-scrollbar { display: none; }
.hud-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 15px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--muted, #64748b);
    text-decoration: none;
    list-style: none;
    white-space: nowrap;
    cursor: pointer;
    border-inline-end: 1px solid var(--border, #e2e8f0);
    border-bottom: 2px solid transparent;
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.hud-tab::-webkit-details-marker { display: none; }
.hud-tab:hover { background: var(--surface, #ffffff); color: var(--text, #0f172a); }
.hud-tab.active {
    background: var(--surface, #ffffff);
    color: var(--primary, #4f46e5);
    border-bottom-color: var(--primary, #4f46e5);
}

html[data-shell="telemetry_hud"] :is(body.page-admin, body.page-panel) .stat-card,
html[data-shell="telemetry_hud"] :is(body.page-admin, body.page-panel) .panel-card,
html[data-shell="telemetry_hud"] :is(body.page-admin, body.page-panel) .btn,
html[data-shell="telemetry_hud"] :is(body.page-admin, body.page-panel) .form-input { border-radius: 3px !important; }
html[data-shell="telemetry_hud"] :is(body.page-admin, body.page-panel) .stat-card {
    box-shadow: none !important;
    border: 1px solid var(--border, #cbd5e1) !important;
    background: var(--surface, #ffffff) !important;
}
html[data-shell="telemetry_hud"] :is(body.page-admin, body.page-panel) .stat-value {
    font-family: Consolas, ui-monospace, monospace !important;
    letter-spacing: -0.02em;
}
html[data-shell="telemetry_hud"] :is(body.page-admin, body.page-panel) .stat-label {
    text-transform: uppercase;
    font-size: 0.74rem !important;
    letter-spacing: 0.05em;
}
html[data-shell="telemetry_hud"] :is(body.page-admin, body.page-panel) .data-table th {
    font-family: Consolas, ui-monospace, monospace;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--bg-subtle, #f1f5f9);
}

/* =====================================================================
   5) STUDIO_FULLWIDTH — العرض الكامل 100% + الدرج الذكي + صفوف عائمة
   ===================================================================== */
.sf-topbar {
    position: sticky;
    top: 0;
    z-index: 920;
    background: var(--surface, #ffffff);
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.sf-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 22px;
    min-height: 58px;
}
.sf-menu-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--primary, #4f46e5);
    background: var(--primary-soft, rgba(79, 70, 229, 0.1));
    color: var(--primary, #4f46e5);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.sf-menu-pill:hover { background: var(--primary, #4f46e5); color: #ffffff; }
.sf-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 2300;
    display: none;
}
.sf-drawer-overlay.open { display: block; }
.sf-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: 320px;
    max-width: 90vw;
    background: var(--surface, #ffffff);
    border-inline-end: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    z-index: 2310;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.22s ease;
}
html[dir="ltr"] .sf-drawer { transform: translateX(-105%); }
.sf-drawer.open { transform: translateX(0) !important; }
.sf-drawer-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sf-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sf-drawer-foot {
    padding: 12px 14px;
    border-top: 1px solid var(--border, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 8px;
}

html[data-shell="studio_fullwidth"] :is(body.page-admin, body.page-panel) .container {
    max-width: 100% !important;
    padding-inline: 24px !important;
}
html[data-shell="studio_fullwidth"] :is(body.page-admin, body.page-panel) .data-table {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}
html[data-shell="studio_fullwidth"] :is(body.page-admin, body.page-panel) .data-table thead th {
    border: none !important;
    background: transparent !important;
    color: var(--muted, #64748b);
    font-size: 0.78rem;
}
html[data-shell="studio_fullwidth"] :is(body.page-admin, body.page-panel) .data-table tbody tr {
    background: var(--bg-subtle, #f8fafc);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
html[data-shell="studio_fullwidth"] :is(body.page-admin, body.page-panel) .data-table tbody td {
    border-top: 1px solid var(--border, #e2e8f0) !important;
    border-bottom: 1px solid var(--border, #e2e8f0) !important;
}
html[data-shell="studio_fullwidth"] :is(body.page-admin, body.page-panel) .data-table tbody td:first-child {
    border-inline-start: 1px solid var(--border, #e2e8f0) !important;
    border-start-start-radius: 11px;
    border-end-start-radius: 11px;
}
html[data-shell="studio_fullwidth"] :is(body.page-admin, body.page-panel) .data-table tbody td:last-child {
    border-inline-end: 1px solid var(--border, #e2e8f0) !important;
    border-start-end-radius: 11px;
    border-end-end-radius: 11px;
}

/* =====================================================================
   6) SPLIT_CARDS — لوحة البلاطات السريعة (شريط سفلي عائم على الحاسوب والهاتف)
   ===================================================================== */
html[data-shell="split_cards"] body { padding-bottom: 84px; }
.sc-top-bar {
    position: sticky;
    top: 0;
    z-index: 920;
    background: var(--surface, #ffffff);
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.sc-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    min-height: 58px;
}
.sc-bottom-deck {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 950;
    background: var(--surface, #ffffff);
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 18px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    max-width: calc(100vw - 24px);
}
.sc-deck-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text, #0f172a);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    list-style: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.sc-deck-btn::-webkit-details-marker { display: none; }
.sc-deck-btn:hover { background: var(--bg-subtle, #f1f5f9); color: var(--primary, #4f46e5); }
.sc-deck-btn.active { background: var(--primary, #4f46e5); color: #ffffff; }
.sc-deck-pop {
    position: absolute;
    bottom: calc(100% + 12px);
    inset-inline-start: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    z-index: 960;
}
html[dir="rtl"] .sc-deck-pop { transform: translateX(50%); }
.sc-deck-card-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 11px 10px;
    border-radius: 11px;
    background: var(--bg-subtle, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    color: var(--text, #0f172a);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 0.14s ease, background 0.14s ease;
}
.sc-deck-card-link:hover,
.sc-deck-card-link.active {
    border-color: var(--primary, #4f46e5);
    background: var(--primary-soft, rgba(79, 70, 229, 0.1));
    color: var(--primary, #4f46e5);
}
html[data-shell="split_cards"] :is(body.page-admin, body.page-panel) .stat-card {
    border-inline-start: 4px solid var(--primary, #4f46e5) !important;
    border-radius: 12px !important;
}
html[data-shell="split_cards"] :is(body.page-admin, body.page-panel) .panel-card {
    border-top: 3px solid var(--primary, #4f46e5) !important;
}

/* =====================================================================
   7) WORKSPACE_MIRROR — المرآة العكسية الداكنة (شريط داكن معكوس على الحاسوب والهاتف)
   ===================================================================== */
html[data-shell="workspace_mirror"] body {
    padding-inline-end: 256px;
    padding-top: 0;
}
.wm-end-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: 256px;
    background: #0f172a;
    color: #e2e8f0;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    z-index: 945;
}
.wm-sb-head {
    padding: 18px 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wm-end-sidebar .dyn-brand { color: #ffffff !important; }
.wm-sb-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wm-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.14s ease, color 0.14s ease;
}
.wm-link:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.wm-link.active { background: var(--primary, #4f46e5); color: #ffffff; }
.wm-grp-sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 800;
    list-style: none;
    cursor: pointer;
}
.wm-grp-sum::-webkit-details-marker { display: none; }
.wm-grp-sum:hover { color: #ffffff; background: rgba(255, 255, 255, 0.05); }
.wm-sublist {
    padding-inline-start: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
}
.wm-sb-foot {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}
.wm-topbar {
    position: sticky;
    top: 0;
    z-index: 910;
    background: var(--surface, #ffffff);
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.wm-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 22px;
    min-height: 56px;
}
html[data-shell="workspace_mirror"] :is(body.page-admin, body.page-panel) .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 10px !important;
}
html[data-shell="workspace_mirror"] :is(body.page-admin, body.page-panel) .stat-card {
    padding: 12px 16px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-subtle, #f8fafc) !important;
    border-radius: 12px !important;
}
html[data-shell="workspace_mirror"] :is(body.page-admin, body.page-panel) .stat-value { font-size: 1.32rem !important; }

/* =====================================================================
   8) CAPSULE_TOPBAR — الكبسولة العلوية العائمة (تبقى كبسولة عائمة على الهاتف)
   ===================================================================== */
.cap-wrap {
    position: sticky;
    top: 12px;
    z-index: 930;
    padding: 0 16px;
    margin-top: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
}
.cap-pill {
    width: 100%;
    max-width: 1240px;
    background: var(--surface-glass, rgba(255, 255, 255, 0.88));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 999px;
    padding: 7px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}
.cap-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.cap-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text, #0f172a);
    text-decoration: none;
    list-style: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.cap-link::-webkit-details-marker { display: none; }
.cap-link:hover { background: var(--bg-subtle, #f1f5f9); color: var(--primary, #4f46e5); }
.cap-link.active { background: var(--primary, #4f46e5); color: #ffffff; }

html[data-shell="capsule_topbar"] :is(body.page-admin, body.page-panel) .stat-card {
    text-align: center;
    background: radial-gradient(circle at top center, var(--primary-soft, rgba(79, 70, 229, 0.08)), var(--surface, #ffffff) 72%) !important;
    border-radius: 22px !important;
}
html[data-shell="capsule_topbar"] :is(body.page-admin, body.page-panel) .panel-card { border-radius: 22px !important; }
html[data-shell="capsule_topbar"] :is(body.page-admin, body.page-panel) .data-table tbody tr:nth-child(even) {
    background: var(--bg-subtle, #f8fafc);
}

/* =====================================================================
   9) NEO_GRID — الشبكة الهندسية الجريئة (تبقى بحدودها الصلبة وشريطها على الهاتف)
   ===================================================================== */
.neo-header {
    background: var(--surface, #ffffff);
    border-bottom: 2.5px solid var(--text, #0f172a);
    position: sticky;
    top: 0;
    z-index: 925;
}
.neo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}
.neo-nav-strip {
    border-top: 2px solid var(--text, #0f172a);
    background: var(--bg-subtle, #f1f5f9);
}
.neo-nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    flex-wrap: wrap;
}
.neo-box-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 2px solid var(--text, #0f172a);
    border-radius: 0;
    background: var(--surface, #ffffff);
    color: var(--text, #0f172a);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    list-style: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--text, #0f172a);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.neo-box-link::-webkit-details-marker { display: none; }
.neo-box-link:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--text, #0f172a); }
.neo-box-link.active {
    background: var(--primary, #4f46e5);
    color: #ffffff;
    box-shadow: 3px 3px 0 var(--text, #0f172a);
}

html[data-shell="neo_grid"] :is(body.page-admin, body.page-panel) .stat-card,
html[data-shell="neo_grid"] :is(body.page-admin, body.page-panel) .panel-card {
    border-radius: 0 !important;
    border: 2px solid var(--text, #0f172a) !important;
    box-shadow: 5px 5px 0 var(--text, #0f172a) !important;
}
html[data-shell="neo_grid"] :is(body.page-admin, body.page-panel) .btn,
html[data-shell="neo_grid"] :is(body.page-admin, body.page-panel) .form-input {
    border-radius: 0 !important;
    border: 2px solid var(--text, #0f172a) !important;
}
html[data-shell="neo_grid"] :is(body.page-admin, body.page-panel) .btn-primary {
    box-shadow: 3px 3px 0 var(--text, #0f172a) !important;
}

/* =====================================================================
   10) FOCUS_LAUNCHPAD — مساحة التركيز + مشغّل التطبيقات (يبقى مفعّلاً على الهاتف)
   ===================================================================== */
.fl-header {
    position: sticky;
    top: 0;
    z-index: 920;
    background: var(--surface, #ffffff);
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.fl-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    min-height: 58px;
}
.fl-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    background: var(--primary, #4f46e5);
    color: #ffffff;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--primary, #4f46e5) 32%, transparent);
    transition: transform 0.14s ease, filter 0.14s ease;
}
.fl-launch-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

.fl-overlay {
    position: fixed;
    inset: 0;
    z-index: 2450;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 20px 30px;
    overflow-y: auto;
}
.fl-overlay.open { display: flex; }
.fl-modal {
    width: 100%;
    max-width: 960px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 24px;
    padding: 22px 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.fl-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.fl-groups-stack { display: flex; flex-direction: column; gap: 18px; }
.fl-grp-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.fl-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.fl-app-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 15px 10px;
    border-radius: 16px;
    background: var(--bg-subtle, #f8fafc);
    border: 1.5px solid var(--border, #e2e8f0);
    color: var(--text, #0f172a);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    position: relative;
    transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.fl-app-tile:hover,
.fl-app-tile.active {
    border-color: var(--primary, #4f46e5);
    background: var(--primary-soft, rgba(79, 70, 229, 0.1));
    color: var(--primary, #4f46e5);
    transform: translateY(-2px);
}
.fl-app-ic { font-size: 1.6rem; line-height: 1; }

html[data-shell="focus_launchpad"] :is(body.page-admin, body.page-panel) main.container {
    max-width: 1060px !important;
}
html[data-shell="focus_launchpad"] :is(body.page-admin, body.page-panel) .panel-card {
    padding: 26px !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06) !important;
}

/* =====================================================================
   التجاوب المختلف والمخصّص للهاتف (<= 1080px) لكل هيكل من الـ 10 هياكل
   ===================================================================== */
@media (max-width: 1080px) {
    html[data-shell="dual_rail"] body,
    html[data-shell="floating_canvas"] body,
    html[data-shell="workspace_mirror"] body {
        padding-inline-start: 0 !important;
        padding-inline-end: 0 !important;
        padding-top: 0 !important;
    }

    .dr-primary-rail,
    .dr-secondary-panel,
    .fc-floating-sb,
    .wm-end-sidebar,
    .cap-nav {
        display: none !important;
    }

    .dyn-shell-dual_rail .dyn-hamburger,
    .dyn-shell-executive_overlap .dyn-hamburger,
    .dyn-shell-floating_canvas .dyn-hamburger,
    .dyn-shell-telemetry_hud .dyn-hamburger,
    .dyn-shell-studio_fullwidth .dyn-hamburger,
    .dyn-shell-split_cards .dyn-hamburger,
    .dyn-shell-workspace_mirror .dyn-hamburger,
    .dyn-shell-capsule_topbar .dyn-hamburger,
    .dyn-shell-neo_grid .dyn-hamburger,
    .dyn-shell-focus_launchpad .dyn-hamburger {
        display: inline-flex !important;
    }

    /* (1) هاتف DUAL_RAIL: شريط تطبيقات سفلي ثابت + لوحة فرعية صاعدة (Bottom Sheet) */
    html[data-shell="dual_rail"] body { padding-bottom: 72px !important; }
    .dr-topbar-inner { padding: 8px 14px; }
    .dr-mob-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        inset-inline: 0;
        z-index: 960;
        background: var(--surface, #ffffff);
        border-top: 1px solid var(--border, #e2e8f0);
        box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
        justify-content: space-around;
        align-items: center;
        gap: 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .dr-mob-bar::-webkit-scrollbar { display: none; }
    .dr-mob-tab {
        position: relative;
        flex: 1 0 auto;
        min-width: 54px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 5px 6px;
        border-radius: 10px;
        border: none;
        background: transparent;
        color: var(--muted, #64748b);
        font-family: inherit;
        font-size: 0.68rem;
        font-weight: 800;
        text-decoration: none;
        cursor: pointer;
    }
    .dr-mob-tab .dr-mob-ic { font-size: 1.15rem; line-height: 1; }
    .dr-mob-tab.active {
        color: var(--primary, #4f46e5);
        background: var(--primary-soft, rgba(79, 70, 229, 0.1));
    }
    .dr-mob-sheet-overlay {
        position: fixed;
        inset: 0;
        z-index: 2350;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(4px);
    }
    .dr-mob-sheet-overlay.open { display: block !important; }
    .dr-mob-sheet {
        position: fixed;
        bottom: 0;
        inset-inline: 0;
        z-index: 2360;
        background: var(--surface, #ffffff);
        border-top: 1px solid var(--border, #e2e8f0);
        border-radius: 22px 22px 0 0;
        padding: 14px 16px calc(20px + env(safe-area-inset-bottom, 0px));
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.2);
    }
    .dr-mob-sheet.open { display: block !important; }
    .dr-mob-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid var(--border, #e2e8f0);
        font-weight: 800;
        font-size: 0.96rem;
    }

    /* (2) هاتف EXECUTIVE_OVERLAP: إبقاء البانر الملوّن المتداخل + شريط تمرير أفقي */
    .eo-banner { padding-bottom: 48px !important; }
    .eo-banner-title { display: none; }
    .eo-nav-row { padding: 8px 0 4px; }
    .eo-nav-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        padding-bottom: 2px;
    }
    .eo-nav-links::-webkit-scrollbar { display: none; }
    .eo-nav-btn { padding: 7px 11px; font-size: 0.8rem; }
    html[data-shell="executive_overlap"] :is(body.page-admin, body.page-panel) main.container {
        margin-top: -36px !important;
    }

    /* (3) هاتف FLOATING_CANVAS: إبقاء الهيدر كبطاقة عائمة مستديرة بهوامش */
    .fc-floating-bar {
        margin: 10px 10px 12px !important;
        top: 8px !important;
        border-radius: 16px !important;
        padding: 8px 12px !important;
    }

    /* (4) هاتف TELEMETRY_HUD: إبقاء شريط تبويبات IDE الأفقي قابلاً للتمرير بالإصبع */
    .hud-status-pill { display: none; }
    .hud-tab { padding: 9px 12px; font-size: 0.78rem; }

    /* (5) هاتف STUDIO_FULLWIDTH: إبقاء زر الدرج الذكي مع عرض كامل */
    .sf-topbar-inner { padding: 8px 12px; }
    .sf-menu-pill { padding: 6px 11px; font-size: 0.78rem; }
    .dyn-shell-studio_fullwidth .dyn-hamburger { display: none !important; }
    html[data-shell="studio_fullwidth"] :is(body.page-admin, body.page-panel) .container {
        padding-inline: 12px !important;
    }

    /* (6) هاتف SPLIT_CARDS: إبقاء شريط البلاطات السفلي مدمجاً بالإصبع + نافذة عائمة وسطية */
    html[data-shell="split_cards"] body { padding-bottom: 76px !important; }
    .sc-bottom-deck {
        bottom: 8px;
        inset-inline: 8px;
        left: 8px;
        right: 8px;
        transform: none;
        max-width: none;
        justify-content: space-around;
        overflow-x: auto;
        scrollbar-width: none;
        border-radius: 16px;
        padding: 5px;
    }
    .sc-bottom-deck::-webkit-scrollbar { display: none; }
    .sc-deck-btn {
        flex-direction: column;
        gap: 2px;
        padding: 6px 8px;
        font-size: 0.68rem;
        min-width: 56px;
    }
    .sc-deck-btn > span:first-child { font-size: 1.1rem; line-height: 1; }
    .sc-deck-pop {
        position: fixed !important;
        bottom: 72px !important;
        left: 12px !important;
        right: 12px !important;
        inset-inline: 12px !important;
        transform: none !important;
        min-width: 0;
        max-height: 55vh;
        overflow-y: auto;
    }

    /* (7) هاتف WORKSPACE_MIRROR: درج جانبي داكن ومعكوس الجهة + شريط علوي داكن */
    .wm-topbar {
        background: #0f172a !important;
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff;
    }
    .wm-topbar .dyn-brand,
    .wm-topbar .dyn-hamburger,
    .wm-topbar .dyn-page-crumb { color: #ffffff !important; }
    .wm-topbar .dyn-balance-pill,
    .wm-topbar .dyn-profit-pill,
    .wm-topbar .dyn-cart-btn {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.22) !important;
        color: #ffffff !important;
    }
    html[data-shell="workspace_mirror"] .mobile-nav-drawer {
        background: #0f172a !important;
        color: #e2e8f0 !important;
        inset-inline-start: auto !important;
        inset-inline-end: 0 !important;
        border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
    }
    html[data-shell="workspace_mirror"] .mobile-drawer-head,
    html[data-shell="workspace_mirror"] .mobile-drawer-footer {
        border-color: rgba(255, 255, 255, 0.1) !important;
    }
    html[data-shell="workspace_mirror"] .mobile-drawer-head .brand,
    html[data-shell="workspace_mirror"] .mobile-nav-link { color: #e2e8f0 !important; }
    html[data-shell="workspace_mirror"] .mobile-nav-link:hover,
    html[data-shell="workspace_mirror"] .mobile-nav-link.active {
        background: var(--primary, #4f46e5) !important;
        color: #ffffff !important;
    }

    /* (8) هاتف CAPSULE_TOPBAR: إبقاء الكبسولة العائمة المستديرة على الهاتف */
    .cap-wrap { padding: 0 10px; top: 8px; margin-top: 8px; }
    .cap-pill { padding: 6px 12px; border-radius: 999px; }

    /* (9) هاتف NEO_GRID: إبقاء شريط المربعات الجريئة قابلاً للتمرير بالإصبع */
    .neo-nav-inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px 2px 10px;
    }
    .neo-nav-inner::-webkit-scrollbar { display: none; }
    .neo-box-link {
        padding: 5px 10px;
        font-size: 0.78rem;
        box-shadow: 2px 2px 0 var(--text, #0f172a);
    }

    /* (10) هاتف FOCUS_LAUNCHPAD: إبقاء زر مشغّل التطبيقات ظاهراً وفتح شبكة لمسية كبيرة */
    .fl-launch-btn { padding: 7px 12px; font-size: 0.78rem; }
    .fl-overlay { padding: 14px 10px 24px; }
    .fl-modal { padding: 16px 14px; border-radius: 18px; }
    .fl-app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .fl-app-tile { padding: 12px 6px; font-size: 0.74rem; border-radius: 13px; }
    .fl-app-ic { font-size: 1.4rem; }
}

/* =====================================================================
   تباين هندسي جذري للمحتوى الداخلي على الهاتف (<= 820px) بين الهياكل الـ 10
   ===================================================================== */
@media (max-width: 820px) {
    /* 1) DUAL_RAIL: شريط إحصائيات بالسحب الأفقي (Swipe KPI Ribbon) */
    html[data-shell="dual_rail"] :is(body.page-admin, body.page-panel) .stats-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        border-radius: 16px !important;
    }
    html[data-shell="dual_rail"] :is(body.page-admin, body.page-panel) .stat-card {
        flex: 0 0 165px !important;
        scroll-snap-align: start;
        border-bottom: none !important;
    }

    /* 2) EXECUTIVE_OVERLAP: بانر مقوّس عميق + شبكة إحصائيات 2×2 عائمة فوق البانر */
    html[data-shell="executive_overlap"] .eo-banner {
        border-radius: 0 0 28px 28px !important;
        padding-bottom: 58px !important;
    }
    html[data-shell="executive_overlap"] :is(body.page-admin, body.page-panel) main.container {
        margin-top: -46px !important;
    }
    html[data-shell="executive_overlap"] :is(body.page-admin, body.page-panel) .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    html[data-shell="executive_overlap"] :is(body.page-admin, body.page-panel) .stat-card {
        padding: 13px 12px !important;
        border-radius: 16px !important;
    }
    html[data-shell="executive_overlap"] :is(body.page-admin, body.page-panel) .stat-value {
        font-size: 1.2rem !important;
    }

    /* 3) FLOATING_CANVAS: شبكة Bento 1+2 على الهاتف (أول بطاقة ملوّنة عريضة + بطاقتان تحتها) */
    html[data-shell="floating_canvas"] :is(body.page-admin, body.page-panel) .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    html[data-shell="floating_canvas"] :is(body.page-admin, body.page-panel) .stats-grid .stat-card:first-child {
        grid-column: span 2 !important;
        background: linear-gradient(135deg, var(--primary, #4f46e5), var(--accent, #06b6d4)) !important;
        color: #ffffff !important;
        border-color: transparent !important;
    }
    html[data-shell="floating_canvas"] :is(body.page-admin, body.page-panel) .stats-grid .stat-card:first-child :is(.stat-label, .stat-value, .stat-sub) {
        color: #ffffff !important;
    }

    /* 4) TELEMETRY_HUD: مصفوفة أرقام تقنية 2×2 حادة بحدود شبكية وخط Monospace */
    html[data-shell="telemetry_hud"] :is(body.page-admin, body.page-panel) .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0 !important;
        border: 1.5px solid var(--text, #0f172a);
    }
    html[data-shell="telemetry_hud"] :is(body.page-admin, body.page-panel) .stat-card {
        padding: 12px !important;
        border-radius: 0 !important;
    }
    html[data-shell="telemetry_hud"] :is(body.page-admin, body.page-panel) .stat-value {
        font-size: 1.18rem !important;
    }

    /* 5) STUDIO_FULLWIDTH: عرض كامل من الحافة للحافة + بطاقات عريضة */
    html[data-shell="studio_fullwidth"] :is(body.page-admin, body.page-panel) .panel-card {
        border-radius: 10px !important;
        padding: 14px 12px !important;
    }

    /* 6) SPLIT_CARDS: بطاقات أفقية مكدّسة بحافة لونية سميكة 5px */
    html[data-shell="split_cards"] :is(body.page-admin, body.page-panel) .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    html[data-shell="split_cards"] :is(body.page-admin, body.page-panel) .stat-card {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 13px 15px !important;
        border-inline-start-width: 5px !important;
    }
    html[data-shell="split_cards"] :is(body.page-admin, body.page-panel) .stat-label { margin-bottom: 0 !important; }
    html[data-shell="split_cards"] :is(body.page-admin, body.page-panel) .stat-sub { display: none; }

    /* 7) WORKSPACE_MIRROR: بطاقات إحصائيات داكنة التباين (Dark Carbon Cards) على الهاتف */
    html[data-shell="workspace_mirror"] :is(body.page-admin, body.page-panel) .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    html[data-shell="workspace_mirror"] :is(body.page-admin, body.page-panel) .stat-card {
        background: #0f172a !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        color: #ffffff !important;
    }
    html[data-shell="workspace_mirror"] :is(body.page-admin, body.page-panel) .stat-label,
    html[data-shell="workspace_mirror"] :is(body.page-admin, body.page-panel) .stat-sub { color: #94a3b8 !important; }
    html[data-shell="workspace_mirror"] :is(body.page-admin, body.page-panel) .stat-value { color: #ffffff !important; font-size: 1.2rem !important; }

    /* 8) CAPSULE_TOPBAR: بطاقات دائرية ناعمة جداً (26px) متمركزة في عمودين */
    html[data-shell="capsule_topbar"] :is(body.page-admin, body.page-panel) .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    html[data-shell="capsule_topbar"] :is(body.page-admin, body.page-panel) .stat-card {
        border-radius: 26px !important;
        padding: 16px 10px !important;
    }
    html[data-shell="capsule_topbar"] :is(body.page-admin, body.page-panel) .panel-card {
        border-radius: 24px !important;
    }

    /* 9) NEO_GRID: بطاقات مربعة جريئة بحدود 2.5px وظل صلب 4px على الهاتف */
    html[data-shell="neo_grid"] :is(body.page-admin, body.page-panel) .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    html[data-shell="neo_grid"] :is(body.page-admin, body.page-panel) .stat-card {
        padding: 12px !important;
        box-shadow: 4px 4px 0 var(--text, #0f172a) !important;
    }
    html[data-shell="neo_grid"] :is(body.page-admin, body.page-panel) .stat-value { font-size: 1.18rem !important; }

    /* 10) FOCUS_LAUNCHPAD: بطاقات واسعة مرتفعة بهوامش نظيفة */
    html[data-shell="focus_launchpad"] :is(body.page-admin, body.page-panel) .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    html[data-shell="focus_launchpad"] :is(body.page-admin, body.page-panel) .stat-card {
        border-radius: 22px !important;
        padding: 18px 20px !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
    }
}