/*
 * Claude Design System (CDS) token fallbacks.
 *
 * When this dashboard runs inside the Claude Artifact platform, these
 * design tokens (spacing, radius, type-scale, motion) are injected
 * globally by the host page. This standalone export never receives that
 * stylesheet, so every var(--cds-*) reference silently resolved to
 * nothing — producing inconsistent spacing/margins, misaligned text and
 * icons, and unpredictable layout across screens.
 *
 * This file defines the same tokens locally so the app renders exactly
 * as designed, without touching any existing colors or markup.
 */
:root {
  /* Spacing (gap) scale */
  --cds-gap-xs: 4px;
  --cds-gap-sm: 8px;
  --cds-gap-md: 16px;
  --cds-gap-lg: 24px;

  /* Spacing (padding) scale */
  --cds-pad-xs: 4px;
  --cds-pad-sm: 8px;
  --cds-pad-md: 16px;
  --cds-pad-lg: 24px;
  --cds-pad-xl: 32px;

  /* Shape */
  --cds-radius: 12px;

  /* Type scale */
  --cds-font-size-caption: 0.75rem;
  --cds-font-size-body: 0.875rem;
  --cds-font-size-heading: 1rem;
  --cds-font-size-title: 1.5rem;
  --cds-font-weight-medium: 500;

  /* Motion */
  --cds-dur-slow: 300ms;
  --cds-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/*
 * ضمان إخفاء الصفحات فعلياً عند التنقل (MX.showPage).
 *
 * core.css يحتوي على ".mx #home{display:flex !important; ...}" (ولوحات
 * أخرى مشابهة) بلا أي استثناء لحالة [hidden] — وهذه القاعدة أعلى تحديداً
 * (specificity) من ".page[hidden]{display:none}" غير المعلَّمة !important
 * الموجودة أيضاً في core.css، فتفوز قاعدة "flex" دائماً وتبقى الصفحة
 * ظاهرة حتى بعد ضبط hidden=true. على منصّة Claude كانت الصفحة المُستضيفة
 * (#dash-root) تحتوي قاعدة حماية مكافئة تحل هذا التعارض؛ هذا السطر يعيد
 * نفس الحماية هنا بأعلى تحديد ممكن حتى يفوز دائماً بغض النظر عن أي قاعدة
 * display أخرى، دون تعديل أي ملف أصلي.
 */
#dash-root .mx .page[hidden] { display: none !important; }

/*
 * الصفحة المُضيفة على منصّة Claude لا تضيف هامشًا حول #dash-root؛ نطابقها
 * (الهامش الافتراضي للمتصفح 8px كان يُزيح المحتوى ويولّد تمريرًا أفقيًا).
 */
html, body { margin: 0; }
