/* ══════════════════════════════════════════════════════════════
   الأكاديمية ومساعدُ زمام
   ══════════════════════════════════════════════════════════════
   ‏لغةٌ مصنوعةٌ لا مولَّدة: الخطُّ والترتيبُ والأرقام تحمل الفخامة — لا نجوم، ولا نصٌّ
   ‏متدرّج، ولا زجاج، ولا إيموجي، ولا حركةٌ دائمة. «مش عايز اي حاجة في المنصة تكون
   ‏باينة انها ذكاء اصطناعي» (المالك، 2/10).

   ‏ألوانُ المسارات الخمسة لونُ هويّةٍ ثابتٌ بترتيب القائمة الجانبيّة، اجتازت فحصَ عمى
   ‏الألوان للثيمين — تظهر علامةً صغيرة (شريط، نقطة، خلفيّةٌ خفيفة للأيقونة)، والنصُّ
   ‏دائما بحبر النصّ. والحركةُ عند الدخول والتفاعل وحدهما، وتسكت مع «تقليل الحركة». */

:root {
  --trk-0: #067a5d; --trk-1: #6b46e0; --trk-2: #a86200; --trk-3: #1f6fd1; --trk-4: #c43b5a;
  --acx-line: var(--border-subtle);
  --acx-line-strong: var(--border-default);
  --acx-raise: 0 1px 0 rgba(15, 23, 32, .04), 0 12px 32px -18px rgba(15, 23, 32, .28);
  --acx-ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="dark"] {
  --trk-0: #0fa883; --trk-1: #9a76ff; --trk-2: #bf7c12; --trk-3: #3a92f0; --trk-4: #ec5876;
  --acx-raise: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 40px -22px rgba(0, 0, 0, .9);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --trk-0: #0fa883; --trk-1: #9a76ff; --trk-2: #bf7c12; --trk-3: #3a92f0; --trk-4: #ec5876;
    --acx-raise: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 40px -22px rgba(0, 0, 0, .9);
  }
}
[data-track="0"] { --t: var(--trk-0); }
[data-track="1"] { --t: var(--trk-1); }
[data-track="2"] { --t: var(--trk-2); }
[data-track="3"] { --t: var(--trk-3); }
[data-track="4"] { --t: var(--trk-4); }

.acx { display: grid; gap: 28px; padding-bottom: 40px; }
.acx > *, .acx-head > *, .acx-row > *, .acx-pl-body > * { min-width: 0; }
.acx h1, .acx h2, .acx h3, .acx h4 { color: var(--text-strong); }
.acx-num { font-variant-numeric: tabular-nums; }
/* ‏اسمُ الزرّ في الخطوة يُرسم كما يظهر على الشاشة: إطارٌ رفيع بحبر النصّ */
.acx-ui {
  display: inline-block; padding: 0 7px; margin: 0 2px; border-radius: 6px; line-height: 1.55;
  border: 1px solid var(--border-strong); background: var(--surface-1); box-shadow: 0 1.5px 0 var(--border-strong);
  font-weight: var(--fw-bold); white-space: nowrap; font-size: .92em;
}

/* ═════════════ الرأس ═════════════ */
.acx-head {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--acx-line-strong); background: var(--surface-1); box-shadow: var(--acx-raise);
  animation: acx-rise .45s var(--acx-ease) both;
}
.acx-head-main { padding: 34px 38px 30px; display: grid; gap: 18px; align-content: start; }
.acx-kicker { font-size: 12.5px; font-weight: var(--fw-bold); letter-spacing: .06em; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.acx-kicker::before { content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.acx-head h1 { margin: 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; letter-spacing: -.01em; }
.acx-head-sub { margin: -6px 0 0; font-size: 15px; line-height: 1.85; max-width: 600px; }

.acx-find { position: relative; max-width: 700px; }
.acx-find-box {
  display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 8px 0 16px; border-radius: 16px;
  border: 1.5px solid var(--acx-line-strong); background: var(--surface-0); transition: border-color .15s, box-shadow .15s;
}
.acx-find-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.acx-find-box > svg { width: 21px; height: 21px; flex: none; }
.acx-find-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text-strong); font: inherit; font-size: 16px; font-weight: var(--fw-semibold); }
.acx-find-box input::placeholder { color: var(--text-placeholder); }
.acx-find-box .btn { height: 42px; border-radius: 11px; padding-inline: 18px; }
.acx-kbd { display: inline-flex; gap: 4px; flex: none; direction: ltr; }
.acx-kbd kbd { font: inherit; font-size: 11px; font-weight: var(--fw-bold); padding: 2px 7px; border-radius: 6px; background: var(--surface-1); border: 1px solid var(--border-strong); box-shadow: 0 1.5px 0 var(--border-strong); }
.acx-drop {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 20; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--acx-line-strong); background: var(--surface-1); box-shadow: var(--acx-raise);
}
.acx-drop[hidden] { display: none; }
.acx-drop button {
  width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: start;
  padding: 11px 14px; border: 0; border-bottom: 1px solid var(--acx-line); background: transparent; color: var(--text-strong); font: inherit; cursor: pointer;
}
.acx-drop button:last-child { border-bottom: 0; }
.acx-drop button:hover, .acx-drop button[aria-selected="true"] { background: var(--surface-3); }
.acx-drop b { font-size: 14px; display: block; line-height: 1.5; }
.acx-drop small { font-size: 12px; }
.acx-drop .acx-ask-row b { color: var(--accent); }
.acx-hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; }
.acx-hints button {
  padding: 5px 12px; border-radius: 8px; border: 1px solid var(--acx-line-strong); background: transparent; color: var(--text-strong);
  font: inherit; font-size: 12.5px; cursor: pointer; transition: border-color .15s, background .15s;
}
.acx-hints button:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }

