/* cloud-docs — دليل الوكلاء (#/docs) · بادئة dx- · ألوان النواة وحدها (tokens) فيعمل الوضعان الفاتح والداكن */
.dx-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); margin-bottom: 16px; align-items: start; }
.dx-sec { margin-bottom: 16px; }
.dx .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* الرحلة: دوائر مرقّمة وخطٌّ يصلها */
.dx-steps { list-style: none; margin: 0; padding: 0; }
.dx-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 18px; }
.dx-step:last-child { padding-bottom: 0; }
.dx-step:not(:last-child)::before { content: ""; position: absolute; top: 34px; bottom: 2px; inset-inline-start: 15px; width: 2px;
  background: var(--line); border-radius: 2px; }
.dx-step.done:not(:last-child)::before { background: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.dx-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: var(--surface-2); color: var(--text-3); border: 1.5px solid var(--line-2); }
.dx-step.done .dx-num { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.dx-step.cur .dx-num { background: var(--coral); color: #fff; border-color: var(--coral); }
.dx-num .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.dx-t { font-weight: 700; margin-top: 5px; }
.dx-d { color: var(--text-2); font-size: 14px; margin-top: 3px; overflow-wrap: anywhere; }
.dx-meta { color: var(--text-3); font-size: 12.5px; margin-top: 4px; }
.dx-act { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* الإعدادات القابلة للنسخ */
.dx-tabs { margin-bottom: 12px; }
.dx-tabs .chip { font-family: inherit; }
/* النشط بلون النصّ على لون السطح: كحليّ في الفاتح، وفاتحٌ في الداكن (كحليّ النواة يذوب في خلفية الداكن) */
.dx-tabs .chip.on { background: var(--text); border-color: var(--text); color: var(--surface); }
.dx-code-h { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 12px 0 6px; }
.dx-tab > .dx-code-h:first-child, .card-b.stack > .dx-code-h:first-child { margin-top: 0; }
.dx-code { padding-inline-end: 14px; padding-right: 40px; min-height: 42px; }
.dx-note { margin: 12px 0 0; }
.dx-code-h .dx-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; margin-inline-end: 6px;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 800; vertical-align: 1px; }
.dx-cnote { margin-top: 6px; }
/* العربية بخطّ الواجهة لا بالأحادي المسافة (تنفصل حروفها)، والزرّ في الطرف الآخر */
.code.dx-say, .code.dx-ar { direction: rtl; text-align: right; font-family: inherit; word-break: normal; overflow-wrap: anywhere;
  padding: 12px 14px 12px 40px; }
.code.dx-say .copy, .code.dx-ar .copy { right: auto; left: 8px; }
.code.dx-say { background: var(--surface-2); color: var(--text); border: 1px dashed var(--line-2); font-size: 14.5px; line-height: 1.75; }
.code.dx-say .copy { color: var(--text-3); }
.code.dx-ar { font-size: 13.5px; line-height: 1.8; unicode-bidi: plaintext; }

/* البوّابات: صفوفٌ تلتفّ على الجوال بدل جدولٍ يفيض */
.dx-gates { padding: 6px 18px 10px; }
.dx-gate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 8px 16px; align-items: center; padding: 11px 0;
  border-bottom: 1px solid var(--line); }
.dx-gate:last-child { border-bottom: 0; }
.dx-ga { font-size: 14px; }
.dx-gg { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.dx-gg .pill { white-space: normal; }

.dx-bill p { margin: 0; font-size: 14px; color: var(--text-2); }
.dx-bill b { color: var(--text); }

/* بطاقة الرئيسية */
.dx-home .card-b { gap: 14px; }
.dx-home-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--coral-soft); color: var(--coral); display: grid; place-items: center; flex: none; }
.dx-home-bar { margin-top: 8px; max-width: 360px; }
.dx-home-bar > i { background: var(--coral); }

@media (max-width: 980px) {
  .dx-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .dx-gate { grid-template-columns: minmax(0, 1fr); }
  .dx-gates { padding: 4px 16px 8px; }
  .dx .page-h .btn.primary { width: 100%; }
  .dx-home .card-b { flex-wrap: wrap; }
  .dx-home .card-b .grow { min-width: 0; flex: 1 1 180px; }
}

/* تنبيه الهامش للمالك وحده — قابلٌ للإغلاق أسبوعاً */
.dx-owner { margin-bottom: 16px; align-items: flex-start; }
.dx-owner .grow { min-width: 0; overflow-wrap: anywhere; }
.dx-owner .icon-btn { flex: 0 0 auto; margin: -6px -6px 0 0; }
.dx-owner-s { margin-top: 6px; }
