/* The matte is part of both approved masters. Every compact mount clips it
   locally, so the app's surface and the control's hit box stay put. */
#brand-boot {
  position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center;
  background: #F0E9DD; opacity: 1;
}
#brand-boot[hidden] { display: none; }
/* (2026-11-30) The last part of the opening dissolves as the page opens under it: the cover thins out while its art blurs (runtime.js
   DISSOLVE_MS rides --boot-out). The page is live from the first frame of it, so the cover never takes a touch. */
#brand-boot.boot--out { opacity: 0; pointer-events: none; transition: opacity var(--boot-out, .64s) cubic-bezier(.2,0,0,1); }
#brand-boot [data-brand-picture] { transition: filter var(--boot-out, .32s) cubic-bezier(.4,0,.7,1), transform var(--boot-out, .32s) cubic-bezier(.4,0,.7,1); }
#brand-boot.boot--out [data-brand-picture] { filter: blur(14px); transform: scale(1.05); }
html[data-brand-opening], html[data-brand-opening] body { background: #F0E9DD !important; }
#brand-boot [data-brand-picture] { display: block; width: min(100vw, 80dvh, 480px); }
[data-brand-motion="majal"] #brand-boot [data-brand-picture] { width: min(100vw, 160dvh, 960px); }
#brand-boot [data-brand-picture] > * { display: block; width: 100%; height: auto; }
#brand-boot img[src$="majal-ink.svg"] { max-width: 68.5%; margin-inline: auto; }
.brand-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

[data-brand-wait="page"], [data-brand-wait="card"] { display: grid; place-items: center; position: relative; }
[data-brand-wait="page"] { min-block-size: min(52dvh, 360px); }
.brand-room-wait > .h-skz { visibility: hidden; align-self: start; inline-size: 100%; }
[data-brand-wait="card"] { min-block-size: 96px; }
[data-brand-wait="inline"] { position: relative; display: inline-block; flex: 0 0 auto; inline-size: 26px; block-size: 24px; vertical-align: middle; }
[data-brand-wait="button"] { position: absolute; inset-block: 0; inset-inline-start: 5px; inline-size: 26px; pointer-events: none; }
[data-brand-live] {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  inline-size: 26px; block-size: 24px; display: grid; place-items: center;
  overflow: hidden; contain: layout paint; border-radius: 5px; background: #F0E9DD;
  color: #20221F; pointer-events: none;
}
[data-brand-live] > * { display: block; min-width: 0; inline-size: 100%; block-size: 100%; object-fit: contain; }
html[data-brand-motion] [data-brand-live] > svg { position: static; inset: auto; }
[data-brand-motion="majal"] [data-brand-live] > canvas { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 146%; height: auto; max-width: none; }
/* (2026-11-29, owner: «تحميل مجال ببعض الازرار شكله غريب … جايب كل الايقونة بدل الكلمة فقط واخر الزر بشكل غبي»، ثمّ:
   «استعمل موشننا فيه وايضا اثناء ادا التحميل وايض بعده وليس قبله») A small wait in Majal is its own motion — the arrows
   build the word — drawn in the ink of the control that waits, on no ground: no paper tile. In a button it sits beside
   the label, not pinned to the far edge, and holds the built word, breathing, until the action ends. With reduced
   motion it is the still word. Page and card waits keep the full opening on paper. */
[data-brand-live="word"] { background: none; border-radius: 0; overflow: visible; contain: none; color: inherit; inline-size: max(100%, 27px); block-size: max(100%, 16px); }
[data-brand-motion="majal"] [data-brand-live="word"] > canvas { width: 168%; animation: brand-majal-breathe 1.7s ease-in-out 1.5s infinite; }
@keyframes brand-majal-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { [data-brand-motion="majal"] [data-brand-live="word"] > canvas { animation: none; } }
[data-brand-live="word"] > .brand-majal-mark {
  background: currentColor;
  -webkit-mask: url('/assets/brand/motion/majal-wordmark.svg') center / contain no-repeat;
  mask: url('/assets/brand/motion/majal-wordmark.svg') center / contain no-repeat;
}
html[data-brand-motion="majal"] #ab2.hy :is(.h-btn,.rw-mb) .brand-action-wait,
html[data-brand-motion="majal"] [data-busy="1"][data-pdots] > .h-pdots {
  position: relative; inset: auto; display: inline-block; flex: 0 0 auto;
  inline-size: 1.7em; block-size: 1em; margin: 0; vertical-align: -.16em; order: 1;
}
/* (2026-11-29, owner: «ليش يمين الكلام اي قبله يفترض بعده! ويفترض اصلا ان الزر يكون بحالة انتظار اي انه سيكون غير صالح للضغط وليس مزرق»)
   The word comes after the label (order above; the label's own span lays its two parts in a row), and a button that
   waits is a waiting button: the quiet stone of a disabled control, not the action blue, and it takes no press. */
html[data-brand-motion="majal"] #ab2.hy :is(.h-btn,.rw-mb) .rw-mb__l:has(> .brand-action-wait) { display: inline-flex; align-items: center; gap: .5em; }
html[data-brand-motion="majal"] #ab2.hy :is(.h-btn,.rw-mb):has(.brand-action-wait),
html[data-brand-motion="majal"] #ab2.hy [data-busy="1"][data-pdots] {
  background: var(--h-s2) !important; background-image: none !important; color: var(--h-i2) !important;
  box-shadow: none !important; border-color: transparent !important; pointer-events: none; cursor: default;
  transition: background-color .18s ease, color .18s ease;
}
/* The still lines sit at the size of the moving ones (the emblem crop in runtime.js). */
[data-brand-live] > img[src$="abeely-list.svg"] { scale: .72; }
[data-brand-wait="page"] > [data-brand-live], [data-brand-wait="card"] > [data-brand-live] {
  inline-size: min(72%, 176px); block-size: auto; aspect-ratio: 1;
}
[data-brand-motion="majal"] :is([data-brand-wait="page"],[data-brand-wait="card"]) > [data-brand-live] { aspect-ratio: 1.6; }
[data-brand-motion="majal"] :is([data-brand-wait="page"],[data-brand-wait="card"]) > [data-brand-live] > canvas { width: 100%; }
[data-brand-wait="card"] > [data-brand-live] { inline-size: min(66%, 84px); }