/* ── لوحةُ التقدّم ── */
.acx-stat { border-inline-start: 1px solid var(--acx-line-strong); background: var(--surface-0); padding: 30px 28px; display: grid; gap: 18px; align-content: start; }
.acx-stat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.acx-stat-top span { font-size: 12.5px; font-weight: var(--fw-bold); letter-spacing: .04em; }
.acx-stat-pct { font-size: 52px; line-height: 1; font-weight: var(--fw-bold); color: var(--text-strong); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.acx-stat-pct small { font-size: 22px; margin-inline-start: 2px; }
.acx-meter { display: grid; gap: 8px; }
.acx-meter-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; display: flex; gap: 2px; }
.acx-meter-bar i { display: block; height: 100%; background: var(--accent); }
.acx-meter-legend { display: flex; justify-content: space-between; font-size: 12px; }
.acx-level-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.acx-level-row span { height: 4px; border-radius: 2px; background: var(--surface-3); }
.acx-level-row span.on { background: var(--text-strong); }
.acx-level-name { font-size: 15px; font-weight: var(--fw-bold); color: var(--text-strong); display: flex; justify-content: space-between; align-items: baseline; }
.acx-level-name small { font-size: 12px; font-weight: var(--fw-semibold); }
.acx-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--acx-line); padding-top: 14px; }
.acx-stat-grid div { display: grid; gap: 2px; }
.acx-stat-grid div + div { border-inline-start: 1px solid var(--acx-line); padding-inline-start: 12px; }
.acx-stat-grid b { font-size: 20px; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.acx-stat-grid span { font-size: 11.5px; }

/* ═════════════ كمّل + الجديد ═════════════ */
.acx-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; animation: acx-rise .45s .06s var(--acx-ease) both; }
.acx-panel { border-radius: 20px; border: 1px solid var(--acx-line-strong); background: var(--surface-1); box-shadow: var(--acx-raise); }
.acx-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 0; }
.acx-panel-head h4 { margin: 0; font-size: 13px; font-weight: var(--fw-bold); letter-spacing: .04em; }
.acx-next { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px 20px; text-align: start; width: 100%; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; border-radius: 0 0 20px 20px; }
.acx-next:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.acx-next h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.5; }
.acx-next p { margin: 0; font-size: 13px; }
.acx-icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--t, var(--accent)) 12%, var(--surface-1)); color: var(--t, var(--accent));
  border: 1px solid color-mix(in srgb, var(--t, var(--accent)) 28%, transparent);
}
.acx-icon svg { width: 28px; height: 28px; stroke-width: 1.9; }
.acx-icon.sm { width: 44px; height: 44px; border-radius: 12px; }
.acx-icon.sm svg { width: 21px; height: 21px; }
.acx-go { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 18px; border-radius: 12px; background: var(--text-strong); color: var(--surface-1); font-size: 14px; font-weight: var(--fw-bold); }
.acx-go svg { width: 18px; height: 18px; }
.acx-new-list { display: grid; padding: 8px 8px 10px; }
.acx-new-item { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.acx-new-item:hover { background: var(--surface-3); }
.acx-new-item i.mark { width: 8px; height: 8px; border-radius: 50%; background: var(--t); }
.acx-new-item b { font-size: 13.5px; line-height: 1.5; color: var(--text-strong); display: block; }
.acx-new-item small { font-size: 12px; }
.acx-new-item time { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.acx-empty-new { margin: 0; padding: 14px 20px 20px; font-size: 13px; }

/* ═════════════ المسارات والوحدات ═════════════ */
.acx-tracks { display: grid; gap: 16px; animation: acx-rise .45s .1s var(--acx-ease) both; }
.acx-tracks-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; }
.acx-tracks-head h2 { margin: 0; font-size: 21px; }
.acx-tracks-head p { margin: 4px 0 0; font-size: 13.5px; }
.acx-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-1); border: 1px solid var(--acx-line-strong); }
.acx-seg button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 9px; cursor: pointer; background: transparent; color: var(--text-strong); font: inherit; font-size: 13px; font-weight: var(--fw-semibold); }
.acx-seg button i.dot { width: 8px; height: 8px; border-radius: 2px; background: var(--t, var(--text-strong)); }
.acx-seg button[aria-pressed="true"] { background: var(--text-strong); color: var(--surface-1); }

