/* ============================================================
   البناء الحي — مسرح المؤشرات (docs/LIVE-BUILD.md)
   ============================================================
   ‏كل ما هنا يخص المسرح نفسه، لا صفحة النموذج: المرحلة 3 تضع المسرح
   ‏نفسه داخل App، فلا يعتمد على شيء خارج `.lb`.
   ‏الأسلوب لوح أسود بلا حدود ظاهرة، وأدوات تصميم زرقاء (#3b82f6) فوق الصفحة،
   ‏ومؤشرات باستيل — كما في الفيديو المرجعي. */

.lb {
  --lb-blue: #3b82f6;
  --lb-blue-2: #60a5fa;
  --lb-ink: #e5e7eb;
  --lb-ink-2: #94a3b8;
  --lb-ink-3: #64748b;
  --lb-line: rgba(148, 163, 184, .14);
  --lb-canvas: #e9ebee;
  --lb-glass: rgba(15, 19, 28, .78);
  /* شريط المتصفح الفاتح */
  --lb-strip: #e9ebee;
  --lb-tab: #ffffff;
  --lb-tab-hover: #f4f5f7;
  --lb-tool: #ffffff;
  --lb-omni: #f1f3f4;
  --lb-c-ink: #202124;
  --lb-c-ink-2: #5f6368;
  --lb-c-line: #dadce0;
  --lb-ease: cubic-bezier(.22, 1, .36, 1);
  --lb-font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  position: relative;
  height: 100%;
  overflow: hidden;
  font-family: var(--lb-font);
  color: var(--lb-ink);
  background: var(--lb-canvas);
  direction: rtl;
}

/* ---- اللوح: المتصفح يملؤه كله، فلا حواف حوله ---- */
.lb-canvas {
  position: absolute;
  inset: 0;
}

.lb-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}
/* معاينة جوال مطلوبة صراحةً على شاشة عريضة: هاتف في المنتصف فوق خلفية فاتحة */
.lb-device .lb-frame {
  top: 18px;
  bottom: 84px;
  left: 50%;
  right: auto;
  width: min(390px, calc(100% - 24px));
  transform: translateX(-50%);
  border: 1px solid var(--lb-c-line);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .18);
}

