/* فيوبانل — أدوات الاستضافة (B-hostops) فوق styles.css وpanel.css؛ كل الأصناف ببادئة ho- والألوان من متغيّرات السمة (الفاتح والداكن) */

/* قوائم الأدوات: صفّ لكل مهمة/نسخة/نطاق/تحويل */
.ho-list { display: grid; }
.ho-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.ho-item:last-child { border-bottom: 0; }
.ho-item:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.ho-item.ho-off .ho-main { opacity: .55; }
.ho-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-2); }
.ho-ic .ico { width: 18px; height: 18px; }
.ho-main { flex: 1 1 auto; min-width: 0; }
.ho-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-weight: 600; font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; }
.ho-title a { text-decoration: none; }
.ho-title a:hover { color: var(--coral); }
.ho-sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; overflow-wrap: anywhere; line-height: 1.55; }
.ho-sub.mono { direction: ltr; text-align: end; unicode-bidi: isolate; }
.ho-cmd { display: block; width: fit-content; margin-top: 6px; padding: 4px 9px; border-radius: 7px; max-width: 100%;
  background: var(--surface-2); color: var(--text); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px;
  direction: ltr; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.ho-acts .btn.sm { min-width: 32px; }
.ho-foot { border-top: 1px solid var(--line); line-height: 1.7; }
.ho-n { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.ho-kv dd.mono { text-align: right; }
.ho-tacts { justify-content: flex-end; gap: 4px; }

/* بطاقتان متجاورتان (الأداة + كيف يعمل) */
.ho-g { align-items: start; margin-bottom: 14px; }
.ho-g h3 { display: flex; align-items: center; gap: 8px; }
.ho-ul { margin: 10px 0 0; padding-inline-start: 18px; line-height: 1.7; }
.ho-ul li { margin: 4px 0; }
.ho-ul li::marker { color: var(--coral); }

/* النسخ الاحتياطية */
.ho-bk-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ho-bk-top h3 { display: flex; align-items: center; gap: 8px; }
.ho-bk-top .grow { flex: 1 1 260px; min-width: 0; }
.ho-auto { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 60%, transparent);
  border-radius: 0 0 var(--radius) var(--radius); }
.ho-auto .row { row-gap: 10px; }
.ho-auto label.row { white-space: nowrap; flex-wrap: nowrap; }
.ho-keep { width: auto; min-width: 64px; padding: 5px 8px; display: inline-block; }

/* اختيارات النوافذ */
.ho-pick { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.ho-pick .opt { font: inherit; color: inherit; width: 100%; padding-inline-end: 28px; }
.ho-pick .opt b.mono { direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.ho-pick .opt .d.ltr { text-align: end; overflow-wrap: anywhere; }
.ho-fq { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; min-width: 0; }
.ho-fq > .field { min-width: 0; }
.ho-fq > .grow { flex: 1 1 150px; }
.ho-fq > .field:not(.grow) { flex: 0 1 auto; }
.ho-fq > .input.grow { flex: 1 1 120px; min-width: 0; width: auto; }
.ho-dom { white-space: nowrap; direction: ltr; align-self: center; font-size: 13px; }

/* التحويلات */
.ho-arrow .mono { direction: ltr; unicode-bidi: isolate; min-width: 0; overflow-wrap: anywhere; }
.ho-arrow .ico { transform: scaleX(-1); }
.ho-tgt { color: var(--text-2); font-weight: 500; }

/* محرّر المهمة المجدولة */
.ho-presets .chip { font: inherit; font-size: 13px; color: inherit; }
.ho-presets .chip.on { color: #fff; }
.ho-cron-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; }
.ho-cron-grid .field > span { font-size: 12px; margin-bottom: 4px; }
.ho-cron-grid .input { text-align: center; padding: 9px 6px; }

@media (max-width: 720px) {
  .ho-item { padding: 11px 14px; gap: 10px; align-items: flex-start; }
  .ho-item > .switch, .ho-acts { margin-top: 2px; }
  .ho-ic { display: none; }
  .ho-bk-top .btn { width: 100%; }
  .ho-auto .spacer { display: none; }
  .ho-pick { grid-template-columns: minmax(0, 1fr); }
  .ho-cron-grid { gap: 6px; }
  .ho-cron-grid .field > span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ho-cron-grid .input { padding: 8px 2px; font-size: 14px; }
}
.ho-id { white-space: nowrap; }

/* الشريحة المختارة: لونها الكحلي يذوب في سطح الوضع الداكن ⇒ مرجانيّ هناك وحده */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ho-auto .chip.on, :root:not([data-theme="light"]) .ho-presets .chip.on { background: var(--coral); border-color: var(--coral); color: #fff; }
}
:root[data-theme="dark"] .ho-auto .chip.on, :root[data-theme="dark"] .ho-presets .chip.on { background: var(--coral); border-color: var(--coral); color: #fff; }