.acx-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.acx-mod {
  position: relative; text-align: start; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 18px 18px 16px;
  border-radius: 18px; border: 1px solid var(--acx-line-strong); background: var(--surface-1); cursor: pointer; font: inherit; color: inherit;
  transition: transform .2s var(--acx-ease), border-color .2s, box-shadow .2s;
  animation: acx-rise .4s var(--acx-ease) both; animation-delay: calc(var(--i, 0) * 22ms);
}
.acx-mod::before { content: ''; position: absolute; top: -1px; inset-inline: 18px; height: 3px; border-radius: 0 0 3px 3px; background: var(--t); }
.acx-mod:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--acx-raise); }
.acx-mod:focus-visible { outline: 2px solid var(--t); outline-offset: 3px; }
.acx-mod-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.acx-mod-title { font-size: 16px; font-weight: var(--fw-bold); color: var(--text-strong); line-height: 1.45; }
.acx-mod-meta { font-size: 12.5px; display: flex; gap: 12px; flex-wrap: wrap; }
.acx-mod-meta span { display: inline-flex; align-items: center; gap: 5px; }
.acx-mod-meta svg { width: 14px; height: 14px; }
.acx-mod-foot { display: grid; gap: 8px; }
.acx-mod-foot-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; }
.acx-mod-foot-row b { font-size: 14px; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.acx-bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.acx-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--t, var(--accent)); transition: width .6s var(--acx-ease); }
.acx-flag-new { font-size: 11px; font-weight: var(--fw-bold); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--t); color: var(--text-strong); white-space: nowrap; }
.acx-mod[data-complete="1"] .acx-bar i { background: var(--text-strong); }
.acx-done-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: var(--fw-bold); }
.acx-done-tag svg { width: 14px; height: 14px; color: var(--t); }

/* ═════════════ الوحدة ═════════════ */
.acx-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.acx-crumbs button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--acx-line-strong); background: var(--surface-1); color: var(--text-strong); font: inherit; font-size: 13px; cursor: pointer; }
.acx-crumbs svg { width: 15px; height: 15px; }
.acx-mhead {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 26px 28px; position: relative; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--acx-line-strong); background: var(--surface-1); box-shadow: var(--acx-raise);
  animation: acx-rise .4s var(--acx-ease) both;
}
.acx-mhead::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--t); }
.acx-mhead h1 { margin: 2px 0 8px; font-size: clamp(24px, 2.4vw, 32px); }
.acx-mhead-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 13px; }
.acx-mhead-meta span + span { padding-inline-start: 16px; border-inline-start: 1px solid var(--acx-line-strong); }
.acx-mhead .acx-bar { width: min(380px, 100%); margin-top: 12px; }
.acx-mhead-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.acx-mhead-acts .btn { min-height: 44px; border-radius: 12px; padding-inline: 18px; }
.acx-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: var(--fw-bold); }
.acx-chip i.dot { width: 8px; height: 8px; border-radius: 2px; background: var(--t); }

