/* مقيم الذكاء AI-Assessor، نسخة الويب v1.0.0 — 12-NOV-2026 (components of the Android app v1.0.1)
   Raqeeb's interface: a capsule at the top and one at the bottom, a home grid of coloured circles with white line icons,
   and a pending section with its own head and band. The capsules, section heads, pages, cards and tables take the active
   style's tokens (identity.css, Aleem's identity package), so the seven styles stay; the circles keep Raqeeb's twelve
   colours, and «شكل الأيقونات» draws them in Raqeeb's seven icon styles. Sizes in rem; no text under 12px. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: clamp(15px, 0.35vw + 12px, 22px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: hsl(var(--background)); color: hsl(var(--foreground));
  font-family: var(--font-ui); direction: rtl; line-height: var(--leading);
  -webkit-tap-highlight-color: transparent; transition: background-color 0.25s, color 0.25s;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-appearance: none; appearance: none; }
h1, h2, h3, h4 { line-height: 1.45; }
p { margin: 0.4rem 0; }
:focus-visible { outline: 3px solid hsl(var(--ring)); outline-offset: 2px; }
.ic { display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex: none; }
.ic svg { width: 1.3em; height: 1.3em; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: hsl(var(--muted-foreground)); }
.small { font-size: max(0.82rem, var(--min-text)); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.arw { width: 15px; height: 10px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---- Capsule colours per style: the style's deep tone by day, its secondary ground by night ---- */
:root {
  --cap: hsl(var(--deep)); --cap-edge: color-mix(in srgb, hsl(var(--deep)) 70%, #000); --cap-fg: hsl(var(--card)); --cap-sub: hsl(var(--card) / 0.8);
  --cap-badge: #a3561c; --tile-badge: #0f1d33; --gap-head: #6d3c10; --gap-band: #854914;
  --cap-shadow: 0 1px 2px rgba(15, 52, 96, 0.06), 0 10px 26px -16px rgba(15, 52, 96, 0.45);
  --nav-h: 5.5rem;
}
:root[data-mode="night"] { --cap: hsl(var(--secondary)); --cap-edge: hsl(var(--deep)); --cap-fg: hsl(var(--header-foreground)); --cap-sub: hsl(var(--header-foreground) / 0.78); --cap-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.8); }
:root[data-style="dhakaa"] { --cap: hsl(var(--primary)); --cap-edge: color-mix(in srgb, hsl(var(--primary)) 70%, #000); --cap-fg: hsl(var(--primary-foreground)); --cap-sub: hsl(var(--primary-foreground) / 0.8); }
:root[data-style="annabi-dhahabi"][data-mode="day"], :root[data-style="akhdar-dhahabi"][data-mode="day"] {
  --cap: hsl(var(--primary)); --cap-edge: hsl(var(--deep)); --cap-fg: hsl(var(--primary-foreground)); --cap-sub: hsl(var(--primary-foreground) / 0.82);
}

/* ---- Top capsule: the app mark on white, the name, the action pill and the ring buttons ---- */
.top { position: sticky; top: 0; z-index: 30; padding: 0.6rem 0.6rem 0.2rem; background: hsl(var(--background)); }
.topcap {
  display: flex; align-items: center; gap: 0.55rem; max-width: 60rem; margin: 0 auto; padding: 0.45rem 0.55rem;
  background: var(--cap); color: var(--cap-fg); border: 3px solid var(--cap-edge); border-radius: 24px; box-shadow: var(--cap-shadow);
}
.appmark { flex: none; width: 3.2rem; height: 3.2rem; border-radius: 16px; background: #fff; display: grid; place-items: center; }
.appmark svg { width: 2.35rem; height: 2.35rem; display: block; }
.appname { min-width: 0; flex: 1 1 auto; display: grid; line-height: 1.4; }
.appname b { font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.appname small { color: var(--cap-sub); font-size: max(0.8rem, var(--min-text)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capbtns { display: flex; align-items: center; gap: 0.4rem; flex: none; }
.cbtn {
  position: relative; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 2.5px solid var(--cap-fg); background: transparent;
  color: var(--cap-fg); display: inline-grid; place-items: center; cursor: pointer; padding: 0;
}
.cbtn .ic svg { width: 1.35rem; height: 1.35rem; }
.pbtn {
  height: 2.8rem; padding: 0 0.8rem; border-radius: 999px; border: 2.5px solid var(--cap-fg); background: transparent; color: var(--cap-fg);
  display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.pbtn .ic svg { width: 1.25rem; height: 1.25rem; }
.cbtn:active, .pbtn:active { background: hsl(var(--shine) / 0.14); }
.capbadge {
  position: absolute; top: -0.45rem; inset-inline-end: -0.45rem; min-width: 1.5rem; height: 1.5rem; padding: 0 0.3rem;
  border-radius: 999px; background: var(--cap-badge); color: #fff; font-size: max(0.78rem, var(--min-text)); font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff; line-height: 1;
}
@media (max-width: 400px) {
  .appmark { width: 2.85rem; height: 2.85rem; border-radius: 14px; }
  .appmark svg { width: 2.1rem; height: 2.1rem; }
  .appname b { font-size: 1.08rem; }
  .capbtns .cbtn.wide-only { display: none; }
}

/* ---- Bottom capsule: ring items, the current one filled ---- */
.botcap {
  position: fixed; z-index: 30; left: 0; right: 0; margin: 0 auto; bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  width: min(48rem, calc(100% - 1.2rem)); display: flex; gap: 0.35rem; padding: 0.42rem;
  background: var(--cap); border: 3px solid var(--cap-edge); border-radius: 24px; box-shadow: var(--cap-shadow);
}
.nb {
  position: relative; flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 0; padding: 0.4rem 0.05rem 0.28rem;
  border: 2.5px solid var(--cap-fg); border-radius: 15px; background: transparent; color: var(--cap-fg);
  font-size: max(0.8rem, var(--min-text)); font-weight: 700; line-height: 1.45; cursor: pointer;
}
.nb .ic svg { width: 1.5rem; height: 1.5rem; }
.nb span:last-child { white-space: nowrap; max-width: 100%; }
.nb.on { background: var(--cap-fg); color: var(--cap); }
.nb .capbadge { top: -0.6rem; inset-inline-end: -0.35rem; }

/* ---- Page ---- */
.main { padding: 0.7rem 0.8rem calc(var(--nav-h) + 1.9rem); max-width: 60rem; margin: 0 auto; }
.main > * + * { margin-top: 1rem; }
.screen-title { display: flex; align-items: center; gap: 0.7rem; margin: 0.2rem 0.1rem 0; flex-wrap: wrap; }
.screen-title h1 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.screen-title .sub { font-size: max(0.84rem, var(--min-text)); color: hsl(var(--muted-foreground)); flex-basis: 100%; }
.screen-title .tools { margin-inline-start: auto; display: flex; gap: 0.45rem; }

/* ---- Raqeeb's circles: twelve colours with white line icons; «شكل الأيقونات» redraws them through these variables ---- */
.tc-indigo { --c: #3730a3; } .tc-gold { --c: #94600b; } .tc-pink { --c: #c0186c; } .tc-sky { --c: #0273a8; }
.tc-teal { --c: #0e7490; } .tc-red { --c: #c0392b; } .tc-green { --c: #1e7a45; } .tc-amber { --c: #a3561c; }
.tc-purple { --c: #6c3483; } .tc-navy { --c: #0f3460; } .tc-brown { --c: #7c4d33; } .tc-slate { --c: #4a5568; }
.circ, .icon-demo[data-demo="base"] .circ {
  --ci-r: 50%; --ci-bg: var(--c); --ci-fg: #fff; --ci-bd: 0 solid transparent; --ci-sh: 0 0.45rem 0.9rem -0.55rem rgba(15, 52, 96, 0.75);
  --ci-fill: none; --ci-filter: none; --ci-sw: 2; --ci-scale: 1; --ci-blur: none;
}
.circ { --ci-ink: var(--c); --ci-is: 1.95rem; }
:root[data-scheme="dark"] .circ { --ci-ink: color-mix(in srgb, var(--c) 50%, #fff); --ci-sh: 0 0 0 1px hsl(var(--shine) / 0.16), 0 0.45rem 0.9rem -0.55rem rgba(0, 0, 0, 0.8); }
.circ {
  position: relative; display: inline-grid; place-items: center; width: 4.3rem; height: 4.3rem; flex: none;
  border-radius: var(--ci-r); background: var(--ci-bg); color: var(--ci-fg); border: var(--ci-bd); box-shadow: var(--ci-sh);
  -webkit-backdrop-filter: var(--ci-blur); backdrop-filter: var(--ci-blur);
}
.circ .ic svg { width: calc(var(--ci-is) * var(--ci-scale)); height: calc(var(--ci-is) * var(--ci-scale)); stroke-width: var(--ci-sw); filter: var(--ci-filter); }
.circ .ic svg :is(path, rect, circle, ellipse, polyline) { fill: var(--ci-fill); }
.tbadge {
  position: absolute; top: -0.25rem; inset-inline-end: -0.25rem; min-width: 1.55rem; height: 1.55rem; padding: 0 0.32rem;
  border-radius: 999px; background: var(--tile-badge); color: #fff; font-size: max(0.78rem, var(--min-text)); font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff; line-height: 1;
}
[data-icons="duo"] .circ, .icon-demo[data-demo="duo"] .circ {
  --ci-r: 28%; --ci-bg: color-mix(in srgb, var(--c) 15%, hsl(var(--card))); --ci-fg: var(--ci-ink); --ci-sh: none;
  --ci-bd: 1px solid color-mix(in srgb, var(--c) 45%, transparent); --ci-fill: color-mix(in srgb, var(--ci-ink) 22%, transparent);
}
[data-icons="gradient"] .circ, .icon-demo[data-demo="gradient"] .circ {
  --ci-r: 28%; --ci-fill: rgba(255, 255, 255, 0.22);
  --ci-bg: linear-gradient(145deg, color-mix(in srgb, var(--c) 78%, #fff) 0%, var(--c) 48%, color-mix(in srgb, var(--c) 66%, #000) 100%);
  --ci-sh: 0 0.35rem 0.85rem color-mix(in srgb, var(--c) 42%, transparent);
}
[data-icons="glass"] .circ, .icon-demo[data-demo="glass"] .circ {
  --ci-r: 30%; --ci-fg: var(--ci-ink); --ci-bd: 1px solid hsl(var(--shine) / 0.4); --ci-blur: blur(8px);
  --ci-bg: linear-gradient(160deg, hsl(var(--card) / 0.92) 0%, color-mix(in srgb, var(--c) 30%, transparent) 100%);
  --ci-sh: inset 0 1px 0 hsl(var(--shine) / 0.4), 0 0.35rem 0.9rem hsl(var(--deep) / 0.25);
}
[data-icons="material"] .circ, .icon-demo[data-demo="material"] .circ { --ci-sh: none; }
[data-icons="material"] .gi:nth-child(4n+1) .circ, .icon-demo[data-demo="material"] .circ:nth-child(4n+1) { --ci-r: 30% 70% 70% 30% / 30% 30% 70% 70%; }
[data-icons="material"] .gi:nth-child(4n+2) .circ, .icon-demo[data-demo="material"] .circ:nth-child(4n+2) { --ci-r: 30%; }
[data-icons="material"] .gi:nth-child(4n+3) .circ, .icon-demo[data-demo="material"] .circ:nth-child(4n+3) { --ci-r: 50% 50% 50% 50% / 38% 38% 62% 62%; }
[data-icons="material"] .gi:nth-child(4n) .circ, .icon-demo[data-demo="material"] .circ:nth-child(4n) { --ci-r: 42% 58% 42% 58% / 58% 42% 58% 42%; }
[data-icons="material"] .set-row .circ { --ci-r: 32% 16% 32% 16%; }
[data-icons="3d"] .circ, .icon-demo[data-demo="3d"] .circ {
  --ci-r: 28%; --ci-filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, 0.4));
  --ci-bg: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--c) 62%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 60%, #000) 100%);
  --ci-sh: inset 0 -0.25rem 0.5rem rgba(0, 0, 0, 0.3), inset 0 0.2rem 0.35rem rgba(255, 255, 255, 0.35), 0 0.4rem 0.8rem rgba(0, 0, 0, 0.25);
}
[data-icons="3dtint"] .circ, .icon-demo[data-demo="3dtint"] .circ {
  --ci-bg: transparent; --ci-sh: none; --ci-fg: var(--ci-ink); --ci-sw: 2.3; --ci-scale: 1.3; --ci-fill: color-mix(in srgb, var(--ci-ink) 18%, transparent);
  --ci-filter: drop-shadow(-1px -1px 0 hsl(var(--shine) / 0.45)) drop-shadow(0 3px 2px hsl(var(--deep) / 0.45));
}

/* ---- Home grid: four circles a row, the label under each ---- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem 0.35rem; padding: 0.5rem 0 0.3rem; max-width: 40rem; margin-inline: auto; }
.gi {
  display: grid; justify-items: center; align-content: start; gap: 0.5rem; min-width: 0; border: 0; background: none; padding: 0;
  color: hsl(var(--foreground)); font-weight: 700; font-size: 0.92rem; text-align: center; line-height: 1.4; cursor: pointer;
}
.gi > span:last-child { max-width: 100%; }
.gi:active .circ { transform: scale(0.96); }
.gi[aria-pressed="true"] .circ { outline: 3px solid hsl(var(--ring)); outline-offset: 3px; }
@media (max-width: 340px) { .circ { width: 3.8rem; height: 3.8rem; --ci-is: 1.7rem; } .gi { font-size: 0.86rem; } }

/* ---- Sections: a head in the capsule colour, a lighter band, then the card ---- */
.panel {
  border-radius: var(--radius); overflow: hidden; background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border)); box-shadow: var(--cap-shadow);
}
.panel-head { display: flex; align-items: center; gap: 0.6rem; min-height: 3.1rem; padding: 0.5rem 1rem; background: var(--sec, var(--cap)); color: var(--sec-fg, var(--cap-fg)); }
.panel-head h2 { margin: 0; font-size: 1.06rem; font-weight: 700; flex: 1; min-width: 0; }
.panel-head .ic svg { width: 1.4rem; height: 1.4rem; }
.panel-band {
  margin: 0; padding: 0.42rem 1rem; color: var(--sec-fg, var(--cap-fg)); font-size: max(0.88rem, var(--min-text));
  background-color: var(--sec, var(--cap)); background-image: linear-gradient(hsl(var(--shine) / 0.14), hsl(var(--shine) / 0.14));
}
.panel-body { padding: 0.85rem 1rem; }
.panel-body.flush { padding: 0; }
.panel-body > * + * { margin-top: 0.7rem; }
.count-pill { background: var(--sec-fg, var(--cap-fg)); color: var(--sec, var(--cap)); border-radius: 999px; padding: 0 0.7rem; font-weight: 700; font-size: 0.9rem; line-height: 1.75; white-space: nowrap; }
.panel.gaps { --sec: var(--gap-head); --sec-fg: #fff; }
.panel.gaps .panel-band { background-color: var(--gap-band); background-image: none; }
.panel-head .chev { color: inherit; }

/* ---- Hero: the completeness of the chosen profile, in the capsule colour ---- */
.stats.hero {
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; border-radius: var(--radius); padding: 0.75rem 0.5rem 0.85rem;
  background: var(--cap); color: var(--cap-fg); border: 3px solid var(--cap-edge); box-shadow: var(--cap-shadow);
}
.hero-title { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 0.5rem; flex-wrap: wrap; text-align: center; font-weight: 700; font-size: 1rem; margin-bottom: 0.35rem; }
.hero-cell { display: grid; justify-items: center; gap: 0.05rem; padding: 0.15rem 0.3rem; }
.hero-cell + .hero-cell { border-inline-start: 1.5px solid var(--cap-sub); }
.hero-val { font-size: 1.45rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.hero-val small { font-size: 0.84rem; font-weight: 600; color: var(--cap-sub); }
.hero-label { font-size: max(0.82rem, var(--min-text)); text-align: center; line-height: 1.4; color: var(--cap-sub); }
.hero-meter { grid-column: 1 / -1; height: 0.45rem; margin: 0.55rem 0.6rem 0; border-radius: 999px; background: hsl(var(--shine) / 0.22); overflow: hidden; }
.hero-meter i { display: block; height: 100%; border-radius: 999px; background: var(--cap-fg); }
.hero .badge { background: var(--cap-badge); color: #fff; }

/* ---- Data tables: neutral, the data carries the meaning; Aleem's two row tones ---- */
.tw { overflow-x: auto; }
table.data { width: 100%; table-layout: auto; border-collapse: collapse; font-size: 0.88rem; line-height: 1.6; }
table.data th { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); padding: 0.5rem 0.65rem; text-align: start; white-space: nowrap; font-weight: 700; }
table.data td { padding: 0.5rem 0.65rem; vertical-align: top; overflow-wrap: break-word; word-break: normal; border-bottom: 1px solid hsl(var(--border) / 0.6); color: hsl(var(--foreground)); }
table.data tbody tr:nth-child(odd) td { background: hsl(var(--row-a)); }
table.data tbody tr:nth-child(even) td { background: hsl(var(--row-b)); }
table.data tr.click { cursor: pointer; }
table.data tr.click:active td { filter: brightness(0.96); }
table.data tr.on td { background: hsl(var(--row-cur)) !important; }
table.data td.k { font-weight: 700; color: hsl(var(--row-title)); }
table.data td.c { text-align: center; }
table.data td.act { width: 1%; white-space: nowrap; }
table.data td.pts { width: 1%; white-space: nowrap; text-align: center; font-weight: 700; }
table.data td.go { width: 1%; color: hsl(var(--muted-foreground)); vertical-align: middle; }
table.data .code { font-family: var(--font-mono); font-size: 0.84rem; direction: ltr; unicode-bidi: isolate; }
.panel-body.flush > .tw table.data th:first-child, .panel-body.flush > .tw table.data td:first-child { padding-inline-start: 1rem; }
.cell-bar { display: flex; align-items: center; gap: 0.35rem; min-width: 3.8rem; }
.cell-bar .track { flex: 1; height: 0.5rem; border-radius: 999px; background: hsl(var(--muted)); overflow: hidden; min-width: 1.4rem; }
.cell-bar .fill { height: 100%; background: hsl(var(--signature)); }

/* ---- Names (skills, connectors, tools): each name its own left-to-right chip, the list wraps ---- */
.names { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.name { direction: ltr; unicode-bidi: isolate; font-family: var(--font-mono); font-size: max(0.78rem, var(--min-text)); line-height: 1.6; padding: 0.05rem 0.55rem; border-radius: 999px; background: hsl(var(--muted)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.names.scroll { max-height: 16rem; overflow-y: auto; padding: 0.1rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 2.8rem; padding: 0.4rem 1rem; border-radius: calc(var(--radius) * 0.7); border: 1.5px solid hsl(var(--border));
  background: hsl(var(--card)); color: hsl(var(--card-foreground)); cursor: pointer; font-weight: 700; font-size: 0.95rem; line-height: 1.5;
}
.btn .ic svg { width: 1.2rem; height: 1.2rem; }
.btn.small { min-height: 2.3rem; padding: 0.25rem 0.75rem; font-size: 0.86rem; border-radius: calc(var(--radius) * 0.6); }
.btn.primary { background: var(--cap); color: var(--cap-fg); border-color: var(--cap-edge); }
.btn.primary:active { filter: brightness(0.92); }
.btn.ghost { background: hsl(var(--card)); border-color: hsl(var(--signature) / 0.6); color: hsl(var(--signature-text)); }
.btn.danger-ghost { background: hsl(var(--card)); border-color: hsl(var(--tone-neg) / 0.55); color: hsl(var(--tone-neg)); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.icon-btn { border: 0; background: none; padding: 0.45rem; border-radius: calc(var(--radius) * 0.55); cursor: pointer; color: hsl(var(--muted-foreground)); display: inline-flex; }
.icon-btn .ic svg { width: 1.25rem; height: 1.25rem; }
.row { display: flex; align-items: center; gap: 0.6rem; }
.row.wrap { flex-wrap: wrap; }
.row.end { justify-content: flex-end; }

/* ---- Settings rows (Raqeeb): circle, title and current value, chevron; one list with dividers ---- */
.set-list { border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) * 0.75); overflow: hidden; background: hsl(var(--card)); }
.set-row {
  display: flex; align-items: center; gap: 0.8rem; width: 100%; text-align: start; padding: 0.65rem 0.8rem; border: 0;
  border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--card-foreground)); cursor: pointer;
}
.set-row:last-child { border-bottom: 0; }
.set-row:active { background: hsl(var(--row-cur)); }
.set-row .circ { width: 2.8rem; height: 2.8rem; --ci-is: 1.3rem; }
.set-text { flex: 1; min-width: 0; display: grid; gap: 0.05rem; }
.set-text strong { font-size: 1rem; font-weight: 700; line-height: 1.5; }
.set-text span { font-size: max(0.84rem, var(--min-text)); color: hsl(var(--muted-foreground)); line-height: 1.55; }
.set-row .chev { color: hsl(var(--muted-foreground)); }
.set-row.danger strong { color: hsl(var(--tone-neg)); }

/* ---- Forms ---- */
.form { display: grid; gap: 0.8rem; min-width: 0; }
.form > *, .fix > *, .sheet-body > *, .panel-body > * { min-width: 0; }
.field { display: grid; gap: 0.35rem; }
.field-label { font-weight: 700; font-size: max(0.92rem, 14px); }
input[type=text], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: 2.8rem; padding: 0.55rem 0.8rem; border-radius: calc(var(--radius) * 0.6); line-height: 1.5;
  border: 1px solid hsl(var(--input)); background: hsl(var(--background)); color: hsl(var(--foreground)); outline: none;
}
input, select, textarea { font-size: max(1rem, 16px); }
::placeholder { color: hsl(var(--muted-foreground)); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsl(var(--ring) / 0.25); }
textarea { resize: none; line-height: 1.75; min-height: 7.5rem; }
textarea.code { font-family: var(--font-mono); font-size: max(0.9rem, 16px); direction: ltr; text-align: left; }
.stepper { display: inline-flex; align-items: center; border: 1px solid hsl(var(--input)); border-radius: calc(var(--radius) * 0.6); overflow: hidden; background: hsl(var(--background)); }
.stepper button { border: 0; background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); width: 2.6rem; height: 2.6rem; cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.stepper output { min-width: 2.6rem; text-align: center; font-weight: 700; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (max-width: 340px) { .pair { grid-template-columns: 1fr; } }

/* ---- Chips: the profile switcher and the filters ---- */
.chips { display: flex; gap: 0.45rem; flex-wrap: nowrap; overflow-x: auto; padding: 0.1rem 0.05rem 0.25rem; scrollbar-width: thin; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 0.3rem; border: 1.5px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.9rem; font-weight: 700; line-height: 1.5; cursor: pointer; white-space: nowrap;
}
.chip .ic svg { width: 1.05rem; height: 1.05rem; }
.chip.active { background: var(--cap); border-color: var(--cap-edge); color: var(--cap-fg); }

/* ---- Badges and tones of meaning ---- */
.badge { display: inline-block; font-size: max(0.78rem, var(--min-text)); font-weight: 700; padding: 0.1rem 0.6rem; border-radius: 999px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); white-space: nowrap; line-height: 1.6; }
.badge.ok { background: hsl(var(--tone-pos) / 0.15); color: hsl(var(--tone-pos)); }
.badge.bad { background: hsl(var(--tone-neg) / 0.15); color: hsl(var(--tone-neg)); }
.badge.warn { background: hsl(var(--tone-warn) / 0.15); color: hsl(var(--tone-warn)); }
.pos { color: hsl(var(--tone-pos)); font-weight: 700; }
.neg { color: hsl(var(--tone-neg)); font-weight: 700; }

/* ---- Callout and quote ---- */
.callout { border-radius: calc(var(--radius) * 0.75); padding: 0.7rem 0.9rem; background: hsl(var(--muted)); color: hsl(var(--card-foreground)); border: 1px solid hsl(var(--border)); border-inline-start: 0.3rem solid hsl(var(--signature)); }
.callout strong { color: hsl(var(--card-foreground)); font-weight: 700; }
.quote { margin: 0; padding: 0.6rem 0.85rem; border-radius: calc(var(--radius) * 0.6); background: hsl(var(--background)); border: 1px dashed hsl(var(--border)); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- Key/value ---- */
.kv { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.45rem 0; border-bottom: 1px dashed hsl(var(--border)); }
.kv:last-child { border-bottom: 0; }
.kv span { color: hsl(var(--muted-foreground)); white-space: nowrap; }
.kv strong { text-align: end; overflow-wrap: anywhere; }

/* ---- Copy box: the value in its own box with its copy button ---- */
.copy-box { display: flex; align-items: flex-start; gap: 0.5rem; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) * 0.7); padding: 0.45rem 0.6rem; background: hsl(var(--background)); }
.copy-box .copy-text { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 0.92rem; line-height: 1.8; }
.copy-box .copy-text.code { font-family: var(--font-mono); font-size: 0.84rem; direction: ltr; text-align: left; white-space: pre; overflow: auto; max-height: 13rem; line-height: 1.6; }
.copy-box .icon-btn { color: hsl(var(--signature-text)); border: 1px solid hsl(var(--signature) / 0.5); border-radius: calc(var(--radius) * 0.5); }
.fix { display: grid; gap: 0.35rem; }

/* ---- Score line ---- */
.score-line { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.6rem 0.85rem; border-radius: calc(var(--radius) * 0.7); background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.score-line strong { font-size: 1.3rem; }

/* ---- Sheets: the head in the capsule colour ---- */
.overlay { position: fixed; inset: 0; z-index: 50; background: hsl(var(--deep) / 0.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 48rem; max-height: 92vh; overflow: auto; background: hsl(var(--background)); color: hsl(var(--foreground)); border-radius: 24px 24px 0 0; animation: up 0.18s ease-out; box-shadow: 0 -0.5rem 2rem hsl(var(--deep) / 0.35); }
.sheet.full { height: 100%; max-height: 100%; border-radius: 0; }
@keyframes up { from { transform: translateY(1.5rem); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } body { transition: none; } }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.75rem 1rem; background: var(--cap); color: var(--cap-fg); border-bottom: 3px solid var(--cap-edge); }
.sheet-head h3 { margin: 0; font-size: 1.04rem; font-weight: 700; min-width: 0; }
.sheet-head .icon-btn { color: var(--cap-fg); border: 2.5px solid var(--cap-fg); border-radius: 50%; padding: 0.35rem; background: transparent; }
.sheet-body { padding: 1rem; display: grid; gap: 0.9rem; }
.sheet:focus { outline: none; }
.key-parts { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; }
.sub-line { display: block; font-size: max(0.82rem, var(--min-text)); color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* ---- Toasts: the inverse of the page ---- */
.toasts { position: fixed; inset-inline: 0; bottom: calc(var(--nav-h) + 1.6rem); z-index: 80; display: grid; justify-items: center; gap: 0.5rem; pointer-events: none; padding: 0 1rem; }
.toast { background: hsl(var(--foreground)); color: hsl(var(--background)); padding: 0.6rem 1rem; border-radius: calc(var(--radius) * 0.7); font-size: 0.92rem; max-width: 34rem; box-shadow: 0 0.5rem 1.5rem hsl(var(--deep) / 0.35); transition: opacity 0.4s, transform 0.4s; }
.toast.error { background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); }
.toast.hide { opacity: 0; transform: translateY(0.5rem); }

/* ---- «النمط» and «شكل الأيقونات»: the seven styles and Raqeeb's seven icon styles ---- */
.styles { display: grid; gap: 0.5rem; }
.style-opt {
  display: flex; align-items: center; gap: 0.7rem; width: 100%; border: 1.5px solid hsl(var(--border)); background: hsl(var(--card));
  color: hsl(var(--card-foreground)); border-radius: calc(var(--radius) * 0.6); padding: 0.6rem 0.8rem; cursor: pointer; text-align: start; line-height: 1.5;
}
.style-opt[aria-checked="true"] { border-color: hsl(var(--ring)); box-shadow: 0 0 0 2px hsl(var(--ring) / 0.35); font-weight: 700; }
.style-opt .tick { margin-inline-start: auto; color: hsl(var(--signature-text)); visibility: hidden; }
.style-opt[aria-checked="true"] .tick { visibility: visible; }
.style-text { display: grid; gap: 0.05rem; min-width: 0; }
.style-text span { font-size: max(0.82rem, var(--min-text)); color: hsl(var(--muted-foreground)); font-weight: 400; }
.dots { display: inline-flex; gap: 3px; flex: none; }
.dots i { width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 1px solid hsl(var(--border)); display: block; }
/* swatches that preview each style, whatever style is active (Aleem's own) */
.dots .d1 { background: #061427; } .dots .d2 { background: #daa93e; }
.dots .d3 { background: #f2ecde; } .dots .d4 { background: #ae7d29; }
.dots .d5 { background: #ffffff; } .dots .d6 { background: #0f3461; }
.dots .d7 { background: #140206; } .dots .d8 { background: #d4af37; }
.dots .d9 { background: #f8f1e4; } .dots .d10 { background: #6b1520; }
.dots .d15 { background: #03110c; } .dots .d16 { background: #d4af35; }
.dots .d17 { background: #f5f2e5; } .dots .d18 { background: #15563e; }
.icon-demo { display: inline-flex; gap: 0.35rem; flex: none; }
.icon-demo .circ { width: 2.5rem; height: 2.5rem; --ci-is: 1.2rem; }

/* ---- Footer ---- */
.copyright { text-align: center; font-size: max(0.8rem, var(--min-text)); line-height: 1.7; color: hsl(var(--muted-foreground)); margin-top: 1.2rem; overflow-wrap: anywhere; }
.empty { text-align: center; padding: 1.2rem 1rem; color: hsl(var(--muted-foreground)); margin: 0; }
.cmp-names { display: grid; gap: 0.35rem; }

/* ---- Web edition: the capability sheet ---- */
.cap-name { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.6; }
.src-desc { margin: 0; text-align: left; font-size: 0.9rem; line-height: 1.7; color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
table.data td .code { font-size: 0.82rem; }
#status { padding-top: 3rem; }
