/* ═══════════════════════════════════════════════════════════════
   النافذة X — Outreach (المرحلة 2): /newsletter، التأكيد، الإلغاء، تفضيلات البريد، نموذج الفوتر، /admin/mailing.
   يُحمَّل في كل صفحة ⇒ كل المحدِّدات بادئتها ox-. يبني على info.css (inf-form/inf-field/inf-ok) وهيكل J (ct-page).
   بلا تدرّجات ولا إيموجي. متغيّرات app.css (الثيمات الثلاثة)، RTL/LTR بخصائص منطقية.
   ═══════════════════════════════════════════════════════════════ */

.ox-hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ox-note { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); line-height: 1.7; }
.ox-state { margin: 0; }
.ox-prefs .btn { align-self: flex-start; }
.ox-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ───────────── خانة التسجيل (ح-4) ───────────── */
.ox-reg { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 12px; font-size: .92rem; line-height: 1.6; cursor: pointer; }
.ox-reg input { margin-top: .3em; flex: none; }
/* .auth-card input يعطي كل حقل width:100% وحشوة — المربّع يُستثنى بمحدِّد أدقّ */
.auth-card .ox-reg input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; padding: 0; margin: .2em 0 0; border-radius: 4px; box-shadow: none; accent-color: var(--primary); }
.ox-reg span { min-width: 0; overflow-wrap: anywhere; }

/* ───────────── نموذج الفوتر ───────────── */
.ox-foot { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; max-width: 460px; }
.ox-foot-l { font-weight: 700; font-size: .92rem; }
.ox-foot-row { display: flex; gap: 8px; min-width: 0; }
.ox-foot-row input {
    flex: 1 1 auto; min-width: 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); color: var(--text); font: inherit;
}
.ox-foot-row .btn { flex: none; }

/* ───────────── اللوحة ───────────── */
.ox-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 14px; }
.ox-stat { display: flex; flex-direction: column; gap: 4px; }
.ox-stat b { font-size: 1.6rem; line-height: 1.2; }
.ox-row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ox-filter { flex-wrap: wrap; align-items: flex-end; }
.ox-st { margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ox-st.is-on { border-color: var(--primary); }
.ox-test { margin-top: 12px; flex-wrap: wrap; align-items: flex-end; }
.ox-test .adm-field { flex: 1 1 220px; min-width: 0; }
.ox-bulk > summary { cursor: pointer; }
.ox-dom { padding-inline-start: 20px; line-height: 1.9; }
.ox-dom code { display: block; overflow-wrap: anywhere; font-size: .8rem; }
.ox-eff .mono { overflow-wrap: anywhere; }
.ox-frame { display: block; width: 100%; height: 520px; border: 1px solid var(--border); border-radius: 10px; background: #f4f5f9; }
.ox-filter .adm-field { min-width: 0; flex: 1 1 200px; }

@media (max-width: 480px) {
    .ox-foot-row { flex-direction: column; }
    .ox-foot-row .btn { align-self: flex-start; }
}