.acx-list { border-radius: 20px; border: 1px solid var(--acx-line-strong); background: var(--surface-1); overflow: hidden; box-shadow: var(--acx-raise); }
.acx-item {
  width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px;
  border: 0; border-bottom: 1px solid var(--acx-line); background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer;
  transition: background .15s; animation: acx-rise .35s var(--acx-ease) both; animation-delay: calc(var(--i, 0) * 25ms);
}
.acx-list > :last-child { border-bottom: 0; }
.acx-item:hover { background: var(--surface-3); }
.acx-step-no {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: var(--fw-bold); font-size: 15px; font-variant-numeric: tabular-nums;
  border: 1.5px solid var(--acx-line-strong); color: var(--text-strong); background: var(--surface-1);
}
.acx-item[data-state="done"] .acx-step-no { background: var(--t); border-color: var(--t); color: #fff; }
.acx-item[data-state="done"] .acx-step-no svg { width: 20px; height: 20px; }
.acx-item[data-state="next"] { background: color-mix(in srgb, var(--t) 6%, transparent); }
.acx-item[data-state="next"] .acx-step-no { border-color: var(--t); color: var(--t); }
.acx-item h4 { margin: 0; font-size: 15.5px; line-height: 1.55; }
.acx-item p { margin: 3px 0 0; font-size: 13px; line-height: 1.7; }
.acx-item-side { display: flex; align-items: center; gap: 8px; }
.acx-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: var(--fw-bold); border: 1px solid var(--acx-line-strong); white-space: nowrap; }
.acx-tag svg { width: 13px; height: 13px; }
.acx-tag.t { border-color: color-mix(in srgb, var(--t) 50%, transparent); }
.acx-tag.dashed { border-style: dashed; }
.acx-item-go { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--acx-line-strong); }
.acx-item-go svg { width: 16px; height: 16px; }
.acx-item:hover .acx-item-go { background: var(--text-strong); color: var(--surface-1); border-color: var(--text-strong); }
.acx-item[data-hidden="1"] { opacity: .55; }
.acx-results h2 { margin: 0; font-size: 20px; }

/* ═════════════ المشغّل ═════════════ */
.acx-player { position: fixed; inset: 0; z-index: calc(var(--z-modal, 200) + 10); display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--surface-0); animation: acx-fade .2s ease both; }
.acx-pl-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 28px 0; background: var(--surface-1); border-bottom: 1px solid var(--acx-line-strong); }
.acx-pl-x { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--acx-line-strong); background: var(--surface-1); color: var(--text-strong); cursor: pointer; }
.acx-pl-x svg { width: 20px; height: 20px; }
.acx-pl-title { min-width: 0; }
.acx-pl-title small { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: var(--fw-bold); }
.acx-pl-title small i.dot { width: 8px; height: 8px; border-radius: 2px; background: var(--t); }
.acx-pl-title h2 { margin: 2px 0 0; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-strong); }
.acx-pl-count { font-size: 14px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.acx-segs { grid-column: 1 / -1; display: flex; gap: 4px; padding: 12px 0 14px; }
.acx-segs i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); }
.acx-segs i.on { background: var(--t); }
.acx-segs i.cur { background: var(--text-strong); }

.acx-pl-body { overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; padding: 28px; max-width: 1320px; width: 100%; margin: 0 auto; align-content: start; }
.acx-pl-main { display: grid; gap: 20px; align-content: start; min-width: 0; }
.acx-pl-video { display: grid; gap: 10px; }
.acx-pl-video h4 { margin: 0; font-size: 12.5px; font-weight: var(--fw-bold); letter-spacing: .04em; display: flex; align-items: center; gap: 8px; color: var(--text-strong); }
.acx-pl-video h4 svg { width: 16px; height: 16px; }
.acx-video { border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; border: 1px solid var(--acx-line-strong); }
.acx-video video, .acx-video iframe { width: 100%; height: 100%; display: block; border: 0; }
.acx-video-link { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--surface-1); border: 1px solid var(--acx-line-strong); color: var(--text-strong); text-decoration: none; font-weight: var(--fw-bold); }
.acx-video-link svg { width: 22px; height: 22px; }