/* Existing seats keep their intrinsic dimensions while their old marks take
   part in layout only. Known percentage labels are siblings of these seats. */
html[data-brand-motion] :is(.spin,.h-spin,.sysSpin,.rw-ld,.h-rowwait,.trc__d,.ptr--spin .ptr__sp) { animation: none !important; }
html[data-brand-motion] :is(.spin,.sysSpin,.h-rowwait),
html[data-brand-motion] #ab2 .h-spin { border-color: transparent !important; background: transparent !important; }
html[data-brand-motion] :is(.rw-ld,.trc__d) > i,
html[data-brand-motion] .ptr--spin :is(.ptr__gl,.ptr__ring) { visibility: hidden; }
html[data-brand-motion] .ptr--spin .ptr__sp::after, html[data-brand-motion] .sysSpin::before { animation: none !important; content: none; }
:is(.spin,.h-spin,.sysSpin,.rw-ld,.h-rowwait,.trc__d)[data-brand-slot] { position: relative; }
html[data-brand-motion] [data-busy="1"][data-pdots] { color: var(--wt-c, inherit) !important; }
html[data-brand-motion] [data-busy="1"][data-pdots] > :not(.h-pdots) { opacity: 1; }
html[data-brand-motion] [data-busy="1"][data-pdots] > .h-pdots {
  position: absolute; inset-block: 0; inset-inline: auto 5px; margin: auto 0; transform: none;
  width: 26px; height: 24px;
}
#ab2.hy :is(.h-btn,.rw-mb) .brand-action-wait { position: absolute; inset-block: 0; inset-inline-end: 8px; margin-block: auto; width: 26px; height: 24px; }
#ab2.hy .h-pfintgo { position: relative; }
#ab2.hy .h-spin[data-brand-painted] { opacity: 1; }

.buyer-side-head .brand-abeely-logo { display: block; inline-size: auto; block-size: 27px; object-fit: contain; }
.brand-majal-word { display: inline-block; inline-size: 1.65em; block-size: 1em; object-fit: contain; vertical-align: -0.18em; }
.brand-majal-stack { display: grid; align-content: center; min-inline-size: 0; text-align: start; }
.brand-majal-welcome { display: block; font-size: calc(14px * var(--zf, 1)); line-height: 1.32; font-weight: 500; white-space: nowrap; }
#ab2.hy .pv__hd .h-bizname .brand-majal-stack > .h-swr__nm { font-size: calc(21px * var(--zf)); line-height: 1.43; }
#ab2[data-th="داكن"] .brand-majal-word { content: url('/assets/brand/motion/majal-wordmark.svg'); }
#ab2 .h-wfc__go.brand-majal-add { min-block-size: 44px; }

@media (prefers-reduced-motion: reduce) { #brand-boot.boot--out, #brand-boot [data-brand-picture] { transition: none; } #brand-boot.boot--out [data-brand-picture] { filter: none; transform: none; } }
