/* ════════════════════════════════════════════════════════════════════
   SolarDeye — Subscriber Console v32 (multi-device)
   Build: v32-subscriber-console-unified-multidevice
   Date:  2026-05-08

   This file is the THIN LAYER on top of:
     - unified_theme_v1.css   (global tokens + button/card painting)
     - unified_hero_v1.css    (.hu-* hero pattern)
     - subscriber_v4.css      (.sub-* shared subscriber building blocks
                              and .dswx-* device switcher styles)

   It does three things:
     1. Refines the device switcher bar so it sits cleanly above the hero
        and adapts to RTL + mobile + the 0/1-device fallback case.
     2. Adds a unified "page hat" — eyebrow + breadcrumb + device chip —
        used on subscriber pages where the hero alone isn't enough context.
     3. Adds multi-device-aware empty states, scope-banner, and a few
        cross-page polish rules so subscriber pages all feel like siblings.

   Do NOT redefine tokens already in unified_theme_v1.css.
   Do NOT recolour the hero — the .sub-page / .sub-page.sub-cool overrides
   in subscriber_v4.css already do that correctly.
═══════════════════════════════════════════════════════════════════════ */

/* ── 1. Device-switcher container hardening ──────────────────────── */

/* Ensure the switcher always has breathing room above the hero and
   collapses gracefully on narrow viewports. */
.app-main.content-area > .dswx-bar{
  margin: 0 0 14px;
}
.app-main.content-area > .dswx-bar + header.hu-hero{
  margin-top: 0;
}

/* When user has only one device, the switcher partial renders nothing.
   But on /devices/manage we DO want a soft scope strip even with one
   device — call it "single-device-banner". */
