/* Identity: the Aleem identity package values, taken verbatim from the live Jusoor v1.0.9 identity block (generated there
   from Aleem's identity package by tools/sync_identity.mjs). Do not edit by hand. The values are Aleem's own. */

/* ---- fonts.css ---- */
/* Noto Naskh Arabic, SIL Open Font License 1.1 (fonts/OFL.txt). Relative paths, never /fonts/. */
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:400;src:url("fonts/noto-naskh-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:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:500;src:url("fonts/noto-naskh-arabic-arabic-500-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:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:600;src:url("fonts/noto-naskh-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:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:700;src:url("fonts/noto-naskh-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}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:400;src:url("fonts/noto-naskh-arabic-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:500;src:url("fonts/noto-naskh-arabic-latin-500-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:600;src:url("fonts/noto-naskh-arabic-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:700;src:url("fonts/noto-naskh-arabic-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:400;src:url("fonts/noto-naskh-arabic-latin-ext-400-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:500;src:url("fonts/noto-naskh-arabic-latin-ext-500-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:600;src:url("fonts/noto-naskh-arabic-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:700;src:url("fonts/noto-naskh-arabic-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* C-158 (HSB-0072): the Arabic thousands and decimal marks (U+066C, U+066B) in their right size: Noto Naskh draws
   them about 70% of a digit's height. Declared last, so for these two characters alone these faces answer first. */
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:400;src:url("fonts/aleem-number-marks-400.woff2") format("woff2");unicode-range:U+066B-066C}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:500;src:url("fonts/aleem-number-marks-500.woff2") format("woff2");unicode-range:U+066B-066C}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:600;src:url("fonts/aleem-number-marks-600.woff2") format("woff2");unicode-range:U+066B-066C}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-display:swap;font-weight:700;src:url("fonts/aleem-number-marks-700.woff2") format("woff2");unicode-range:U+066B-066C}

/* ---- aleem-mukhtalif.css ---- */
/* Aleem different style (نمط عليم المختلف), the default: deep navy with a gold line (night),
   champagne with navy (day). Identity only, taken from Aleem v1.0.0; none of its functions.
   Part of the Aleem identity package v1.0.0. Self-contained: it defines every value of the shared schema
   (31 values) for each of its modes and borrows nothing from another style. Components read only these
   names (hsl(var(--primary)), var(--radius) ...), never a colour of their own.
   Selected by <html data-style="aleem-mukhtalif" data-mode="..."> through identity.js. */

/* night: also the safe default when no style, an unknown style, or a missing file is met */
:root,
:root[data-style="aleem-mukhtalif"],
:root[data-style="aleem-mukhtalif"][data-mode="night"] {
  --background: 216 72% 9%;
  --foreground: 43 50% 89%;
  --card: 216 62% 13%;
  --card-foreground: 43 50% 89%;
  --popover: 216 62% 13%;
  --popover-foreground: 43 50% 89%;
  --primary: 41 68% 55%;
  --primary-foreground: 216 80% 9%;
  --secondary: 215 48% 19%;
  --secondary-foreground: 42 30% 88%;
  --muted: 215 44% 17%;
  --muted-foreground: 40 16% 62%;
  --accent: 213 46% 21%;
  --accent-foreground: 42 42% 90%;
  --destructive: 0 62% 50%;
  --destructive-foreground: 0 0% 98%;
  --border: 214 38% 23%;
  --input: 214 38% 26%;
  --ring: 41 68% 55%;
  --signature: 41 68% 55%;
  --signature-text: 41 68% 55%;
  --deep: 218 80% 6%;
  --header: 216 72% 9%;
  --header-foreground: 43 50% 89%;
  --radius: 1.25rem;
  --radius-tile: 24%;
  --leading: 1.9;
  --glow-low: 0.35;
  --glow-high: 0.55;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* day */
:root[data-style="aleem-mukhtalif"][data-mode="day"] {
  --background: 42 45% 91%;
  --foreground: 216 68% 14%;
  --card: 44 50% 97%;
  --card-foreground: 216 68% 14%;
  --popover: 45 55% 98%;
  --popover-foreground: 216 68% 14%;
  --primary: 38 62% 42%;
  --primary-foreground: 216 68% 14%;
  --secondary: 42 30% 89%;
  --secondary-foreground: 216 58% 20%;
  --muted: 42 28% 88%;
  --muted-foreground: 216 18% 40%;
  --accent: 40 36% 86%;
  --accent-foreground: 216 68% 16%;
  --destructive: 0 68% 46%;
  --destructive-foreground: 0 0% 98%;
  --border: 40 22% 81%;
  --input: 40 22% 79%;
  --ring: 38 62% 42%;
  --signature: 38 62% 42%;
  --signature-text: 38 62% 33%;
  --deep: 216 68% 13%;
  --header: 42 45% 91%;
  --header-foreground: 216 68% 14%;
  --radius: 1.25rem;
  --radius-tile: 24%;
  --leading: 1.9;
  --glow-low: 0.35;
  --glow-high: 0.55;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* ---- dhakaa.css ---- */
/* Dhakaa style (نمط ذكاء): white paper, navy band and orange accent, from the colour system v3.
   Part of the Aleem identity package v1.0.0. Self-contained: it defines every value of the shared schema
   (31 values) for each of its modes and borrows nothing from another style. Components read only these
   names (hsl(var(--primary)), var(--radius) ...), never a colour of their own.
   Selected by <html data-style="dhakaa" data-mode="..."> through identity.js. */

/* day only: data-mode is ignored here, so a night choice cannot leave it half applied */
:root[data-style="dhakaa"] {
  --background: 0 0% 100%;
  --foreground: 214 19% 14%;
  --card: 0 0% 100%;
  --card-foreground: 214 19% 14%;
  --popover: 0 0% 100%;
  --popover-foreground: 214 19% 14%;
  --primary: 213 73% 22%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 17% 95%;
  --secondary-foreground: 213 73% 22%;
  --muted: 210 22% 93%;
  --muted-foreground: 215 12% 40%;
  --accent: 30 80% 94%;
  --accent-foreground: 214 19% 14%;
  --destructive: 26 90% 37%;
  --destructive-foreground: 0 0% 100%;
  --border: 216 23% 91%;
  --input: 213 21% 81%;
  --ring: 28 80% 52%;
  --signature: 28 80% 52%;
  --signature-text: 26 90% 37%;
  --deep: 213 73% 22%;
  --header: 213 73% 22%;
  --header-foreground: 0 0% 100%;
  --radius: 0.8rem;
  --radius-tile: 0.7rem;
  --leading: 1.75;
  --glow-low: 0;
  --glow-high: 0;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* ---- annabi-dhahabi.css ---- */
/* ذكاء العنابي الذهبي (annabi-dhahabi), Aleem 2.1.2, change C-14: from the Dhakaa Al-Abayat store: wine #6B1520, gold #D4AF37, cream #F3E6C8 (css/brand.css, css/store.css).
   Part of the Aleem identity package. Self-contained: it defines every value of the shared schema for each of
   its two modes, night and day, and borrows nothing from another style. Components read only these names.
   Selected by <html data-style="annabi-dhahabi" data-mode="..."> through identity.js. */

/* night */
:root[data-style="annabi-dhahabi"],
:root[data-style="annabi-dhahabi"][data-mode="night"] {
  --background: 347 82% 4%;
  --foreground: 42 64% 87%;
  --card: 349 64% 9%;
  --card-foreground: 42 64% 87%;
  --popover: 349 64% 9%;
  --popover-foreground: 42 64% 87%;
  --primary: 46 65% 52%;
  --primary-foreground: 353 53% 7%;
  --secondary: 351 57% 15%;
  --secondary-foreground: 42 64% 87%;
  --muted: 352 62% 10%;
  --muted-foreground: 35 38% 66%;
  --accent: 352 67% 25%;
  --accent-foreground: 40 72% 87%;
  --destructive: 350 73% 44%;
  --destructive-foreground: 0 0% 100%;
  --border: 22 38% 25%;
  --input: 23 38% 30%;
  --ring: 46 65% 52%;
  --signature: 46 65% 52%;
  --signature-text: 45 67% 63%;
  --deep: 354 83% 2%;
  --header: 347 82% 4%;
  --header-foreground: 42 64% 87%;
  --radius: 1.1rem;
  --radius-tile: 22%;
  --leading: 1.9;
  --glow-low: 0.3;
  --glow-high: 0.5;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* day */
:root[data-style="annabi-dhahabi"][data-mode="day"] {
  --background: 39 59% 93%;
  --foreground: 352 71% 13%;
  --card: 40 100% 98%;
  --card-foreground: 352 71% 13%;
  --popover: 40 100% 98%;
  --popover-foreground: 352 71% 13%;
  --primary: 352 67% 25%;
  --primary-foreground: 40 72% 87%;
  --secondary: 39 57% 87%;
  --secondary-foreground: 352 68% 17%;
  --muted: 39 52% 87%;
  --muted-foreground: 18 31% 33%;
  --accent: 41 56% 81%;
  --accent-foreground: 352 71% 13%;
  --destructive: 351 75% 40%;
  --destructive-foreground: 0 0% 100%;
  --border: 40 50% 77%;
  --input: 40 45% 73%;
  --ring: 355 68% 32%;
  --signature: 44 63% 44%;
  --signature-text: 42 79% 27%;
  --deep: 352 71% 13%;
  --header: 39 59% 93%;
  --header-foreground: 352 71% 13%;
  --radius: 1.1rem;
  --radius-tile: 22%;
  --leading: 1.9;
  --glow-low: 0.3;
  --glow-high: 0.5;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* ---- akhdar-dhahabi.css ---- */
/* ذكاء الأخضر الذهبي (akhdar-dhahabi), Aleem 2.1.4, change C-26: a deep green with the same gold as
   ذكاء العنابي الذهبي, so the gold styles come in more than one colour (the owner's choice, 20 October 2026).
   Part of the Aleem identity package. Self-contained: it defines every value of the shared schema for each of
   its two modes, night and day, and borrows nothing from another style. Components read only these names.
   Selected by <html data-style="akhdar-dhahabi" data-mode="..."> through identity.js. */

/* night */
:root[data-style="akhdar-dhahabi"],
:root[data-style="akhdar-dhahabi"][data-mode="night"] {
  --background: 158 70% 4%;
  --foreground: 42 64% 87%;
  --card: 157 58% 8%;
  --card-foreground: 42 64% 87%;
  --popover: 157 58% 8%;
  --popover-foreground: 42 64% 87%;
  --primary: 46 65% 52%;
  --primary-foreground: 158 60% 6%;
  --secondary: 156 45% 14%;
  --secondary-foreground: 42 64% 87%;
  --muted: 157 50% 9%;
  --muted-foreground: 40 30% 66%;
  --accent: 156 55% 21%;
  --accent-foreground: 40 72% 87%;
  --destructive: 350 73% 44%;
  --destructive-foreground: 0 0% 100%;
  --border: 100 22% 24%;
  --input: 100 22% 29%;
  --ring: 46 65% 52%;
  --signature: 46 65% 52%;
  --signature-text: 45 67% 63%;
  --deep: 160 80% 2%;
  --header: 158 70% 4%;
  --header-foreground: 42 64% 87%;
  --radius: 1.1rem;
  --radius-tile: 22%;
  --leading: 1.9;
  --glow-low: 0.3;
  --glow-high: 0.5;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* day */
:root[data-style="akhdar-dhahabi"][data-mode="day"] {
  --background: 48 45% 93%;
  --foreground: 158 65% 12%;
  --card: 48 80% 98%;
  --card-foreground: 158 65% 12%;
  --popover: 48 80% 98%;
  --popover-foreground: 158 65% 12%;
  --primary: 158 60% 21%;
  --primary-foreground: 42 72% 88%;
  --secondary: 48 40% 86%;
  --secondary-foreground: 158 60% 15%;
  --muted: 48 35% 86%;
  --muted-foreground: 150 22% 28%;
  --accent: 46 50% 80%;
  --accent-foreground: 158 65% 12%;
  --destructive: 351 75% 40%;
  --destructive-foreground: 0 0% 100%;
  --border: 46 35% 76%;
  --input: 46 30% 72%;
  --ring: 158 55% 27%;
  --signature: 44 63% 44%;
  --signature-text: 42 79% 27%;
  --deep: 158 65% 12%;
  --header: 48 45% 93%;
  --header-foreground: 158 65% 12%;
  --radius: 1.1rem;
  --radius-tile: 22%;
  --leading: 1.9;
  --glow-low: 0.3;
  --glow-high: 0.5;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* Jusoor: a device in light mode starts in the default style's day before the switcher runs */
@media (prefers-color-scheme: light) {
  :root:not([data-style]) {
  --background: 42 45% 91%;
  --foreground: 216 68% 14%;
  --card: 44 50% 97%;
  --card-foreground: 216 68% 14%;
  --popover: 45 55% 98%;
  --popover-foreground: 216 68% 14%;
  --primary: 38 62% 42%;
  --primary-foreground: 216 68% 14%;
  --secondary: 42 30% 89%;
  --secondary-foreground: 216 58% 20%;
  --muted: 42 28% 88%;
  --muted-foreground: 216 18% 40%;
  --accent: 40 36% 86%;
  --accent-foreground: 216 68% 16%;
  --destructive: 0 68% 46%;
  --destructive-foreground: 0 0% 98%;
  --border: 40 22% 81%;
  --input: 40 22% 79%;
  --ring: 38 62% 42%;
  --signature: 38 62% 42%;
  --signature-text: 38 62% 33%;
  --deep: 216 68% 13%;
  --header: 42 45% 91%;
  --header-foreground: 216 68% 14%;
  --radius: 1.25rem;
  --radius-tile: 24%;
  --leading: 1.9;
  --glow-low: 0.35;
  --glow-high: 0.55;
  --font-ui: "Noto Naskh Arabic", serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}
}

/* Jusoor (جسور) v1.0.4 — RTL Arabic UI in the design language of Raqeeb, Ameen and Resalah, dressed in Aleem's identity.
   Every colour, radius and the font come from the active style's tokens (identity.css, generated from Aleem's identity
   package), so switching styles restyles everything and changes no function. Components read only token names
   (hsl(var(--primary)), var(--radius) ...), never a colour of their own; the only literal colours are the dots that
   preview each style in «المظهر». Sizes in rem so the layout scales with the root font size (15px on phones, up to 26px
   on 4K); no text under 12px. */

/* ---- Tones of meaning, tuned per style as in Aleem (app.css C-62, C-70): lighter on night cards, darker on day cards,
   so each keeps 4.5:1 or more on its card. --shine is the neutral light of glass and 3D highlights. ---- */
:root {
  --tone-neg: 0 78% 74%; --tone-pos: 142 52% 64%; --tone-warn: 38 92% 64%;
  --band-pos: 142 52% 64%; --band-warn: 38 92% 64%;
  --shine: 0 0% 100%;
  --paper: var(--foreground); --paper-ink: var(--background);
  --min-text: 12px;
  --nav-h: 4.7rem;
}
:root[data-mode="day"], :root[data-style="dhakaa"] { --tone-neg: 0 72% 38%; --tone-pos: 145 70% 24%; --tone-warn: 28 90% 27%; }
/* the bands (top bar, bottom bar, sheet heads) are dark in the night modes and in Dhakaa, light in the other day modes */
:root[data-mode="day"]:not([data-style="dhakaa"]) { --band-pos: 145 70% 24%; --band-warn: 28 90% 27%; }
/* the paper strip that carries the Ministry identity: the card by day, the light foreground by night */
:root[data-scheme="light"] { --paper: var(--card); --paper-ink: var(--card-foreground); }
:root[data-scheme="dark"] { color-scheme: dark; }
:root[data-scheme="light"] { color-scheme: light; }

/* Row tones of lists and tables, Aleem's own per style (C-70, C-207) */
:root { --row-a: 216 69% 11.1%; --row-b: 216 66% 14.8%; --row-cur: 216 62% 19%; --row-bar: var(--signature); --row-title: var(--signature-text); }
:root[data-style="aleem-mukhtalif"][data-mode="day"] { --row-a: 44 50% 95.5%; --row-b: 42 42% 89.5%; --row-cur: 41 48% 83%; --row-bar: 38 70% 25%; --row-title: 38 70% 25%; }
:root[data-style="dhakaa"] { --row-a: 210 25% 97.5%; --row-b: 212 25% 93.5%; --row-cur: 213 38% 89%; --row-bar: 26 90% 29%; --row-title: 26 90% 29%; }
:root[data-style="annabi-dhahabi"] { --row-a: 348 71% 6.9%; --row-b: 349 64% 11.6%; --row-cur: 349 60% 16.2%; --row-bar: var(--signature); --row-title: var(--signature-text); }
:root[data-style="annabi-dhahabi"][data-mode="day"] { --row-a: 40 80% 96.5%; --row-b: 38 48% 89.5%; --row-cur: 352 32% 88%; --row-bar: 42 79% 22%; --row-title: 42 79% 22%; }
:root[data-style="akhdar-dhahabi"] { --row-a: 158 63% 6.5%; --row-b: 157 56% 10.6%; --row-cur: 157 52% 14.6%; --row-bar: var(--signature); --row-title: var(--signature-text); }
:root[data-style="akhdar-dhahabi"][data-mode="day"] { --row-a: 48 70% 96.5%; --row-b: 48 38% 89.5%; --row-cur: 150 22% 87%; --row-bar: 42 79% 22%; --row-title: 42 79% 22%; }