.acx-stage {
  position: relative; min-height: 300px; display: grid; grid-template-rows: auto 1fr auto; gap: 22px; padding: 30px 34px 26px;
  border-radius: 22px; border: 1px solid var(--acx-line-strong); background: var(--surface-1); box-shadow: var(--acx-raise);
}
.acx-stage-head { display: flex; align-items: center; gap: 14px; }
.acx-stage-no { font-size: 46px; line-height: 1; font-weight: var(--fw-bold); color: var(--t); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.acx-stage-label { font-size: 13px; font-weight: var(--fw-bold); }
.acx-stage-label small { display: block; font-size: 12px; font-weight: var(--fw-semibold); }
.acx-stage-text { margin: 0; align-self: center; font-size: clamp(20px, 2vw, 26px); line-height: 1.85; color: var(--text-strong); font-weight: var(--fw-bold); max-width: 820px; }
.acx-stage.in .acx-stage-text { animation: acx-step .3s var(--acx-ease) both; }
.acx-stage-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--acx-line); }
.acx-stage-nav .btn { min-height: 46px; padding-inline: 20px; border-radius: 12px; font-size: 14.5px; }
.acx-stage-nav small { font-size: 12px; display: flex; gap: 6px; align-items: center; }
.acx-btn-ink { background: var(--text-strong) !important; border-color: var(--text-strong) !important; color: var(--surface-1) !important; }
.acx-done { grid-template-rows: auto; justify-items: center; align-content: center; text-align: center; gap: 14px; }
.acx-done-mark { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: var(--t); color: #fff; animation: acx-pop .45s var(--acx-ease) both; }
.acx-done-mark svg { width: 38px; height: 38px; stroke-width: 2.6; }
.acx-done h3 { margin: 0; font-size: 24px; line-height: 1.5; }
.acx-done p { margin: 0; font-size: 14px; }
.acx-done .acx-stage-nav { border-top: 0; justify-content: center; }

.acx-pl-side { display: grid; gap: 14px; align-content: start; }
.acx-card { border-radius: 18px; border: 1px solid var(--acx-line-strong); background: var(--surface-1); padding: 16px 18px; display: grid; gap: 10px; }
.acx-card h4 { margin: 0; font-size: 12.5px; font-weight: var(--fw-bold); letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.acx-card h4 svg { width: 16px; height: 16px; }
.acx-card p { margin: 0; font-size: 13.5px; line-height: 1.8; }
.acx-note { border-inline-start: 4px solid var(--t); }
.acx-steplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.acx-steplist button { width: 100%; text-align: start; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px; border-radius: 10px; border: 0; background: transparent; color: var(--text-strong); font: inherit; font-size: 13px; line-height: 1.7; cursor: pointer; }
.acx-steplist button:hover { background: var(--surface-3); }
.acx-steplist button > i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: var(--fw-bold); border: 1.5px solid var(--acx-line-strong); }
.acx-steplist button[aria-current="step"] { background: var(--surface-3); }
.acx-steplist button[aria-current="step"] > i { background: var(--text-strong); border-color: var(--text-strong); color: var(--surface-1); }
.acx-steplist button[data-seen="1"] > i { background: var(--t); border-color: var(--t); color: #fff; }
.acx-tips ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; font-size: 13px; line-height: 1.8; }
.acx-actions { display: grid; gap: 8px; }
.acx-actions .btn { justify-content: center; min-height: 44px; border-radius: 12px; }
.acx-edit { display: grid; gap: 10px; }
.acx-edit-row { display: flex; gap: 8px; flex-wrap: wrap; }
.acx-edit-row .btn { flex: 1 1 auto; justify-content: center; }
.acx-up { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.acx-up i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* ═════════════ «نفّذها جنبي» ═════════════ */
.acx-coach {
  position: fixed; bottom: 92px; inset-inline-end: 22px; z-index: calc(var(--z-topbar, 150) + 4); width: min(360px, calc(100vw - 32px));
  border-radius: 18px; border: 1px solid var(--border-strong); background: var(--surface-1); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55);
  display: grid; overflow: hidden; animation: acx-rise .3s var(--acx-ease) both;
}
.acx-coach::before { content: ''; height: 3px; background: var(--t); }
body.za-open .acx-coach { inset-inline-end: 442px; }
.acx-coach-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px 8px; }
.acx-coach-head small { font-size: 11.5px; font-weight: var(--fw-bold); display: block; }
.acx-coach-head b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-strong); }
.acx-coach-tools { display: flex; gap: 2px; }
.acx-coach-tools button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--text-strong); display: grid; place-items: center; cursor: pointer; }
.acx-coach-tools button:hover { background: var(--surface-3); }
.acx-coach-tools svg { width: 16px; height: 16px; }
.acx-coach .acx-segs { padding: 0 14px 6px; }
.acx-coach ol { list-style: none; margin: 0; padding: 4px 8px; display: grid; gap: 2px; max-height: 300px; overflow-y: auto; }
.acx-coach li button { width: 100%; text-align: start; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px; border-radius: 10px; border: 0; background: transparent; color: var(--text-strong); font: inherit; font-size: 12.5px; line-height: 1.65; cursor: pointer; }
.acx-coach li button > i { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--acx-line-strong); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: var(--fw-bold); }
.acx-coach li button > i svg { width: 13px; height: 13px; }
.acx-coach li[data-state="done"] button { opacity: .55; }
.acx-coach li[data-state="done"] button > i { background: var(--t); border-color: var(--t); color: #fff; }
.acx-coach li[data-state="current"] button { background: var(--surface-3); font-size: 14px; font-weight: var(--fw-bold); }
.acx-coach li[data-state="current"] button > i { background: var(--text-strong); border-color: var(--text-strong); color: var(--surface-1); }
.acx-coach-foot { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--acx-line); }
.acx-coach-foot .btn { flex: 1; justify-content: center; min-height: 42px; border-radius: 11px; }
.acx-coach[data-min="1"] { width: auto; border-radius: 14px; }
.acx-coach[data-min="1"] > :not(.acx-coach-pill) { display: none; }
.acx-coach[data-min="1"]::before { display: none; }
.acx-coach-pill { display: none; align-items: center; gap: 10px; padding: 11px 16px; border: 0; background: transparent; color: var(--text-strong); font: inherit; font-size: 13px; font-weight: var(--fw-bold); cursor: pointer; }
.acx-coach[data-min="1"] .acx-coach-pill { display: inline-flex; }
.acx-coach-pill i.dot { width: 9px; height: 9px; border-radius: 3px; background: var(--t); }