.dswx-single-banner{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fef9c3, #fef3c7);
  border: 1px solid #fde68a;
  color: #78350f;
  font-size: .82rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.dswx-single-banner b{ color: #92400e; font-weight: 900; }
.dswx-single-banner .dswx-single-icon{
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(255,255,255,.7);
  color: #b45309;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

/* Slim "scope chip" used inside hero meta-pill rows when the user has
   2+ devices and wants a one-glance reminder of what they're viewing. */
.hu-meta-pill.is-device-scope{
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fcd34d;
}
.hu-meta-pill.is-device-scope b{ color: #78350f; font-weight: 900; }
.hu-meta-pill.is-device-scope.is-aggregate{
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #5b21b6;
  border-color: #c4b5fd;
}
.hu-meta-pill.is-device-scope.is-aggregate b{ color: #4c1d95; }

/* RTL chevron flip for the dropdown trigger. */
[dir="rtl"] .dswx-btn-switch[aria-expanded="true"] .dswx-chevron{
  transform: rotate(180deg);
}

/* On mobile the dropdown's right-anchor can clip; allow it to span. */
@media (max-width: 720px){
  .dswx-bar{ flex-direction: column; align-items: stretch !important; }
  .dswx-current{ width: 100%; }
  .dswx-actions{ width: 100%; gap: 8px; }
  .dswx-btn-switch, .dswx-btn-manage{ flex: 1 1 0; justify-content: center; }
  .dswx-menu{ inset-inline-start: 8px !important; inset-inline-end: 8px !important; }
}


/* ── 2. Multi-device empty states ───────────────────────────────── */

.sub-empty-multidevice{
  position: relative;
  padding: 48px 24px 56px;
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(15,23,42,.04);
  overflow: hidden;
}
.sub-empty-multidevice::before{
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #fde68a);
  opacity: .85;
}
.sub-empty-multidevice .sub-empty-icon{
  font-size: 3rem;
  margin-bottom: 12px;
  display: inline-block;
  opacity: .65;
}
.sub-empty-multidevice .sub-empty-title{
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
}
.sub-empty-multidevice .sub-empty-body{
  font-size: .9rem;
  line-height: 1.65;
  color: #64748b;
  font-weight: 600;
  max-width: 460px;
  margin: 0 auto 16px;
}
.sub-empty-multidevice .sub-empty-actions{
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}


/* ── 3. Notifications inbox refinements (used by /notifications/center) ─ */

.ncv40-thread{
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ncv40-thread:hover{
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15,23,42,.08);
  border-color: #cbd5e1;
}
.ncv40-thread.is-unread{
  background: linear-gradient(135deg, #fffbeb, #fef9c3);
  border-color: #fde68a;
}
.ncv40-thread.is-critical{
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff5f5, #ffe4e6);
}
.ncv40-thread.is-critical .ncv40-thread-title strong{ color: #b91c1c; }

.ncv40-thread-icon{
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ncv40-thread.is-critical .ncv40-thread-icon{
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #b91c1c;
}
.ncv40-thread.is-success .ncv40-thread-icon{
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #047857;
}
.ncv40-thread.is-info .ncv40-thread-icon{
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
}

.ncv40-thread-body{ flex: 1 1 auto; min-width: 0; }
.ncv40-thread-title{
  display: flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: .96rem; color: #0f172a;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.ncv40-thread-title strong{ font-weight: 950; }
.ncv40-thread-title .ncv40-device-chip{
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ncv40-thread.is-unread .ncv40-thread-title strong::before{
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  margin-inline-end: 6px;
  vertical-align: middle;
}

.ncv40-thread-meta{
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: .8rem; color: #64748b; font-weight: 600;
  align-items: center;
}
.ncv40-thread-meta .ncv40-count-pill{
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-weight: 800;
  font-size: .72rem;
}
.ncv40-thread-time{
  font-size: .76rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.ncv40-thread-priority{
  width: 4px;
  align-self: stretch;
  border-radius: 4px;
  background: #cbd5e1;
}
.ncv40-thread.is-unread .ncv40-thread-priority{ background: #f59e0b; }
.ncv40-thread.is-critical .ncv40-thread-priority{ background: #ef4444; }
.ncv40-thread.is-success .ncv40-thread-priority{ background: #10b981; }


/* ── 4. Devices-manage hub polish ──────────────────────────────── */

/* ════════════════════════════════════════════════════════════════════
   v33-δ-2  Fleet section redesign — clean SaaS multi-device console
   ──────────────────────────────────────────────────────────────────────
   Goals: calm hierarchy, badges INSIDE the card, soft selected state,
   intentional action priority (primary / secondary / tertiary), 1/2/3
   columns responsive grid, RTL-correct, info panel using simple flex
   rows (the prior dl/dt/dd mangled under bidi).

   IMPORTANT: every `.dm-act-*` and key card selector is qualified with
   `.dm-fleet-section` to give it specificity 0,0,2,0 — that beats any
   global `.btn-primary` / `.sub-btn-primary` / `.app-main a` rules in
   the codebase that would otherwise repaint the action buttons blue
   or red. Without this scope-qualifier the cards inherit the legacy
   palette and the redesign is invisible.
══════════════════════════════════════════════════════════════════════ */

/* ── Section header ───────────────────────────────────────────────── */
.dm-fleet-section .dm-fleet-head{
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.dm-fleet-section .dm-fleet-head-text{ min-width: 0; flex: 1 1 280px; }
.dm-fleet-section .dm-fleet-subtitle{
  margin: 4px 0 0;
  font-size: .82rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.4;
}
.dm-fleet-section .dm-fleet-head-actions{
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.dm-fleet-section .dm-fleet-count{
  background: #eef2ff !important;
  color: #4338ca !important;
  border-color: #e0e7ff !important;
  font-weight: 800;
}
.dm-fleet-section a.dm-fleet-add-btn,
.dm-fleet-section .dm-fleet-add-btn{
  display: inline-flex !important; align-items: center; gap: 8px;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: .82rem !important;
  text-decoration: none !important;
  border: 1px solid #3730a3 !important;
  box-shadow: 0 6px 14px rgba(67,56,202,.20) !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dm-fleet-section a.dm-fleet-add-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(67,56,202,.28) !important;
  text-decoration: none !important; color: #fff !important;
}
.dm-fleet-section a.dm-fleet-add-btn:focus-visible{ outline: 2px solid #818cf8; outline-offset: 2px; }

/* ── Grid: 1 / 2 / 3 columns ──────────────────────────────────────── */
.dm-fleet-section .dm-fleet-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
@media (min-width: 1280px){
  .dm-fleet-section .dm-fleet-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 760px) and (max-width: 1279px){
  .dm-fleet-section .dm-fleet-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Card shell ───────────────────────────────────────────────────── */
.dm-fleet-section .dm-device-card{
  --dm-card-accent:        #6366f1;     /* indigo by default */
  --dm-card-accent-tint:   #eef2ff;
  --dm-card-accent-edge:   #e0e7ff;
  --dm-card-bg:            #ffffff;
  --dm-card-line:          #e5e7eb;
  --dm-card-line-strong:   #d1d5db;
  --dm-card-ink:           #0f172a;
  --dm-card-muted:         #64748b;
  position: relative;
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px;
  background: var(--dm-card-bg);
  border: 1px solid var(--dm-card-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: transform .18s ease, box-shadow .18s ease,
              border-color .18s ease, background .18s ease;
}
.dm-fleet-section .dm-device-card:hover{
  border-color: var(--dm-card-line-strong);
  box-shadow: 0 8px 24px rgba(15,23,42,.07);
  transform: translateY(-2px);
}

/* Selected state — soft warm cream + subtle orange outline */
.dm-fleet-section .dm-device-card.is-selected{
  --dm-card-accent:        #f59e0b;
  --dm-card-accent-tint:   #fffbeb;
  --dm-card-accent-edge:   #fde68a;
  --dm-card-line:          #f59e0b;
  border-width: 2px;
  padding: 17px 17px 15px;       /* compensate the +1px border so card height stays steady */
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 70%);
  box-shadow:
    0 0 0 4px rgba(245,158,11,.10),
    0 12px 28px rgba(245,158,11,.10);
}

/* Disabled device — softly muted, still readable */
.dm-fleet-section .dm-device-card.is-disabled{ background: #fafafa; }
.dm-fleet-section .dm-device-card.is-disabled .dm-card-name{ color: #475569; }
.dm-fleet-section .dm-device-card.is-disabled .dm-card-avatar{ filter: grayscale(60%); }

/* ── Top row: avatar + identity ───────────────────────────────────── */
.dm-fleet-section .dm-card-top{
  display: flex; align-items: flex-start; gap: 12px;
  min-width: 0;
}
.dm-fleet-section .dm-card-avatar{
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--dm-card-accent-tint);
  border: 1px solid var(--dm-card-accent-edge);
  color: var(--dm-card-accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.65rem; line-height: 1;
  margin-top: 2px;
}
.dm-fleet-section .dm-device-card.is-selected .dm-card-avatar{
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #f59e0b;
  color: #b45309;
}
.dm-fleet-section .dm-card-identity{
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0; flex: 1 1 auto;
}
.dm-fleet-section .dm-card-name{
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dm-card-ink);
  line-height: 1.25;
  letter-spacing: -.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dm-fleet-section .dm-card-meta-row{
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
/* v33-δ-2: Dark UID pill — high-contrast identifier matching target spec */
.dm-fleet-section .dm-card-uid{
  display: inline-flex; align-items: center;
  font-family: 'JetBrains Mono', 'Menlo', ui-monospace, monospace;
  font-size: .68rem;
  font-weight: 700;
  background: #0f172a;
  color: #e2e8f0;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: .02em;
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dm-fleet-section .dm-card-provider{
  font-size: .65rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ── Flag row — INSIDE the card ───────────────────────────────────── */
.dm-fleet-section .dm-card-flags{
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: -2px;
}
.dm-fleet-section .dm-flag{
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .005em;
  border: 1px solid transparent;
  white-space: nowrap;
  font-feature-settings: "tnum" 1;
  line-height: 1.4;
}
.dm-fleet-section .dm-flag.is-selected{
  background: #fef3c7; color: #92400e; border-color: #fcd34d;
}
.dm-fleet-section .dm-flag.is-active{
  background: #ecfdf5; color: #047857; border-color: #a7f3d0;
}
.dm-fleet-section .dm-flag.is-disabled{
  background: #f1f5f9; color: #64748b; border-color: #e2e8f0;
}
.dm-fleet-section .dm-flag.is-new{
  background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe;
}
.dm-fleet-section .dm-flag.is-online{
  background: #f0fdf4; color: #166534; border-color: #bbf7d0;
}

/* ── Info panel — flex-row label/value pairs (replaces fragile dl/dt/dd) ─ */
.dm-fleet-section .dm-card-info{
  margin: 2px 0 0;
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
}
.dm-fleet-section .dm-device-card.is-selected .dm-card-info{
  background: rgba(255,251,235,.7);
  border-color: #fde68a;
}
.dm-fleet-section .dm-info-row{
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.dm-fleet-section .dm-info-label{
  font-size: .72rem;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}
.dm-fleet-section .dm-info-value{
  font-size: .8rem;
  font-weight: 700;
  color: var(--dm-card-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-feature-settings: "tnum" 1;
  text-align: end;
  min-width: 0;
}

/* ── Action footer — clear primary / secondary / tertiary hierarchy ─
   All `.dm-act` selectors are scoped under `.dm-fleet-section` for
   specificity 0,0,2,0 — that beats global `.btn-primary`,
   `.sub-btn-primary`, `.app-main a`, etc. that would otherwise repaint
   these blue/red. We also use `!important` on the keys (background,
   color, border) as a defense-in-depth in case any style.css rule
   uses `!important` on .btn-primary (it does, see style.css:1723).  */
.dm-fleet-section .dm-card-foot{
  display: flex; gap: 8px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  align-items: center;
}
.dm-fleet-section .dm-device-card.is-selected .dm-card-foot{
  border-top-color: #fde68a;
}
.dm-fleet-section .dm-act-form{ flex: 0 0 auto; display: flex; }

.dm-fleet-section .dm-act,
.dm-fleet-section a.dm-act,
.dm-fleet-section button.dm-act{
  display: inline-flex !important;
  align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px !important;
  border-radius: 9px !important;
  font-size: .8rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease,
              background .15s ease, border-color .15s ease, color .15s ease;
  min-height: 36px;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.2;
  box-shadow: none;
}
.dm-fleet-section .dm-act:focus-visible{ outline: 2px solid #f59e0b; outline-offset: 2px; }

/* Primary — "تحديد" — filled warm amber, the boldest CTA */
.dm-fleet-section .dm-act-primary,
.dm-fleet-section a.dm-act-primary{
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #0b1531 !important;
  border-color: #d97706 !important;
  flex: 1 1 auto;
  box-shadow: 0 4px 10px rgba(245,158,11,.22) !important;
}
.dm-fleet-section a.dm-act-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(245,158,11,.30) !important;
  color: #0b1531 !important;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

/* "✓ محدّد حالياً" sentinel — replaces primary button on the selected card */
.dm-fleet-section .dm-act-current{
  background: #fffbeb !important;
  color: #92400e !important;
  border-color: #fde68a !important;
  flex: 1 1 auto;
  cursor: default;
}

/* Secondary — "تعديل" — white outline, quiet but clear */
.dm-fleet-section .dm-act-secondary,
.dm-fleet-section a.dm-act-secondary{
  background: #ffffff !important;
  color: #1e293b !important;
  border-color: #e2e8f0 !important;
  flex: 0 0 auto;
}
.dm-fleet-section a.dm-act-secondary:hover{
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
  transform: translateY(-1px);
}

/* Tertiary — "تعطيل/تفعيل" — softest, ghost-style */
.dm-fleet-section .dm-act-tertiary,
.dm-fleet-section button.dm-act-tertiary{
  background: transparent !important;
  color: #64748b !important;
  border-color: transparent !important;
  flex: 0 0 auto;
}
.dm-fleet-section button.dm-act-tertiary:hover{
  background: #f1f5f9 !important;
  color: #1e293b !important;
}

/* Mobile: stack actions full-width for thumb-friendly tap targets */
@media (max-width: 540px){
  .dm-fleet-section .dm-card-foot{ flex-direction: column; align-items: stretch; }
  .dm-fleet-section .dm-act-form{ width: 100%; }
  .dm-fleet-section .dm-act{ width: 100%; }
}

/* Reduced motion — drop transforms */
@media (prefers-reduced-motion: reduce){
  .dm-fleet-section .dm-device-card:hover{ transform: none; }
  .dm-fleet-section a.dm-act-primary:hover,
  .dm-fleet-section a.dm-fleet-add-btn:hover,
  .dm-fleet-section a.dm-act-secondary:hover{ transform: none; }
}


/* ── 5. Live-data refinements: device-context strip above KPIs ─── */

.lv-context-strip{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}
.lv-context-strip .lv-context-dot{
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}
.lv-context-strip.is-online .lv-context-dot{
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.18);
}
.lv-context-strip.is-stale .lv-context-dot{ background: #f59e0b; }
.lv-context-strip.is-offline .lv-context-dot{ background: #ef4444; }
.lv-context-strip strong{
  font-size: .92rem;
  font-weight: 900;
  color: #0f172a;
}
.lv-context-strip small{
  font-size: .8rem;
  color: #64748b;
  font-weight: 700;
}
.lv-context-strip .lv-context-meta{
  margin-inline-start: auto;
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: .76rem;
  color: #475569;
  font-weight: 700;
}
.lv-context-strip .lv-context-meta span{
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 999px;
}


/* ── 6. Build badge — keep subtle, footer-anchored ─────────────── */

.dev-build-badge-v11{
  position: fixed;
  bottom: 10px;
  inset-inline-start: 12px;
  z-index: 60;
  font-size: .68rem !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  opacity: .55;
  pointer-events: none;
}
.dev-build-badge-v11:hover{ opacity: 1; }


/* ── 7. RTL polish — small but important ──────────────────────── */

[dir="rtl"] .dm-device-card.is-selected::before{
  inset-inline-end: 14px;
  inset-inline-start: auto;
}
[dir="rtl"] .lv-context-strip .lv-context-meta{ margin-inline-start: auto; }


/* ── 8. Reduced motion (extends global rule) ──────────────────── */

@media (prefers-reduced-motion: reduce){
  .dm-device-card,
  .ncv40-thread,
  .dswx-bar,
  .lv-context-strip{
    transition: none !important;
  }
  .dm-device-card:hover{ transform: none !important; }
}