/* ---- شريط المتصفح: تبويبات فوق، ثم رجوع وتقدم وتحميل وشريط العنوان ---- */
.lb-chrome {
  flex: none;
  direction: ltr;
  background: var(--lb-strip);
  color: var(--lb-c-ink);
  font-family: 'Segoe UI', system-ui, var(--lb-font);
  user-select: none;
}
.lb-tabs {
  height: 38px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 8px;
}
.lb-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  min-width: 0;
  width: 220px;
  flex: 0 1 220px;
  padding: 0 8px 0 12px;
  border-radius: 9px 9px 0 0;
  font-size: 12px;
  color: var(--lb-c-ink-2);
  cursor: default;
}
.lb-tab:hover { background: var(--lb-tab-hover); }
.lb-tab.is-on { background: var(--lb-tab); color: var(--lb-c-ink); }
/* الانحناءة عند قاعدة التبويب النشط، كما في المتصفح */
.lb-tab.is-on::before,
.lb-tab.is-on::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 9px;
  height: 9px;
  background: radial-gradient(circle at var(--cx) 0, transparent 8.5px, var(--lb-tab) 9px);
}
.lb-tab.is-on::before { left: -9px; --cx: 0; }
.lb-tab.is-on::after { right: -9px; --cx: 9px; }
.lb-tab-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-fav {
  width: 16px;
  height: 16px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--lb-c-ink-2);
}
.lb-fav.is-loading { border: 2px solid #d2e3fc; border-top-color: #1a73e8; border-radius: 50%; width: 14px; height: 14px; animation: lbSpin .8s linear infinite; }
.lb-fav.is-error { border-radius: 50%; background: #d93025; color: #fff; font: 700 11px/16px system-ui; }
@keyframes lbSpin { to { transform: rotate(360deg); } }
.lb-ib, .lb-tab-x {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--lb-c-ink-2);
  cursor: pointer;
}
.lb-tab-x { width: 18px; height: 18px; }
.lb-ib:hover:not(:disabled), .lb-tab-x:hover:not(:disabled) { background: rgba(60, 64, 67, .1); color: var(--lb-c-ink); }
.lb-ib:disabled, .lb-tab-x:disabled { opacity: .38; cursor: default; }
.lb-tab-x:disabled { visibility: hidden; }
.lb-newtab { margin: 0 2px 2px; }
.lb-tabs-sp { flex: 1; }
.lb-fs { margin-bottom: 2px; }
.lb-toolbar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  background: var(--lb-tool);
  border-bottom: 1px solid var(--lb-c-line);
}
.lb-omni {
  flex: 1;
  min-width: 0;
  height: 30px;
  margin-left: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 12px;
  border-radius: 999px;
  background: var(--lb-omni);
  color: var(--lb-c-ink);
}
.lb-omni-i { display: grid; color: var(--lb-c-ink-2); flex: none; }
.lb-url {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.lb-chips { display: flex; gap: 6px; flex: none; }
.lb-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e6f4ea;
  color: #137333;
  white-space: nowrap;
  animation: lbIn .35s var(--lb-ease) both;
}
.lb-chip.is-bad { background: #fef7e0; color: #b06000; }

.lb-view { position: relative; flex: 1; min-height: 0; background: #fff; }

/* ---- تبويب جديد: صفحة فارغة فوق الموقع، والسرب لا يظهر فيها ---- */
.lb-ntp {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: var(--lb-c-ink-2);
  font-size: 14px;
}
.lb-ntp[hidden] { display: none; }
.lb-ntp img { width: 48px; height: 48px; opacity: .7; }
.lb-ntp img:not([src]) { display: none; }
.lb-ntp p { margin: 0; }
.lb-on-ntp .lb-over, .lb-on-ntp .lb-clip { visibility: hidden; }

/* ---- الشريط على الموبايل: تبويب أضيق، وبلا تقدم وملء شاشة ---- */
.lb-compact .lb-tabs { height: 34px; padding: 0 6px; }
.lb-compact .lb-tab { height: 28px; flex-basis: 170px; }
.lb-compact .lb-toolbar { height: 38px; padding: 0 4px; }
.lb-compact .lb-fwd, .lb-compact .lb-fs { display: none; }
.lb-compact .lb-omni { margin-left: 2px; }
.lb-compact .lb-chip { padding: 2px 6px; }

/* ---- شكل Safari: صفٌّ واحد — رجوع وتقدّم، والعنوان في الوسط، كمتصفح App نفسه ----
   التبويبات تبقى في الـDOM (المسرح يكتب فيها اسم المشروع) لكن لا تُرسم. */
/* ألوان كندي (site-tokens.css) مكتوبةً هنا لأن المسرح لا يعتمد على شيء خارج `.lb` */
.lb-chrome { font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, var(--lb-font); color: #2f2f2f; }
.lb-tabs { display: none; }
.lb-toolbar {
  height: 46px;
  gap: 4px;
  padding: 0 10px;
  background: #f5f8fc;
  border-bottom: 1px solid #e2e8f0;
}
.lb-ib { border-radius: 8px; color: #6f6f6f; }
.lb-ib:hover:not(:disabled) { background: rgba(46, 46, 46, .06); color: #2f2f2f; }
.lb-omni {
  flex: 1;
  max-width: 620px;
  height: 32px;
  margin: 0 auto;
  padding: 0 10px 0 12px;
  border-radius: 10px;
  background: #e9eff6;
  color: #2f2f2f;
}
.lb-omni-i { color: #94a3b8; }
.lb-url { text-align: center; font-weight: 600; }
.lb-chip { background: rgba(46, 160, 67, .12); color: #2a7d3b; }
.lb-chip.is-bad { background: #fdf8e9; color: #7a5b12; }
.lb-compact .lb-toolbar { height: 42px; padding: 0 6px; }
.lb-view iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  transition: opacity .6s ease, filter .6s ease;
}
.lb-final { opacity: 0; pointer-events: none; }
.lb-final.on { opacity: 1; pointer-events: auto; }
.lb-preview.off { opacity: 0; }
.lb-preview.dim { filter: grayscale(1) brightness(.6); opacity: .6; }

/* ---- أدوات التصميم فوق المعاينة: مقصوصة على حدودها ---- */
.lb-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .5s ease, filter .5s ease;
}
.lb-clip.off { opacity: 0; }
.lb-clip.dead { filter: grayscale(1); opacity: .5; }

/* مستطيل القسم: إطار أزرق بثماني مقابض بيضاء، ووسم اسمه ووسم أبعاده */
.lb-rect, .lb-lay {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  border: 1.5px solid var(--lb-blue);
  will-change: transform, width, height;
}
.lb-rect {
  background: rgba(59, 130, 246, .06);
  transition: opacity .35s ease, border-color .3s, background .3s;
}
.lb-rect > b, .lb-lay > b {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  border: 1.5px solid var(--lb-blue);
  box-sizing: border-box;
  border-radius: 1px;
}
.lb-rect > b:nth-child(1), .lb-lay > b:nth-child(1) { top: -4px; right: -4px; }
.lb-rect > b:nth-child(2), .lb-lay > b:nth-child(2) { top: -4px; left: -4px; }
.lb-rect > b:nth-child(3), .lb-lay > b:nth-child(3) { bottom: -4px; right: -4px; }
.lb-rect > b:nth-child(4), .lb-lay > b:nth-child(4) { bottom: -4px; left: -4px; }
.lb-rect > b:nth-child(5) { top: -4px; left: calc(50% - 3.5px); }
.lb-rect > b:nth-child(6) { bottom: -4px; left: calc(50% - 3.5px); }
.lb-rect > b:nth-child(7) { top: calc(50% - 3.5px); right: -4px; }
.lb-rect > b:nth-child(8) { top: calc(50% - 3.5px); left: -4px; }
.lb-rect > span {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--lb-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}
.lb-rect > em, .lb-lay > em {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 6px;
  border-radius: 3px;
  background: var(--lb-blue);
  color: #fff;
  font: 600 10px/16px ui-monospace, 'SF Mono', Consolas, monospace;
  font-style: normal;
  white-space: nowrap;
  direction: ltr;
}
.lb-rect.is-writing { border-color: #fb923c; background: rgba(251, 146, 60, .05); }
.lb-rect.is-writing > b { border-color: #fb923c; }
.lb-rect.is-writing > span { background: #fb923c; }
.lb-rect.is-change { border-style: dashed; background: rgba(59, 130, 246, .1); }
.lb-rect.is-heavy > span { background: var(--lb-ink-3); }
.lb-rect.is-done { opacity: 0; }

/* إطار طبقة: يُرسم من الزاوية مع المؤشر ثم يتلاشى بعد بناء ما تحته */
.lb-lay { transition: opacity .28s ease; }
.lb-lay > em { bottom: auto; top: calc(100% + 5px); }
.lb-lay.is-text { border-width: 1px; border-color: rgba(96, 165, 250, .9); background: rgba(59, 130, 246, .06); }
.lb-lay.is-text > b { width: 5px; height: 5px; }
.lb-lay.is-text > b:nth-child(1), .lb-lay.is-text > b:nth-child(3) { right: -3px; }
.lb-lay.is-text > b:nth-child(2), .lb-lay.is-text > b:nth-child(4) { left: -3px; }
.lb-lay.is-text > b:nth-child(1), .lb-lay.is-text > b:nth-child(2) { top: -3px; }
.lb-lay.is-text > b:nth-child(3), .lb-lay.is-text > b:nth-child(4) { bottom: -3px; }
.lb-lay.is-text > em { display: none; }
/* صورة لم تصل بعد: تعبئة زرقاء شفافة بوسم «صورة»، كما في الفيديو */
.lb-lay.is-img { background: rgba(59, 130, 246, .35); }
.lb-lay.is-img::after {
  content: 'صورة';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  letter-spacing: .02em;
}
.lb-lay.is-out { opacity: 0; }

.lb-fix {
  position: absolute;
  top: 0;
  left: 0;
  border: 1.5px solid #f87171;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, .14), 0 0 28px rgba(248, 113, 113, .25);
  transition: opacity .3s ease;
}

.lb-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: #4ade80;
  box-shadow: 0 0 16px 2px rgba(74, 222, 128, .6);
}
.lb-scan::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 80px;
  background: linear-gradient(to top, rgba(74, 222, 128, .14), transparent);
}

.lb-mark {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 4px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  animation: lbIn .4s var(--lb-ease) both;
  white-space: nowrap;
}
.lb-mark::before { content: '✓'; width: 16px; text-align: center; font-weight: 800; }
.lb-mark.is-note { background: #d97706; padding: 0 10px 0 6px; }
.lb-mark.is-note::before { content: '!'; }

.lb-wipe { position: absolute; inset: 0; transition: opacity .35s ease; }
.lb-wipe.lb-out { opacity: 0; }

/* ---- الافتتاح: الشعار ونص الطلب، والسرب متجمع حولهما ---- */
.lb-intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 24px;
  transition: opacity .4s ease, transform .5s var(--lb-ease);
}
.lb-intro.off { opacity: 0; transform: scale(.96); }
.lb-intro img { width: 56px; height: 56px; opacity: .55; filter: grayscale(.3); animation: lbBreath 2.4s ease-in-out infinite; }
@keyframes lbBreath { 50% { opacity: .85; transform: scale(1.04); } }
.lb-prompt {
  max-width: 560px;
  font-size: 18px;
  line-height: 2;
  text-align: center;
  color: #475569;
}
.lb-prompt span { padding: 1px 3px; border-radius: 5px; transition: background .35s, color .35s; animation: lbWord .5s ease both; }
.lb-prompt span.hit { color: #05070c; background: var(--c); }
@keyframes lbWord { from { opacity: 0; filter: blur(5px); } }

/* ---- الطبقة العليا: المؤشرات وخطوط الإرشاد (غير مقصوصة كي تدخل من حواف الشاشة) ---- */
.lb-over { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* خط إرشاد بعرض اللوح أو طوله، يومض لحظة على حافة ما رُسم */
.lb-guide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  background: var(--lb-blue-2);
}
.lb-guide.h { right: 0; height: 1px; }
.lb-guide.v { bottom: 0; width: 1px; }
.lb-guide.h, .lb-guide.v { animation: lbGuide .7s ease-out forwards; }
@keyframes lbGuide { 0% { opacity: 0; } 15% { opacity: .55; } 100% { opacity: 0; } }

.lb-cur, .lb-ghost {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}
.lb-cur { z-index: 3; transition: opacity .3s; }
.lb-ghost { z-index: 2; opacity: 0; }
.lb-cur svg, .lb-ghost svg { display: none; }
.lb-cur svg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 55%, transparent)) drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.lb-cur.t-arrow .i-arrow, .lb-cur.t-draw .i-draw, .lb-cur.t-type .i-type, .lb-ghost .i-arrow { display: block; }
.lb-ghost svg { filter: blur(1.5px); }
.lb-ghost.is-off, .lb-ghost.is-gone { visibility: hidden; }
.lb-cur .lb-touch {
  display: none;
  width: 24px;
  height: 24px;
  margin: -1px 0 0 -1px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 30%, transparent);
  border: 2px solid var(--c);
}
.lb-cur .lb-tag {
  position: absolute;
  top: 19px;
  left: 13px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--c);
  color: #05070c;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
  opacity: .92;
}
.lb-cur.t-draw .lb-tag, .lb-cur.t-type .lb-tag { top: 20px; left: 18px; }
.lb-dots { display: none; margin-inline-start: 3px; }
.lb-cur.is-typing .lb-dots { display: inline-flex; gap: 2px; }
.lb-dots i { width: 3px; height: 3px; border-radius: 50%; background: #05070c; animation: lbDot 1s infinite; }
.lb-dots i:nth-child(2) { animation-delay: .15s; }
.lb-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes lbDot { 50% { opacity: .2; } }
.lb-cur.is-gone { opacity: 0; }

.lb-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 2px solid var(--c);
  animation: lbRipple .5s ease-out forwards;
  z-index: 2;
}
@keyframes lbRipple { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

@keyframes lbIn { from { opacity: 0; transform: scale(.9); } }

/* ---- شريط الحالة: زجاج داكن «16 وكيل · 20 / 364 طبقة» ---- */
.lb-hud {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  z-index: 5;
}
.lb-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 14px;
  border-radius: 999px;
  background: var(--lb-glass);
  border: 1px solid var(--lb-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  font-size: 13px;
  max-width: 100%;
}
.lb-faces { display: flex; flex: none; padding-inline-start: 6px; }
.lb-faces i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid #0b0f17;
  margin-inline-start: -6px;
}
.lb-agents { font-weight: 700; white-space: nowrap; }
.lb-sep { width: 1px; height: 16px; background: var(--lb-line); flex: none; }
.lb-layers { color: var(--lb-ink-2); white-space: nowrap; font-size: 12px; }
.lb-layers b { color: var(--lb-ink); font-variant-numeric: tabular-nums; }
.lb-bar-p { width: 64px; height: 3px; border-radius: 2px; background: rgba(148, 163, 184, .18); overflow: hidden; flex: none; }
.lb-bar-p i { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #c4b5fd); transform-origin: right; transform: scaleX(0); transition: transform .4s var(--lb-ease); }
.lb-done .lb-bar-p i { background: #4ade80; }
.lb-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lb-ink-2); min-width: 0; }
.lb-done .lb-label { color: #86efac; }
.lb-pill button, .lb-panel button {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--lb-line);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, .06);
  color: var(--lb-ink);
  white-space: nowrap;
}
.lb-pill button:hover, .lb-panel button:hover { background: rgba(255, 255, 255, .12); }
.lb-hint { font-size: 12px; color: var(--lb-ink-2); background: var(--lb-glass); border: 1px solid var(--lb-line); padding: 3px 12px; border-radius: 999px; backdrop-filter: blur(10px); }
.lb-hint[hidden], .lb-pill button[hidden], .lb-steps[hidden] { display: none; }

.lb-steps { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.lb-steps span { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--lb-glass); color: var(--lb-ink-3); }
.lb-steps span.on { background: var(--lb-blue); color: #fff; }
.lb-steps span.ok { background: rgba(34, 197, 94, .14); color: #86efac; }

/* ---- لوحة النهاية والخطأ ---- */
.lb-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100% - 40px));
  padding: 22px 22px 18px;
  border-radius: 16px;
  background: rgba(13, 17, 26, .9);
  border: 1px solid var(--lb-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  text-align: center;
  z-index: 4;
  animation: lbIn .4s var(--lb-ease) both;
}
.lb-panel[hidden] { display: none; }
.lb-panel h3 { margin: 0 0 6px; font-size: 18px; color: #fff; }
.lb-panel p { margin: 0 0 16px; color: var(--lb-ink-2); font-size: 14px; line-height: 1.8; }
.lb-panel .lb-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.lb-panel button.is-main { background: #fff; border-color: #fff; color: #05070c; padding: 7px 18px; }
.lb-panel button.is-main:hover { background: #e5e7eb; }
.lb-panel.is-corner { top: auto; bottom: 96px; left: 24px; transform: none; width: 270px; }
.lb-panel .lb-x { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; padding: 0; border: 0; font-size: 16px; line-height: 26px; background: transparent; color: var(--lb-ink-2); }

.lb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- الموبايل: دوائر لمس بدل الأسهم، وبلا أثر حركة ---- */
.lb-compact .lb-cur svg, .lb-compact .lb-ghost { display: none !important; }
/* الدائرة تتمركز على نقطة المؤشر، والنقطة تختلف بين الأداة والأخرى (HOTSPOT في stage.js) */
.lb-compact .lb-cur .lb-touch { display: block; position: absolute; left: -9px; top: -10px; margin: 0; }
.lb-compact .lb-cur.t-draw .lb-touch, .lb-compact .lb-cur.t-type .lb-touch { left: -1px; top: -1px; }
.lb-compact .lb-cur .lb-tag { top: 26px; left: 4px; }
.lb-compact .lb-rect > span { font-size: 10px; }
.lb-compact .lb-rect > em, .lb-compact .lb-lay > em { display: none; }
.lb-compact .lb-pill { gap: 7px; padding: 6px 6px 6px 10px; }
.lb-compact .lb-bar-p, .lb-compact .lb-faces { display: none; }
.lb-compact .lb-panel.is-corner { left: 50%; transform: translateX(-50%); bottom: 92px; }

/* ---- تقليل الحركة: لا مؤشرات ولا مسح ولا خطوط ---- */
.lb-rm .lb-cur, .lb-rm .lb-ghost, .lb-rm .lb-ripple, .lb-rm .lb-scan, .lb-rm .lb-wipe, .lb-rm .lb-guide, .lb-rm .lb-lay { display: none; }
.lb-rm .lb-intro img, .lb-rm .lb-prompt span { animation: none; }

/* ---- جهاز ضعيف: تُطفأ الظلال والتوهّج والضبابية ---- */
.lb-lite .lb-cur svg, .lb-lite .lb-mark, .lb-lite .lb-frame { box-shadow: none; filter: none; }
.lb-lite .lb-ghost, .lb-lite .lb-guide { display: none; }
.lb-lite .lb-pill, .lb-lite .lb-panel, .lb-lite .lb-hint { backdrop-filter: none; -webkit-backdrop-filter: none; }
.lb-lite .lb-scan { box-shadow: none; }
.lb-lite .lb-scan::after { display: none; }
