/* The seating map like a maps app (owner, 2026-11-06; seat-map.js). Over the whole screen, the plan on a quiet canvas,
   the controls floating on it: the search on top, the buildings and the floor's departments under it, the floors on the
   side, zoom on the other side, a small copy of the plan in the corner, the desk's card at the foot (phone) or the
   corner (laptop). No blur (it made iPhones reload); BEC navy and silver. */
.smx { --smx-ink: #151b34; --smx-card: #fff; --smx-line: #e1e5f0; --smx-muted: #5b6382; --smx-navy: #2B3484; --smx-bg: #e7eaf2;
  position: fixed; inset: 0; z-index: 10060; background: var(--smx-bg); color: var(--smx-ink); font-family: 'Noto Kufi Arabic', Tahoma, sans-serif;
  overscroll-behavior: contain; animation: smxIn .22s ease; }
:root[data-theme="dark"] .smx { --smx-ink: #e7eaf6; --smx-card: #171d34; --smx-line: #2a3156; --smx-muted: #a0a8c8; --smx-navy: #4553c4; --smx-bg: #0d1124; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .smx { --smx-ink: #e7eaf6; --smx-card: #171d34; --smx-line: #2a3156; --smx-muted: #a0a8c8; --smx-navy: #4553c4; --smx-bg: #0d1124; } }
.smx[hidden] { display: none; }
.smx.out { opacity: 0; transition: opacity .18s ease; }
@keyframes smxIn { from { opacity: 0; } }
html.smx-open, html.smx-open body { overflow: hidden; }
/* the canvas: one finger moves it, so the page behind never takes the touch */
.smx-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.smx-stage.grab { cursor: grabbing; }
.smx-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.smx-img { display: block; width: 100%; height: 100%; background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(15, 20, 48, .08), 0 18px 50px -20px rgba(15, 20, 48, .45); pointer-events: none; }
.smx-pins { position: absolute; inset: 0; }
/* Every desk's card (seat-map.js deskCard; owner, 2026-11-10: «شكل الكارت كده عشوائي جدًا ومش professional … اعملي كارت
   أقوى وأذكى»): one design over every card drawn in the plan, from today's data, the department's colour on its top edge
   and its desk number. Like a maps app it says more the closer you zoom (container queries on the card's own size):
   far — the name; nearer — the department; close — the initials and the job title. Words are sized by the card
   (container units), so they grow and shrink with the zoom. Always light: it sits on the white plan.
   The card itself has no padding and no container units of its own (they would fall back to the screen's size and leave
   its inside 15px wide: the words were 1.5px, 2026-11-10); its inside (.dc-in) carries them. */
.smx-dc { --dc: #64748b; position: absolute; container-type: size; box-sizing: border-box; overflow: hidden; pointer-events: none;
  border-radius: 8% / 7%; background: #fff; color: #1b2350; text-align: center; line-height: 1.2;
  border: 1px solid color-mix(in srgb, var(--dc) 32%, #dfe3ee); box-shadow: 0 1px 2px rgba(15, 20, 48, .10), 0 3px 10px -6px rgba(15, 20, 48, .35); }
.smx-dc .dc-in { position: absolute; inset: 0; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5cqh; padding: 15cqh 6cqw 6cqh; }
.smx-dc::before { content: ""; position: absolute; inset: 0 0 auto; height: max(2px, 5.5cqh); background: var(--dc); }
.smx-dc .dc-no { position: absolute; top: 9cqh; inset-inline-start: 6cqw; padding: .5cqh 3.5cqw; border-radius: 99px; font-size: min(8.5cqw, 10cqh); font-weight: 700;
  font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--dc) 82%, #000); background: color-mix(in srgb, var(--dc) 13%, #fff); line-height: 1.25; }
.smx-dc .dc-av { display: none; place-items: center; flex: none; width: min(30cqw, 24cqh); height: min(30cqw, 24cqh); border-radius: 50%; color: #fff; font-weight: 700;
  font-size: min(11cqw, 9cqh); background: linear-gradient(140deg, color-mix(in srgb, var(--dc) 70%, #fff), var(--dc)); box-shadow: 0 0 0 max(1px, .6cqh) #fff, 0 0 0 max(2px, 1.4cqh) color-mix(in srgb, var(--dc) 22%, #fff); }
.smx-dc .dc-nm { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%; font-weight: 700; line-height: 1.5; /* Kufi's dots under «ي» sit low: a tighter line cut them off */
  font-size: min(12.5cqw, 15cqh); overflow-wrap: anywhere; }
.smx-dc .dc-dp, .smx-dc .dc-tt { display: none; max-width: 100%; font-style: normal; overflow-wrap: anywhere; }
.smx-dc .dc-dp { font-size: min(8.6cqw, 10cqh); font-weight: 700; color: color-mix(in srgb, var(--dc) 82%, #000); }
.smx-dc .dc-tt { font-size: min(8cqw, 9cqh); font-weight: 500; color: #5b6382; }
@container (min-height: 54px) and (min-width: 62px) { .smx-dc .dc-dp { display: block; } }
@container (min-height: 118px) and (min-width: 92px) { .smx-dc .dc-av { display: grid; } .smx-dc .dc-tt { display: block; } .smx-dc .dc-in { gap: 3cqh; } }
/* nothing in a card shrinks (a squeezed name showed only its second line's dots: «محمود» over «.....», owner 2026-11-10);
   a card that cannot hold it all drops, in turn, the initials, the job title and the department (seat-map.js fitCards) */
.smx-dc .dc-in > * { flex: none; }
.smx-dc.f1 .dc-av, .smx-dc.f2 .dc-tt, .smx-dc.f3 .dc-dp { display: none !important; }
/* a free desk: quiet, dashed, «شاغر» */
.smx-dc.vac { --dc: #94a3b8; background: #f7f8fb; border: 1px dashed #b4bccd; box-shadow: none; color: #5b6382; }
.smx-dc.vac::before { display: none; }
.smx-dc.vac .dc-no { color: #4b556f; background: #e8ebf2; }
.smx-dc.vac .dc-dp { color: #7a839d; font-weight: 500; }
/* the floor's departments («Technical Office 15» …): the chosen one's desks stay, the others step back */
.smx.filtering .smx-dc { transition: opacity .2s ease; }
.smx-pin { all: unset; position: absolute; box-sizing: border-box; border-radius: 6px; cursor: pointer; transition: background-color .2s ease, box-shadow .25s ease; }
@media (hover: hover) { .smx-pin:hover { box-shadow: 0 0 0 2px var(--smx-navy), 0 6px 18px -6px rgba(43, 52, 132, .55); background: rgba(43, 52, 132, .06); } }
.smx-pin.hit { box-shadow: 0 0 0 3px var(--smx-navy); background: rgba(43, 52, 132, .10); }
.smx-pin.vac.hit { box-shadow: 0 0 0 3px #16834a; background: rgba(22, 131, 74, .12); }
.smx-pin.dim { background: rgba(231, 234, 242, .72); }
.smx-pin.sel { box-shadow: 0 0 0 3px var(--smx-navy), 0 0 0 9px rgba(43, 52, 132, .2); background: rgba(43, 52, 132, .08); }
.smx-pin.sel::after { content: ""; position: absolute; inset: -4px; border-radius: 9px; border: 3px solid var(--smx-navy); animation: smxRing 1.6s ease-out infinite; }
@keyframes smxRing { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
/* the dropped pin over the chosen desk: the same size on the screen at any zoom */
.smx-marker { position: absolute; width: 0; height: 0; pointer-events: none; }
.smx-marker span { position: absolute; left: 0; bottom: 4px; transform: translateX(-50%) scale(var(--inv, 1)); transform-origin: 50% 100%; display: grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 8px; border-radius: 20px 20px 20px 4px; rotate: -45deg; background: var(--smx-navy); color: #fff;
  font: 700 15px/1 'Noto Kufi Arabic', Tahoma, sans-serif; box-shadow: 0 8px 20px -6px rgba(43, 52, 132, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.smx-marker i { font-style: normal; rotate: 45deg; font-variant-numeric: tabular-nums; }
.smx-marker.drop span { animation: smxDrop .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes smxDrop { from { translate: 0 -40px; opacity: 0; } }
/* the floating controls */
.smx-btn { all: unset; box-sizing: border-box; width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; cursor: pointer; flex: none;
  background: var(--smx-card); color: var(--smx-ink); box-shadow: 0 1px 2px rgba(15, 20, 48, .1), 0 8px 20px -8px rgba(15, 20, 48, .35); }
.smx-btn:focus-visible, .smx-blds button:focus-visible, .smx-floors button:focus-visible, .smx-chips button:focus-visible, .smx-res button:focus-visible { outline: 2px solid var(--smx-navy); outline-offset: 2px; }
.smx-top { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 10px; align-items: center; z-index: 3;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); }
.smx-search { flex: 1; min-width: 0; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 24px; background: var(--smx-card);
  color: var(--smx-muted); box-shadow: 0 1px 2px rgba(15, 20, 48, .1), 0 10px 28px -10px rgba(15, 20, 48, .4); cursor: text; }
.smx-search:focus-within { box-shadow: 0 0 0 2px var(--smx-navy), 0 10px 28px -10px rgba(15, 20, 48, .4); }
.smx-q { all: unset; flex: 1; min-width: 0; font-size: 16px; color: var(--smx-ink); }
.smx-q::placeholder { color: var(--smx-muted); }
.smx-q::-webkit-search-cancel-button { -webkit-appearance: none; }
.smx-res { position: absolute; z-index: 4; top: calc(env(safe-area-inset-top, 0px) + 66px); right: max(12px, env(safe-area-inset-right, 0px)); left: max(68px, calc(env(safe-area-inset-left, 0px) + 68px));
  max-height: min(60vh, 440px); overflow: auto; border-radius: 18px; background: var(--smx-card); padding: 6px; box-shadow: 0 22px 50px -16px rgba(15, 20, 48, .45);
  animation: smxPop .3s var(--ui-spring, ease); transform-origin: top center; }
@keyframes smxPop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.smx-res button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; cursor: pointer; }
.smx-res button:hover, .smx-res button:focus { background: color-mix(in srgb, var(--smx-navy) 8%, transparent); }
.smx-res button > svg { color: var(--smx-muted); flex: none; }
.smx-rn { min-width: 44px; height: 36px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--smx-navy) 10%, transparent);
  color: var(--smx-navy); font-weight: 700; font-variant-numeric: tabular-nums; box-sizing: border-box; }
.smx-rt { flex: 1; min-width: 0; display: grid; }
.smx-rt b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smx-rt small { font-size: 12px; color: var(--smx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smx-none { padding: 14px; font-size: 13.5px; color: var(--smx-muted); text-align: center; }
/* buildings and the floor's departments, one line that scrolls sideways */
.smx-row { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top, 0px) + 70px); left: 0; right: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 0 max(12px, env(safe-area-inset-right, 0px)) 6px max(12px, env(safe-area-inset-left, 0px)); }
.smx-row::-webkit-scrollbar { display: none; }
.smx-blds { display: flex; flex: none; padding: 3px; gap: 2px; border-radius: 14px; background: var(--smx-card); box-shadow: 0 6px 16px -8px rgba(15, 20, 48, .35); }
.smx-blds button { all: unset; height: 32px; padding: 0 12px; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--smx-muted); cursor: pointer; white-space: nowrap; }
.smx-blds button.on { background: var(--smx-navy); color: #fff; box-shadow: 0 6px 14px -8px rgba(43, 52, 132, .8); }
.smx-chips { display: flex; gap: 6px; flex: none; }
.smx-chips button { all: unset; height: 38px; padding: 0 12px; border-radius: 19px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap; background: var(--smx-card); color: var(--smx-ink); box-shadow: 0 6px 16px -8px rgba(15, 20, 48, .35); }
.smx-chips button b { font-size: 11.5px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--smx-navy) 10%, transparent); color: var(--smx-navy); }
.smx-chips button.on { background: var(--smx-navy); color: #fff; }
.smx-chips button.on b { background: rgba(255, 255, 255, .22); color: #fff; }
.smx-chips button.vac b { background: rgba(22, 131, 74, .14); color: #16834a; }
.smx-chips button.vac.on { background: #16834a; }
/* the floors, like a mall's in a maps app: top floor on top */
.smx-floors { position: absolute; z-index: 2; right: max(12px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px;
  padding: 4px; border-radius: 24px; background: var(--smx-card); box-shadow: 0 10px 26px -10px rgba(15, 20, 48, .45); }
.smx-floors button { all: unset; box-sizing: border-box; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 20px; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  color: var(--smx-muted); cursor: pointer; font-variant-numeric: tabular-nums; }
.smx-floors button.on { background: var(--smx-navy); color: #fff; box-shadow: 0 6px 14px -6px rgba(43, 52, 132, .8); }
.smx-zoom { position: absolute; z-index: 2; left: max(12px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.smx.sheet-on .smx-zoom, .smx.sheet-on .smx-floors { opacity: .0; pointer-events: none; transition: opacity .2s; }
@media (min-width: 761px) { .smx.sheet-on .smx-zoom, .smx.sheet-on .smx-floors { opacity: 1; pointer-events: auto; } }
.smx-x { width: 48px; height: 48px; border-radius: 24px; }
/* the small copy of the plan, while zoomed in */
.smx-mini { position: absolute; z-index: 2; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); width: 128px; aspect-ratio: 3576 / 2526;
  border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 10px 26px -10px rgba(15, 20, 48, .5), 0 0 0 1px var(--smx-line); cursor: pointer; touch-action: none; }
.smx-mini img { width: 100%; height: 100%; display: block; opacity: .9; pointer-events: none; }
.smx-mini i { position: absolute; border: 2px solid var(--smx-navy); border-radius: 4px; background: rgba(43, 52, 132, .12); pointer-events: none; }
.smx.sheet-on .smx-mini { display: none; }
@media (min-width: 761px) { .smx-mini { width: 170px; } .smx.sheet-on .smx-mini { display: block; } }
/* «مبنى 01 · الدور الأرضي» when a floor opens */
.smx-where { position: absolute; z-index: 2; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translateX(-50%); padding: 8px 16px; border-radius: 18px;
  background: var(--smx-ink); color: var(--smx-bg); font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; }
.smx-where.on { animation: smxWhere 2.2s ease forwards; }
@keyframes smxWhere { 0% { opacity: 0; translate: 0 8px; } 12%, 75% { opacity: .92; translate: 0 0; } 100% { opacity: 0; } }
.smx.sheet-on .smx-where { display: none; }
.smx-hint { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: calc(100% - 48px); padding: 12px 18px; border-radius: 16px; text-align: center;
  background: rgba(21, 27, 52, .86); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.6; pointer-events: none; opacity: 0; }
.smx-hint.on { animation: smxHint 4.2s ease forwards; }
@keyframes smxHint { 0% { opacity: 0; } 8%, 80% { opacity: 1; } 100% { opacity: 0; } }
.smx-load { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--smx-muted); pointer-events: none; }
.smx-load[hidden] { display: none; }
/* the desk's card: at the foot on a phone (dragged down to close), in the corner on a laptop */
.smx-sheet { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 8px 16px calc(env(safe-area-inset-bottom, 0px) + 16px); border-radius: 24px 24px 0 0; background: var(--smx-card);
  box-shadow: 0 -12px 40px -12px rgba(15, 20, 48, .4); animation: smxSheet .38s var(--ui-soft, cubic-bezier(.2, .9, .3, 1)); display: grid; gap: 12px; transition: transform .25s ease; }
@keyframes smxSheet { from { transform: translateY(100%); } }
.smx-sheet[hidden] { display: none; }
.smx-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--smx-line); margin: 0 auto; }
.smx-card { display: flex; align-items: center; gap: 14px; }
.smx-desk { width: 64px; height: 64px; border-radius: 18px; flex: none; display: grid; place-items: center; align-content: center; background: linear-gradient(145deg, color-mix(in srgb, var(--dc, #2B3484) 72%, #fff), var(--dc, #2B3484) 60%, color-mix(in srgb, var(--dc, #2B3484) 72%, #000)); /* the department's colour, as its desk card */
  color: #fff; box-shadow: 0 10px 22px -10px rgba(43, 52, 132, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.smx-desk small { font-size: 11px; opacity: .8; line-height: 1; }
.smx-desk b { font-size: 24px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.smx-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.smx-who b { font-size: 17px; font-weight: 700; }
.smx-who span { font-size: 13px; color: var(--smx-muted); }
.smx-facts { font-size: 12.5px !important; }
.smx-cx { width: 36px; height: 36px; box-shadow: none; border: 1px solid var(--smx-line); align-self: flex-start; }
.smx-gear { display: flex; flex-wrap: wrap; gap: 6px; }
.smx-gear span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 15px; font-size: 12.5px; font-weight: 600;
  background: color-mix(in srgb, var(--smx-navy) 8%, transparent); color: var(--smx-ink); }
.smx-gear span svg { width: 16px; height: 16px; color: var(--smx-navy); }
.smx-gear .none { background: transparent; color: var(--smx-muted); padding: 0; }
.smx-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.smx-acts:empty { display: none; }
.smx-acts .wn-b { flex: 1; justify-content: center; min-height: 44px; }
.smx-acts .wn-b svg { width: 17px; height: 17px; }
@media (min-width: 761px) {
  .smx-sheet { left: max(16px, env(safe-area-inset-left, 0px)); right: auto; bottom: 16px; width: 380px; border-radius: 22px; padding: 16px; box-shadow: 0 24px 60px -18px rgba(15, 20, 48, .5); animation: smxPop .35s var(--ui-spring, ease); }
  .smx-grab { display: none; }
  .smx-mini { bottom: 16px; left: auto; right: 84px; }
  .smx-zoom { top: auto; bottom: 16px; left: auto; right: max(16px, env(safe-area-inset-right, 0px)); transform: none; }
  .smx-floors { right: max(16px, env(safe-area-inset-right, 0px)); }
  .smx-top { max-width: 720px; margin-inline-start: auto; left: auto; }
  .smx-res { left: auto; width: min(600px, calc(100vw - 100px)); }
}
/* the mouse over a desk (laptop): its engineer's card pops up beside it (seat-map.js pop; owner, 2026-11-10: «لما أحط
   الماوس على أي حاجة فيهم تطلعلي as a pop … احترافية جدًا») — who, what, where, and the devices on the desk */
.smx-pop { --dc: #64748b; position: fixed; z-index: 10070; width: 312px; box-sizing: border-box; padding: 0 0 12px; border-radius: 18px; overflow: hidden; pointer-events: none;
  background: var(--smx-card); color: var(--smx-ink); border: 1px solid var(--smx-line); box-shadow: 0 2px 6px rgba(15, 20, 48, .08), 0 26px 60px -22px rgba(15, 20, 48, .55);
  opacity: 0; transform: translateY(6px) scale(.97); transform-origin: var(--ox, 50%) 50%; transition: opacity .16s ease, transform .22s var(--ui-spring, cubic-bezier(.2, .8, .2, 1)); }
.smx-pop.on { opacity: 1; transform: none; }
.smx-pop[hidden] { display: none; }
.smx-pop .sp-band { position: relative; height: 58px; background: linear-gradient(120deg, var(--dc), color-mix(in srgb, var(--dc) 55%, #fff)); }
.smx-pop .sp-desk { position: absolute; top: 12px; inset-inline-end: 14px; display: inline-flex; align-items: baseline; gap: 5px; height: 28px; padding: 0 11px; border-radius: 99px;
  font-size: 12px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .38); line-height: 26px; }
.smx-pop .sp-desk b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.smx-pop .sp-head { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 12px; padding: 0 16px; margin-top: -30px; }
.smx-pop .sp-av { flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 21px; font-weight: 700;
  background: linear-gradient(140deg, color-mix(in srgb, var(--dc) 72%, #fff), var(--dc)); box-shadow: 0 0 0 4px var(--smx-card), 0 8px 18px -8px color-mix(in srgb, var(--dc) 80%, #000); }
.smx-pop .sp-av svg { width: 28px; height: 28px; }
.smx-pop .sp-who { padding: 10px 16px 0; }
.smx-pop .sp-who b { display: block; font-size: 16px; font-weight: 700; line-height: 1.35; }
.smx-pop .sp-who small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--smx-muted); }
/* who he is in rows: the word on the right, its value on the left */
.smx-pop .sp-facts { margin: 12px 16px 0; padding: 4px 12px; border-radius: 12px; background: color-mix(in srgb, var(--smx-ink) 4%, transparent); }
.smx-pop .sp-fact { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; font-size: 12.5px; }
.smx-pop .sp-fact + .sp-fact { border-top: 1px solid var(--smx-line); }
.smx-pop .sp-fact small { flex: none; font-size: 11.5px; font-weight: 500; color: var(--smx-muted); }
.smx-pop .sp-fact b { font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
.smx-pop .sp-dept { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700;
  background: color-mix(in srgb, var(--dc) 14%, transparent); color: color-mix(in srgb, var(--dc) 80%, var(--smx-ink)); }
.smx-pop .sp-dept::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dc); }
.smx-pop .sp-sec { margin: 12px 16px 0; padding-top: 10px; border-top: 1px solid var(--smx-line); }
.smx-pop .sp-sec > small { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--smx-muted); }
.smx-pop .sp-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 12.5px; }
.smx-pop .sp-row > svg { flex: none; width: 30px; height: 30px; padding: 6px; box-sizing: border-box; border-radius: 9px; color: color-mix(in srgb, var(--dc) 80%, var(--smx-ink));
  background: color-mix(in srgb, var(--dc) 11%, transparent); }
.smx-pop .sp-row > div { min-width: 0; }
.smx-pop .sp-row b { display: block; font-weight: 600; }
.smx-pop .sp-row small { display: block; margin-top: 1px; font-size: 11px; color: var(--smx-muted); font-variant-numeric: tabular-nums; text-align: end; overflow-wrap: anywhere; }
.smx-pop .sp-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.smx-pop .sp-chips i { font-style: normal; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 11.5px; font-weight: 600;
  background: color-mix(in srgb, #16834a 12%, transparent); color: #16834a; }
.smx-pop .sp-none { font-size: 12.5px; color: var(--smx-muted); }
.smx-pop .sp-foot { margin: 12px 16px 0; font-size: 11.5px; color: var(--smx-muted); display: flex; align-items: center; gap: 6px; }
.smx-pop.vac .sp-band { background: repeating-linear-gradient(135deg, #e3e7f0 0 10px, #eef1f6 10px 20px); }
.smx-pop.vac .sp-av { background: #c3cad8; }
.smx-pop.vac .sp-desk { color: var(--smx-ink); background: var(--smx-card); border-color: var(--smx-line); } /* readable on the striped band */
:root[data-theme="dark"] .smx-pop.vac .sp-band { background: repeating-linear-gradient(135deg, #222a48 0 10px, #1b2240 10px 20px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .smx-pop.vac .sp-band { background: repeating-linear-gradient(135deg, #222a48 0 10px, #1b2240 10px 20px); } }
@media (prefers-reduced-motion: reduce) {
  .smx, .smx-res, .smx-sheet, .smx-marker.drop span, .smx-pin.sel::after, .smx-where.on, .smx-hint.on { animation: none !important; }
  .smx-pop { transition: none; transform: none; }
  .smx-where.on, .smx-hint.on { opacity: .92; }
}

/* the plan inside «مخطط المقاعد»: a picture the page scrolls past; a tap opens the map */
.smp { position: relative; display: block; width: 100%; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 20, 48, .05), 0 12px 30px -18px rgba(15, 20, 48, .35); }
.smp img { display: block; width: 100%; height: auto; aspect-ratio: 3576 / 2526; object-fit: contain; }
.smp .sm-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.smp-cta { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 22px;
  background: #2B3484; color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 12px 26px -10px rgba(43, 52, 132, .85), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .4s var(--ui-spring, ease); }
.smp:hover .smp-cta { transform: translateX(-50%) translateY(-2px); }
.smp:focus-visible { outline: 2px solid #2B3484; outline-offset: 3px; }
@media (max-width: 760px) { .smp-cta { font-size: 13px; height: 40px; padding: 0 14px; bottom: 10px; } }
/* why a desk's devices could not open (owner, 2026-11-09) */
.smx-err { margin-top: 10px; padding: 8px 12px; border-radius: 10px; font-size: 13px; color: #b42318; background: rgba(229,72,77,.1); }
.smx-err[hidden] { display: none; }
:root[data-theme="dark"] .smx-err { color: #fca5a5; background: rgba(248,113,113,.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .smx-err { color: #fca5a5; background: rgba(248,113,113,.14); } }

/* «خريطة الاستهلاك» (owner, 2026-11-24, seat-map.js HEAT): «الاستهلاك» colours each desk by what its engineer received —
   pale for little, deep red for the most — with a soft glow under the busiest desks, and the scale and the period at the foot. */
.smx-heat-tg { all: unset; flex: none; height: 38px; padding: 0 14px 0 12px; border-radius: 19px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; cursor: pointer;
  background: var(--smx-card); color: #c2410c; box-shadow: 0 1px 2px rgba(15, 20, 48, .12), 0 4px 14px -6px rgba(15, 20, 48, .35); }
.smx-heat-tg svg, .smx-hb-t svg { width: 18px; height: 18px; flex: none; }
.smx.heat .smx-heat-tg { background: linear-gradient(100deg, #f59e0b, #dc2626); color: #fff; }
.smx-heat-tg:focus-visible { outline: 2px solid #dc2626; outline-offset: 2px; }
.smx-glow { position: absolute; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); opacity: var(--h, .5);
  background: radial-gradient(closest-side, rgba(220, 38, 38, .5), rgba(245, 158, 11, .28) 55%, rgba(245, 158, 11, 0)); mix-blend-mode: multiply; }
.smx.heat .smx-dc:not(.vac) { background: color-mix(in oklab, #d9480f calc(var(--h, 0) * 100%), #fff8ec); border-color: color-mix(in oklab, #b23c0e calc(var(--h, 0) * 80%), #ead9bd); transition: background-color .3s ease; }
.smx.heat .smx-dc.h0:not(.vac) { background: #fafafa; border-color: #e3e6ee; color: #7b8299; }
.smx.heat .smx-dc::before { display: none; }
.smx.heat .smx-dc.hot .dc-nm, .smx.heat .smx-dc.hot .dc-hq, .smx.heat .smx-dc.hot .dc-no { color: #fff; }
.smx.heat .smx-dc.hot .dc-no { background: rgba(0, 0, 0, .18); }
.smx-dc .dc-hq { display: none; max-width: 100%; font-size: min(9.5cqw, 11cqh); font-weight: 800; color: #9a3412; white-space: nowrap; }
.smx.heat .smx-dc .dc-hq { display: block; }
.smx.heat .smx-dc .dc-dp, .smx.heat .smx-dc .dc-tt, .smx.heat .smx-dc .dc-av { display: none !important; }
.smx-chips button.heatc b { background: rgba(220, 38, 38, .12); color: #b42318; min-width: 26px; padding: 0 5px; }
.smx-chips button.heatc.on { background: #c2410c; }
.smx-chips button.heatc.on b { background: rgba(255, 255, 255, .22); color: #fff; }
.smx-heatbar { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom, 0px)); width: min(560px, calc(100% - 24px));
  display: grid; gap: 8px; padding: 10px 14px 12px; border-radius: 16px; background: var(--smx-card); color: var(--smx-ink); font-size: 13px;
  box-shadow: 0 1px 2px rgba(15, 20, 48, .12), 0 10px 30px -10px rgba(15, 20, 48, .45); }
.smx-heatbar[hidden] { display: none; }
.smx.sheet-on .smx-heatbar { display: none; }
.smx-hb-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.smx-hb-t { display: inline-flex; align-items: center; gap: 6px; color: #c2410c; flex: 1 1 auto; }
.smx-hb-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--smx-navy) 7%, transparent); }
.smx-hb-seg button { all: unset; cursor: pointer; padding: 0 10px; min-height: 30px; display: inline-flex; align-items: center; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--smx-muted); }
.smx-hb-seg button.on { background: #c2410c; color: #fff; }
.smx-hb-seg button:focus-visible, .smx-hb-top button:focus-visible { outline: 2px solid #c2410c; outline-offset: 2px; }
.smx-hb-scale { flex: 1; height: 10px; border-radius: 5px; background: linear-gradient(to left, #fff8ec, #f6b26b 45%, #d9480f 80%, #9a2a0a); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.smx-hb-row small { color: var(--smx-muted); }
.smx-hb-top { color: var(--smx-muted); line-height: 1.7; }
.smx-hb-top b { color: #c2410c; }
.smx-hb-top button { all: unset; cursor: pointer; font-weight: 700; color: var(--smx-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .smx-heatbar { bottom: max(10px, env(safe-area-inset-bottom, 0px)); font-size: 12.5px; } }
.smx-hb-cap { padding: 1px 8px; border-radius: 99px; background: rgba(217, 72, 15, .12); color: #b23c0e; font-weight: 700; }
