/* Infinity Care — design tokens (care-tokens.css).
   Generated from the design system tokens.json (نظام تصميم انفنتي كير). Do not edit by hand:
   change the design system, then regenerate. Load right after tokens.css.
   @font-face rules stay in brand.css (same files under /assets/fonts/).
   Type classes are prefixed type- so they never collide with existing app classes. */

:root {
  /* colors */
  --brand-900: #102e29;
  --brand-700: #105441;
  --brand-600: #146c58;
  --brand-100: #e3efea;
  --brand-50: #edf4ef;
  --ink: #17302c;
  --ink-muted: #56685f;
  --surface: #ffffff;
  --on-brand: #ffffff;
  --canvas: #f2f5f4;
  --canvas-subtle: #f4f7f5;
  --line: #dde6e1;
  --line-soft: #e4ece7;
  --field-border: #b9c7c0;
  --success-fg: #18643c;
  --success-bg: #e0f2e7;
  --warning-fg: #885b18;
  --warning-bg: #fff0d7;
  --danger-fg: #943e38;
  --danger-bg: #fbe6e4;
  --note-bg: #fff7e0;
  --note-line: #e8c766;
  --neutral-bg: #eff3f1;

  /* type */
  --font-sans: 'Infinity Plex Latin', 'Infinity Plex Arabic', 'Segoe UI', Tahoma, sans-serif;

  /* Semantic type sizes from the approved seven type styles. */
  --type-meta-size: 12px;
  --type-ui-size: 13px;
  --type-body-size: 14px;
  --type-message-size: 15px;
  --type-section-title-size: 16px;
  --type-page-title-size: 20px;
  --type-card-title-size: 14px;

  --stroke-thin: 1px;

  /* spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  /* radius */
  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* size */
  --control-sm: 28px;
  --control-md: 32px;
  --control-lg: 44px;
  --input-lg: 48px;
  --row-height: 44px;
  --nav-rail: 76px;
  --nav-item: 60px;
  --side-menu: 220px;
  --content-max: 1180px;

  /* shadow */
  --shadow-card: 0 2px 6px rgba(25, 58, 49, 0.02);
  --shadow-popover: 0 8px 24px rgba(16, 46, 41, 0.12);
  --shadow-sticky: 0 -6px 16px rgba(16, 46, 41, 0.08);
}

/* Type styles */
.type-page-title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
.type-section-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.type-card-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.type-message {
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
}
.type-body {
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
}
.type-ui {
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
}
.type-meta {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
}

/* Bridge: legacy names point to the system tokens. Remove a line only when no file uses that name.
   Visual change: --hub-ink #18302e→#17302c, --hub-muted #52675e→#56685f, and var(--line, fallback)
   in components.css/workspace-redesign.css now resolves to #dde6e1 (was #dce5df/#dce5e0). All imperceptible. */
:root {
  --hub-green: var(--brand-600);
  --ws-brand: var(--brand-600);
  --hub-color-5: var(--brand-600);
  --hub-green-hover: var(--brand-700);
  --hub-color-6: var(--brand-700);
  --ws-deep: var(--brand-900);
  --hub-color-8: var(--brand-900);
  --ws-soft: var(--brand-100);
  --hub-ink: var(--ink);
  --ws-ink: var(--ink);
  --hub-muted: var(--ink-muted);
  --ws-muted: var(--ink-muted);
  --hub-bg: var(--canvas);
  --ws-bg: var(--canvas);
  --hub-line: var(--line);
  --ws-line: var(--line);
  --hub-surface: var(--surface);
  --hub-color-53: var(--canvas-subtle);
  --hub-color-55: var(--line-soft);
  --hub-color-18: var(--neutral-bg);
  --hub-color-20: var(--success-bg);
  --hub-color-21: var(--success-fg);
  --hub-color-22: var(--warning-bg);
  --hub-color-23: var(--warning-fg);
  --hub-color-24: var(--danger-bg);
  --hub-color-25: var(--danger-fg);
  --hub-radius: var(--radius-lg);
  --hub-field-radius: var(--radius-md);
  --hub-space-1: var(--space-1);
  --hub-space-2: var(--space-2);
  --hub-space-3: var(--space-3);
  --hub-space-4: var(--space-4);
  --hub-space-6: var(--space-6);
  --hub-space-8: var(--space-8);
}

:root { --nia-avatar-xs: 18px; --nia-avatar-sm: 32px; --nia-avatar-md: 40px; --nia-avatar-lg: 64px; --nia-ring-size: 72px; }