/* ═════════════ لمن يكتب: الأسئلة والتقدّم ═════════════ */
.acx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 20px; border: 1px solid var(--acx-line-strong); background: var(--surface-1); box-shadow: var(--acx-raise); overflow: hidden; }
.acx-kpi { padding: 18px 22px; display: grid; gap: 4px; }
.acx-kpi + .acx-kpi { border-inline-start: 1px solid var(--acx-line); }
.acx-kpi b { font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text-strong); }
.acx-kpi span { font-size: 12.5px; font-weight: var(--fw-bold); }
.acx-kpi[data-warn="1"] b { color: var(--trk-4); }
.acx-q { border-bottom: 1px solid var(--acx-line); padding: 18px 22px; display: grid; gap: 10px; }
.acx-list > .acx-q:last-child { border-bottom: 0; }
.acx-q[data-flag="1"] { box-shadow: inset -4px 0 0 var(--trk-4); }
.acx-q-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.acx-avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: var(--fw-bold); font-size: 13px; background: var(--surface-3); color: var(--text-strong); border: 1px solid var(--acx-line-strong); flex: none; }
.acx-q-head b { font-size: 14px; color: var(--text-strong); }
.acx-q-text { font-size: 15.5px; font-weight: var(--fw-bold); color: var(--text-strong); line-height: 1.7; }
.acx-q details summary { cursor: pointer; font-size: 12.5px; font-weight: var(--fw-bold); }
.acx-q ol { margin: 8px 0 0; padding-inline-start: 20px; font-size: 13.5px; line-height: 1.8; }
.acx-flag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: var(--fw-bold); border: 1px solid var(--acx-line-strong); }
.acx-flag svg { width: 12px; height: 12px; }
.acx-flag.warn { border-color: var(--trk-4); }
.acx-team-row { display: grid; grid-template-columns: auto minmax(130px, 240px) minmax(0, 1fr) 70px; gap: 18px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--acx-line); }
.acx-list > .acx-team-row:last-child { border-bottom: 0; }
.acx-team-row b { font-size: 14.5px; color: var(--text-strong); }
.acx-team-row small { font-size: 12px; }
.acx-team-row .acx-bar { height: 8px; }
.acx-team-row .acx-pct { font-size: 18px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; text-align: end; color: var(--text-strong); }

/* ══════════════════════════════════════════════════════════════
   اسأل زمام — لوحٌ جانبيٌّ لا يحجب الصفحة، بعلامة زمام نفسِها
   ══════════════════════════════════════════════════════════════ */
/* ‏الدايرةُ العائمة: تحت على الشمال، فوق مربّع الكتابة في صفحة الشات، وتختفي واللوحُ مفتوح */
.za-fab {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: calc(var(--z-topbar, 150) + 4); width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; cursor: pointer; border: 1.5px solid var(--border-strong); background: var(--surface-1);
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .45); transition: transform .15s, border-color .15s;
}
.za-fab img { width: 30px; height: 30px; }
.za-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.za-fab:hover { transform: translateY(-2px); border-color: var(--accent); }
.za-fab:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; }
.za-fab[hidden] { display: none; }
html.page-full .za-fab { bottom: 92px; }
html.page-full .acx-coach { bottom: 162px; }

.za-dock {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100vw); z-index: calc(var(--z-topbar, 150) + 3);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--surface-1);
  border-inline-start: 1px solid var(--border-strong); box-shadow: -24px 0 60px -36px rgba(0, 0, 0, .5);
  animation: za-in .22s var(--acx-ease) both;
}
.za-dock[hidden] { display: none; }
@media (min-width: 1280px) { body.za-open .main { margin-left: 420px; } }
.za-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--acx-line-strong); }
.za-mark { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--surface-0); border: 1px solid var(--acx-line-strong); overflow: hidden; }
.za-mark img { width: 26px; height: 26px; }
.za-head h3 { margin: 0; font-size: 15px; color: var(--text-strong); }
.za-head p { margin: 1px 0 0; font-size: 12px; }
.za-head .za-tools { margin-inline-start: auto; display: flex; gap: 4px; }
.za-head .za-tools button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--acx-line-strong); background: var(--surface-1); color: var(--text-strong); display: grid; place-items: center; cursor: pointer; }
.za-head .za-tools svg { width: 16px; height: 16px; }

.za-body { overflow-y: auto; padding: 18px; display: grid; align-content: start; gap: 18px; scroll-behavior: smooth; }
.za-welcome { display: grid; gap: 14px; }
.za-welcome h4 { margin: 0; font-size: 20px; line-height: 1.45; color: var(--text-strong); }
.za-welcome p { margin: 0; font-size: 13.5px; line-height: 1.85; }
.za-sugg { display: grid; border-radius: 14px; border: 1px solid var(--acx-line-strong); overflow: hidden; }
.za-sugg-title { font-size: 12px; font-weight: var(--fw-bold); letter-spacing: .04em; }
.za-sugg button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: start; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--acx-line); background: var(--surface-1); color: var(--text-strong); font: inherit; font-size: 13.5px; line-height: 1.6; cursor: pointer; }
.za-sugg button:last-child { border-bottom: 0; }
.za-sugg button:hover { background: var(--surface-3); }
.za-sugg svg { width: 16px; height: 16px; }

.za-msg { display: grid; gap: 10px; animation: acx-rise .25s var(--acx-ease) both; }
.za-q { justify-self: end; max-width: 86%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--text-strong); color: var(--surface-1); font-weight: var(--fw-semibold); }
.za-a { border-radius: 14px 14px 14px 4px; border: 1px solid var(--acx-line-strong); background: var(--surface-1); padding: 14px; display: grid; gap: 12px; }
.za-intro { margin: 0; font-size: 14px; line-height: 1.85; white-space: pre-wrap; color: var(--text-strong); }
.za-steps { list-style: none; margin: 0; padding: 0; display: grid; border-radius: 12px; border: 1px solid var(--acx-line); overflow: hidden; }
.za-steps li + li { border-top: 1px solid var(--acx-line); }
.za-steps button { width: 100%; text-align: start; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border: 0; background: var(--surface-1); color: var(--text-strong); font: inherit; font-size: 13.5px; line-height: 1.75; cursor: pointer; }
.za-steps button:hover { background: var(--surface-3); }
.za-steps button > i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: var(--fw-bold); border: 1.5px solid var(--border-strong); }
.za-steps button > i svg { width: 14px; height: 14px; }
.za-steps button[aria-checked="true"] > i { background: var(--accent); border-color: var(--accent); color: #fff; }
.za-steps button[aria-checked="true"] > span { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.za-tips { border-radius: 12px; padding: 10px 12px; border: 1px solid var(--acx-line-strong); border-inline-start: 4px solid var(--trk-2); }
.za-tips b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-strong); }
.za-tips b svg { width: 14px; height: 14px; }
.za-tips ul { margin: 6px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; font-size: 13px; line-height: 1.75; }
.za-unknown { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.75; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--border-strong); }
.za-unknown svg { width: 17px; height: 17px; flex: none; margin-top: 3px; }
.za-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.za-actions .btn { font-size: 12.5px; border-radius: 10px; }
.za-foot { display: flex; align-items: center; gap: 4px; font-size: 12px; border-top: 1px solid var(--acx-line); padding-top: 8px; }
.za-foot > span { margin-inline-end: auto; }
.za-foot button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text-strong); cursor: pointer; display: grid; place-items: center; }
.za-foot button:hover { background: var(--surface-3); }
.za-foot button[aria-pressed="true"] { border-color: var(--text-strong); }
.za-foot svg { width: 16px; height: 16px; }
.za-thinking { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px 14px 14px 4px; border: 1px solid var(--acx-line-strong); justify-self: start; font-size: 13px; font-weight: var(--fw-semibold); }
.za-thinking i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--surface-3); border-top-color: var(--text-strong); animation: za-spin .8s linear infinite; }
.za-err { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--trk-4); font-size: 13px; }

.za-input { padding: 12px 16px 14px; display: grid; gap: 8px; border-top: 1px solid var(--acx-line-strong); }
.za-input form { display: flex; gap: 8px; align-items: flex-end; padding: 5px 5px 5px 8px; border-radius: 14px; border: 1.5px solid var(--acx-line-strong); background: var(--surface-0); transition: border-color .15s, box-shadow .15s; }
.za-input form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.za-input textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; color: var(--text-strong); min-height: 40px; max-height: 140px; padding: 9px 10px; font: inherit; font-size: 14px; line-height: 1.6; }
.za-send { width: 40px; height: 40px; border-radius: 10px; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--surface-1); background: var(--text-strong); flex: none; }
.za-send:disabled { opacity: .45; cursor: default; }
.za-send svg { width: 18px; height: 18px; transform: scaleX(-1); }
.za-input small { font-size: 11.5px; text-align: center; }

/* ═════════════ الحركة ═════════════ */
@keyframes acx-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes acx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes acx-step { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes acx-pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes za-in { from { transform: translateX(-18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes za-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .acx *, .acx, .acx-player, .acx-player *, .acx-coach, .za-dock, .za-dock * { animation: none !important; transition: none !important; }
}

/* ═════════════ الشاشات الصغيرة ═════════════ */
@media (max-width: 1100px) {
  .acx-head { grid-template-columns: minmax(0, 1fr); }
  .acx-stat { border-inline-start: 0; border-top: 1px solid var(--acx-line-strong); }
  .acx-row { grid-template-columns: minmax(0, 1fr); }
  .acx-pl-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .acx { gap: 20px; }
  .acx-head-main { padding: 24px 18px 20px; }
  .acx-stat { padding: 20px 18px; }
  .acx-head h1 { font-size: 26px; }
  .acx-find-box { height: 54px; padding: 0 6px 0 12px; }
  .acx-find-box .acx-kbd { display: none; }
  .acx-next { grid-template-columns: 52px minmax(0, 1fr); }
  .acx-next .acx-go { display: none; }
  .acx-icon { width: 52px; height: 52px; }
  .acx-mhead { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .acx-item { grid-template-columns: 40px minmax(0, 1fr); padding: 14px; }
  .acx-item-side { grid-column: 2; }
  .acx-pl-top { padding: 10px 14px 0; }
  .acx-pl-body { padding: 14px; }
  .acx-stage { padding: 22px 18px 18px; min-height: 260px; }
  .acx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acx-kpi:nth-child(3) { border-inline-start: 0; }
  .acx-kpi:nth-child(n+3) { border-top: 1px solid var(--acx-line); }
  .acx-team-row { grid-template-columns: auto minmax(0, 1fr) 60px; }
  .acx-team-row .acx-bar { grid-column: 1 / -1; }
  .za-dock { width: 100vw; }
  body.za-open .acx-coach { inset-inline-end: 16px; }
  .acx-coach { bottom: 84px; inset-inline-end: 16px; }
  html.page-full .acx-coach { bottom: 150px; }
  .za-fab { bottom: 16px; inset-inline-end: 16px; width: 52px; height: 52px; }
}

/* ── ‏شريطُ التسجيل: يطفو فوق كلِّ صفحة والمالكُ يشرح ── */
.acx-edit-hint { margin: 0; font-size: 12.5px; line-height: 1.7; }
.acx-rec {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: calc(var(--z-topbar, 150) + 6);
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; border-radius: 999px;
  background: var(--surface-1); border: 1.5px solid var(--border-strong); box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px);
}
.acx-rec > b { font-size: 15px; color: var(--text-strong); }
.acx-rec-title { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.acx-rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 25%, transparent); animation: acx-rec-pulse 1.2s ease-in-out infinite; }
@keyframes acx-rec-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--danger) 10%, transparent); } }
.acx-rec-up { width: 160px; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.acx-rec-up i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
@media (prefers-reduced-motion: reduce) { .acx-rec-dot { animation: none; } }
@media (max-width: 640px) { .acx-rec-title { display: none; } }
