:root {
  --blue: #1e8fc6;
  --blue-dark: #177aab;
  --teal: #3f8ea3;
  --purple: #9b6ad8;
  --purple-dark: #8455c4;
  --purple-soft: #d9c6f2;
  --pink: #c86b9c;
  --plum: #9c5582;
  --line: #d9d9d9;
  --text: #1c1c1c;
  --muted: #8a8a8a;
  --tile: #e6e6e6;
  --gold: #f2b705;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, 'Noto Color Emoji', sans-serif;
  background: #e9edf1;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button { font: inherit; cursor: pointer; color: inherit; }
input { font: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* إطار يشبه الموبايل، وعلى الكمبيوتر يصير بالوسط */
.phone {
  position: relative;
  height: 100vh; height: 100dvh; height: var(--vvh, 100dvh); /* يتبع المساحة فوق الكيبورد */
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, .12);
}
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.pad { padding: 16px; }

/* ===== الشريط العلوي ===== */
.bar {
  flex-shrink: 0; min-height: 64px; display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  color: #fff; position: relative; padding-top: max(8px, env(safe-area-inset-top));
}
.bar.center { justify-content: center; }
.bar.blue { background: var(--blue); }
.bar.purple { background: var(--purple); }
.bar.pink { background: var(--pink); }
.logo { font-size: 34px; font-weight: 800; letter-spacing: 1px; display: flex; align-items: center; gap: 4px; }
.logo span { font-size: 22px; opacity: .85; }
.bar-title { font-size: 22px; font-weight: 500; }
.bar-btn {
  position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none;
  color: #fff; font-size: 26px; width: 48px; height: 48px;
}
.bar-btn.side-r { right: 6px; }
.bar-btn.side-l { left: 6px; }

/* ===== الدخول ===== */
.card { background: #fff; border-radius: 16px; box-shadow: 0 2px 14px rgba(0, 0, 0, .08); padding: 20px; }
.login-card { display: flex; flex-direction: column; gap: 10px; }
.login-card h2 { margin: 0; text-align: center; }
.login-card p { margin: 0 0 4px; text-align: center; }
.big-ico { font-size: 46px; text-align: center; }
.field { font-weight: 700; font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.field input, .sheet input, .sheet select {
  padding: 12px; border: 1px solid #cfd8de; border-radius: 10px; font-size: 16px; font-weight: 400; font-family: inherit; background: #fff;
}
.avatar-pick { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.avatar-pick button {
  aspect-ratio: 1; font-size: clamp(16px, 5vw, 22px); border: 2px solid transparent; border-radius: 10px; background: var(--tile); min-width: 0; padding: 0;
}
.avatar-pick button.on { border-color: var(--blue); background: #d6edf8; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #cfd8de; }
.swatches button.on { box-shadow: 0 0 0 2px var(--text); }

.btn { border: none; border-radius: 10px; padding: 12px 18px; font-weight: 700; font-size: 16px; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.purple { background: var(--purple); color: #fff; }
.btn.plum { background: var(--plum); color: #fff; }
.btn.ghost { background: #eee; }
.btn.red { background: #d9534f; color: #fff; }
.btn.wide { width: 100%; padding: 14px; font-size: 18px; margin-top: 8px; }

/* ===== الرئيسية ===== */
.list-row {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px 16px; min-height: 76px;
  background: #fff; border: none; border-bottom: 1px solid var(--line); text-align: right;
}
.list-row:active { background: #f3f7fa; }
.flag {
  width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0; overflow: hidden; display: grid; place-items: center;
  background: #eee; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.flag img { width: 100%; height: 100%; object-fit: cover; }
.flag.star { background: var(--gold); color: #fff; font-size: 34px; }
.flag.globe { background: #5aa9d6; font-size: 32px; }
.flag.book { background: #4caf50; font-size: 30px; }
.lr-body { flex: 1; min-width: 0; }
.lr-title { font-size: 22px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-meta { display: flex; gap: 40px; color: var(--muted); font-size: 17px; margin-top: 2px; }

.room-ico {
  width: 54px; height: 54px; border-radius: 50%; background: var(--teal); flex-shrink: 0; display: grid; place-items: center;
  position: relative;
}
.room-ico::after {
  content: ''; position: absolute; bottom: -2px; left: 4px; border: 7px solid transparent; border-top-color: var(--teal);
  transform: rotate(35deg);
}
.room-ico svg { width: 32px; height: 32px; }
.star-btn { background: none; border: none; font-size: 30px; color: #555; padding: 4px; line-height: 1; }
.star-btn.on { color: var(--gold); }
.r-count { width: 28px; text-align: center; font-size: 19px; color: #555; }
.sub-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #f4f6f8; border-bottom: 1px solid var(--line);
  font-weight: 700; color: #555;
}
.empty { text-align: center; color: var(--muted); padding: 48px 20px; font-size: 17px; line-height: 1.7; }

.search-box { padding: 12px; border-bottom: 1px solid var(--line); background: #f4f6f8; }
.search-box input { width: 100%; padding: 12px 14px; border-radius: 24px; border: 1px solid #cfd8de; font-size: 17px; }

.profile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px 18px; border-bottom: 1px solid var(--line); }
.pf-av { width: 86px; height: 86px; border-radius: 20px; background: var(--tile); display: grid; place-items: center; font-size: 50px; }
.pf-name { font-size: 22px; font-weight: 800; }
.more-row {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: none; border-bottom: 1px solid var(--line);
  background: #fff; font-size: 18px; text-align: right;
}
.more-row span { font-size: 22px; }
.about { text-align: center; padding: 30px; font-size: 14px; }

.fab {
  position: absolute; left: 18px; bottom: 150px; width: 58px; height: 58px; border-radius: 50%; border: none;
  background: var(--blue); color: #fff; font-size: 32px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); z-index: 5;
}
.stats {
  flex-shrink: 0; display: flex; justify-content: space-around; padding: 10px; background: #eceef0; color: #8a8a8a; font-size: 18px;
  border-top: 1px solid var(--line);
}
.stats b { font-weight: 500; }
.tabbar {
  flex-shrink: 0; display: flex; background: var(--blue); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar button {
  flex: 1; border: none; background: none; color: rgba(255, 255, 255, .7); display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 8px 0 10px; font-size: 16px;
}
.tabbar button i { font-style: normal; font-size: 26px; filter: grayscale(1) brightness(2.2); opacity: .7; height: 32px; line-height: 32px; }
.tabbar button.on { color: #fff; }
.tabbar button.on i { opacity: 1; filter: grayscale(1) brightness(3); }

/* ===== الغرفة ===== */
.room-bar { gap: 6px; padding: 10px; }
.room-card {
  flex: 1; min-width: 0; order: -1; background: #fff; color: var(--text); border-radius: 16px; padding: 8px 12px;
  display: flex; align-items: center; gap: 8px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); border: none; text-align: right;
}
.rc-text { flex: 1; min-width: 0; }
.rc-name { font-size: 18px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-sub { font-size: 16px; color: #333; direction: ltr; text-align: right; }
.rc-spk { font-size: 30px; }
.rc-spk.off { filter: grayscale(1); opacity: .5; }
.hdr-ico {
  border: none; background: none; width: 52px; height: 52px; font-size: 34px; display: grid; place-items: center; position: relative;
  border-radius: 10px; flex-shrink: 0;
}
.hdr-ico.on { background: rgba(255, 255, 255, .18); }
.hdr-ico .badge {
  position: absolute; top: 2px; left: 2px; background: #ff3b5c; color: #fff; font-size: 12px; min-width: 20px; height: 20px;
  border-radius: 10px; display: grid; place-items: center; padding: 0 5px; font-style: normal;
}
.burger { display: flex; flex-direction: column; gap: 6px; }
.burger i { display: block; width: 32px; height: 5px; border-radius: 3px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }

.room-main { flex: 1; display: flex; min-height: 0; }
.room-content { flex: 1; min-width: 0; display: flex; }
.pane { flex: 1; overflow-y: auto; overscroll-behavior: contain; min-width: 0; }
#chatView { display: flex; flex-direction: column; overflow: hidden; }

/* الشريط الجانبي المزخرف */
.deco {
  width: 40px; flex-shrink: 0; border-right: 3px solid #c9c9c9;
  background-color: #d8c3f2;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='100'%3E%3Crect x='2' y='14' width='3' height='38' fill='%23e01ee0'/%3E%3Ctext x='24' y='44' font-size='24' text-anchor='middle'%3E🦋%3C/text%3E%3Ctext x='22' y='86' font-size='13' text-anchor='middle' opacity='.45'%3E💗%3C/text%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 40px 100px;
}

/* صفوف المتواجدين */
.urow {
  display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 12px; min-height: 84px; border-bottom: 1px solid var(--line);
  cursor: pointer; user-select: none; background: #fff;
}
.urow:active { background: #f6f1fd; }
.urow.self { background: #fbf8ff; }
.utile {
  width: 66px; height: 66px; border-radius: 14px; background: var(--tile); flex-shrink: 0; display: grid; place-items: center;
  font-size: 38px; position: relative; transition: box-shadow .15s;
}
.urow.speaking .utile { box-shadow: 0 0 0 3px #38c45a; animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(56, 196, 90, .35); } }
.utile .ov { position: absolute; bottom: -4px; left: -6px; font-size: 18px; filter: grayscale(1); }
.uname {
  flex: 1; min-width: 0; font-size: 23px; line-height: 1.3; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ustatus { display: block; font-size: 13px; color: var(--muted); }
.uicons { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 44px; }
.uicons .ic { font-size: 30px; line-height: 1; }
.micon { display: block; width: 1em; height: 1em; margin: auto; }
.reconnect-bar { position: fixed; left: 0; right: 0; bottom: 62px; z-index: 50; padding: 4px 10px 5px; background: #fff; border-top: 1px solid #c9d3d9; color: #24323d; font-size: 12px; font-weight: 700; }
.reconnect-bar.hidden { display: none; }
.reconnect-bar .rb-text { display: flex; justify-content: space-between; margin-bottom: 3px; }
.reconnect-bar i { display: block; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #dfe5e9 0%, #d13c3c 50%, #dfe5e9 100%); background-size: 200% 100%; animation: rb-move 1.4s linear infinite; }
@keyframes rb-move { from { background-position: 200% 0; } to { background-position: 0 0; } }
.room-count { color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; align-self: center; order: 9; }
.desk #roomCount { display: block !important; }
.users-badge { position: absolute; bottom: -3px; right: -3px; min-width: 16px; padding: 0 3px; border-radius: 8px; background: #fff; color: #6b3f99; font-size: 11px; font-weight: 800; line-height: 16px; text-align: center; font-style: normal; }
.uicons .qn { font-size: 12px; background: var(--gold); color: #fff; border-radius: 9px; padding: 0 6px; font-weight: 800; }
.uicons .st { font-size: 18px; }

/* شريط المتكلم الحالي */
.speak-strip {
  flex-shrink: 0; background: #f2ebfc; border-top: 1px solid var(--purple-soft); padding: 4px 12px; font-size: 14px; color: #5b3f86;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* الدردشة */
.ptabs { display: flex; gap: 6px; padding: 6px 8px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #faf7ff; flex-shrink: 0; }
.ptab {
  border: 1px solid var(--purple-soft); background: #fff; border-radius: 16px; padding: 4px 12px; font-size: 14px; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.ptab.on { background: var(--purple); color: #fff; border-color: var(--purple); }
.ptab .x { opacity: .7; }
.ptab .bd { background: #ff3b5c; color: #fff; border-radius: 9px; font-size: 11px; padding: 0 6px; }
.messages { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0 8px; }

.sysline { margin: 3px 6px; padding: 5px 10px; border-radius: 8px; font-size: 14px; text-align: center; }
.sysline.join { background: #e3f7df; color: #2f6b27; }
.sysline.leave { background: #fbe4e4; color: #8a2f2f; }
.sysline.info { background: #f0eef5; color: #5d5670; }

.msg { display: flex; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #f0f0f0; }
.msg .mav { width: 38px; height: 38px; border-radius: 10px; background: var(--tile); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.msg .mbody { flex: 1; min-width: 0; }
.msg .mhead { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.msg .mname { font-weight: 800; }
.msg .mtime { margin-inline-start: auto; color: var(--muted); font-size: 11px; direction: ltr; }
.msg .mpv { color: #b0369c; font-size: 12px; }
.msg .mtext { line-height: 1.35; word-wrap: break-word; overflow-wrap: anywhere; }

/* التصميم القديم للنص */
.old .msg { display: block; padding: 0; margin: 2px 4px; border: none; border-right: 4px solid var(--c, #999); }
.old .msg .mav { display: none; }
.old .msg .mhead { background: #f1f4f6; padding: 2px 8px; border-bottom: 1px solid #e3e8ec; }
.old .msg .mtext { padding: 2px 10px 6px; }

/* ===== الكتابة بالأسفل ===== */
.composer {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--purple-dark);
  position: relative; padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.composer input {
  flex: 1; min-width: 0; height: 52px; border-radius: 10px; border: none; padding: 0 14px; font-size: 18px; background: #fff;
}
.composer input::placeholder { color: #b5b5b5; }
.c-btn { border: none; background: none; flex-shrink: 0; display: grid; place-items: center; }
.c-btn.send { width: 48px; height: 52px; }
.c-btn.emoji { font-size: 38px; width: 48px; height: 52px; }
.c-btn.dots {
  width: 46px; height: 46px; border-radius: 50%; background: #5bb6e8; border: 2px solid #2f6f99; display: flex; gap: 4px;
  align-items: center; justify-content: center;
}
.c-btn.dots i { width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 1px solid #2f6f99; }
.c-btn.mic {
  width: 56px; height: 56px; border-radius: 12px; background: #c9b1ee; font-size: 30px; border: 2px solid transparent;
}
.c-btn.mic.hand { background: #ffe58a; border-color: #d4a400; }
.c-btn.mic.live { background: #8ee28e; border-color: #2e9a3a; animation: pulse 1.2s infinite; }
.c-btn.mic.muted { background: #ffb3b3; border-color: #c43c3c; animation: none; }

.emoji-panel {
  position: absolute; bottom: calc(100% + 6px); left: 8px; right: 8px; background: #fff; border-radius: 14px; padding: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25); display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  max-height: 230px; overflow-y: auto; z-index: 20;
}
.emoji-panel button { border: none; background: none; font-size: 28px; padding: 4px; border-radius: 8px; }
.emoji-panel button:active { background: #f1e9fc; }

/* ===== الإعدادات ===== */
.set-scroll { background: #f4f4f4; padding: 8px 14px 20px; }
.set-h { font-size: 26px; font-weight: 500; color: #555; margin: 14px 6px 8px; }
.set-card { background: #fff; border-radius: 24px; padding: 6px 18px; }
.font-preview { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
#fontSample { flex: 1; text-align: center; color: navy; font-weight: 800; font-size: 26px; overflow-wrap: anywhere; }
.wheel {
  width: 46px; height: 46px; border-radius: 50%; border: none; flex-shrink: 0;
  background: radial-gradient(circle, #fff 0 18%, transparent 19%), conic-gradient(#e53935, #fb8c00, #fdd835, #43a047, #1e88e5, #5e35b1, #d81b60, #e53935);
}
#fontColors { padding: 0 0 12px; justify-content: center; }
.switch-row, .radio-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; font-size: 19px;
  border-bottom: 1px solid #e6e6e6; cursor: pointer;
}
.set-card > :last-child { border-bottom: none; }
.switch {
  appearance: none; -webkit-appearance: none; width: 54px; height: 22px; border-radius: 11px; background: #cfcfcf; position: relative;
  flex-shrink: 0; cursor: pointer; transition: .2s; margin: 0;
}
.switch::after {
  content: ''; position: absolute; top: 50%; right: -2px; width: 32px; height: 32px; border-radius: 50%; background: #fafafa;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transform: translateY(-50%); transition: .2s;
}
.switch:checked { background: #d9b6cf; }
.switch:checked::after { right: 22px; background: var(--plum); }
.radio-row input {
  appearance: none; -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #444; flex-shrink: 0; margin: 0;
  display: grid; place-items: center;
}
.radio-row input:checked { border-color: var(--plum); }
.radio-row input:checked::after { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--pink); }
.slider-labels { display: flex; justify-content: space-between; font-size: 18px; padding-top: 8px; }
.slider { width: 100%; margin: 10px 0 20px; direction: rtl; accent-color: #2aa1c0; height: 30px; }
.set-foot {
  flex-shrink: 0; display: flex; gap: 22px; padding: 12px 24px; background: var(--pink); padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.set-foot .btn { flex: 1; padding: 16px; font-size: 20px; font-weight: 500; }

/* ===== اللوحة المنبثقة ===== */
.sheet { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); z-index: 50; display: flex; align-items: flex-end; }
.sheet-card {
  width: 100%; background: #fff; border-radius: 20px 20px 0 0; padding: 10px 0 max(14px, env(safe-area-inset-bottom));
  max-height: 85%; overflow-y: auto; animation: up .18s ease-out;
}
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 8px 18px 12px; border-bottom: 1px solid var(--line); }
.sheet-head .sh-av { width: 46px; height: 46px; border-radius: 12px; background: var(--tile); display: grid; place-items: center; font-size: 28px; }
.sheet-head .sh-name { font-size: 20px; font-weight: 800; }
.sheet-item {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 15px 20px; border: none; background: none;
  font-size: 18px; text-align: right;
}
.sheet-item:active { background: #f4effb; }
.sheet-item .si { font-size: 22px; width: 28px; text-align: center; }
.sheet-item.red { color: #c43c3c; }
.sheet-form { display: flex; flex-direction: column; gap: 12px; padding: 6px 18px 4px; }
.sheet-form h3 { margin: 6px 0; }
.sheet-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.sheet-form .row { display: flex; gap: 10px; margin-top: 4px; }
.sheet-form .row .btn { flex: 1; }

.toast {
  position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%); background: rgba(20, 20, 20, .88); color: #fff;
  padding: 10px 18px; border-radius: 20px; z-index: 80; font-size: 15px; max-width: 88%; text-align: center;
}

/* =================================================================== */
/* ===== واجهة الكمبيوتر (مثل ويفو للكمبيوتر) ===== */
/* =================================================================== */
.desk-only { display: none !important; }
.burger.dark i { background: #555; box-shadow: none; width: 24px; height: 3px; }
.burger.dark { gap: 4px; }

body.desk { background: #dfe7ec; }
.desk .phone { max-width: none; box-shadow: none; background: #dfe7ec; }

/* --- الرئيسية --- */
.desk #home { margin: 10px; border: 2px solid #2a7fc4; border-radius: 4px; overflow: hidden; inset: 0; }
.desk #home .bar { min-height: 38px; padding: 4px 14px; justify-content: flex-start; background: #2a7fc4; }
.desk #home .logo { font-size: 22px; }
.desk #home .logo span { font-size: 14px; }
.desk .tabbar, .desk #homeBack, .desk #fab { display: none !important; }
.desk .desk-toolbar {
  display: flex !important; align-items: center; gap: 8px; padding: 6px 12px; background: #f0f0f0;
  border-bottom: 1px solid #cfd6db;
}
.desk .tb {
  border: 1px solid transparent; background: none; height: 36px; min-width: 40px; border-radius: 6px; font-size: 20px;
  display: grid; place-items: center;
}
.desk .tb:hover { background: #e2e8ec; }
.desk .tb.on { background: #d3e8f5; border-color: #9cc6e2; }
.desk .tb.wide { font-size: 14px; font-weight: 700; padding: 0 12px; border-color: #b9c8d1; background: #fff; }
.desk .d-search { display: flex; align-items: center; background: #fff; border: 1px solid #c3ccd2; border-radius: 18px; padding: 0 10px; width: 260px; }
.desk .d-search input { border: none; outline: none; flex: 1; height: 32px; font-size: 15px; background: none; }
.desk .spacer { flex: 1; }

.desk #homeScroll { display: flex; overflow: hidden; background: #fff; }
.desk #vCats { order: 1; width: 260px; flex-shrink: 0; overflow-y: auto; border-right: 1px solid #c3ccd2; display: block !important; }
.desk #vRooms { order: 2; flex: 1; overflow-y: auto; background: #e6f2fb; display: block !important; }
.desk #vFav, .desk #vSearch, .desk #vMore { display: none !important; }

.desk #vCats .list-row { min-height: 46px; padding: 4px 10px; gap: 8px; border-bottom: 1px solid #e3e3e3; }
.desk #vCats .list-row.sel { background: #a9dbe8; }
.desk #vCats .list-row:hover:not(.sel) { background: #eef7fb; }
.desk #vCats .flag { width: 34px; height: 34px; }
.desk #vCats .flag.star { font-size: 20px; }
.desk #vCats .flag.globe { font-size: 20px; }
.desk #vCats .flag.book { font-size: 18px; }
.desk #vCats .lr-title { font-size: 14px; font-weight: 700; }
.desk #vCats .lr-meta { font-size: 12px; gap: 18px; margin-top: 0; }

.desk #vRooms .list-row { min-height: 38px; padding: 3px 12px; gap: 10px; background: transparent; border-bottom: 1px solid #d6e6f1; }
.desk #vRooms .list-row:hover { background: #d4e9f7; }
.desk #vRooms .room-ico { width: 28px; height: 28px; }
.desk #vRooms .room-ico svg { width: 18px; height: 18px; }
.desk #vRooms .room-ico::after { display: none; }
.desk #vRooms .room-ico.gold { background: #f2b705; }
.desk #vRooms .lr-title { font-size: 15px; }
.desk #vRooms .star-btn { font-size: 22px; }
.desk #vRooms .r-count { font-size: 14px; }
.desk .stats { justify-content: flex-start; gap: 40px; padding: 5px 14px; font-size: 14px; background: #f0f0f0; }

/* --- الغرفة --- */
.desk #room {
  margin: 10px; border: 2px solid #3b8a9c; border-radius: 4px; overflow: hidden; inset: 0;
  display: grid; grid-template-columns: 410px 1fr; grid-template-rows: auto 1fr auto auto;
  grid-template-areas: "head head" "users chat" "strip chat" "mic comp";
}
.desk .room-main, .desk .room-content { display: contents; }
.desk .deco { display: none; }
.desk .room-bar {
  grid-area: head; background: linear-gradient(#e9f6f9, #c4e2ea); color: #1b2430; min-height: 40px; padding: 4px 10px;
  border-bottom: 1px solid #9fc8d3;
}
.desk .room-bar #chatViewBtn, .desk .room-bar #usersViewBtn { display: none; }
.desk .room-bar .hdr-ico { width: 34px; height: 34px; }
.desk .room-bar .burger i { background: #3b6f7e; width: 22px; height: 3px; box-shadow: none; }
.desk .room-bar .burger { gap: 4px; }
.desk .room-card { background: none; box-shadow: none; padding: 0 4px; border-radius: 0; }
.desk .rc-name { font-size: 15px; font-weight: 700; }
.desk .rc-sub { font-size: 12px; color: #607682; }
.desk .rc-spk { font-size: 22px; }

.desk #usersCol { grid-area: users; display: flex !important; flex-direction: column; min-height: 0; border-right: 2px solid #3b8a9c; }
.desk #chatView { grid-area: chat; display: flex !important; min-width: 0; min-height: 0; }
.desk .d-me {
  display: flex !important; align-items: center; gap: 6px; border: none; border-bottom: 1px solid #9fc8d3; background: linear-gradient(#e6f4f7, #bfe0e8);
  padding: 6px 10px; min-height: 40px; font-weight: 700; font-size: 15px; text-align: right;
}
.desk #usersView { flex: 1; }
.desk .urow { min-height: 42px; padding: 3px 8px; gap: 8px; }
.desk .utile { width: 34px; height: 34px; font-size: 20px; border-radius: 50%; background: #eef3f6; }
.desk .utile .ov { font-size: 12px; bottom: -3px; left: -4px; }
.desk .uname { font-size: 15px; font-weight: 700; -webkit-line-clamp: 1; }
.desk .ustatus { font-size: 11px; font-weight: 400; }
.desk .uicons { flex-direction: row; min-width: 0; gap: 4px; }
.desk .uicons .ic { font-size: 20px; }
.desk .uicons .st { font-size: 15px; }

.desk .speak-strip { grid-area: strip; display: block; border-right: 2px solid #3b8a9c; background: #fafcfd; color: #6b7785; font-size: 12px; border-top: 1px solid #b8cdd4; }
.desk .speak-strip.hidden { display: block !important; min-height: 22px; }
.desk .d-micbar {
  grid-area: mic; display: flex !important; align-items: stretch; background: linear-gradient(#e6f4f7, #bfe0e8);
  border-top: 1px solid #9fc8d3; border-right: 2px solid #3b8a9c;
}
.desk .d-mic {
  border: none; border-left: 1px solid #9fc8d3; background: transparent; display: flex; align-items: center; gap: 4px;
  padding: 6px 10px; font-weight: 700; font-size: 14px; min-height: 52px;
}
.desk .d-mic .ico { font-size: 24px; }
.desk .d-mic:hover { background: rgba(255, 255, 255, .5); }
.desk .d-mic.active { background: #d6f5d0; }
.desk .d-mic.waiting { background: #fff1c2; }
.desk .d-mic.off { background: #fbdcdc; }
.desk .d-mic.hidden { display: none !important; }
.desk .d-mode { flex: 1; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #3b6f7e; }

/* الدردشة بشكل الكمبيوتر */
.desk .ptabs { display: flex !important; background: linear-gradient(#e6f4f7, #bfe0e8); border-bottom: 1px solid #9fc8d3; padding: 6px 6px 0; gap: 2px; min-height: 40px; align-items: flex-end; }
.desk .ptab { border-radius: 6px 6px 0 0; border: 1px solid #9fc8d3; border-bottom: none; background: #d9edf2; color: #1b2430; padding: 5px 12px; }
.desk .ptab.on { background: #fff; color: #1b2430; font-weight: 700; }
.desk .messages { background: #fff; }
.desk .msg { display: block; padding: 0; margin: 2px 4px; border: none; border-left: 4px solid var(--c, #999); }
.desk .msg .mav { display: none; }
.desk .msg .mhead { background: #f1f4f6; padding: 2px 8px; border-bottom: 1px solid #e3e8ec; font-size: 13px; }
.desk .msg .mtext { padding: 2px 10px 6px 34px; text-align: left; }
.desk .sysline { border-radius: 3px; margin: 2px 4px; padding: 4px 10px; font-size: 13px; }
.desk .sysline.join { background: #e4f8e1; border: 1px solid #9bd690; color: #1b2430; }
.desk .sysline.leave { background: #fbe5e5; border: 1px solid #e6a9a9; color: #1b2430; }
.desk .sysline.info { background: #eef3f6; border: 1px solid #d3dee4; }

.desk .composer {
  grid-area: comp; background: linear-gradient(#e6f4f7, #bfe0e8); border-top: 1px solid #9fc8d3; padding: 8px;
}
.desk .composer input { height: 42px; border: 1px solid #9fbfc9; border-radius: 4px; font-size: 16px; }
.desk .composer #moreBtn, .desk .composer #micBtn { display: none; }
.desk .c-btn.emoji { font-size: 30px; }
.desk .emoji-panel { left: auto; right: 8px; width: 340px; }

/* اللوحات المنبثقة بالنص */
.desk .sheet { align-items: center; justify-content: center; position: fixed; }
.desk .sheet-card { width: 380px; border-radius: 12px; padding-bottom: 10px; }

/* الدخول والإعدادات */
.desk #login .scroll { display: grid; place-items: center; }
.desk #login .login-card { width: 420px; }
.desk #login, .desk #settings { margin: 10px; border-radius: 4px; overflow: hidden; inset: 0; }
.desk #settings .set-scroll > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.desk #settings .set-foot { justify-content: center; }
.desk #settings .set-foot .btn { flex: 0 0 200px; }

/* ويفو ولقانا للكمبيوتر ترتيبها من اليسار لليمين */
.desk #home, .desk #room { direction: ltr; }
.desk #home .list-row, .desk .d-me, .desk .room-card { text-align: left; }
.desk .uname, .desk .rc-text, .desk .lr-body { text-align: left; }
.desk .d-mic { border-left: none; border-right: 1px solid #9fc8d3; }
.desk .composer #emojiBtn { order: 1; }
.desk .composer #msgInput { order: 2; direction: rtl; }
.desk .composer #sendBtn { order: 3; }
.desk .sysline { position: relative; }
.desk .sysline.join::before, .desk .sysline.leave::before { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font-size: 14px; }
.desk .sysline.join::before { content: '➡️'; }
.desk .sysline.leave::before { content: '⬅️'; }
.desk .ptab { direction: rtl; }
.desk .d-search input { direction: rtl; }
.desk .emoji-panel { right: auto; left: 8px; }

/* ===== الحسابات ===== */
.auth-tabs { display: flex; background: #eef3f6; border-radius: 12px; padding: 4px; gap: 4px; }
.auth-tabs button { flex: 1; border: none; background: none; padding: 10px 4px; border-radius: 9px; font-weight: 700; font-size: 15px; color: #6b7785; }
.auth-tabs button.on { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.auth-err { color: #c43c3c; min-height: 20px; font-size: 14px; text-align: center; }
.btn.small { padding: 6px 12px; font-size: 14px; }

/* ===== التيجان ===== */
.crown { width: 78%; height: 78%; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.utile .crown, .mav .crown, .sh-av .crown { margin: auto; }
.si .crown { width: 24px; height: 24px; }
.rk-ic .crown { width: 26px; height: 26px; }
.guest-tag { display: inline-block; font-size: 11px; color: #8a8a8a; border: 1px solid #ddd; border-radius: 8px; padding: 0 6px; margin-inline-start: 6px; vertical-align: middle; font-weight: 400; }
.ustatus.st-text { color: #7a7a7a; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-st { color: #6b7785; font-size: 14px; margin-top: 2px; }

/* ===== الخلفيات المميزة ===== */
.bn { position: relative; }
.bn-sunset { background: linear-gradient(90deg, #ffe0c2, #ffb199 55%, #ff8a8a) !important; }
.bn-ocean { background: linear-gradient(90deg, #d4f1ff, #8fd3fe 55%, #5aa9e6) !important; }
.bn-rose { background: linear-gradient(90deg, #ffe4f0, #ffb3d1 55%, #f78fb3) !important; }
.bn-gold { background: linear-gradient(90deg, #fff6d6, #ffe08a 55%, #f2c14e) !important; }
.bn-night { background: linear-gradient(90deg, #3a3f5c, #23263a 60%, #14151f) !important; }
.bn-night .uname, .bn-night .sh-name { text-shadow: 0 1px 2px #000; }
.bn-night .ustatus { color: #c9cbe0 !important; }
.bn-forest { background: linear-gradient(90deg, #e3f6dc, #a8dda0 55%, #6fbf73) !important; }
.bn-purple { background: linear-gradient(90deg, #efe4ff, #cdb1f7 55%, #a77de8) !important; }
.urow.bn { border-bottom-color: rgba(0,0,0,.08); }
.banner-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.bn-chip { border: 2px solid #ddd; background: #f4f4f4; border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 700; }
.bn-chip.on { border-color: #1b2430; }
.bn-chip.bn-night { color: #fff; }
.bn-chip:disabled { opacity: .4; }
.pf-preview { border: 1px solid #e3e3e3; border-radius: 12px; min-height: 70px !important; }
.pf-preview .utile { width: 52px; height: 52px; font-size: 30px; }

/* ===== رتب الغرفة ===== */
.rank-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #eee; }
.rank-row .rk-name { flex: 1; font-weight: 700; }

/* ===== الكامرة ===== */
.cam-ic { font-size: 22px; cursor: pointer; }
.cam-box { position: absolute; top: 74px; left: 8px; display: flex; flex-direction: column; gap: 8px; z-index: 60; pointer-events: none; }
.cam-win {
  pointer-events: auto; width: 170px; background: #111; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.35);
  border: 2px solid #9b6ad8;
}
.cam-win.self { border-color: #2e9a3a; }
.cam-win { position: relative; }
.cam-wait { position: absolute; left: 0; right: 0; bottom: 0; top: 24px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; text-align: center; padding: 6px; background: rgba(0,0,0,.55); }
/* طلب مشاهدة الكامرة بالتلفون */
.cam-ask { position: fixed; left: 12px; right: 12px; top: 84px; z-index: 3500; background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); border: 2px solid #9b6ad8; animation: sdPop .25s cubic-bezier(.2,.8,.3,1); }
.cam-ask-t { font-weight: 800; font-size: 16px; color: #2b1f3a; text-align: center; margin-bottom: 10px; }
.cam-ask-b { display: flex; gap: 10px; }
.cam-ask-b button { flex: 1; border: 0; border-radius: 10px; padding: 11px; font-size: 16px; font-weight: 800; font-family: inherit; cursor: pointer; }
.cam-ask-yes { background: #2e9a3a; color: #fff; }
.cam-ask-no { background: #f1e9f8; color: #7a2d3a; }
.cam-head { display: flex; align-items: center; gap: 4px; padding: 3px 6px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; cursor: default; touch-action: none; }
.cam-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-x { border: none; background: none; color: #fff; font-size: 14px; padding: 0 4px; }
.cam-win video { display: block; width: 100%; aspect-ratio: 4 / 3; background: #222; object-fit: cover; }
.cam-win.self video { transform: scaleX(-1); }
.desk .cam-box { position: fixed; inset: 0; display: block; }
.desk .cam-win { position: fixed; width: 300px; }
.desk .cam-head { cursor: move; font-size: 13px; padding: 5px 8px; }
.desk .d-mic.active#dCam { background: #d6f5d0; }
.desk .uicons .cam-ic { font-size: 18px; }

/* ===== نافذة الدخول للغرفة (مثل لقانا) ===== */
.sheet-card.rl-card { padding: 0 0 10px; background: #f3f5f8; }
.rl-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: linear-gradient(#fdfdfe, #e4e8ee); border-bottom: 1px solid #c9cfd8; font-size: 14px; font-weight: 700; color: #3b4452; }
.rl-x { width: 26px; height: 24px; border: 1px solid #a33; background: linear-gradient(#e86a6a, #c43c3c); color: #fff; border-radius: 3px; font-size: 13px; line-height: 1; }
.rl-logo { text-align: center; padding: 14px 0 6px; font-size: 40px; font-weight: 800; color: #b765c9; letter-spacing: 2px; background: #fff; }
.rl-logo small { font-size: 22px; color: #3c5f80; margin-inline-start: 4px; }
.rl-room { text-align: center; font-size: 14px; color: #5b6573; padding: 0 0 10px; background: #fff; border-bottom: 1px solid #dde2e8; }
.rl-radios { display: flex; justify-content: space-around; padding: 10px 8px; border-bottom: 1px solid #dde2e8; background: #f8f9fb; }
.rl-radio { display: flex; align-items: center; gap: 6px; font-size: 15px; cursor: pointer; }
.rl-radio input { width: 18px; height: 18px; accent-color: #4a4f57; margin: 0; }
.rl-body { display: flex; gap: 10px; padding: 12px; align-items: stretch; }
.rl-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rl-row { display: flex; align-items: center; gap: 8px; }
.rl-lbl { width: 108px; flex-shrink: 0; font-size: 14px; color: #3b4452; }
.rl-row > input, .rl-name input { flex: 1; min-width: 0; height: 34px; border: 1px solid #b9c2cd; border-radius: 3px; padding: 0 8px; font-size: 15px; background: #fff; }
.rl-row > input { width: 100%; }
.rl-name { flex: 1; display: flex; position: relative; min-width: 0; }
.rl-name input { border-inline-start: 4px solid #3fb6d6; }
.rl-dd { width: 32px; border: 1px solid #b9c2cd; border-inline-start: none; background: #fff; border-radius: 3px; font-size: 14px; }
.rl-ddlist { position: absolute; top: 36px; left: 0; right: 0; background: #fff; border: 1px solid #b9c2cd; border-radius: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.18); z-index: 5; max-height: 200px; overflow-y: auto; }
.rl-ddi { display: flex; align-items: center; gap: 8px; width: 100%; border: none; background: none; padding: 8px 10px; text-align: start; font-size: 15px; }
.rl-ddi:hover { background: #eef4fa; }
.rl-ddn { flex: 1; font-weight: 700; }
.rl-icon { width: 92px; border: 1px solid #c9cfd8; background: #fff; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; }
.rl-tile { font-size: 36px; line-height: 1.1; }
.rl-arrows { display: flex; gap: 14px; }
.rl-arrows button { border: none; background: none; font-size: 26px; font-weight: 800; color: #2c3e57; line-height: 1; padding: 0 4px; }
.rl-status { padding: 0 14px 8px; font-size: 13px; color: #5b6573; }
.rl-status.wait { color: #1e88e5; }
.rl-status.err { color: #c43c3c; font-weight: 700; }
.rl-foot { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-top: 1px solid #dde2e8; background: linear-gradient(#f9fafb, #eceff3); }
.rl-ico { border: 1px solid transparent; background: none; font-size: 20px; border-radius: 4px; padding: 2px 6px; }
.rl-ico.on { border-color: #9cc6e2; background: #dcecf7; }
.rl-ico:disabled { opacity: .35; }
.rl-sp { flex: 1; }
.rl-btn { border: 1px solid #b9c2cd; background: linear-gradient(#fff, #e6eaef); border-radius: 4px; padding: 7px 18px; font-size: 15px; }
.rl-btn.primary { font-weight: 800; border-color: #8a5aa8; background: linear-gradient(#c98be0, #9b5bb8); color: #fff; }
.rl-btn:disabled { opacity: .6; }
.rl-reg { text-align: center; padding-top: 6px; font-size: 14px; }
.rl-reg a { color: #8a4fb0; }
.desk .sheet-card.rl-card { width: 460px; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.35); }

/* ===== رسالة الترحيب ===== */
.welcome { text-align: center; padding: 14px 16px 12px; margin: 4px 6px; color: #2b2b2b; border-bottom: 1px dashed #d9cdea; }
.welcome .wl-h { font-weight: 800; font-size: 16px; margin-bottom: 6px; color: #6b3f99; }
.welcome .wl-t { white-space: pre-line; font-size: 15px; line-height: 1.6; }
textarea { font: inherit; padding: 9px 10px; border: 1px solid #cfd8de; border-radius: 10px; resize: vertical; }

/* ===== ألوان غرفة لقانا (بنفسجي) بالكمبيوتر ===== */
.desk #room { border-color: #9a6bb8; }
.desk .room-bar { background: linear-gradient(#f6eefc, #dcc8ee); border-bottom-color: #c3a6dc; }
.desk .room-bar .burger i { background: #6b3f99; }
.desk .d-me, .desk .ptabs, .desk .d-micbar, .desk .composer { background: linear-gradient(#f4ecfb, #d9c4ec); border-color: #c3a6dc; }
.desk #usersCol, .desk .speak-strip, .desk .d-micbar { border-right-color: #9a6bb8; }
.desk .d-mic { border-right-color: #c3a6dc; }
.desk .ptab { background: #e7d8f4; border-color: #c3a6dc; }
.desk .ptab.on { background: #fff; }
.desk .d-mode { color: #6b3f99; }
.desk .composer input { border-color: #c3a6dc; }
.desk .msg .mhead { background: #f2f0f6; }
.desk .sysline.join { background: #e3f3f6; border-color: #a9d6df; }
.desk .urow:hover { background: #f8f3fd; }

/* ===== قائمة ☰ ===== */
.sheet-sep, .more-sep { height: 1px; background: #e3e3e3; margin: 4px 0; }
.more-sep { height: 8px; background: #f0f2f4; margin: 0; }
.sheet-item:disabled { opacity: .45; }
.info-sheet { text-align: center; }
.info-text { white-space: pre-line; line-height: 1.8; font-size: 16px; color: #333; }
.contact-box { background: #f4f8fb; border-radius: 10px; padding: 10px; font-size: 15px; }
.contact-box a { color: #1e88e5; font-weight: 700; }
.about-logo { font-size: 46px; font-weight: 800; color: #b765c9; }
.about-logo small { font-size: 24px; color: #3c5f80; }
.desk .sheet-card { max-width: 420px; }
.desk .sheet-card.rl-card { max-width: none; }
/* القائمة المنسدلة تحت ☰ (كمبيوتر) */
.desk .sheet.anchored { background: transparent; display: block; }
.desk .sheet.anchored.hidden { display: none; }
.desk .sheet.anchored .sheet-card { position: fixed; width: 250px; border-radius: 4px; padding: 4px 0; box-shadow: 0 6px 18px rgba(0,0,0,.22); border: 1px solid #c9cfd8; animation: none; }
.desk .sheet.anchored .sheet-item { padding: 8px 16px; font-size: 15px; }
.desk .sheet.anchored .sheet-head { padding: 6px 14px 8px; }
.desk .sheet.anchored .sheet-head .sh-av { width: 34px; height: 34px; font-size: 20px; }
.desk .sheet.anchored .sheet-head .sh-name { font-size: 15px; }

/* ===== لوحة الوجوه بتبويبات (مثل لقانا) ===== */
.emoji-panel { display: flex !important; flex-direction: column; padding: 0 !important; overflow: hidden; max-height: none !important; gap: 0 !important; }
.emoji-panel.hidden { display: none !important; }
.em-tabs { display: flex; gap: 4px; padding: 6px 8px; background: linear-gradient(#8a2a22, #6e1f19); }
.em-tab { border: none !important; background: none; font-size: 26px !important; padding: 2px 8px !important; border-radius: 8px !important; opacity: .45; filter: saturate(.6); }
.em-tab.on { opacity: 1; filter: none; background: rgba(255,255,255,.12) !important; }
.em-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; max-height: 260px; overflow-y: auto; background: #fff; }
.em-grid button { border: none; background: none; font-size: 28px; padding: 4px; border-radius: 8px; }
.em-grid button:hover { background: #f4ecfb; }
.em-empty { grid-column: 1 / -1; text-align: center; color: #8a8a8a; padding: 30px 0; font-size: 14px; }
.desk .emoji-panel { width: 400px; }
.desk .em-grid button { font-size: 30px; }

/* ===== الصور الشخصية وشريط الرتبة ===== */
.utile.has-photo, .mav.has-photo, .sh-av.has-photo { padding: 0; overflow: visible; position: relative; background: #ddd; }
.utile img, .mav img, .sh-av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.mini-crown { position: absolute; bottom: -6px; left: -6px; width: 26px; height: 22px; background: #fff; border-radius: 6px; padding: 1px; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.mini-crown .crown { width: 100%; height: 100%; }
.rk-ribbon { width: 26px; flex-shrink: 0; align-self: stretch; display: flex; align-items: flex-start; margin-top: -3px; }
.rk-ribbon .ribbon { width: 26px; height: 34px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.name-crown { display: inline-flex; width: 16px; height: 13px; vertical-align: middle; }
.name-crown .crown { width: 16px; height: 13px; }
.typing-ic { animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.desk .utile.has-photo { border-radius: 4px; width: 38px; height: 38px; }
.desk .urow:has(.utile.has-photo) { min-height: 48px; }

/* ===== أشرطة بنفسجية غامقة (مثل لقانا) ===== */
.desk .d-me, .desk .ptabs { background: linear-gradient(#6a3270, #45204a) !important; border-color: #3a1a3e !important; color: #fff; }
.desk .d-me { text-align: left; }
.desk .ptab { background: rgba(255,255,255,.18) !important; color: #fff !important; border-color: rgba(255,255,255,.25) !important; }
.desk .ptab.on { background: #f4ecfb !important; color: #2b1a30 !important; }
.desk .d-mode { font-size: 16px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }

/* وجوه موحّدة بكل الأجهزة (مثل ويفو ولقانا) */
button, input, textarea, select { font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, 'Noto Color Emoji', sans-serif; }
.em-grid button, .em-tab, .utile, .mav, .sh-av, .avatar-pick button, .rl-tile, .pf-av, .c-btn.emoji, .ic, .st, .cam-ic, .si, .uicons span {
  font-family: 'Noto Color Emoji', 'Tajawal', sans-serif;
}

/* الوجوه المتحركة بالرسائل */
.aemo { height: 1.3em; width: 1.3em; vertical-align: -0.28em; margin: 0 1px; object-fit: contain; }
.aemo.big { width: 72px; height: 72px; vertical-align: middle; margin: 2px 0; }
.solo-emoji { font-size: 56px !important; line-height: 1.2; }

/* ===== الرسائل المحفوظة ❝▾ ===== */
.c-btn.quick { height: 44px; min-width: 50px; border: 1px solid #b9c2cd !important; background: #f4f7fa !important; border-radius: 6px; display: flex !important; align-items: center; justify-content: center; gap: 2px; padding: 0 6px; }
.c-btn.quick b { font-size: 34px; line-height: 1; color: #1f8fb0; font-family: Georgia, serif; margin-top: 12px; }
.c-btn.quick i { font-style: normal; font-size: 11px; color: #1f8fb0; }
.quick-panel { position: absolute; bottom: calc(100% + 6px); left: 8px; right: 8px; max-width: 420px; background: #fff; border: 1px solid #c9cfd8; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 21; padding: 4px 0; max-height: 320px; overflow-y: auto; }
.quick-item { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: none; padding: 8px 12px; font-size: 15px; text-align: start; }
.quick-item:hover { background: #eef4fa; }
.quick-item.edit { border-top: 1px solid #e3e6ea; color: #6b3f99; font-weight: 700; }
.qi-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-key { font-size: 11px; color: #7a8594; background: #eef2f6; border: 1px solid #d6dde4; border-radius: 4px; padding: 1px 5px; direction: ltr; flex-shrink: 0; font-family: Tahoma, sans-serif; }
.quick-empty { padding: 12px; text-align: center; color: #8a8a8a; font-size: 14px; }
.sheet-card.quick-card { padding: 0 0 8px; background: #e9f1f8; }
.quick-body { display: flex; flex-direction: column; gap: 6px; padding: 12px; max-height: 60vh; overflow-y: auto; }
.quick-row { display: flex; align-items: center; gap: 8px; }
.quick-row input { flex: 1; min-width: 0; height: 36px; border: 1px solid #b9c2cd; border-radius: 3px; padding: 0 8px; font-size: 15px; background: #fff; text-align: center; }
.quick-hint { font-size: 12px; color: #5b6573; padding: 0 12px 8px; direction: rtl; }
.desk .sheet-card.quick-card { width: 480px; max-width: none; }
.desk .quick-panel { left: 70px; right: auto; width: 400px; }
.desk .composer #quickBtn { order: 1; }
.desk .composer #emojiBtn { order: 0; }

/* ===== شبكة الأيقونات بنافذة الدخول (مثل لقانا) ===== */
.rl-tile { cursor: pointer; border-radius: 8px; padding: 2px 6px; }
.rl-tile:hover { background: #eef4fa; }
.rl-avgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 0 12px 10px; padding: 8px; background: #fff; border: 1px solid #c9cfd8; border-radius: 4px; max-height: 210px; overflow-y: auto; }
.rl-avgrid.hidden { display: none; }
.rl-avgrid button { border: 2px solid transparent; background: none; font-size: 30px; padding: 6px 0; border-radius: 8px; font-family: 'Noto Color Emoji', 'Tajawal', sans-serif; }
.rl-avgrid button:hover { background: #f4ecfb; }
.rl-avgrid button.on { border-color: #9b5bb8; background: #f4ecfb; }
.avatar-pick { max-height: 190px; overflow-y: auto; }
.quick-send { width: 34px; height: 34px; flex-shrink: 0; border: 1px solid #9b5bb8; background: linear-gradient(#c98be0, #9b5bb8); color: #fff; border-radius: 4px; font-size: 15px; transform: scaleX(-1); }
.desk .quick-send { transform: none; }
.quick-row input:focus { outline: 2px solid #64b5f6; }

/* الأيقونات المرسومة */
.is-av { padding: 0 !important; }
.is-av .av-svg { width: 100%; height: 100%; display: block; }
.utile.is-av, .mav.is-av, .sh-av.is-av { background: transparent; }
.utile.is-av .av-svg { width: 88%; height: 88%; margin: auto; }
.rl-tile.is-av { width: 56px; height: 52px; }
.rl-avgrid button.is-av { height: 54px; padding: 4px !important; }
.avatar-pick button.is-av { padding: 3px !important; }
.pf-av.is-av { padding: 6px !important; }
.dd-av { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }

/* ===== شكل غرفة لقانا (كمبيوتر) ===== */
.desk #room { border: 1px solid #7b3f8f; }
.desk .room-bar { background: linear-gradient(#8a3f96, #5b2466) !important; border-bottom: 1px solid #3f1747 !important; min-height: 40px; }
.desk .room-bar .burger i { background: #fff !important; }
.desk .rc-name { color: #fff; }
.desk .rc-sub { color: #ecd6f2; }
.desk .rc-spk { filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.desk .d-me, .desk .ptabs { background: linear-gradient(#ffffff, #e9dcf2 55%, #dccbea) !important; border-color: #c7b0d8 !important; color: #2b1a30 !important; }
.desk .d-me { font-weight: 700; font-size: 15px; padding: 7px 12px; border-bottom: 1px solid #c7b0d8; }
.desk .ptab { background: linear-gradient(#fbf8fd, #e6d7f0) !important; color: #2b1a30 !important; border-color: #c7b0d8 !important; }
.desk .ptab.on { background: #fff !important; color: #2b1a30 !important; }
.desk #usersView { background: #fff; }
.desk .urow { min-height: 40px; padding: 2px 6px; gap: 8px; border-bottom: 1px solid #ece6f0; background: #fff; }
.desk .urow:hover { background: #f7f1fb; }
.desk .urow.sel, .desk .urow.sel:hover { background: #d9c3ea; }
.desk .utile, .desk .utile.is-av { width: 32px; height: 32px; background: transparent; border-radius: 4px; }
.desk .uname { flex: 1; min-width: 0; }
.desk .uicons { display: flex; flex-direction: row; gap: 0; align-items: center; }
.desk .uicons .slot { width: 26px; height: 26px; display: grid; place-items: center; position: relative; }
.desk .uicons .slot .ic, .desk .uicons .slot .cam-ic { font-size: 19px; }
.desk .uicons .slot .st { font-size: 15px; }
.desk .uicons .slot .qn { position: absolute; bottom: -3px; right: -3px; font-size: 11px; font-weight: 800; min-width: 14px; text-align: center; background: #7b3f8f; color: #fff; border-radius: 8px; padding: 0 4px; line-height: 14px; }
.desk .rk-ribbon { width: 26px; flex-shrink: 0; }
.mav-s img { width: 100%; height: 100%; object-fit: cover; display: block; }
.desk .speak-strip { background: #fff; }
.desk .d-micbar { background: linear-gradient(#ffffff, #e9dcf2 55%, #dccbea) !important; border-top: 1px solid #c7b0d8; align-items: stretch; }
.desk .d-mic { border-right: 1px solid #c7b0d8 !important; font-weight: 700; color: #2b1a30; }
.desk .d-mode { color: #2b1a30 !important; font-size: 18px; font-weight: 800; }
.desk .d-mic.cam-only { order: 9; border-right: none !important; border-left: 1px solid #c7b0d8 !important; padding: 0 14px; }
.desk .d-mic.cam-only .ico { display: grid; place-items: center; }
.desk .d-mic.cam-only.active { background: #f9d7e9; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.desk .composer { background: linear-gradient(#ffffff, #ece1f4) !important; border-top: 1px solid #c7b0d8; }
.desk .composer input { border-color: #c7b0d8; border-radius: 3px; }
/* الرسائل */
.desk .messages { background: #fff; }
.desk .msg { margin: 3px 4px; border-left: 3px solid var(--c, #999); }
.desk .msg .mhead { background: linear-gradient(#f4f7fa, #dfe7ee) !important; border-bottom: 1px solid #ccd7e0; padding: 2px 8px; gap: 6px; }
.desk .msg .mav-s { display: inline-grid !important; width: 22px; height: 22px; font-size: 15px; place-items: center; border-radius: 3px; overflow: hidden; }
.desk .msg .mav-s svg { width: 22px; height: 22px; }
.desk .msg .mtime { color: #555; }
.desk .msg .mtext { padding: 3px 10px 6px 36px; }
.mav-s { display: none; }
.desk .sysline { padding: 4px 10px 4px 28px; }
.desk .sysline.join { background: linear-gradient(#e6fbf4, #c4efe0) !important; border: 1px solid #8fd6bd !important; color: #12352a; }
.desk .sysline.leave { background: linear-gradient(#fdf0f3, #f6d3dc) !important; border: 1px solid #e4a9b9 !important; color: #3a1620; }
.desk .sysline b { font-weight: 800; }
.desk .urow.sel.bn { outline: 2px solid #9b6bc2; outline-offset: -2px; }
.desk .rc-spk { display: none !important; }
.desk #dRoomMute.off { background: rgba(110, 60, 140, .22) !important; box-shadow: inset 0 2px 4px rgba(0,0,0,.18); }
.rc-sub:empty { display: none; }

/* ===== نافذة "أنا" (مثل لقانا) ===== */
.sheet-card.me-card { width: 400px !important; max-width: 94vw !important; max-height: 94vh; display: flex; flex-direction: column; direction: rtl; }
.me-card .rl-head { background: linear-gradient(#8a3f96, #5b2466); color: #fff; border-bottom-color: #3f1747; }
.me-card .rl-x { color: #fff; background: #3a1a3e; border-radius: 3px; }
.me-body { overflow-y: auto; padding: 8px 16px 10px; background: #fff; }
.me-name { font-size: 20px; font-weight: 700; color: #333; direction: ltr; text-align: left; margin-bottom: 8px; }
.me-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 6px; direction: ltr; }
.me-av { width: 88px; height: 88px; border: 1px solid #9aa4b0; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; background: #fff; }
.me-av-ico { width: 48px; height: 48px; display: grid; place-items: center; font-size: 40px; overflow: hidden; border-radius: 4px; }
.me-av-ico svg { width: 48px; height: 48px; }
.me-av-ico img { width: 100%; height: 100%; object-fit: cover; }
.me-arrows { display: flex; gap: 18px; }
.me-arrows button { border: none; background: none; font-size: 18px; font-weight: 800; color: #1b2430; cursor: pointer; padding: 0 2px; }
.me-status { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; direction: rtl; }
.me-radio, .me-check { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.me-radio input { width: 20px; height: 20px; accent-color: #7b3f8f; margin: 0; }
.me-check { padding: 3px 0; direction: rtl; }
.me-check input { width: 18px; height: 18px; accent-color: #7b3f8f; margin: 0; }
.me-slider { display: flex; align-items: center; gap: 10px; margin: 6px 0; direction: ltr; }
.me-sico { font-size: 20px; width: 28px; text-align: center; }
.me-slider input, .me-boost input { flex: 1; accent-color: #1e88e5; }
.me-dev { display: flex; align-items: center; gap: 8px; margin: 8px 0; direction: rtl; }
.me-dlbl { width: 92px; font-size: 13px; color: #6b7785; flex-shrink: 0; }
.me-dico { font-size: 20px; }
.me-dev select { flex: 1; min-width: 0; height: 30px; border: 1px solid #c3ccd2; border-radius: 3px; background: #fff; font-size: 13px; direction: ltr; }
.me-test { border: 1px solid #c3ccd2; background: #fff; border-radius: 14px; padding: 2px 8px; font-size: 13px; color: #c62828; font-weight: 800; cursor: pointer; }
.me-test.on { background: #ffd9d9; }
.me-meter { height: 5px; background: #eef1f4; border-radius: 3px; overflow: hidden; margin: -2px 0 6px 100px; }
.me-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #43a047, #f9a825, #e53935); transition: width .08s; }
.me-font { border: 1px solid #e3e7eb; border-radius: 4px; padding: 8px 10px; margin-top: 6px; }
.me-ftools { display: flex; align-items: center; gap: 8px; direction: ltr; }
.me-fb, .me-fa, .me-fcol { border: 1px solid #c3ccd2; background: #f7f9fb; border-radius: 4px; height: 30px; min-width: 30px; font-weight: 800; color: #3b8a9c; cursor: pointer; }
.me-fb { font-size: 17px; color: #7b8794; }
.me-fb.on { background: #d9c3ea; color: #3a1a3e; }
.me-fcol { width: 30px; position: relative; }
.me-fa.big { font-size: 17px; } .me-fa { font-size: 15px; } .me-fa.small { font-size: 12px; }
.me-sample { text-align: center; padding: 8px 0 2px; min-height: 44px; }
.me-foot { justify-content: center; gap: 40px; }
.me-arrows, .me-card input[type=range] { direction: ltr; }
.me-dev select { color: #1b2430; }

/* --- نافذة أنا: نفس لقانا بالضبط --- */
.sheet-card.me-card { direction: ltr; width: 370px !important; border: 7px solid #c6d6e6 !important; outline: 1px solid #7f93a8; border-radius: 2px !important; background: #fff; font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif; }
.me-card .rl-head { background: linear-gradient(#e9eef4, #cfd9e4) !important; color: #222 !important; border-bottom: 1px solid #a9b7c6 !important; padding: 3px 4px 3px 6px; min-height: 36px; }
.me-hico { display: grid; place-items: center; }
.me-x { width: 26px; height: 24px; border: 1px solid #111; background: linear-gradient(#4a4a4a, #111); color: #fff; font-size: 14px; font-weight: 800; border-radius: 2px; cursor: pointer; line-height: 1; }
.me-x:hover { background: #c62828; }
.me-body { padding: 4px 18px 6px; direction: ltr; }
.me-name { font-family: 'Segoe UI', Tahoma, Arial, sans-serif; font-size: 22px; font-weight: 400; color: #444; margin: 2px 0 10px; }
.me-top { gap: 16px; margin-bottom: 4px; }
.me-av { width: 80px; height: 78px; border: 1px solid #8a8f96; box-shadow: inset 0 0 0 2px #fff, 1px 1px 2px rgba(0,0,0,.15); }
.me-av-ico { width: 44px; height: 44px; font-size: 36px; }
.me-arrows { gap: 22px; margin-top: 2px; }
.me-status { direction: ltr; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 4px 6px; padding-top: 2px; }
.me-radio { direction: ltr; gap: 10px; font-size: 15px; color: #333; }
.me-radio span { direction: rtl; }
.me-radio input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #8f9aa6; background: radial-gradient(circle at 40% 35%, #ffffff, #dde4ea 70%, #c3ccd5); box-shadow: inset 0 1px 2px rgba(0,0,0,.12); position: relative; cursor: pointer; flex-shrink: 0; }
.me-radio input:checked::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #222; }
.me-check { direction: ltr; gap: 6px; font-size: 15px; color: #222; padding: 2px 0; }
.me-check span { direction: rtl; }
.me-tamra-btn, .me-tamra-del, .me-tamra-play { font: inherit; font-size: 13px; border: 1px solid #a6b2bc; background: #f3f6f9; color: #223; border-radius: 7px; padding: 5px 12px; cursor: pointer; }
.me-tamra-btn:hover, .me-tamra-del:hover, .me-tamra-play:hover { background: #e6edf3; }
.me-tamra-btn { background: #7b3f8f; color: #fff; border-color: #7b3f8f; font-weight: 600; }
.me-tamra-btn:hover { background: #6a3379; }
.me-tamra-btn:disabled { opacity: .6; cursor: default; }
.me-tamra-del { color: #b02a2a; border-color: #d9b0b0; }
.me-tamra-play { width: 34px; padding: 5px 0; text-align: center; }
.me-cb { appearance: none; -webkit-appearance: none; width: 18px !important; height: 18px !important; border: 1px solid #555; background: #fff; position: relative; cursor: pointer; flex-shrink: 0; border-radius: 0; }
.me-cb:checked::after { content: ''; position: absolute; left: 5px; top: 0; width: 5px; height: 11px; border: solid #222; border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.me-slider { margin: 10px 0 10px 26px; gap: 8px; }
.me-sico { width: 30px; display: grid; place-items: center; }
.me-card input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 26px; cursor: pointer; flex: 1; }
.me-card input[type=range]::-webkit-slider-runnable-track { height: 3px; background: #dfe7ee; border-bottom: 1px solid #c4d0dc; }
.me-card input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 26px; margin-top: -12px; background: linear-gradient(90deg, #1d8fd8, #0b6fb3); border: 1px solid #0a5f99; }
.me-card input[type=range]::-moz-range-track { height: 3px; background: #dfe7ee; }
.me-card input[type=range]::-moz-range-thumb { width: 12px; height: 26px; border-radius: 0; background: #1386cf; border: 1px solid #0a5f99; }
.me-dev { direction: ltr; gap: 10px; margin: 10px 0; }
.me-dlbl { width: 80px; font-size: 13px; color: #8a929b; direction: rtl; text-align: left; }
.me-dico { display: grid; place-items: center; }
.me-dev select { border: none !important; background: transparent !important; font-size: 14px; color: #333; height: 30px; font-family: 'Segoe UI', Tahoma, Arial, sans-serif; cursor: pointer; }
.me-test { border: none !important; background: none !important; font-size: 15px; padding: 0 4px; color: #333; }
.me-test::first-letter { color: inherit; }
.me-test.on { color: #c62828; }
.me-meter { margin: -4px 0 6px 130px; height: 4px; }
.me-font { border: none; border-top: 1px solid #eef1f4; margin: 8px -6px 0; padding: 10px 26px 6px; }
.me-ftools { gap: 14px; }
.me-fb { width: 30px; height: 30px; background: #fff; border: 1px solid #d6dbe0; color: #b9c0c8; font: 900 22px/1 Georgia, 'Times New Roman', serif; -webkit-text-stroke: 1px #8f9aa6; padding: 0; }
.me-fb.on { background: #fff; color: #555; -webkit-text-stroke: 0; border-color: #8f9aa6; }
.me-fcol { width: 28px; height: 28px; border: 2px solid #d0d5da; box-shadow: inset 0 0 0 3px #fff; border-radius: 1px; }
.me-fa { border: none; background: none; height: 30px; min-width: 32px; font: 900 26px/1 'Arial Black', Arial, sans-serif; color: #7fd3de; -webkit-text-stroke: 1.2px #2f8ea3; font-style: italic; padding: 0; }
.me-fa.big { font-size: 26px; } .me-fa { font-size: 24px; } .me-fa.small { font-size: 20px; }
.me-sample { padding: 12px 0 6px; min-height: 50px; }
.me-foot { background: #fff !important; border-top: 1px solid #e3e7eb !important; padding: 0 !important; display: flex; gap: 0 !important; }
.me-fbtn { flex: 1; border: none; background: none; padding: 14px 0 12px; font-size: 14px; color: #8a929b; cursor: pointer; font-family: inherit; }
.me-fbtn:hover { background: #eef3f8; color: #333; }
.me-fbtn.primary { color: #6b7380; }
.me-card input.me-cb { width: 18px !important; height: 18px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; border: 1px solid #555 !important; border-radius: 0 !important; box-shadow: none !important; background: #fff !important; }
.me-card input[type=range] { border: none !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; background: transparent !important; outline: none; }
.me-card .me-radio input { padding: 0 !important; margin: 0 !important; }

/* ===== شباك الكامرة مثل لقانا (كمبيوتر) ===== */
.desk .cam-win { width: 330px; background: #fff; border-radius: 0; border: 6px solid #c6d6e6 !important; outline: 1px solid #7f93a8; box-shadow: 0 6px 22px rgba(0,0,0,.28); overflow: visible; direction: ltr; }
.desk .cam-head { background: linear-gradient(#e9eef4, #cfd9e4); color: #333; border-bottom: 1px solid #a9b7c6; padding: 3px 4px 3px 6px; gap: 6px; font-size: 14px; }
.desk .cam-title { direction: rtl; text-align: left; font-weight: 500; }
.cam-hico { display: grid; place-items: center; }
.desk .cam-x { width: 24px; height: 22px; background: linear-gradient(#8b2a2a, #5a1414); border: 1px solid #3b0b0b; color: #fff; font-size: 12px; font-weight: 800; border-radius: 2px; padding: 0; }
.desk .cam-x:hover { background: #d32f2f; }
.desk .cam-win video { background: #1b1b1b; }
.desk .cam-win.lg-self { width: 560px; }
.lgc-bar { display: flex; align-items: center; gap: 8px; padding: 4px 8px; background: linear-gradient(#f7f9fb, #e5ebf1); border-bottom: 1px solid #c4d0dc; }
.lgc-ico { display: grid; place-items: center; }
.lgc-dev { flex: 0 1 230px; min-width: 0; border: none; background: transparent; font: 15px 'Segoe UI', Tahoma, Arial, sans-serif; color: #222; height: 30px; cursor: pointer; }
.lgc-pause { width: 30px; height: 28px; border: 1px solid transparent; background: none; display: grid; place-items: center; cursor: pointer; border-radius: 3px; }
.lgc-pause:hover { border-color: #b9c6d3; background: #fff; }
.lgc-q { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffd27a, #f29a1a); border: 1px solid #c77a0a; color: #7a3b00; font-weight: 800; display: grid; place-items: center; font-size: 16px; margin-left: 14px; }
.lgc-ask { flex: 1; min-width: 0; border: none; background: transparent; font-size: 14px; color: #333; height: 30px; direction: rtl; cursor: pointer; }
.lgc-body { display: flex; background: #fff; min-height: 240px; }
.lgc-vbox { position: relative; width: 320px; flex-shrink: 0; }
.lgc-vbox video { width: 100%; aspect-ratio: 4 / 3; display: block; }
.lgc-paused { display: none; position: absolute; inset: 0; background: rgba(0,0,0,.55); color: #fff; place-items: center; font-weight: 700; font-size: 16px; }
.cam-win.paused .lgc-paused { display: grid; }
.lgc-side { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; direction: rtl; overflow-y: auto; max-height: 240px; }
.lgc-req { border: 1px solid #c9d4de; background: #f6f9fc; border-radius: 3px; padding: 6px 8px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lgc-req-t { width: 100%; font-weight: 700; color: #1b2430; }
.lgc-yes, .lgc-no { border: 1px solid #b9c2cd; background: linear-gradient(#fff, #e6eaef); border-radius: 3px; padding: 3px 14px; font-size: 13px; cursor: pointer; }
.lgc-yes { border-color: #5c9d4a; background: linear-gradient(#e8f7e2, #c5e8b8); }

/* ===== فئات الغرف ===== */
.room-ico.silver { background: linear-gradient(135deg, #e9edf1, #9aa5b1 60%, #cfd6dd); }
.room-ico.gold { background: linear-gradient(135deg, #ffe58a, #f2b705 55%, #c98a00); }
.room-ico.special { background: linear-gradient(135deg, #f7a8ff, #9c27b0 55%, #4a148c); box-shadow: 0 0 0 2px #f3d9ff, 0 0 8px rgba(156,39,176,.6); }
.desk #vRooms .room-ico.silver { background: linear-gradient(135deg, #e9edf1, #9aa5b1 60%, #cfd6dd); }
.desk #vRooms .room-ico.gold { background: linear-gradient(135deg, #ffe58a, #f2b705 55%, #c98a00); }
.desk #vRooms .room-ico.special { background: linear-gradient(135deg, #f7a8ff, #9c27b0 55%, #4a148c); }
.tier-tag { display: inline-block; margin-inline-start: 8px; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 10px; vertical-align: middle; color: #fff; }
.tier-tag.silver { background: linear-gradient(#b8c1ca, #7d8893); }
.tier-tag.gold { background: linear-gradient(#f9cf3a, #d39b00); color: #4a3200; }
.tier-tag.special { background: linear-gradient(#c45bd6, #7b1fa2); }
.list-row.tier-special { background: linear-gradient(90deg, rgba(156,39,176,.10), transparent 60%); }
.list-row.tier-gold { background: linear-gradient(90deg, rgba(242,183,5,.12), transparent 60%); }
.list-row.tier-silver { background: linear-gradient(90deg, rgba(125,136,147,.10), transparent 60%); }
.r-count { width: auto; min-width: 28px; white-space: nowrap; direction: ltr; }
.desk #vRooms .r-count { margin-right: 6px; }

/* أيقونة الغرفة فقاعة (مثل لقانا) */
.room-ico.bubble, .desk #vRooms .room-ico.bubble { background: none !important; box-shadow: none !important; border-radius: 0; }
.room-ico.bubble::after { display: none; }
.room-ico.bubble svg { width: 54px; height: 54px; }
.desk #vRooms .room-ico.bubble { width: 40px; height: 40px; }
.desk #vRooms .room-ico.bubble svg { width: 40px; height: 40px; }
.desk #vRooms .list-row { min-height: 50px; }
.desk #vRooms .lr-title { font-size: 16px; }
.list-row.tier-special, .list-row.tier-gold, .list-row.tier-silver { background: none; }

/* ===== شريط أدوات الماستر جنب "أنا" ===== */
.desk .d-mebar { display: flex !important; align-items: center; gap: 6px; padding: 4px 8px !important; }
.desk .d-me-btn { border: none; background: none; font: inherit; font-weight: 700; font-size: 15px; color: inherit; cursor: pointer; padding: 4px 6px; white-space: nowrap; }
.desk .d-tools { display: flex; gap: 4px; margin-left: auto; flex-wrap: nowrap; overflow: hidden; }
.d-tool { border: none; background: none; padding: 0; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.3)); transition: transform .1s; }
.d-tool:hover { transform: scale(1.1); }
.d-tool.t-lock.on svg circle:first-child { fill: #f2a516; }

/* ===== لوحة تحكم الغرفة ===== */
.sheet-card.cp-card { width: 900px !important; max-width: 96vw !important; height: 600px; max-height: 94vh; padding: 0 !important; border-radius: 3px !important; overflow: hidden; display: flex; flex-direction: column; direction: ltr; background: #2f8fb5; border: 1px solid #1d5d78; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.cp-head { display: flex; align-items: center; gap: 8px; padding: 4px 8px; background: linear-gradient(#3b4a55, #1c252c); color: #cfe3ee; min-height: 32px; }
.cp-title { flex: 1; font-size: 14px; direction: rtl; text-align: left; }
.cp-x { width: 26px; height: 22px; border: none; background: none; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
.cp-x:hover { background: #c62828; }
.cp-band { background: linear-gradient(#6fc0dd, #3a9cc4); color: #0c3346; font-weight: 800; font-size: 13px; padding: 4px 14px; text-align: right; border-bottom: 1px solid #2a7fa3; min-height: 26px; }
.cp-wrap { flex: 1; display: flex; min-height: 0; padding: 8px; gap: 8px; background: linear-gradient(#55b3d6, #2f8fb5); }
.cp-side { width: 220px; flex-shrink: 0; background: linear-gradient(90deg, #2f9cc4, #4fb6da); border: 1px solid #1f6d8e; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); display: flex; flex-direction: column; padding: 6px 0; overflow-y: auto; }
.cp-item { display: flex; align-items: center; gap: 10px; border: none; background: none; padding: 8px 12px; cursor: pointer; color: #0b2c3b; font: 600 15px 'Tajawal', Tahoma, sans-serif; direction: ltr; text-align: right; border-top: 2px solid transparent; border-bottom: 2px solid transparent; }
.cp-item span { flex: 1; direction: rtl; text-align: left; }
.cp-item:hover:not(.off) { background: rgba(255,255,255,.18); }
.cp-item.on { background: linear-gradient(#3fa6cd, #2a8db6); border-color: rgba(255,255,255,.75); color: #fff; }
.cp-item.off { opacity: .45; cursor: default; }
.cp-item svg { flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.cp-main { flex: 1; min-width: 0; background: #fff; border: 1px solid #1f6d8e; display: flex; flex-direction: column; direction: rtl; overflow: hidden; }
.cp-h { margin: 14px 18px 6px; font-size: 16px; color: #1b2430; }
.cp-info { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; padding: 0 30px 6px; font-size: 15px; }
.cp-k { color: #333; }
.cp-v { color: #1b2430; font-weight: 600; }
.cp-tholder { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cp-tbox { flex: 1; min-height: 0; overflow: auto; }
.cp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cp-table th { position: sticky; top: 0; background: linear-gradient(#e8f6fb, #bfe2ef); border-bottom: 1px solid #7fbcd3; border-left: 1px solid #9fcfe0; padding: 6px 10px; text-align: right; font-weight: 600; color: #234; z-index: 1; }
.cp-table td { padding: 5px 10px; border-bottom: 1px solid #eef3f6; vertical-align: middle; }
.cp-table td.c { text-align: center; }
.cp-table tbody tr { cursor: pointer; }
.cp-table tbody tr:hover { background: #f1f9fc; }
.cp-table tbody tr.sel { background: #cfe9f5; }
.cp-empty { text-align: center !important; color: #8a97a3; padding: 30px !important; cursor: default; }
.cp-mname { display: inline-flex; align-items: center; gap: 6px; }
.cp-mname b { font-weight: 700; }
.cp-perms { display: flex; flex-wrap: wrap; gap: 3px; direction: ltr; }
.pi { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4fa8ec, #1565c0); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; box-shadow: 0 1px 1px rgba(0,0,0,.25); }
.pi.off { background: #d9dee3; color: #fff; box-shadow: none; opacity: .6; }
.cp-lock { display: inline-grid; }
.cp-foot { display: flex; align-items: center; gap: 14px; padding: 8px 12px; background: linear-gradient(#f4fbfe, #d6edf6); border-top: 1px solid #9fcfe0; flex-wrap: wrap; }
.cp-btn { display: inline-flex; align-items: center; gap: 6px; border: none; background: none; cursor: pointer; font: 600 14px 'Tajawal', Tahoma, sans-serif; color: #345; padding: 3px 6px; border-radius: 4px; }
.cp-btn:hover { background: rgba(255,255,255,.8); }
.cp-btn.save { margin-right: auto; }
.cp-filt { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 13px; }
.cp-chk { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.cp-chk em { font-style: normal; color: #4a7fa3; }
.cp-total { color: #345; font-weight: 600; }
.cp-search { display: inline-flex; align-items: center; gap: 4px; }
.cp-search input { width: 120px; height: 28px; border: 1px solid #b8d3df; border-radius: 3px; padding: 0 6px; font-size: 13px; }
.cp-form { padding: 14px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; overflow-y: auto; }
.cp-field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.cp-field.wide { grid-column: 1 / -1; }
.cp-field input, .cp-field select, .cp-field textarea { border: 1px solid #b8c6d0; border-radius: 3px; padding: 5px 8px; font: 14px 'Tajawal', Tahoma, sans-serif; }

/* تبويبات اعدادات الغرفة */
.st-tabs { display: flex; gap: 2px; padding: 6px 6px 0; background: linear-gradient(#d9f0f8, #9ed2e6); border-bottom: 1px solid #6fb2cc; overflow-x: auto; flex-shrink: 0; }
.st-tab { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #8cc3d8; border-bottom: none; background: linear-gradient(#f6fcfe, #cfe9f3); padding: 4px 10px; border-radius: 3px 3px 0 0; cursor: pointer; font: 600 13px 'Tajawal', Tahoma, sans-serif; color: #234; white-space: nowrap; }
.st-tab.on { background: #fff; position: relative; top: 1px; }
.st-title { background: linear-gradient(#e2f3f9, #b6dfee); padding: 4px 14px; font-weight: 800; font-size: 14px; color: #123; border-bottom: 1px solid #8cc3d8; flex-shrink: 0; }
.st-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; gap: 20px; padding: 14px 18px; }
.st-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.st-col h4 { margin: 0 0 6px; font-size: 15px; color: #1b2430; }
.st-col + .st-col { border-right: 1px solid #dbe5ea; padding-right: 18px; }
.st-body .me-radio { font-size: 14px; gap: 8px; direction: rtl; }
.st-body .me-radio input { width: 18px; height: 18px; }
.st-body .me-check { direction: rtl; font-size: 14px; }
.st-sub { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.st-bottom { margin-top: 30px; }
.st-line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.st-line select, .st-line input { flex: 1; height: 28px; border: 1px solid #b8c6d0; border-radius: 3px; font-size: 13px; padding: 0 6px; }
.st-time { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.st-time span { width: 100px; }
.st-time input { width: 80px; height: 28px; border: 1px solid #555; text-align: center; font-size: 14px; }
.st-colors { display: grid; grid-template-columns: auto auto; gap: 6px 10px; align-items: center; justify-content: start; }
.st-color { display: contents; font-size: 13px; }
.st-color input { width: 70px; height: 24px; border: 1px solid #555; padding: 0; background: none; cursor: pointer; }
.st-opts { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.st-field { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: #555; margin-top: 4px; }
.st-field input, .st-field textarea { border: 1px solid #9aa4b0; padding: 4px 6px; font: 14px 'Tajawal', Tahoma, sans-serif; }
.st-design { gap: 14px; }
.st-preview { --p-title: #5b2466; --p-bg: #e9dcf2; --p-frame: #f4ecfb; --p-border: #c7b0d8; --p-text: #2b1a30; width: 300px; flex-shrink: 0; align-self: flex-start; border: 3px solid var(--p-border); background: var(--p-frame); direction: ltr; font-size: 9px; }
.pv-title { background: linear-gradient(var(--p-title), color-mix(in srgb, var(--p-title) 70%, #000)); color: #fff; padding: 3px 6px; font-weight: 800; }
.pv-topic { background: #fff; min-height: 14px; padding: 2px 6px; color: #555; direction: rtl; }
.pv-cols { display: flex; gap: 3px; padding: 3px; height: 150px; }
.pv-users { width: 40%; background: #fff; border: 1px solid var(--p-border); display: flex; flex-direction: column; }
.pv-users i { display: block; height: 10px; margin: 3px; background: #eef1f4; }
.pv-mic { margin-top: auto; background: linear-gradient(#fff, var(--p-bg)); text-align: center; padding: 2px; color: var(--p-text); }
.pv-chat { flex: 1; background: #fff; border: 1px solid var(--p-border); direction: rtl; }
.pv-bar { height: 14px; background: linear-gradient(#fff, var(--p-bg)); border-bottom: 1px solid var(--p-border); padding: 0 4px; color: var(--p-text); }
.pv-chat p { margin: 3px; padding: 2px 4px; color: var(--p-text); }
.pv-j { background: #d8f5e9; } .pv-l { background: #f7dbe3; } .pv-m { background: #eef3f7; }
.st-preview.flat .pv-title, .st-preview.flat .pv-mic, .st-preview.flat .pv-bar { background: var(--p-bg); }
.st-preview.flat .pv-title { background: var(--p-title); }

/* ألوان الغرفة المخصصة */
.desk #room.themed { border-color: var(--rt-border, #7b3f8f) !important; }
.desk #room.themed .room-bar { background: linear-gradient(var(--rt-title), color-mix(in srgb, var(--rt-title) 65%, #000)) !important; }
.desk #room.themed .d-me, .desk #room.themed .ptabs, .desk #room.themed .d-micbar, .desk #room.themed .composer { background: linear-gradient(var(--rt-frame), var(--rt-bg)) !important; border-color: var(--rt-border) !important; color: var(--rt-text) !important; }
.desk #room.themed .d-mic, .desk #room.themed .d-mode, .desk #room.themed .d-me-btn { color: var(--rt-text) !important; border-color: var(--rt-border) !important; }
.desk #room.themed #usersCol, .desk #room.themed .speak-strip { border-right-color: var(--rt-border) !important; }
.desk #room.themed .ptab { background: linear-gradient(#fff, var(--rt-frame)) !important; border-color: var(--rt-border) !important; color: var(--rt-text) !important; }
.desk #room.themed .ptab.on { background: #fff !important; }
.desk #room.themed .urow.sel { background: color-mix(in srgb, var(--rt-bg) 55%, #fff); }
.desk #room.themed.flat .room-bar { background: var(--rt-title) !important; }
.desk #room.themed.flat .d-me, .desk #room.themed.flat .ptabs, .desk #room.themed.flat .d-micbar, .desk #room.themed.flat .composer { background: var(--rt-bg) !important; }
.messages.no-join-ico .sysline.join::before, .messages.no-join-ico .sysline.leave::before { display: none; }
.desk .messages.no-join-ico .sysline { padding-left: 10px; }

/* تنبيه الماستر بالدردشة */
.sysline.announce { background: linear-gradient(#fff6d6, #ffe7a3) !important; border: 1px solid #e8b84a !important; color: #4a3200 !important; font-weight: 700; text-align: center; }
.desk .sysline.announce::before { content: none; }

/* طلبات بوابة الدخول */
.gate-box { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 6px; }
.gate-req { background: #fff; border: 1px solid #8cc3d8; box-shadow: 0 6px 20px rgba(0,0,0,.25); border-radius: 4px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; direction: rtl; }
.gr-t { font-weight: 700; margin-left: 8px; }

/* نافذة تعديل العضو */
.sheet-card.mem-card { width: 460px !important; }
.mem-rank { display: flex; align-items: center; gap: 10px; direction: rtl; margin: 6px 0 10px; font-size: 15px; }
.mem-rank select { height: 30px; border: 1px solid #9aa4b0; font-size: 14px; padding: 0 6px; }
.mem-h { font-weight: 800; direction: rtl; margin: 4px 0; }
.mem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; direction: rtl; }
.mem-grid .me-check { font-size: 13px; }
.mem-grid .pi { width: 18px; height: 18px; font-size: 10px; }
.mem-reset { border: none; background: none; color: #1e7fd0; cursor: pointer; font-size: 13px; margin: 8px 0; direction: rtl; display: block; }
@media (max-width: 899px) {
  .sheet-card.cp-card { width: 100vw !important; max-width: 100vw !important; height: 92vh; }
  .cp-wrap { flex-direction: column; padding: 4px; }
  .cp-side { width: auto; flex-direction: row; overflow-x: auto; padding: 0; }
  .cp-item { flex-direction: column; gap: 2px; font-size: 11px; padding: 4px 6px; }
  .cp-item svg { width: 28px; height: 28px; }
  .st-body { flex-direction: column; }
  .st-col + .st-col { border-right: none; padding-right: 0; }
  .st-preview { display: none; }
}
.cp-head, .cp-wrap { direction: ltr; }
.cp-band { text-align: right; direction: rtl; }

/* حسابات الغرفة */
.sheet-card.acc-card { width: 330px !important; }
.acc-title { flex: 1; direction: rtl; text-align: left; font-weight: 600; }
.acc-body { direction: rtl; }
.acc-row { display: grid; grid-template-columns: 95px 1fr; align-items: center; gap: 6px; margin: 6px 0; font-size: 14px; }
.acc-row input, .acc-row select { height: 30px; border: 1px solid #9aa4b0; padding: 0 6px; font: 14px 'Tajawal', Tahoma, sans-serif; min-width: 0; }
.acc-row select { font-weight: 700; }
.acc-lock { margin: 6px 0; }
.acc-perms { display: flex; flex-direction: column; gap: 1px; max-height: 300px; overflow-y: auto; }
.acc-perms .me-check { font-size: 14px; padding: 1px 0; }
.acc-perms .me-check.sub { margin-right: 22px; font-size: 13px; }
.acc-perms .me-check.dim { opacity: .45; }
.acc-perms .me-cb:disabled + span { color: #a0a8b0; }
.cp-glob { font-size: 10px; color: #7a8a96; border: 1px solid #c6d2da; border-radius: 6px; padding: 0 4px; margin-right: 4px; }
.cp-pageinfo { display: flex; flex-direction: column; font-size: 13px; color: #234; margin-left: auto; }
.cp-btn:disabled { opacity: .4; cursor: default; }
.cp-table td.mono { font-family: Consolas, monospace; font-size: 12px; color: #456; direction: ltr; text-align: right; }
.pi { min-width: 20px; }
.suspend-bar { display: flex; justify-content: space-between; gap: 10px; padding: 4px 10px; font-size: 12px; background: #fff3cd; border-top: 1px solid #e8c45a; color: #5a4300; }
.suspend-bar.hidden { display: none; }
.acc-usecol { margin: 2px 0 6px; font-weight: 700; }
.acc-perms.fixed .me-check span { color: #6b7785; }
.sheet-card.colors-card { width: 470px !important; }
.colors-note { direction: rtl; font-size: 13px; color: #556; margin-bottom: 6px; }
.colors-table { width: 100%; border-collapse: collapse; direction: rtl; font-size: 13px; }
.colors-table th { padding: 4px; border-bottom: 2px solid #dbe3e8; font-weight: 800; }
.colors-table td { padding: 3px 4px; border-bottom: 1px solid #eef2f5; }
.colors-table td.c { text-align: center; }
.colors-table .me-cb { margin: 0 auto; }
.rl-lbl { white-space: nowrap; }
.rl-arrows { direction: ltr; }
.sheet-card.cp-card.bans-only { width: 640px !important; height: 460px; }
.d-tool.off { filter: grayscale(1) opacity(.45) drop-shadow(0 1px 1px rgba(0,0,0,.15)); cursor: default; }
.d-tool.off:hover { transform: none; }

/* قائمة الكلك اليمين (مثل لقانا) */
.ctx-menu { position: fixed; z-index: 1000; min-width: 230px; background: linear-gradient(#ffffff, #eef4f9); border: 1px solid #9fb5c8; box-shadow: 2px 4px 14px rgba(0,0,0,.25); padding: 3px 0; direction: rtl; font: 15px 'Tajawal', Tahoma, sans-serif; user-select: none; }
.ctx-item { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 14px; cursor: pointer; color: #1b2430; position: relative; }
.ctx-item:hover:not(.off) { background: linear-gradient(#d7ebf8, #b9daf0); }
.ctx-item.off { color: #a6b0ba; cursor: default; }
.ctx-item.off .ctx-ico svg { opacity: .35; }
.ctx-ico { width: 30px; display: grid; place-items: center; border-left: 1px solid #dbe4ec; padding-left: 8px; min-height: 26px; }
.ctx-lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.ctx-arrow { color: #6b7785; font-size: 12px; }
.ctx-item.has-sub:hover { background: linear-gradient(#cfe6f6, #a9d1ec); }
.ctx-status .ctx-lbl { font-weight: 700; }
.ctx-sep { height: 1px; background: #d5dee6; margin: 3px 6px 3px 6px; }
.ctx-menu.ctx-sub { min-width: 200px; }
.ctx-menu.ctx-sub .ctx-ico { width: 14px; border: none; padding: 0; }
.warn-box h3 { color: #c62828; }
.warn-text { font-size: 17px; margin: 8px 0 14px; }

/* قائمة الغرف مثل لقانا */
.desk #vRooms { background: linear-gradient(#e3f5fb, #d3eef7); }
.desk #vRooms .list-row { min-height: 60px; padding: 4px 18px 4px 14px; gap: 12px; border-bottom: none; background: transparent; }
.desk #vRooms .list-row.featured-row { background: linear-gradient(90deg, rgba(160,222,240,.75), rgba(190,234,246,.55)); }
.desk #vRooms .list-row:hover { background: rgba(255,255,255,.55); }
.desk #vRooms .room-ico.bubble, .desk #vRooms .room-ico.bubble svg { width: 46px; height: 46px; }
.desk #vRooms .lr-title { font-size: 17px; color: #1b2430; }
.desk #vRooms .r-count { font-size: 17px; color: #4a6075; min-width: 34px; text-align: left; order: 0; }
.desk #vRooms .star-btn { font-size: 40px; line-height: 1; color: #5a7a90; -webkit-text-stroke: .4px #fff; padding: 0 2px; }
.desk #vRooms .star-btn.on { color: #f2b705; }
.desk #vRooms .lr-body { flex: 1; }
.desk #vRooms .list-row:hover, .desk #vRooms .list-row.featured-row:hover { background: linear-gradient(90deg, #a6dcef, #c4ebf7); }
.desk #vRooms .star-btn { font-size: 42px; }
.sheet-card.ban-card { width: 380px !important; }
.ban-body { direction: rtl; }
.ban-who { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; font-size: 16px; }
.ban-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; overflow: hidden; }
.ban-av svg, .ban-av img { width: 40px; height: 40px; }
.ban-body .acc-row { grid-template-columns: 90px 1fr; }
.ban-go { color: #c62828 !important; font-weight: 800; }
.ptab-count { margin-left: auto; align-self: center; font-size: 13px; color: #556; padding: 0 10px 6px; direction: ltr; }
.desk .ptabs { direction: ltr; }
.sheet-card.alert-card { width: 360px !important; }
.alert-body { display: flex; align-items: center; gap: 12px; padding: 16px 18px; direction: rtl; background: #fff; }
.alert-text { font-size: 14px; color: #222; line-height: 1.5; }
.susp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 4px 0 10px; }

/* شاشة الانتظار مثل ويفو */
.home-loading { position: absolute; inset: 56px 0 0 0; z-index: 30; background: #4a4a4a; color: #e8e8e8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; font-size: 15px; line-height: 1.6; }
.home-loading.hidden { display: none; }
.hl-dots { display: flex; gap: 7px; }
.hl-dots i { width: 9px; height: 9px; border-radius: 50%; background: #fff; opacity: .25; animation: hlDot 1.2s infinite; }
.hl-dots i:nth-child(2) { animation-delay: .2s; }
.hl-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes hlDot { 0%, 100% { opacity: .2; transform: scale(.8); } 40% { opacity: 1; transform: scale(1.15); } }
body.loading-lobby .tabbar, body.loading-lobby .stats { opacity: .35; pointer-events: none; }
.desk .home-loading { inset: 96px 0 0 0; background: #e3f5fb; color: #3b5568; }
.desk .hl-dots i { background: #3b8bb0; }
.home-loading { bottom: 112px; }
.desk .home-loading { bottom: 34px; }

/* قائمة المزيد مثل ويفو */
.more-list { display: flex; flex-direction: column; align-items: center; padding: 16px 0; background: #fff; min-height: 100%; }
.more-item { width: 64%; border: none; background: none; border-bottom: 1px solid #e3e3e3; padding: 30px 0; font: 500 21px 'Tajawal', sans-serif; color: #222; cursor: pointer; text-align: center; }
.more-item:last-child { border-bottom: none; }
.more-item:active { background: #f2f7fa; }
.sheet-card.more-menu { padding: 4px 0 !important; }
.sheet-item.more-drop { justify-content: center; text-align: center; font-size: 15px; padding: 10px 16px; border-bottom: 1px solid #edf0f2; }
.sheet-item.more-drop:last-child { border-bottom: none; }
.set-acc { width: 100%; display: flex; justify-content: space-between; align-items: center; border: none; background: none; font: 600 17px 'Tajawal', sans-serif; padding: 10px 4px; cursor: pointer; color: #222; }
.set-acc i { font-style: normal; color: #999; font-size: 22px; }

/* غرف الفون مثل ويفو: صفوف صغيرة، المميزة مضللة، العدد والنجمة على اليسار */
body:not(.desk) #vRooms .list-row, body:not(.desk) #vFav .list-row, body:not(.desk) #searchList .list-row { min-height: 50px; padding: 4px 12px; gap: 10px; border-bottom: 1px solid #e6eef3; }
body:not(.desk) .list-row.featured-row { background: #e3f0fb; }
body:not(.desk) #vRooms .room-ico.bubble, body:not(.desk) #vRooms .room-ico.bubble svg,
body:not(.desk) #vFav .room-ico.bubble, body:not(.desk) #vFav .room-ico.bubble svg,
body:not(.desk) #searchList .room-ico.bubble, body:not(.desk) #searchList .room-ico.bubble svg { width: 34px; height: 34px; }
body:not(.desk) #vRooms .lr-title, body:not(.desk) #vFav .lr-title, body:not(.desk) #searchList .lr-title { font-size: 17px; }
body:not(.desk) .star-btn { font-size: 26px; color: #7a8a96; }
body:not(.desk) .star-btn.on { color: #f2b705; }
body:not(.desk) .r-count { font-size: 15px; color: #666; min-width: 18px; }

/* ===== حركات ناعمة (ظهور واختفاء) ===== */
@keyframes sdFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sdFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes sdPop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes sdDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes sdToast { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.sheet { animation: sdFadeIn .2s ease-out; }
.sheet.closing { animation: sdFadeOut .16s ease-in forwards; pointer-events: none; }
.sheet.closing .sheet-card { transition: transform .16s ease-in; transform: translateY(30px); }
.desk .sheet:not(.anchored) .sheet-card { animation: sdPop .22s cubic-bezier(.2,.8,.3,1); }
.desk .sheet.closing:not(.anchored) .sheet-card { transform: scale(.95); }
.desk .sheet.anchored .sheet-card { animation: sdDrop .16s ease-out; }
.desk .sheet.anchored.closing .sheet-card { transform: translateY(-4px); }
.toast { animation: sdToast .25s ease-out; }
.toast.closing { animation: sdFadeOut .25s ease-in forwards; }
.ctx-menu { animation: sdDrop .14s ease-out; }
#messages .msg { animation: sdFadeIn .3s ease-out; }
.cam-win, .gate-box, .contact-box, .gate-req { animation: sdPop .25s cubic-bezier(.2,.8,.3,1); }
.pane:not(.hidden) { animation: sdFadeIn .2s ease-out; }
/* بالتلفون: التنقل بين الدردشة والمتواجدين يخفي ويظهر القائمة، والتأثير ينعاد كل مرة فتصير رمشة — نلغيه بالغرفة */
body:not(.desk) #room .pane:not(.hidden), body:not(.desk) #room #messages .msg { animation: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== صورة الغلاف ورا الاسم (مثل لقانا) ===== */
.urow.has-cover { background-image: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.75) 45%, rgba(255,255,255,.15) 100%), var(--cover) !important; background-size: cover !important; background-position: center !important; min-height: 46px; }
.urow.has-cover .uname, .urow.bn .uname { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.15; }
.urow.has-cover .ustatus.st-text, .urow.bn .ustatus.st-text { display: block; font-size: 11px; color: #555 !important; font-weight: 400; margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urow.has-cover .utile { width: 42px !important; height: 42px !important; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.pf-preview.has-cover { background-image: linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,255,255,.2)), var(--cover) !important; background-size: cover !important; background-position: center !important; }
/* ===== سطر مسح النص (أصفر مثل لقانا) ===== */
.sysline.cleared { background: #fffbd8 !important; border: 1px solid #e9dc8a !important; color: #3a3300 !important; position: relative; }
.sysline.cleared .cl-ico { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); color: #d19a00; font-size: 15px; }
.sysline.cleared::before { content: none !important; }

/* ===== نافذة تم ايقافك + سطر الايقاف بالدردشة ===== */
.susp-alert { display: flex; flex-direction: column; gap: 3px; }
.susp-alert .susp-title { font-size: 15px; margin-bottom: 4px; }
.susp-alert .susp-item { font-size: 13px; color: #333; padding-right: 10px; }
.susp-alert .susp-meta { font-size: 12px; color: #777; margin-top: 6px; }
.sysline.susp { background: transparent !important; border: none !important; color: #666 !important; text-align: right; position: relative; padding-left: 30px !important; font-size: 13px; }
.sysline.susp::before { content: '⚠' !important; position: absolute; left: 6px; top: 50%; transform: translateY(-50%); color: #d19a00; font-size: 16px; }
.sysline.susp b { color: #222; }

.susp-icons { display: inline-flex; gap: 3px; margin-inline-end: 4px; align-items: center; }
.susp-icons .si-x { position: relative; font-size: 14px; }
.susp-icons .si-x .g { opacity: .4; filter: grayscale(.7); }
.susp-icons .si-x::after { content: ''; position: absolute; right: -3px; bottom: -2px; width: 8px; height: 8px; border-radius: 50%; background: #e23b3b radial-gradient(circle, #fff 0 1px, transparent 1px); box-shadow: 0 0 0 1px #fff; opacity: 1; }
.susp-icons .si-x::after { background: #e23b3b; }
.susp-icons .si-x::before { content: ''; position: absolute; right: -1px; bottom: 1px; width: 4px; height: 2px; background: #fff; z-index: 1; }
.sysline.susp .sl-mid { color: #777; }
.sysline.susp { text-align: center !important; }

/* سحب الشاشة بالتلفون */
@keyframes sdSwipeR { from { transform: translateX(-40px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes sdSwipeL { from { transform: translateX(40px); opacity: .3; } to { transform: none; opacity: 1; } }
.swipe-r { animation: sdSwipeR .22s ease-out; }
.swipe-l { animation: sdSwipeL .22s ease-out; }
.log-ico { display: inline-block; vertical-align: middle; margin-inline-end: 6px; }
.log-ico svg { width: 18px; height: 18px; }
.cp-v.warn { color: #d84315 !important; font-weight: 700; }

/* شكل الشات الكلاسيكي: الاسم والرسالة بسطر واحد */
.messages.chat-classic .msg { display: block !important; border-left-width: 0 !important; border-bottom: 1px solid #eef0f2; padding: 3px 8px !important; }
.messages.chat-classic .msg .mav { display: none; }
.messages.chat-classic .msg .mbody { display: block; }
.messages.chat-classic .msg .mhead { display: inline-flex !important; background: none !important; border: none !important; padding: 0 !important; vertical-align: baseline; }
.messages.chat-classic .msg .mhead::after { content: ':'; font-weight: 800; }
.messages.chat-classic .msg .mtime { display: none; }
.messages.chat-classic .msg .mtext { display: inline; padding: 0 4px !important; }
/* لون الموبايل */
body:not(.desk) #room.mcol .room-bar { background: var(--m-bar) !important; }
body:not(.desk) #room.mcol .composer { background: var(--m-foot) !important; }
.st-mobile { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.m-preview { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 190px; padding: 6px 10px; border-radius: 4px; color: #fff; font-size: 12px; }
.m-preview b { font-weight: 700; }
.st-pvcol { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.st-pvcol .st-preview { margin: 0; }
.bans-tabs { flex-shrink: 0; }

/* شباك الغرفة ببرنامج صدى: ما يبين اللوبي، بس شاشة التحميل لحد ما يدخل */
html.roomwin #home > *:not(#homeLoading) { visibility: hidden; }
html.roomwin #homeLoading { display: flex !important; }
html.roomwin #homeLoading .hl-t { font-size: 0; }
html.roomwin #homeLoading .hl-t::after { content: 'جاري التحميل ...'; font-size: 15px; }

/* شريط وقت المايك تحت العداد (مثل لقانا) */
.desk .d-mode { position: relative; }
.d-mode .mic-bar { position: absolute; left: 10%; right: 10%; bottom: 9px; height: 5px; border-radius: 3px; background: rgba(0,0,0,.12); overflow: hidden; direction: ltr; }
.d-mode .mic-bar b { display: block; height: 100%; background: linear-gradient(#7fdc6a, #3aa62e); transition: width .08s linear; }
.d-mode .mic-bar.low b { background: linear-gradient(#ffb36b, #e5602a); }

/* ===== الملف الشخصي ===== */
.pf-info { display: flex; flex-direction: column; gap: 8px; padding: 8px 10px; border: 1px solid #e3e8ec; border-radius: 8px; background: #f8fafb; }
.pf-info h4 { margin: 0 0 2px; font-size: 14px; }
.pf-info textarea, .pf-info input, .pf-info select { font: inherit; }
.sheet-card.prof-card { width: 360px !important; max-width: 94vw; direction: rtl; padding: 0 !important; overflow: hidden; }
.prof-card .pv-cover { position: relative; height: 96px; background: linear-gradient(135deg, #9fd3ea, #e9dcf2); background-size: cover; background-position: center; }
.prof-card .pv-av { position: absolute; right: 16px; bottom: -30px; width: 64px; height: 64px; border-radius: 12px; border: 3px solid #fff; background: var(--tile, #eef); display: grid; place-items: center; font-size: 36px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.prof-card .pv-av img { width: 100%; height: 100%; object-fit: cover; }
.prof-card .pv-body { padding: 36px 16px 10px; background: #fff; }
.prof-card .pv-name { font-size: 20px; font-weight: 800; }
.prof-card .pv-badge { display: inline-block; margin-top: 4px; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #eee; color: #666; }
.prof-card .pv-badge.on { background: #e3f6e5; color: #2e7d32; font-weight: 700; }
.prof-card .pv-st { margin-top: 6px; color: #666; font-size: 13px; }
.prof-card .pv-rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin-top: 12px; font-size: 14px; }
.prof-card .pv-k { color: #888; }
.prof-card .pv-v { font-weight: 700; color: #222; }
.prof-card .pv-about-h { margin-top: 12px; color: #888; font-size: 13px; }
.prof-card .pv-about { margin-top: 4px; padding: 8px 10px; background: #f6f8fa; border-radius: 8px; white-space: pre-wrap; line-height: 1.5; font-size: 14px; }
.prof-card .pv-empty { margin-top: 10px; font-size: 13px; }

/* ===== الملف الشخصي (شكل لقانا) ===== */
.sheet-card.prof-card { width: 400px !important; }
.prof-card .pv-top { position: relative; padding: 46px 18px 18px; background: radial-gradient(circle at 50% 30%, #3a4256, #10131b 75%); background-size: cover; background-position: center; }
.prof-card .pv-frame { position: relative; margin: 0 6px; padding: 52px 10px 14px; border: 2px solid #f0a92a; box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset; background: rgba(8,10,16,.72); text-align: center; color: #fff; }
.prof-card .pv-av { position: absolute; top: -44px; left: 50%; transform: translateX(-50%); width: 86px; height: 86px; border-radius: 50% !important; border: 3px solid #f0a92a !important; background: #1b1f2a; display: grid; place-items: center; font-size: 44px; overflow: hidden; cursor: zoom-in; box-shadow: 0 2px 10px rgba(0,0,0,.5); right: auto !important; bottom: auto !important; }
.prof-card .pv-av img { width: 100%; height: 100%; object-fit: cover; }
.prof-card .pv-name { font-size: 22px; font-weight: 800; color: #fff !important; letter-spacing: 2px; }
.prof-card .pv-st { margin-top: 4px; color: #e8e8e8; font-size: 14px; }
.prof-card .pv-report { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; border-radius: 50%; border: none; background: #e53935; color: #fff; font-weight: 900; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.prof-card .pv-body { padding: 10px 12px 12px; background: #f4f6f8; }
.prof-card .pv-guest { padding: 18px; text-align: center; color: #666; }
.prof-card .pv-tabs { display: flex; border: 1px solid #8fa3b5; background: #fff; }
.prof-card .pv-tab { flex: 1; padding: 8px; border: none; background: none; font: inherit; font-weight: 700; color: #4a5a6a; cursor: pointer; }
.prof-card .pv-tab.on { background: linear-gradient(#7fd0e8, #49b2d6); color: #fff; }
.prof-card .pv-pane { min-height: 190px; padding: 12px 4px 4px; }
.prof-card .pv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.prof-card .pv-si { font-size: 26px; position: relative; display: inline-block; }
.prof-card .pv-medal { position: absolute; top: -6px; left: -18px; width: 22px; height: 26px; line-height: 0; }
.prof-card .pv-medal b { position: absolute; left: 0; right: 0; top: 12px; font-size: 10px; line-height: 10px; color: #6b4200; font-weight: 800; text-align: center; }
.prof-card .pv-blur { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(14px) brightness(.55); transform: scale(1.15); }
.prof-card .pv-top { overflow: hidden; }
.prof-card .pv-frame, .prof-card .pv-report { z-index: 1; }
.prof-card .pv-sl { font-size: 12px; color: #8a96a3; margin-top: 2px; }
.prof-card .pv-sv { font-size: 15px; font-weight: 700; color: #6b7785; }
.prof-card .pv-msg-h { margin-top: 14px; font-size: 13px; color: #8fb0cc; font-weight: 700; }
.prof-card .pv-msg { margin-top: 4px; text-align: center; color: #5d7f9e; white-space: pre-wrap; line-height: 1.5; }
.prof-card .pv-since { margin-top: 10px; text-align: center; font-size: 12px; color: #9aa5b1; }
.prof-card .pv-none { padding: 30px 10px; text-align: center; color: #8a96a3; }
/* قائمة المعلومات: كل الحقول تطلع دائماً (حتى الفارغة) */
.prof-card .pv-info { display: flex; flex-direction: column; gap: 7px; padding: 4px 2px; }
.prof-card .pv-irow { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e3e8ee; border-radius: 8px; padding: 8px 10px; }
.prof-card .pv-iic { flex-shrink: 0; width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #fff; }
.prof-card .pv-il { flex-shrink: 0; min-width: 84px; font-weight: 800; color: #51607a; font-size: 14px; }
.prof-card .pv-iv { flex: 1; text-align: left; font-weight: 700; color: #1c2733; font-size: 15px; word-break: break-word; }
.prof-card .pv-irow.empty .pv-iv { color: #b4bcc6; font-weight: 400; }
.prof-card .pv-irow.empty .pv-iic { opacity: .45; }
.prof-card .pv-slide { position: relative; border-radius: 6px; padding: 22px 40px 50px; text-align: center; color: #fff; transition: background .25s; min-height: 170px; }
.prof-card .pv-sic { font-size: 54px; line-height: 1.1; }
.prof-card .pv-slb { margin-top: 8px; font-weight: 800; opacity: .9; }
.prof-card .pv-svl { margin-top: 10px; font-size: 18px; font-weight: 700; }
.prof-card .pv-arr { position: absolute; top: 45%; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(255,255,255,.75); color: #556; font-size: 20px; line-height: 1; cursor: pointer; }
.prof-card .pv-arr.l { right: 8px; } .prof-card .pv-arr.r { left: 8px; }
.prof-card .pv-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 8px; }
.prof-card .pv-dot { border: none; background: none; font-size: 18px; opacity: .55; cursor: pointer; padding: 2px 3px; border-bottom: 2px solid transparent; }
.prof-card .pv-dot.on { opacity: 1; border-bottom-color: #fff; }
.prof-card .pv-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.prof-card .pv-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; cursor: zoom-in; }
.img-viewer { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.85); display: grid; place-items: center; cursor: zoom-out; animation: sdFadeIn .2s; }
.img-viewer img { max-width: 92vw; max-height: 90vh; border-radius: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.6); }
.pf-gallery { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-gallery .pg-item { position: relative; width: 64px; height: 64px; }
.pf-gallery .pg-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; cursor: zoom-in; }
.pf-gallery .pg-del { position: absolute; top: -6px; left: -6px; width: 20px; height: 20px; border-radius: 50%; border: none; background: #e53935; color: #fff; font-size: 11px; cursor: pointer; }
.pf-gallery .pg-add { width: 64px; height: 64px; border-radius: 6px; border: 2px dashed #9fb0c0; background: #fff; font-size: 26px; color: #7a8b9b; cursor: pointer; }

/* برنامج صدى: قبل الدخول الشباك بس نافذة الدخول البيضه */
html.roomwin:not(.joined), html.roomwin:not(.joined) body { background: #fff !important; overflow: hidden; }
html.roomwin:not(.joined) #home { visibility: hidden; }
html.roomwin:not(.joined) .sheet { background: transparent !important; animation: none !important; padding: 0 !important; display: block !important; }
html.roomwin:not(.joined) .sheet.hidden { display: none !important; }
html.roomwin.canfit:not(.joined) .sheet-card { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: auto !important; height: auto !important; margin: 0 !important; width: 100% !important; max-width: none !important; max-height: none !important; border-radius: 0 !important; box-shadow: none !important; border: none !important; outline: none !important; animation: none !important; transform: none !important; }
html.roomwin.canfit:not(.joined) .sheet-card .rl-head { display: none; }

/* نافذة الدخول تطفو فوك قائمة الغرف بدون ما تقفلها */
.desk .sheet.nonmodal { background: transparent !important; pointer-events: none; }
.desk .sheet.nonmodal .sheet-card { pointer-events: auto; box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.15) !important; }

/* ===== نافذة الدخول بشكل لقانا (صغيرة ومرتبة يسار ← يمين) ===== */
.desk .sheet-card.rl-card.lg { width: 330px !important; border-radius: 2px !important; padding: 0 !important; background: #f0f2f5; border: 1px solid #8a9aac !important; font: 12px Tahoma, 'Segoe UI', sans-serif; direction: ltr; }
.rl-card.lg .rl-head { direction: ltr; padding: 3px 4px 3px 8px !important; min-height: 24px !important; font-size: 11px !important; font-weight: 400 !important; background: linear-gradient(#f7f9fb, #dfe6ee) !important; color: #333 !important; }
.rl-card.lg .rl-head > span { direction: rtl; }
.rl-card.lg .rl-x { width: 20px; height: 18px; padding: 0; border-radius: 2px; background: linear-gradient(#e0574f, #b8251f); color: #fff; border: 1px solid #8e1a15; font-size: 11px; line-height: 1; }
.rl-card.lg .rl-logo { margin: 6px 8px 0; padding: 8px 0 6px; font-size: 32px; border: 1px solid #d6dce3; border-bottom: none; }
.rl-card.lg .rl-logo small { font-size: 16px; }
.rl-card.lg .rl-room { display: none; }
.rl-card.lg .rl-radios { margin: 0 8px; padding: 8px 0; border: 1px solid #d6dce3; background: #f8f9fb; direction: rtl; font-size: 12px; }
.rl-card.lg .rl-body { direction: ltr; margin: 6px 8px 0; padding: 6px; gap: 6px; border: 1px solid #d6dce3; border-bottom: none; background: #fff; }
.rl-card.lg .rl-fields { gap: 4px; }
.rl-card.lg .rl-row { direction: ltr; gap: 4px; }
.rl-card.lg .rl-lbl { order: 0; direction: rtl; min-width: 92px; font-size: 11.5px; color: #333; white-space: nowrap; text-align: left; }
.rl-card.lg .rl-row > input, .rl-card.lg .rl-name input { height: 22px !important; font-size: 12px !important; border-radius: 0 !important; padding: 0 4px !important; }
.rl-card.lg .rl-name { direction: ltr; }
.rl-card.lg .rl-dd { width: 22px; height: 22px; font-size: 11px; border-radius: 50%; }
.rl-card.lg .rl-icon { width: 58px; padding: 2px; border-radius: 0; }
.rl-card.lg .rl-tile { font-size: 28px; }
.rl-card.lg .rl-tile.is-av { width: 40px; height: 38px; }
.rl-card.lg .rl-arrows button { font-size: 14px; padding: 0 3px; }
.rl-card.lg .rl-status { margin: 0 8px; padding: 2px 6px 4px; background: #fff; border: 1px solid #d6dce3; border-top: none; font-size: 11px; direction: rtl; text-align: left; }
.rl-card.lg .rl-foot { direction: ltr; margin: 4px 8px 8px; padding: 4px 6px; border: 1px solid #d6dce3; gap: 4px; }
.rl-card.lg .rl-ico { font-size: 14px; padding: 2px 4px; }
.rl-card.lg .rl-btn { min-width: 0 !important; height: 24px !important; padding: 0 14px !important; font-size: 11.5px !important; background: transparent !important; border: 1px solid transparent !important; color: #333 !important; box-shadow: none !important; }
.rl-card.lg .rl-btn:hover { border-color: #9fb3c8 !important; background: linear-gradient(#fff, #e3ebf3) !important; }
.rl-card.lg .rl-btn.primary { font-weight: 700; }
.rl-card.lg .rl-reg { display: none; }
.rl-card.lg .rl-avgrid { direction: rtl; }
.rl-card.lg .rl-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; }
.rl-card.lg .rl-name input { flex: 1; }
.rl-card.lg .rl-fields { flex: 1; min-width: 0; }
.rl-card.lg .rl-lbl { width: 86px !important; min-width: 86px !important; }
html.roomwin.canfit:not(.joined) .sheet-card.rl-card.lg { width: 100% !important; border: none !important; }
html.roomwin:not(.canfit):not(.joined) .sheet { display: flex !important; align-items: center; justify-content: center; }
html.roomwin:not(.canfit):not(.joined) .sheet.hidden { display: none !important; }
html.roomwin:not(.canfit):not(.joined) .sheet-card.rl-card.lg { position: relative !important; inset: auto !important; box-shadow: 0 10px 30px rgba(0,0,0,.35) !important; }
html.roomwin .sheet-card.rl-card.lg { background: #f0f2f5; font: 12px Tahoma, 'Segoe UI', sans-serif; direction: ltr; padding: 0 !important; }

/* تحديد الاسم بالكلك (مثل لقانا): يبقى مضلل حتى لو الماوس طلع، وفوك أي خلفية أو غلاف */
.desk .urow { position: relative; }
.desk .urow.sel::after { content: ''; position: absolute; inset: 0; background: rgba(61, 143, 214, .22); box-shadow: inset 0 0 0 1px #3d8fd6; pointer-events: none; z-index: 2; }
.desk .urow.sel, .desk .urow.sel:hover { background-color: #cfe6f7 !important; }
.desk .urow:not(.sel):hover::after { content: ''; position: absolute; inset: 0; background: rgba(61, 143, 214, .08); pointer-events: none; z-index: 2; }
/* قائمة «أنا ▾» والحالات */
.ctx-menu.ctx-me { min-width: 190px; }
.ctx-menu.ctx-sub.ctx-status { min-width: 160px; }
.ctx-menu.ctx-sub.ctx-status .ctx-ico { width: 26px !important; display: inline-grid; place-items: center; }
.ctx-menu.ctx-sub.ctx-status .ctx-item.on { font-weight: 800; background: rgba(61,143,214,.14); }
.desk .sheet-card.rl-card.lg.pw-card { width: 340px !important; }
.rl-card.lg.pw-card .rl-lbl { width: 118px !important; min-width: 118px !important; }
.rl-card.lg.pw-card .rl-body { border-bottom: 1px solid #d6dce3; }
.rl-card.lg.pw-card .rl-status { border-top: 1px solid #d6dce3; margin-top: 0; }
.rl-status.err { color: #c62828 !important; }
/* الكلك اليمين: اسم الشخص فوك + رسالة بيها ذكر اسمي */
.ctx-menu .ctx-item.ctx-name .ctx-lbl { font-weight: 800; }
#messages .msg.mention { background: #fff7d6 !important; box-shadow: inset 3px 0 0 #f0a92a; }
/* معلومات المستخدم (شكل لقانا) */
.desk .sheet-card.rl-card.lg.info-card { width: 300px !important; }
.sheet-card.info-card .info-body { display: block; border-bottom: 1px solid #d6dce3; }
.info-card .info-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; padding: 6px 4px; direction: rtl; font-size: 13px; }
.info-card .info-k { color: #556; white-space: nowrap; }
.info-card .info-v { font-weight: 700; color: #222; overflow-wrap: anywhere; }
.info-card .info-v.mono { direction: ltr; text-align: right; font-family: Consolas, monospace; }
.deco { display: none !important; } /* الشريط المزخرف (فراشات وقلوب) انشال */
/* البردة: الشاشة الجديدة تتزحلق فوك القديمة (تلفون) */
body:not(.desk) #room .room-content { position: relative; overflow: hidden; }
body:not(.desk) #room .room-content.curtain > #usersCol, body:not(.desk) #room .room-content.curtain > #chatView { position: absolute; inset: 0; }
body:not(.desk) #room .room-content.curtain > #usersCol { z-index: 1; transform: none !important; }
body:not(.desk) #room .room-content.curtain > .cur-top { z-index: 3; box-shadow: 0 0 18px rgba(0,0,0,.25); }
/* المتواجدين بالتلفون: الدردشة تبقى طالعة 15% عالطرف (مثل لقانا) */
body:not(.desk) #room .room-content.peek { position: relative; overflow: hidden; }
body:not(.desk) #room .room-content.peek > #usersCol, body:not(.desk) #room .room-content.peek > #chatView { position: absolute; top: 0; bottom: 0; left: 0; right: 0; }
body:not(.desk) #room .room-content.peek > #usersCol { right: 15%; width: auto !important; max-width: none !important; z-index: 1; }
body:not(.desk) #room .room-content.peek > #chatView { z-index: 3; transform: translateX(85%); box-shadow: 0 0 18px rgba(0,0,0,.25); }
body:not(.desk) #room .room-content.peek:not(.dragging) > #chatView > * { pointer-events: none; }
@keyframes curInR { from { transform: translateX(85%); } to { transform: none; } }
.cur-on { animation: curInR .22s cubic-bezier(.2,.8,.25,1) both; }
.cur-off { animation: curOffR .22s cubic-bezier(.4,0,.6,1) both; }
@keyframes curOffR { from { transform: none; } to { transform: translateX(85%); } }
body:not(.desk) #room .room-content { touch-action: pan-y; }
/* خلفية الغرفة بالتلفون: بنفسجي فاتح بدل الأبيض */
body:not(.desk) #room .room-main, body:not(.desk) #room .room-content, body:not(.desk) #room #messages, body:not(.desk) #room #usersView, body:not(.desk) #room #usersCol, body:not(.desk) #room #chatView { background: var(--room-bg, #f3ecfb) !important; }
body:not(.desk) #room .urow { background: transparent; border-bottom-color: #e3d6f1; }
body:not(.desk) #room .urow.self { background: rgba(155, 107, 194, .10); }
body:not(.desk) #room #messages .msg { border-bottom-color: #e3d6f1; }
body:not(.desk) #room #messages .welcome { border-bottom-color: #d8c6ec; }

.desk #room #messages, .desk #room #usersView { background: var(--room-bg, #fff) !important; }
.desk #room .urow { background-color: transparent; }
.bg-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 6px 2px; }
.bg-sw { height: 46px; border-radius: 10px; border: 2px solid #d9d0e4; font: inherit; font-size: 13px; color: #333; cursor: pointer; }
.bg-sw.on { border-color: #7b3fa0; box-shadow: 0 0 0 2px rgba(123,63,160,.25); font-weight: 800; }
/* قائمة المتواجدين (البردة) بالتلفون: أوف وايت */
body:not(.desk) #room #usersCol, body:not(.desk) #room #usersView { background: #fdfcfa !important; }
body:not(.desk) #room .urow { border-bottom-color: #f1ede6; }
/* (كان مخفي) */ /* التلفون: بدون زر الرسائل المحفوظة */
/* التلفون: أزرار الشريط الجوه أصغر شوية */
body:not(.desk) .composer { gap: 6px; padding: 6px 8px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
body:not(.desk) .composer input { height: 44px; font-size: 16px; }
body:not(.desk) .c-btn.send { width: 40px; height: 44px; }
body:not(.desk) .c-btn.send svg { width: 32px; height: 32px; }
body:not(.desk) .c-btn.emoji { font-size: 30px; width: 40px; height: 44px; }
body:not(.desk) .c-btn.emoji img, body:not(.desk) .c-btn.emoji svg { width: 30px; height: 30px; }
body:not(.desk) .c-btn.dots { width: 38px; height: 38px; gap: 3px; }
body:not(.desk) .c-btn.dots i { width: 6px; height: 6px; }
/* زر الثلاث نقاط انشال (الكامرة وكتم مايكي بقائمة ☰ بالغرفة) */
#moreBtn { display: none !important; }
body:not(.desk) .c-btn.mic { width: 46px; height: 46px; font-size: 24px; border-radius: 10px; }
/* التلفون: ترتيب الأزرار مثل لقانا بالضبط */
body:not(.desk) #room .room-bar { direction: ltr; flex-direction: row; }
body:not(.desk) #room .room-bar #roomCard { order: 0; margin-right: auto; direction: ltr; flex-direction: row-reverse; flex: 0 1 auto; min-width: 140px; max-width: calc(100% - 140px); box-sizing: border-box; }
body:not(.desk) #room .room-bar #roomCard .rc-text { direction: rtl; text-align: right; }
body:not(.desk) #room .room-bar #usersViewBtn { order: 1; }
body:not(.desk) #room .room-bar #chatViewBtn { order: 2; }
body:not(.desk) #room .room-bar #menuBtn { order: 3; }
body:not(.desk) #room #messages .msg { flex-direction: row-reverse; }
body:not(.desk) #room #messages .msg .mhead { width: 100%; } body:not(.desk) #room #messages .msg .mtime { margin-right: auto !important; margin-left: 0 !important; }
.pv-list-h { font-weight: 800; padding: 10px 18px !important; }
.sheet-item .pv-unread { margin-inline-start: auto; background: #e53935; color: #fff; border-radius: 10px; font-size: 12px; padding: 1px 8px; font-weight: 700; }
/* شاشة المحادثات بالتلفون (مثل لقانا) */
.conv-view { background: #fff !important; position: relative; overflow-y: auto; }
.conv-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: none; border-bottom: 1px solid #ddd; background: #fff; font: inherit; text-align: right; cursor: pointer; direction: ltr; }
.conv-row .conv-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; direction: rtl; text-align: left; }
.conv-row .conv-tx b { font-size: 19px; font-weight: 500; color: #111; direction: ltr; }
.conv-row .conv-tx small { font-size: 14px; color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.conv-row .conv-unread { background: #e53935; color: #fff; border-radius: 10px; font-size: 12px; padding: 1px 8px; font-weight: 700; }
.conv-row:active { background: #f3f3f3; }
.conv-fab { position: absolute; right: 10px; bottom: 14px; min-width: 76px; height: 50px; border-radius: 6px; border: 2px solid #2e6f62; background: #56d1bd; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px; color: #fff; font-size: 18px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.25); direction: ltr; }
body:not(.desk) #room .room-bar #chatViewBtn.on { background: #fff; border-radius: 4px; }
.conv-row .conv-tx { direction: ltr !important; align-items: flex-start; text-align: left; }
.conv-row .conv-tx b, .conv-row .conv-tx small { unicode-bidi: plaintext; text-align: left; }
.conv-row .conv-unread { order: 3; }
/* صلاحية أعلى من مستوى اللون: مضللة */
.colors-table td.cap-off { background: #eceff2; opacity: .5; }
.acc-perms .me-check.cap-off { opacity: .4; }
/* المتواجدين بالتلفون: يملون العرض والأسماء ثابتة يسار (الصورة يسار والاسم يمها) */
body:not(.desk) #room #usersCol { flex: 1; width: 100%; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
/* القائمة تنسحب لفوگ وجوّة لما يكثرون المتواجدين (بدونها تطول وتنقص من تحت) */
body:not(.desk) #room #usersView { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
body:not(.desk) #room #usersView .urow { direction: ltr; }
body:not(.desk) #room #usersView .urow .uname, body:not(.desk) #room #usersView .urow .uinfo { text-align: left; }
/* نوافذ التنبيه والسؤال (مثل «هل ترغب بمغادرة الغرفة؟») بنص الشاشة بالتلفون */
body:not(.desk) .sheet:has(> .alert-card) { align-items: center; justify-content: center; }
body:not(.desk) .sheet-card.alert-card { width: min(360px, calc(100% - 32px)) !important; margin: 0 auto; border-radius: 6px; }
/* شاشة الخروج: شريط بعرض الشاشة بنصّها، سؤال فوك وزرّين وردي (لا / نعم) */
.sheet:has(> .leave-ask-card) { align-items: center; justify-content: center; }
.sheet-card.leave-ask-card { width: 100% !important; max-width: 520px !important; margin: 0 auto !important; padding: 0 !important; border: none !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible !important; animation: none !important; }
.leave-ask-card .la-q { background: #fff; color: #222; text-align: center; font-size: 20px; font-weight: 700; padding: 22px 16px; direction: rtl; }
.leave-ask-card .la-btns { display: flex; gap: 14px; background: #efefef; padding: 14px 16px; direction: rtl; }
.leave-ask-card .la-btn { flex: 1; border: none; border-radius: 6px; background: #c76a9c; color: #fff; font-size: 18px; font-weight: 700; padding: 14px 0; cursor: pointer; }
.leave-ask-card .la-btn:active { background: #b2567f; }
/* الدردشة بالتلفون: الاسم والكتابة يبدون من اليسار يم الصورة، والوقت يمين */
body:not(.desk) #room #messages .msg .mhead { direction: ltr; }
body:not(.desk) #room #messages .msg .mhead .mname, body:not(.desk) #room #messages .msg .mhead .mpv { unicode-bidi: plaintext; }
body:not(.desk) #room #messages .msg .mhead .mtime { margin-left: auto !important; margin-right: 0 !important; }
body:not(.desk) #room #messages .msg .mtext { text-align: left; }
/* نافذة كتابة نص (مثل ارسال تحذير) */
.alert-card .ask-body { flex-direction: column; align-items: stretch; gap: 8px; }
.alert-card .ask-input { width: 100%; box-sizing: border-box; padding: 7px 9px; border: 1px solid #b9c3cf; border-radius: 3px; font: inherit; font-size: 14px; }
.alert-card .warn-by { display: block; margin-bottom: 4px; color: #b3261e; }
.alert-card .warn-text { font-size: 15px; overflow-wrap: anywhere; }
/* التلفون: اسم المتكلم والعد التنازلي بكارت الغرفة، والشريط الثاني ينشال */
body:not(.desk) #room .speak-strip { display: none !important; }
body:not(.desk) #room #roomCard .rc-sub.rc-timer { direction: ltr; font-size: 16px; font-weight: 600; color: #333; font-variant-numeric: tabular-nums; text-align: left; }
body:not(.desk) #room #roomCard.on-air .rc-name { font-weight: 700; }
/* قائمة الشخص بالتلفون: قائمة صغيرة منبثقة يم الاسم (بدل اللوحة من جوه) */
body:not(.desk) .sheet.qa { background: rgba(0,0,0,.12); display: block; }
body:not(.desk) .sheet-card.qa-pop { position: fixed; border-radius: 10px; padding: 4px 0; max-height: 62vh; overflow-y: auto; scrollbar-width: none; background: #fff; border: 1px solid #d6cce2; box-shadow: 0 8px 26px rgba(0,0,0,.28); animation: qaIn .14s ease-out; -webkit-mask-image: linear-gradient(transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%); mask-image: linear-gradient(transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%); }
body:not(.desk) .sheet-card.qa-pop::-webkit-scrollbar { display: none; }
@keyframes qaIn { from { opacity: 0; transform: scale(.94); } }
body:not(.desk) .qa-pop .sheet-head { padding: 8px 12px 9px; gap: 10px; }
body:not(.desk) .qa-pop .sheet-head .sh-av { width: 36px; height: 36px; font-size: 22px; border-radius: 9px; }
body:not(.desk) .qa-pop .sheet-head .sh-name { font-size: 16px; }
body:not(.desk) .qa-pop .sheet-item { padding: 10px 14px; font-size: 15.5px; min-height: 0; }
body:not(.desk) .qa-pop .sheet-item .si { font-size: 18px; }
.qa-arrow { position: fixed; width: 16px; height: 16px; background: #fff; border-left: 1px solid #d6cce2; border-top: 1px solid #d6cce2; transform: rotate(45deg); z-index: 2; }
.qa-arrow.up { transform: rotate(225deg); }
.sheet.closing .qa-arrow { opacity: 0; }
/* خيارات القائمة: شفافة، ومن تضغط عليها تتضلل (ومن ترفع إصبعك ترجع) */
body:not(.desk) .qa-pop .sheet-item { background: transparent; -webkit-tap-highlight-color: transparent; transition: background .08s; }
body:not(.desk) .qa-pop .sheet-item:active, body:not(.desk) .qa-pop .sheet-item:focus-visible { background: #e3dcef; }
/* شريط الأزرار السريع على الرسالة (تلفون) */
.qa-bar { position: fixed; z-index: 900; max-width: calc(100vw - 16px); background: #2f2540; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.3); animation: qaIn .13s ease-out; }
/* قائمة الرسالة بالتلفون: مربع غامق، كل خيار بسطر وبينهم خط (مثل لقانا) */
.msg-menu { position: fixed; z-index: 950; width: min(220px, calc(100vw - 16px)); background: #333; border-radius: 3px; box-shadow: 0 8px 24px rgba(0,0,0,.45); padding: 0 6px; direction: rtl; }
.mm-item { display: block; width: 100%; background: none; border: 0; border-bottom: 1px solid #555; color: #fff; font-family: inherit; font-size: 17px; text-align: right; padding: 12px 10px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-item:last-child { border-bottom: 0; }
.mm-item:active { background: #444; }
.mm-back { color: #bbb; font-size: 14px; padding: 9px 10px; }
.mm-item.mm-off { color: #8a8a8a; }
.mm-item.on { background: #4a4a4a; }
.msg-menu { animation: mmGrow .14s ease-out; transform-origin: 50% 0; }
@keyframes mmGrow { from { opacity: .4; transform: scale(.92); filter: grayscale(1) brightness(1.6); } to { opacity: 1; transform: none; filter: none; } }
/* مربع خيارات المشرف: فوگ الأول ومزاح لليسار، ويتمرر إذا طويل */
.msg-menu.mm-subbox { z-index: 960; width: min(270px, calc(100vw - 16px)); max-height: calc(100vh - 150px); overflow-y: auto; box-shadow: 0 10px 28px rgba(0,0,0,.6); }
.qa-scroll { display: flex; overflow-x: auto; scrollbar-width: none; padding: 4px; direction: rtl; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%); }
.qa-scroll::-webkit-scrollbar { display: none; }
.qa-btn { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 58px; padding: 7px 8px 6px; border: 0; background: transparent; color: #fff; border-radius: 9px; font: 13px 'Tajawal', Tahoma, sans-serif; -webkit-tap-highlight-color: transparent; }
.qa-btn:active { background: rgba(255,255,255,.16); }
.qa-btn + .qa-btn { border-right: 1px solid rgba(255,255,255,.12); border-radius: 0; }
.qa-ic { font-size: 21px; line-height: 1.1; }
.qa-lb { opacity: .92; white-space: nowrap; }
.qa-tip { position: absolute; bottom: -7px; width: 16px; height: 16px; background: #2f2540; transform: rotate(45deg); border-radius: 2px; }
.qa-bar.up .qa-tip { bottom: auto; top: -7px; }
/* قائمة الرابط: عنوان الرابط فوك، خط، والخيارات */
.sheet-card.link-card { padding: 0 !important; background: #f6f7f9 !important; border-radius: 6px; min-width: min(300px, calc(100vw - 32px)); }
.link-card .link-head { padding: 12px 16px; text-align: center; font: 700 13px Tahoma, sans-serif; color: #444; direction: ltr; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid #dcdfe4; }
.link-card .link-items { padding: 8px 0; }
.link-card .link-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; padding: 11px 18px; font: 15px 'Tajawal', Tahoma, sans-serif; color: #1b2430; text-align: right; cursor: pointer; }
.link-card .link-item:active, .link-card .link-item:hover { background: #e7e9ee; }
.link-card .li-ic { font-size: 18px; }
#messages .mtext a.mlink { color: #1565c0; text-decoration: underline; word-break: break-all; }
/* سمايلات صدى */
img.ssm { height: 1.35em; width: 1.35em; vertical-align: -0.3em; margin: 0 1px; }
img.ssm.big { height: 64px; width: 64px; vertical-align: middle; }
.emoji-panel button.ssm-btn img { width: 34px; height: 34px; display: block; }
.emoji-panel .em-tab img.ssm-tab { width: 24px; height: 24px; display: block; margin: auto; }
/* معلومات الملف الشخصي: بطاقة كبيرة ملونة تتقلّب بالأسهم (مثل لقانا) */
.pv-slider { padding: 10px 8px 4px; }
.pv-slide { position: relative; border-radius: 4px; min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; padding: 18px 44px 52px; transition: background .25s; text-align: center; }
.pv-sl-ic img.pv-sl-emo { width: 64px; height: 64px; }
.pv-sl-ic { font-size: 54px; line-height: 1; }
.pv-sl-lab { font-weight: 800; font-size: 15px; opacity: .95; }
.pv-sl-val { font-weight: 800; font-size: 20px; word-break: break-word; }
.pv-sl-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.8); color: #555; font-size: 22px; line-height: 1; cursor: pointer; font-family: inherit; }
.pv-sl-arrow.prev { left: 8px; } .pv-sl-arrow.next { right: 8px; }
.pv-sl-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 12px; direction: ltr; }
.pv-sl-dot { border: 0; background: none; padding: 2px 2px 4px; cursor: pointer; font-size: 18px; border-bottom: 2px solid transparent; }
.pv-sl-dot.on { border-bottom-color: #fff; }
.pv-sl-dot img.emo { width: 20px; height: 20px; vertical-align: middle; }
/* صلاحياتي */
.my-perms { padding: 8px 14px 14px; max-height: 60vh; overflow-y: auto; }
.mp-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #eee; color: #999; font-size: 15px; }
.mp-row.ok { color: #1e2a33; font-weight: 600; }
.mp-row .mp-ic { font-size: 15px; }
/* ===== الوجوه بشكل لقانا (صور EmojiOne مدورة ومظللة) ===== */
img.emo { height: 1.3em; width: 1.3em; vertical-align: -0.28em; margin: 0 1px; object-fit: contain; }
img.emo.big { height: 34px; width: 34px; vertical-align: middle; margin: 2px 1px; }
.emoji-panel button.emo-btn { display: grid; place-items: center; padding: 5px !important; }
.emoji-panel img.emo-pick { width: 32px; height: 32px; display: block; }
.emoji-panel .em-tab img.emo-tab { width: 26px; height: 26px; display: block; margin: auto; }
/* شريط التبويبات بلون لقانا (أزرق مخضر)، والتبويب اللي مو مختار رمادي باهت */
.emoji-panel .em-tabs { background: #5fa9aa; }
.emoji-panel .em-tab:not(.on) { opacity: .45; filter: grayscale(1); }
/* أيقونات الدخول والخروج (رسم صدى): سهم أخضر داخل / أحمر طالع */
.sysline.join::before, .sysline.leave::before { content: ''; display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-inline-end: 6px; background-size: contain; background-repeat: no-repeat; position: static !important; transform: none !important; }
.sysline.join::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='13' y='3' width='8' height='18' rx='2' fill='%23a5d6a7' stroke='%232e7d32' stroke-width='1.6'/%3E%3Cpath d='M2 12h11M9 7.5l4.5 4.5L9 16.5' stroke='%232e7d32' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sysline.leave::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='8' height='18' rx='2' fill='%23ef9a9a' stroke='%23c62828' stroke-width='1.6'/%3E%3Cpath d='M9 12h12M17.5 7.5L22 12l-4.5 4.5' stroke='%23c62828' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.desk .sysline.join, .desk .sysline.leave { padding-left: 10px; }
/* ظل ناعم تحت الشريط اللي فوك (مثل top_shadow) */
#room .room-bar { position: relative; z-index: 5; box-shadow: 0 3px 8px rgba(40, 10, 70, .22); }
/* حركة القوائم المنبثقة: تكبر من مكان السهم وتنطوي برجوعها (مثل grow/shrink بلقانا) */
@keyframes qaGrow { 0% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes qaShrink { to { opacity: 0; transform: scale(.4); } }
.qa-bar { animation: qaGrow .2s cubic-bezier(.2,.8,.3,1.2) both; }
.qa-bar.out { animation: qaShrink .14s ease-in both; pointer-events: none; }
body:not(.desk) .sheet-card.qa-pop { animation: qaGrow .2s cubic-bezier(.2,.8,.3,1.2) both; }
body:not(.desk) .sheet.qa.closing .sheet-card.qa-pop { animation: qaShrink .14s ease-in both; }
/* ===== الكمبيوتر: ألوان وأحجام مثل لقانا (مقاسة من صورة شاشتهم) — الغرف بدون تصميم خاص ===== */
.desk #room:not(.themed) { border: 2px solid #408080 !important; }
.desk #room:not(.themed) .room-bar { background: #408080 !important; border-bottom: 1px solid #004040 !important; min-height: 38px; }
.desk #room:not(.themed) .room-bar, .desk #room:not(.themed) .room-bar * { color: #fff; }
.desk #room:not(.themed) #usersCol, .desk #room:not(.themed) .speak-strip, .desk #room:not(.themed) .d-micbar { border-right: 2px solid #004040 !important; }
/* شريط «أنا» وشريط التبويبات: 52 بكسل، تدرج فيروزي فاتح للأبيض */
.desk #room:not(.themed) .d-me, .desk #room:not(.themed) .ptabs { background: linear-gradient(#acd6d6, #ffffff) !important; border-bottom: 1px solid #b9d6d6 !important; border-top: 1px solid #004040 !important; min-height: 52px; color: #1b2430 !important; }
.desk #room:not(.themed) .d-me { padding: 8px 10px; }
.desk #room:not(.themed) .ptabs .ptab, .desk #room:not(.themed) .ptabs button { background: #c1d5d5 !important; border: 1px solid #8fb5b5 !important; border-bottom: none !important; border-radius: 3px 3px 0 0; color: #1b2430 !important; }
.desk #room:not(.themed) .ptabs .ptab.on, .desk #room:not(.themed) .ptabs button.on { background: #e8f3f3 !important; }
/* المستخدمين: أسطر 40 بكسل، خلفية بيضة وفاصل رصاصي فاتح */
.desk #room:not(.themed) #usersView { background: #fff !important; }
.desk #room:not(.themed) .urow { min-height: 40px; border-bottom: 1px solid #efefef !important; }
.desk #room:not(.themed) .urow:hover { background: #f4fafa; }
/* الرسائل: شريط الاسم #f5f5f5 بارتفاع 18، والجسم أبيض، وخط لون الشخص 4 بكسل يسار */
.desk #room:not(.themed) #messages { background: #fff !important; }
.desk #room:not(.themed) .msg { margin: 0 !important; border-left: 4px solid var(--c, #999) !important; border-bottom: 1px solid #f2f2f2 !important; }
.desk #room:not(.themed) .msg .mhead { background: #f5f5f5 !important; border-bottom: none !important; min-height: 18px; padding: 1px 8px !important; font-size: 13px; }
.desk #room:not(.themed) .msg .mtime { color: #777; font-size: 11px; }
/* دخل / طلع: سطر 22 بكسل، أخضر فاتح / وردي فاتح، وخط رصاصي تحته */
.desk #room:not(.themed) .sysline { margin: 0 !important; border-radius: 0 !important; border: none !important; border-bottom: 1px solid #cccccc !important; min-height: 22px; padding: 3px 10px !important; font-size: 13px; }
.desk #room:not(.themed) .sysline.join { background: #e1ffe1 !important; color: #1b2430 !important; }
.desk #room:not(.themed) .sysline.leave { background: #fae7e8 !important; color: #1b2430 !important; }
/* الشريط اللي جوه (المايك والكتابة): 52 بكسل، لامع بنصّين مثل لقانا */
.desk #room:not(.themed) .d-micbar, .desk #room:not(.themed) .composer { background: linear-gradient(#d0e8e8 0%, #aed8d8 48%, #83bebe 50%, #a5d2d2 100%) !important; border-top: 1px solid #7fb3b3 !important; min-height: 52px; }
.desk #room:not(.themed) .composer input { background: #fff; border: 1px solid #98abab !important; border-radius: 0 !important; height: 30px; }
.desk .sysline.join::before, .desk .sysline.leave::before { content: '' !important; position: absolute !important; left: 6px; top: 50% !important; transform: translateY(-50%) !important; margin: 0; }
/* شارة الاسم المحمي */
.pshield { display: inline-flex; vertical-align: -2px; margin-inline-start: 4px; }
.pshield svg { display: block; }
/* الملف الملكي 👑 والعادي 🛡️ */
.pshield.royal { vertical-align: -1px; filter: drop-shadow(0 0 2px rgba(245,183,0,.6)); }
.urow.royal { box-shadow: inset 3px 0 0 #e0a000; }
.urow.royal:not(.bn):not(.has-cover) { background-image: linear-gradient(90deg, rgba(245,183,0,.16), rgba(245,183,0,0) 60%) !important; }
.urow.royal .uname { text-shadow: 0 0 6px rgba(245,183,0,.45); font-weight: 800; }
.msg.royal .mhead { background-image: linear-gradient(90deg, rgba(245,183,0,.18), transparent 70%) !important; }
/* شباك الملف بألوان الغرفة اللي انفتح منها */
.sheet-card.prof-card.rthemed { border-color: var(--pt-border) !important; }
.prof-card.rthemed .rl-head { background: var(--pt-title) !important; color: var(--pt-title-fg) !important; border-bottom-color: var(--pt-border) !important; }
.prof-card.rthemed .pv-tabs { border-color: var(--pt-border); }
.prof-card.rthemed .pv-tab.on { background: var(--pt-title); color: var(--pt-title-fg); }
.prof-card.rthemed .pv-body, .prof-card.rthemed .me-foot { background: var(--pt-frame) !important; }
.prof-card.plain .pv-frame { border-color: #b8c4cc; }
.prof-card.royal .pv-frame { border: 3px solid #f5b700; box-shadow: 0 0 14px rgba(245,183,0,.55), 0 0 0 1px rgba(255,255,255,.35) inset; }
.prof-card .pv-kind { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.prof-card .pv-kind.royal { background: linear-gradient(#ffe27a, #f5b700); color: #5a3a00; }
.prof-card .pv-kind.plain { background: #e3f6ec; color: #1b6b47; }
/* الملكي: إطار ذهبي حول الصورة، ودخول ذهبي يلمع */
.urow.royal .utile { box-shadow: 0 0 0 2px #f5b700, 0 0 10px rgba(245,183,0,.55); }
.sysline.royal-join { background: linear-gradient(90deg, #fff6d6, #ffe48a, #fff6d6) !important; color: #5a3a00 !important; font-weight: 700; background-size: 200% 100%; animation: royalShine 2.4s linear 2; }
@keyframes royalShine { from { background-position: 0 0; } to { background-position: 200% 0; } }
/* سطر الملكي مثل لقانا: أطول، صورة مربعة كبيرة، عبارة تحت الاسم، وشريط ذهبي بتاج بآخره */
.urow.royal { position: relative; min-height: 50px !important; padding-inline-end: 32px !important; }
.urow.royal .utile { width: 46px !important; height: 46px !important; border-radius: 3px !important; }
.urow.royal .uname { display: flex !important; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.15; min-width: 0; }
.urow.royal .un-line { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.urow.royal .ustatus.st-text { display: block !important; font-size: 12px !important; color: #555 !important; font-weight: 400 !important; text-shadow: none !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urow.royal.bn-night .ustatus.st-text, .urow.royal.bn-royalnight .ustatus.st-text { color: #d9d2b8 !important; }
.royal-ribbon { position: absolute; right: 4px; top: 0; line-height: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); pointer-events: none; }
.urow.royal .uicons { margin-inline-end: 4px; }
/* بالتلفون: كل الصفوف تترك نفس مكان الشريط الذهبي، حتى الإيد والمايك يجون بنفس العمود */
body:not(.desk) #room #usersView .urow:not(.royal) { padding-right: 32px !important; }
body:not(.desk) #room #usersView .urow:not(.royal) .uicons { margin-inline-end: 4px; }
/* ألوان سطر الملكي الجديدة */
.bn-snow { background: linear-gradient(90deg, #ffffff, #f1f2f4 45%, #dfe2e7) !important; }
.bn-ruby { background: linear-gradient(90deg, #ffe3e6, #ff9aa8 55%, #d9334f) !important; }
.bn-royalnight { background: linear-gradient(90deg, #2b2416, #15120b 60%, #3a2c0c) !important; }
.bn-royalnight .uname, .bn-royalnight .un-line { text-shadow: 0 1px 2px #000; }
.bn-mint { background: linear-gradient(90deg, #e6fff6, #a8f0d6 55%, #5fd3ae) !important; }
.bn-sky { background: linear-gradient(90deg, #eef7ff, #bfe2ff 55%, #84c4f5) !important; }
.bn-chip.bn-royalnight { color: #f5c400; }
.urow.bn-royalnight .un-line, .urow.bn-night .un-line { text-shadow: 0 0 3px #fff, 0 0 6px rgba(255,255,255,.85) !important; }

/* التصويت */
.sysline.poll-line { background: #eef6f6; border: 1px solid #9cc7c7; color: #1f3d3d; text-align: start; margin: 6px; }
.poll-q { font-weight: 700; margin-bottom: 6px; }
.poll-opt { position: relative; display: flex; justify-content: space-between; gap: 8px; width: 100%; margin: 4px 0; padding: 6px 10px; border: 1px solid #b7d6d6; border-radius: 6px; background: #fff; cursor: pointer; overflow: hidden; font: inherit; color: inherit; }
.poll-opt:disabled { cursor: default; }
.poll-opt.mine { border-color: #2a8a8a; font-weight: 700; }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: #cfe9e9; z-index: 0; transition: width .3s; }
.poll-t, .poll-n { position: relative; z-index: 1; }
.poll-n { color: #4a6d6d; font-size: 12px; white-space: nowrap; }
.poll-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #4a6d6d; margin-top: 4px; }
.poll-end { border: 1px solid #c55; color: #a33; background: #fff; border-radius: 5px; padding: 2px 10px; cursor: pointer; font: inherit; }
.poll-form .poll-opts { display: flex; flex-direction: column; gap: 6px; }
.ban-country-sel { margin-inline-start: 8px; padding: 3px 6px; }.newmsg-bar { flex: none; display: block; width: 100%; border: 0; border-top: 1px solid #c9dbe6; background: #eef6fb; color: #1565c0; font: inherit; font-size: 12px; padding: 3px 6px; text-align: center; cursor: pointer; }
.newmsg-bar:hover { background: #dcecf7; }
.newmsg-bar.hidden { display: none; }
/* سهم الأسماء المحفوظة مثل لقانا: دائرة بيها سهم، والقائمة صغيرة تحت الخانة */
.rl-dd { font-weight: 900; color: #333; line-height: 1; padding: 0; cursor: pointer; }
.rl-card.lg .rl-dd { width: 18px; height: 18px; flex: none; border: 2px solid #444 !important; border-radius: 50%; background: #fff; font-size: 11px; margin-inline-start: 2px; display: inline-flex; align-items: center; justify-content: center; }
.rl-card.lg .rl-dd:hover { background: #e4eef6; }
.rl-card.lg .rl-ddlist { top: 22px; right: 22px; border-radius: 0; box-shadow: 0 2px 6px rgba(0,0,0,.2); max-height: 120px; direction: ltr; }
.rl-card.lg .rl-ddi { padding: 1px 4px; font-size: 12px; gap: 0; }
.rl-card.lg .rl-ddi:hover { background: #3399ff; color: #fff; }
.rl-card.lg .rl-ddn { font-weight: 400; }
.rl-card.lg .rl-name { border: 1px solid #b9c2cd; border-inline-start: 4px solid #3fb6d6; background: #fff; height: 22px; box-sizing: border-box; padding-inline-end: 1px; }
.rl-card.lg .rl-name input { border: 0 !important; height: 20px !important; outline: none; }
.rl-card.lg .rl-ddlist { top: 21px; left: -4px; right: -1px; }
/* مثل لقانا: ماكو ☰ جوه الغرفة بالكمبيوتر (بالتلفون تبقى) */
body.desk #room #menuBtn { display: none !important; }
body.desk #room .ptab-count { display: none !important; }
/* ===== تصميم الغرفة: نفس ترتيب لقانا بالضبط ===== */
.st-tabs { overflow: hidden; }
.st-tab { padding: 3px 6px; font-size: 12px; gap: 3px; flex-shrink: 1; min-width: 0; }
.st-tab svg { width: 20px; height: 20px; flex: none; }
.st-body.st-design { overflow: hidden; gap: 0; padding: 8px 6px 6px; align-items: flex-start; }
.st-design > .st-col { flex: 0 0 auto; width: 300px; gap: 3px; padding-left: 8px; margin-left: 6px; border-left: 1px solid #b8c6d0; align-self: stretch; }
.st-dtop { display: flex; gap: 10px; align-items: flex-start; }
.st-design .st-colors { grid-template-columns: auto 36px; gap: 3px 8px; }
.st-design .st-color { font-size: 12px; }
.st-design .st-color input { width: 36px; height: 17px; border: 1px solid #555; border-radius: 0; -webkit-appearance: none; appearance: none; }
.st-design .st-color input::-webkit-color-swatch-wrapper { padding: 0; }
.st-design .st-color input::-webkit-color-swatch { border: none; border-radius: 0; }
.st-design .st-opts { flex: 1; min-width: 0; gap: 4px; margin-top: 20px; }
.st-design .me-check { font-size: 12px; gap: 4px; }
.st-design .me-check .me-cb, .st-design .me-check input { width: 13px; height: 13px; border-radius: 0; }
.st-design .st-line { font-size: 12px; gap: 6px; }
.st-design .st-line span { white-space: nowrap; }
.st-design .st-line select { height: 21px; border-radius: 0; font-size: 12px; padding: 0 3px; border-color: #a6b2bc; }
.st-design .st-field { font-size: 12px; color: #222; gap: 1px; margin-top: 2px; }
.st-design .st-field input { height: 19px; border-radius: 0; border: 1px solid #7a8590; font-size: 12px; padding: 0 4px; }
.st-design .st-field textarea { border-radius: 0; border: 1px solid #7a8590; font-size: 12px; padding: 2px 4px; resize: none; height: 46px; }
.st-design .st-mobile { margin-top: 8px; justify-content: center; }
.st-design .st-mobile .st-line select { flex: 0 0 120px; }
.st-design .st-pvcol { flex: 1; min-width: 0; gap: 2px; align-items: flex-start; }
.st-design .st-preview { width: 100%; max-width: 340px; border-width: 4px; }
.st-design .pv-cols { height: 130px; }
.st-design .m-preview { min-width: 0; width: 72%; max-width: 230px; border-radius: 0; padding: 6px 8px; direction: ltr; }
.st-design .me-check input[type=checkbox] { width: 13px !important; height: 13px !important; min-width: 13px; border-radius: 0 !important; margin: 0; }
.st-design .st-pvcol { align-items: stretch; }
.st-design .st-preview { max-width: none; }
.st-design .pv-cols { height: 150px; }
.st-design .m-preview { align-self: flex-end; }
.st-design .m-preview b { display: flex; flex-direction: column; align-items: center; line-height: 1.1; font-weight: 400; }
.st-design .m-preview small { font-size: 9px; opacity: .85; }
.st-design .st-opts .st-line select { flex: 1; min-width: 70px; }
.st-design .me-cb:checked::after { left: 3px; top: -1px; width: 4px; height: 8px; border-width: 0 2px 2px 0; }
.st-design .me-check input[type=checkbox] { padding: 0 !important; }
.st-design select, .st-design input:not([type=checkbox]):not([type=color]), .st-design textarea { border-radius: 0 !important; }
/* ===== اعدادات الغرفة من الجهة الثانية مثل لقانا (التبويبات والأعمدة تبدي من اليسار) ===== */
.st-tabs { direction: ltr; justify-content: flex-start; }
.st-tab span { unicode-bidi: plaintext; }
.st-title { direction: ltr; text-align: left; }
.st-body { direction: ltr; }
.st-body h4, .st-body span, .st-body p, .st-body b { unicode-bidi: plaintext; }
.st-body input:not([type=checkbox]):not([type=radio]):not([type=color]), .st-body textarea, .st-body select { direction: rtl; }
.st-body .me-radio, .st-body .me-check { direction: ltr; }
.st-col + .st-col { border-right: none; padding-right: 0; border-left: 1px solid #dbe5ea; padding-left: 18px; }
.st-design > .st-col { padding-left: 0; margin-left: 0; border-left: none; padding-right: 8px; margin-right: 6px; border-right: 1px solid #b8c6d0; }
.st-design .st-preview, .st-design .pv-chat { direction: ltr; }
.st-design .m-preview { align-self: flex-start; }
.st-design .st-mobile { justify-content: flex-start; }
.st-design .pv-chat { direction: rtl; }

/* ===== شكل الشات «فقاعات» بالتلفون (الافتراضي) =====
   كل رسالة بفقاعة بيضاء مدوّرة يم الصورة، على خلفية بنفسجية بيها رسومات خفيفة، والكلام كبير وعريض */
body:not(.desk) #room #messages.chat-bubbles {
  background-color: #e8dcf6 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160' fill='none' stroke='%23cdb6ea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 30c-4-6-14-3-12 5 1 5 12 12 12 12s11-7 12-12c2-8-8-11-12-5z'/%3E%3Cpath d='M110 18l4 9 10 1-7 7 2 10-9-5-9 5 2-10-7-7 10-1z'/%3E%3Cpath d='M64 96V74l18-4v22'/%3E%3Ccircle cx='59' cy='97' r='5'/%3E%3Ccircle cx='77' cy='93' r='5'/%3E%3Cpath d='M132 104v12M126 110h12'/%3E%3Ccircle cx='30' cy='128' r='7'/%3E%3Cpath d='M98 136c6-8 18-8 24 0'/%3E%3Cpath d='M70 26h0M148 64h0M14 80h0' stroke-width='4'/%3E%3C/svg%3E") !important;
  background-size: 160px 160px !important;
  padding: 6px 0 12px;
}
body:not(.desk) #room #messages.chat-bubbles .msg { border: none !important; background: none; padding: 4px 8px !important; gap: 6px; align-items: flex-start; }
body:not(.desk) #room #messages.chat-bubbles .msg .mav { width: 44px; height: 44px; border-radius: 8px; background: rgba(255,255,255,.6); }
body:not(.desk) #room #messages.chat-bubbles .msg .mbody { flex: 0 1 auto; min-width: 110px; max-width: calc(100% - 56px); background: #fff; border-radius: 16px; padding: 6px 12px 8px; box-shadow: 0 1px 2px rgba(70, 30, 110, .14); }
body:not(.desk) #room #messages.chat-bubbles .msg .mhead { font-size: 13px; gap: 16px; }
body:not(.desk) #room #messages.chat-bubbles .msg .mname { font-weight: 700; }
body:not(.desk) #room #messages.chat-bubbles .msg .mtime { font-size: 11px; }
body:not(.desk) #room #messages.chat-bubbles .msg .mtext { font-size: 19px; font-weight: 800; line-height: 1.3; margin-top: 2px; }
body:not(.desk) #room #messages.chat-bubbles .msg.mention .mbody { background: #fff7d6; box-shadow: inset 0 0 0 2px #f0a92a; }
body:not(.desk) #room #messages.chat-bubbles .msg.mention { background: none !important; box-shadow: none; }

/* ===== القوائم السريعة بالتلفون (الضغط على شخص، النقاط...): داكنة بكتابة بيضاء وخطوط فاصلة ===== */
body:not(.desk) .sheet-card.qa-pop { background: rgba(38, 38, 40, .96); border: none; border-radius: 4px; padding: 0; box-shadow: 0 6px 22px rgba(0,0,0,.45); }
body:not(.desk) .qa-pop .sheet-head { border-bottom: 1px solid rgba(255,255,255,.14); }
body:not(.desk) .qa-pop .sheet-head .sh-name { color: #fff !important; }
body:not(.desk) .qa-pop .sheet-head .muted { color: #bdb7c6; }
body:not(.desk) .qa-pop .sheet-item { color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); padding: 11px 16px; font-size: 16px; justify-content: flex-start; }
body:not(.desk) .qa-pop .sheet-item:last-child { border-bottom: none; }
body:not(.desk) .qa-pop .sheet-item .si { display: none; }
body:not(.desk) .qa-pop .sheet-item:active, body:not(.desk) .qa-pop .sheet-item:focus-visible { background: rgba(255,255,255,.12); }
body:not(.desk) .qa-arrow { background: rgba(38, 38, 40, .96); border-color: transparent; }

/* ===== نافذة الدخول للغرفة بالتلفون (مثل لقانا): تبويبات فوك، خانات بدون عناوين، والأيقونة داخل خانة الاسم ===== */
body:not(.desk) .sheet-card.rl-card:not(.lg) { background: #fff; padding: 0 0 6px; border-radius: 6px 6px 0 0; }
body:not(.desk) .rl-card:not(.lg) .rl-head, body:not(.desk) .rl-card:not(.lg) .rl-logo, body:not(.desk) .rl-card:not(.lg) .rl-lbl,
body:not(.desk) .rl-card:not(.lg) .rl-arrows, body:not(.desk) .rl-card:not(.lg) .rl-del { display: none !important; }
body:not(.desk) .rl-card:not(.lg) .rl-room { padding: 8px 0 4px; font-size: 13px; border: none; }
body:not(.desk) .rl-card:not(.lg) .rl-radios { margin: 6px 12px 4px; padding: 0; gap: 0; border: none; background: #ece6f3; border-radius: 6px; overflow: hidden; }
body:not(.desk) .rl-card:not(.lg) .rl-radio { flex: 1; justify-content: center; padding: 10px 0; font-size: 15px; font-weight: 700; color: #6d6378; }
body:not(.desk) .rl-card:not(.lg) .rl-radio input { display: none; }
body:not(.desk) .rl-card:not(.lg) .rl-radio:has(input:checked) { background: var(--m-bar, #9b5bb8); color: #fff; border-radius: 6px; }
body:not(.desk) .rl-card:not(.lg) .rl-body { padding: 8px 12px 4px; }
body:not(.desk) .rl-card:not(.lg) .rl-fields { gap: 8px; }

/* ===== الغرفة بالتلفون: نفس شكل لقانا (فيديو 14/11) ===== */
/* الشريط العلوي: أيقونات ملونة (ناس خضر، دردشة صفرة، قائمة رمادية) بدون مربع خلفها */
body:not(.desk) #room .room-bar .hdr-ico { background: none !important; box-shadow: none; }
body:not(.desk) #room .room-bar .hv-ico { display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
body:not(.desk) #room .room-bar .burger i { background: linear-gradient(#ffffff, #d9d9d9); box-shadow: 0 1px 0 #7a7a7a, inset 0 -1px 0 #9a9a9a; }
/* بطاقة الغرفة: صغيرة على قد محتواها، سطرين (اللي عالمايك + Unlimited/الوقت)، والسماعة يسارها */
body:not(.desk) #room #roomCard { flex: 0 1 auto; max-width: 46%; min-width: 0; padding: 5px 12px 5px 8px; border-radius: 12px; gap: 6px; margin-inline-end: auto; }
body:not(.desk) #room #roomCard .rc-name { font-size: 15px; font-weight: 500; color: #222; }
body:not(.desk) #room #roomCard .rc-sub, body:not(.desk) #room #roomCard .rc-sub.rc-timer { font-size: 15px; font-weight: 500; color: #222; text-align: left; direction: ltr; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:not(.desk) #room #roomCard .rc-spk { font-size: 26px; position: relative; line-height: 1; }
body:not(.desk) #room #roomCard .rc-spk.off { filter: none; opacity: 1; }
body:not(.desk) #room #roomCard .rc-spk.off::after { content: ''; position: absolute; right: -4px; bottom: -2px; width: 13px; height: 13px; border: 2.5px solid #e53935; border-radius: 50%; background: linear-gradient(45deg, transparent 43%, #e53935 43%, #e53935 57%, transparent 57%); }
/* صفوف المتواجدين: الاسم عريض فوگ، والحالة علامة صغيرة على زاوية الصورة، والمايك/الإيد فوگ يمين */
body:not(.desk) #room #usersView .urow:not(.royal) { min-height: 74px; align-items: flex-start; padding-top: 6px; padding-bottom: 6px; }
body:not(.desk) #room #usersView .urow:not(.royal) .utile { width: 62px; height: 62px; border-radius: 10px; background: #e6e6e6; font-size: 34px; }
body:not(.desk) #room #usersView .urow:not(.royal) .uname { font-weight: 700; font-size: 21px; padding-top: 10px; }
body:not(.desk) #room #usersView .urow .uicons { align-self: flex-start; margin-top: 8px; }
body:not(.desk) #room #usersView .utile .tile-st, body:not(.desk) #room #usersView .utile .ov { position: absolute; right: -5px; bottom: -4px; left: auto; font-size: 17px; line-height: 1; filter: none; z-index: 1; }
body:not(.desk) #room #usersView .utile .ov { filter: grayscale(1); }
body:not(.desk) #room #usersView .utile .tile-st + .ov, body:not(.desk) #room #usersView .utile .ov + .tile-st { right: 12px; }
/* الشخص اللي ضغطت عليه: سطره بنفسجي (مثل لقانا) */
body:not(.desk) #room #usersView .urow.sel:not(.royal) { background: #c38cf6 !important; }
/* زر المايك تحت: أيقونة خضرة بدون مربع (إلا وقت الإيد مرفوعة) */
body:not(.desk) #room .composer .c-btn.mic:not(.hand):not(.live) { background: none !important; border-color: transparent !important; box-shadow: none !important; }
body:not(.desk) .rl-card:not(.lg) .rl-row > input, body:not(.desk) .rl-card:not(.lg) .rl-name input { height: 44px; border: 1px solid #e2dcea; border-radius: 6px; background: #faf8fc; font-size: 16px; padding: 0 12px; }
body:not(.desk) .rl-card:not(.lg) .rl-name { align-items: center; gap: 6px; border: 1px solid #e2dcea; border-radius: 6px; background: #faf8fc; padding: 0 4px; }
body:not(.desk) .rl-card:not(.lg) .rl-name input { border: none !important; background: transparent; padding: 0 4px; }
body:not(.desk) .rl-card:not(.lg) .rl-icon { width: auto; padding: 0; border: none; background: none; }
body:not(.desk) .rl-card:not(.lg) .rl-tile, body:not(.desk) .rl-card:not(.lg) .rl-tile.is-av { width: 34px; height: 34px; font-size: 24px; padding: 0; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
body:not(.desk) .rl-card:not(.lg) .rl-tile svg { width: 34px; height: 34px; }
body:not(.desk) .rl-card:not(.lg) .rl-dd { width: 30px; height: 30px; flex-shrink: 0; border: none; border-radius: 50%; background: var(--m-bar, #9b5bb8); color: #fff; font-size: 0; position: relative; }
body:not(.desk) .rl-card:not(.lg) .rl-dd::after { content: ''; position: absolute; left: 50%; top: 55%; border: 6px solid transparent; border-top-color: #fff; transform: translate(-50%, -50%); }
body:not(.desk) .rl-card:not(.lg) .rl-ddlist { top: 48px; border: none; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-height: 260px; }
body:not(.desk) .rl-card:not(.lg) .rl-ddi { gap: 10px; padding: 9px 12px; border-bottom: 1px solid #f0ecf4; }
body:not(.desk) .rl-card:not(.lg) .rl-ddi:last-child { border-bottom: none; }
.rl-ddav { width: 30px; height: 30px; display: grid; place-items: center; font-size: 22px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.rl-ddav svg { width: 30px; height: 30px; }
.rl-ddx { padding: 4px 8px; font-size: 17px; opacity: .55; cursor: pointer; }
.rl-ddx:active { opacity: 1; }
body:not(.desk) .rl-card:not(.lg) .rl-status:not(.err):not(.wait) { display: none; }
body:not(.desk) .rl-card:not(.lg) .rl-status { padding: 4px 14px 0; }
body:not(.desk) .rl-card:not(.lg) .rl-foot { border: none; background: none; padding: 10px 12px 4px; gap: 8px; }
body:not(.desk) .rl-card:not(.lg) .rl-btn { min-width: 84px; padding: 10px 18px; border: none; border-radius: 6px; background: #ece6f3; color: #4b4256; font-weight: 700; }
body:not(.desk) .rl-card:not(.lg) .rl-btn.primary { background: var(--m-bar, #9b5bb8); color: #fff; }
body:not(.desk) .rl-card:not(.lg) .rl-reg { padding: 4px 0 6px; }
body:not(.desk) .rl-card:not(.lg) .rl-ddlist { top: auto; bottom: 50px; } /* النافذة بأسفل الشاشة، فالقائمة تنفتح لفوك */
body:not(.desk) .sheet-card.rl-card:not(.lg) { overflow: visible; }
/* نافذة الدخول بالتلفون: صغيرة ومرتبة بنص الشاشة (مو لوحة من جوه) */
body:not(.desk) .sheet:has(> .rl-card:not(.lg)) { align-items: center; justify-content: center; }
body:not(.desk) .sheet-card.rl-card:not(.lg) { width: calc(100% - 20px) !important; max-width: 360px; margin: 0 auto; border-radius: 6px; padding: 0 0 2px; box-shadow: 0 8px 28px rgba(0,0,0,.35); }
body:not(.desk) .rl-card:not(.lg) .rl-room { display: none; }
body:not(.desk) .rl-card:not(.lg) .rl-radios { margin: 8px 8px 2px; }
body:not(.desk) .rl-card:not(.lg) .rl-radio { padding: 7px 0; font-size: 14px; }
body:not(.desk) .rl-card:not(.lg) .rl-body { padding: 6px 8px 2px; }
body:not(.desk) .rl-card:not(.lg) .rl-fields { gap: 6px; }
body:not(.desk) .rl-card:not(.lg) .rl-row > input, body:not(.desk) .rl-card:not(.lg) .rl-name input { height: 36px; font-size: 15px; }
body:not(.desk) .rl-card:not(.lg) .rl-name { padding: 0 3px; }
body:not(.desk) .rl-card:not(.lg) .rl-tile, body:not(.desk) .rl-card:not(.lg) .rl-tile.is-av, body:not(.desk) .rl-card:not(.lg) .rl-tile svg { width: 28px; height: 28px; font-size: 20px; }
body:not(.desk) .rl-card:not(.lg) .rl-dd { width: 26px; height: 26px; }
body:not(.desk) .rl-card:not(.lg) .rl-dd::after { border-width: 5px; }
body:not(.desk) .rl-card:not(.lg) .rl-ddlist { bottom: auto; top: 40px; }
body:not(.desk) .rl-card:not(.lg) .rl-foot { padding: 8px 8px 6px; }
body:not(.desk) .rl-card:not(.lg) .rl-btn { min-width: 72px; padding: 7px 14px; font-size: 14px; }
body:not(.desk) .rl-card:not(.lg) .rl-ico { font-size: 18px; }
body:not(.desk) .rl-card:not(.lg) .rl-reg { padding: 0 0 6px; font-size: 13px; }

/* ===== لوحة تحكم الغرفة بالتلفون: صفحة كاملة بنفسجية، الأيقونات بالشريط الفوقاني، واسم القسم تحتها ===== */
body:not(.desk) .sheet:has(> .cp-card.cp-phone) { padding: 0 !important; align-items: stretch; }
body:not(.desk) .sheet-card.cp-card.cp-phone { position: fixed; inset: 0; width: 100vw !important; max-width: 100vw !important; height: 100% !important; max-height: none; border: none; border-radius: 0 !important; box-shadow: none; background: #f6f2fa; direction: rtl; }
.cp-phone .cp-head { background: var(--m-bar, #9b5bb8); padding: 8px 6px; gap: 4px; min-height: 52px; direction: ltr; }
.cp-phone .cp-x { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; }
.cp-phone .cp-x:hover, .cp-phone .cp-x:active { background: rgba(255,255,255,.18); }
.cp-phone .cp-side { flex: 1; width: auto; flex-direction: row; justify-content: space-around; align-items: center; background: none; border: none; box-shadow: none; padding: 0; overflow-x: auto; scrollbar-width: none; direction: rtl; }
.cp-phone .cp-side::-webkit-scrollbar { display: none; }
.cp-phone .cp-item { flex: 0 0 auto; padding: 3px; border: none !important; background: none !important; border-radius: 50%; }
.cp-phone .cp-item span { display: none; }
.cp-phone .cp-item svg { width: 34px; height: 34px; filter: none; }
.cp-phone .cp-item svg > circle:first-child { stroke: transparent; } /* كل أيقونة بلونها مثل لقانا */
.cp-phone .cp-item.on svg > circle:first-child { stroke: #2b2b2b; stroke-width: 1.6; }
.cp-phone .cp-item.off { opacity: .35; }
.cp-phone .cp-band { background: #e6dcf2; color: #4b3a5e; text-align: center; font-size: 14px; font-weight: 700; padding: 5px 10px; border: none; min-height: 0; }
.cp-phone .cp-wrap { padding: 0; gap: 0; background: #fff; flex-direction: column; }
.cp-phone .cp-main { border: none; background: #fff; }
.cp-phone .cp-table th { background: #f1eaf8; border-color: #e2d6ee; color: #4b3a5e; }
.cp-phone .cp-table td { border-bottom-color: #f1ecf6; }
.cp-phone .cp-table tbody tr.sel { background: #ece1f7; }
.cp-phone .cp-foot { background: var(--m-bar, #9b5bb8); border-top: none; color: #fff; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
.cp-phone .cp-foot, .cp-phone .cp-foot * { color: #fff; }
.cp-phone .cp-foot input, .cp-phone .cp-foot select { color: #222; }
.cp-phone .cp-btn { background: rgba(255,255,255,.16); border-radius: 6px; padding: 5px 10px; }
.cp-phone .cp-btn:active { background: rgba(255,255,255,.3); }
.cp-phone .cp-h { color: #4b3a5e; }
/* اعدادات الغرفة بالتلفون: التبويبات صف أزرار يتسحب، والمحتوى عمود واحد */
.cp-phone .st-tabs { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 6px; padding: 8px !important; background: #fff !important; border: none !important; border-bottom: 1px solid #eee5f4 !important; scrollbar-width: none; direction: rtl; height: auto !important; }
.cp-phone .st-tabs::-webkit-scrollbar { display: none; }
.cp-phone .st-tab { flex: 0 0 auto !important; display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 5px; width: auto !important; height: auto !important; margin: 0 !important; padding: 6px 12px !important; border: none !important; border-radius: 16px !important; background: #f1eaf8 !important; color: #4b3a5e !important; font-size: 13px !important; box-shadow: none !important; }
.cp-phone .st-tab.on { background: var(--m-bar, #9b5bb8) !important; color: #fff !important; }
.cp-phone .st-tab svg { width: 18px !important; height: 18px !important; }
.cp-phone .st-title { display: none !important; }
.cp-phone .st-body { display: block !important; flex: 1; overflow-y: auto; padding: 10px 12px !important; direction: rtl; }
.cp-phone .st-body > * { width: auto !important; max-width: none !important; }
.cp-phone .st-dtop { flex-wrap: wrap; gap: 10px; }
.cp-phone .st-field input, .cp-phone .st-field textarea { width: 100% !important; box-sizing: border-box; }
/* الجداول بالتلفون: كل سطر بطاقة، أول خانة عنوانها، والباقي «اسم العمود : القيمة» */
.cp-phone .cp-tbox { overflow-x: hidden; }
.cp-phone .cp-table thead { display: none; }
.cp-phone .cp-table, .cp-phone .cp-table tbody { display: block; width: 100%; }
.cp-phone .cp-table tbody tr { display: block; padding: 8px 12px; border-bottom: 1px solid #efe7f6; }
.cp-phone .cp-table tbody td { display: flex; align-items: center; gap: 8px; padding: 1px 0 !important; border: none !important; text-align: right !important; font-size: 13px; min-height: 0; }
.cp-phone .cp-table tbody td[data-l]::before { content: attr(data-l); flex: 0 0 92px; color: #8a7f96; font-size: 12px; }
.cp-phone .cp-table tbody td:first-child { font-size: 15px; font-weight: 700; padding-bottom: 3px !important; }
.cp-phone .cp-table tbody td:first-child::before { display: none; }
.cp-phone .cp-table tbody td:empty { display: none; }
.cp-phone .cp-table td.cp-empty { justify-content: center; color: #999; padding: 20px 0 !important; }
.cp-phone .cp-table td.cp-empty::before { display: none; }
.cp-phone .cp-table tbody td { direction: rtl !important; }
/* ادارة الاعضاء: البطاقة أصغر، الاسم والنوع والقفل بسطر */
.cp-phone .cp-table tbody td[data-l='النوع']::before, .cp-phone .cp-table tbody td[data-l='قفل']::before, .cp-phone .cp-table tbody td[data-l='الصلاحيات']::before { display: none; }

/* ===== مثل لقانا بالحاسبة: خط Tahoma، أيقونات لمّاعة، شعار بشريط العنوان ===== */
/* لقانا (ويندوز GDI) يرسم الحروف العربية بـTahoma أكبر بحوالي ٩٪ من المتصفح: نكبّر العربي بس حتى يطابق */
@font-face { font-family: 'TahomaAr'; src: local('Tahoma'); font-weight: 400; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; size-adjust: 109%; }
@font-face { font-family: 'TahomaAr'; src: local('Tahoma Bold'), local('Tahoma-Bold'); font-weight: 700; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; size-adjust: 109%; }
.desk #room, .desk #room button, .desk #room input, .desk #room textarea, .desk #room select { font-family: 'TahomaAr', Tahoma, 'Segoe UI', Arial, 'Noto Color Emoji', sans-serif; }
/* حجم النك مثل لقانا بالضبط: ١٢ بكسل؛ الملوّن (رتبة) عريض والأسود عادي */
.desk #room .uname { font-weight: 400; font-size: 14px; } /* المستخدم طلب أكبر من لقانا (١٢) مرتين */
.desk #room .uname.ranked { font-weight: 700; }
.desk #room .rc-name { font-size: 14px; font-weight: 700; }
.rc-logo { display: none; }
.desk #room .rc-logo { display: block; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.6); margin-inline-end: 8px; flex-shrink: 0; object-fit: cover; }
.desk .d-tool { position: relative; overflow: hidden; }
.desk .d-tool::after { content: ''; position: absolute; left: 4px; right: 4px; top: 1px; height: 46%; border-radius: 50% 50% 45% 45%; background: linear-gradient(rgba(255,255,255,.75), rgba(255,255,255,.08)); pointer-events: none; }
.desk .d-tool.off::after { opacity: .5; }.desk .d-mic.cam-only.cam-no .ico svg { filter: grayscale(1) brightness(1.15) opacity(.75); }/* كتم صوت الغرفة: سماعة مكتومة رمادية بعمود الحالة، ووية حالة تصير صغيرة على زاويتها (مثل لقانا) */
.deaf-ic { filter: grayscale(1); opacity: .8; }
.st, .tile-st { position: relative; }
.deaf-b { position: absolute; right: -6px; bottom: -5px; font-size: 10px; line-height: 1; filter: grayscale(1); background: #fff; border-radius: 50%; }.st.st-svg, .tile-st.st-svg { display: inline-grid; place-items: center; line-height: 0; }
.st.st-svg svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.tile-st.st-svg svg { width: 15px; height: 15px; }
/* التلفون مثل لقانا: زر دائري أزرق «⋯» للرسائل السريعة جنب المايك */
body:not(.desk) #quickBtn { order: 1; width: 34px; min-width: 34px; height: 34px; padding: 0; border-radius: 50% !important; border: 2px solid #2a7fc0 !important; background: radial-gradient(circle at 50% 30%, #bfe6ff, #6fb7ea) !important; margin: 0 2px; flex-shrink: 0; }
body:not(.desk) #quickBtn b { font-size: 0; margin: 0; }
body:not(.desk) #quickBtn b::before { content: '•••'; font-size: 11px; letter-spacing: 1px; color: #fff; font-family: Arial, sans-serif; text-shadow: 0 0 2px #1d6aa5; }
body:not(.desk) #quickBtn i { display: none; }body:not(.desk) #micBtn { order: 2; }
/* ===== الحاسبة مثل لقانا بالضبط (مقارنة جنب لجنب) ===== */
/* عمود فارغ بآخر السطر مثل لقانا (مكان التاج)، فالايد والحالة يصيرن بالوسط شوية */
.desk #room .urow:not(.royal) .uicons { margin-right: 38px; }
/* شريط المايك: أيقونات أكبر، و«مفتوح» صغير فوق مثل لقانا */
.desk #room .d-mic .ico { font-size: 30px !important; }
.desk #room .d-mic .ico svg { width: 30px; height: 30px; }
.desk #room .d-mic { font-weight: 400 !important; font-size: 13px; gap: 6px; }
.desk #room .d-mode { font-size: 12px !important; font-weight: 400 !important; place-items: start center !important; padding-top: 6px; color: #222 !important; }
/* تبويب الجميع أكبر مثل لقانا */
.desk #room .ptab { min-height: 34px; font-size: 13px; padding: 0 12px; }
/* خطوط بين اليوزرية أوضح */
.desk #room:not(.themed) .urow { border-bottom: 1px solid #dfe5e5 !important; }
/* ===== رسائل الحاسبة مثل لقانا: صورة كبيرة على السطرين، الاسم أسود ===== */
.desk #room #messages .msg { position: relative; min-height: 46px; }
.desk #room #messages .msg .mhead { padding-left: 38px !important; }
.desk #room #messages .msg .mav-s { position: absolute; left: 3px; top: 3px; width: 30px !important; height: 30px !important; font-size: 22px !important; border-radius: 4px; }
.desk #room #messages .msg .mav-s svg, .desk #room #messages .msg .mav-s img { width: 30px !important; height: 30px !important; }
.desk #room #messages .msg .mname { color: #111 !important; font-weight: 700; font-size: 12px; }
.desk #room #messages .msg .mtext { padding-left: 38px !important; }

/* قائمة ☰ بالتلفون: غامقة، عرض صغير، ملزوكة يمين تحت الزر (مثل لقانا) */
body:not(.desk) .sheet-card.qa-pop.menu-pop { width: 210px !important; left: auto !important; right: 8px; }
body:not(.desk) .sheet-card.menu-pop .sheet-item.red { color: #fff; }
body:not(.desk) .sheet.qa:has(.menu-pop) .qa-arrow { display: none; }
body:not(.desk) .menu-pop .sheet-item .st-ic { margin-inline-start: auto; display: inline-flex; }
body:not(.desk) .menu-pop .sheet-item .st-ic svg { width: 20px; height: 20px; }
/* قائمة الحالة بالفون مثل لقانا: أضيق، أسطر أطول، أيقونات كبيرة يسار الكلمة */
body:not(.desk) .sheet-card.menu-pop:has(.st-ic) { width: 132px !important; }
body:not(.desk) .menu-pop:has(.st-ic) .sheet-item { min-height: 50px; font-size: 16px; }
body:not(.desk) .menu-pop .sheet-item .st-ic svg { width: 30px; height: 30px; }
body:not(.desk) .menu-pop .sheet-item.st-cur { background: rgba(255,255,255,.08); }
/* قائمة الخاص بالفون مثل لقانا: بدون زر الرجوع الأخضر، وأيقونة الخاص عليها مربع أبيض لما تكون مفتوحة */
body:not(.desk) .conv-fab { display: none !important; }
body:not(.desk) #chatViewBtn.on { background: #fff; border-radius: 0; }
/* مربع «ارسال صورة / كاميرا» فوق زر الارسال (مثل لقانا) */
.att-pop { position: fixed; right: 12px; bottom: 64px; z-index: 90; background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.25); display: flex; direction: rtl; padding: 8px 4px; }
.desk .att-pop { bottom: 48px; }
.att-col { padding: 0 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.att-col + .att-col { border-right: 1px solid #ddd; }
.att-t { font-size: 13px; color: #222; }
.att-row { display: flex; gap: 10px; }
.att-b { background: none; border: 0; padding: 4px; cursor: pointer; line-height: 0; }
/* الصورة جوّا الرسالة، وعرضها كبيرة */
.mtext img.mimg { display: block; max-width: 200px; max-height: 220px; border-radius: 6px; margin-top: 4px; cursor: pointer; }
.img-view { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; }
.img-view img { max-width: 96%; max-height: 92%; }
/* المتجاهَل بالمتواجدين: علامة منع حمرة بمكان الصورة */
.utile.ignored { display: flex; align-items: center; justify-content: center; }
.utile.ignored .ig-ic { width: 70%; height: 70%; }
/* التنبيه الصغير بالفون مثل لقانا: كبسولة رمادية فاتحة فوق شريط الكتابة، بيها أيقونة صغيرة */
body:not(.desk) .toast { background: #ececec; color: #222; font-size: 13px; padding: 7px 14px 7px 12px; bottom: 72px; box-shadow: 0 1px 3px rgba(0,0,0,.18); display: flex; align-items: center; gap: 7px; direction: rtl; }
body:not(.desk) .toast.hidden { display: none; }
body:not(.desk) .toast::after { content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 0 3px, #c2185b 3.5px 5px, #fff 5.5px 7px, #c2185b 7.5px); }
/* قوائم الكليك اليمين بالحاسبة: خط تاهوما ١٣ مثل لقانا، والسطر الطويل ما ينقص */
.desk .ctx-menu { font: 13px Tahoma, 'Segoe UI', Arial, sans-serif !important; }
.desk .ctx-menu.ctx-sub .ctx-lbl { max-width: none; overflow: visible; }
.desk .ctx-menu .ctx-item.ctx-name .ctx-lbl { font-weight: 400; }
/* نافذة الاعدادات بالحاسبة مثل لقانا: أضيق، خط تاهوما صغير، «أنا» بالعنوان، زر صلاحياتي */
.desk .sheet-card.me-card:not(.alert-card) { width: 300px !important; max-width: 300px !important; font-family: Tahoma, 'Segoe UI', Arial, sans-serif; font-size: 12px; }
.desk .me-card .me-htitle { font: 12px Tahoma, Arial, sans-serif; color: #222; margin-inline-start: 6px; margin-inline-end: auto; }
.desk .me-card .me-hico svg { width: 20px; height: 20px; }
.desk .me-card .me-name { font: 700 15px Tahoma, Arial, sans-serif; }
.desk .me-card label, .desk .me-card .me-body { font-size: 12px; }
.desk .me-card .me-sample { border-top: none; }
.desk .me-card .me-font { border: 1px solid #c9c9c9; }
.desk .me-card .me-ftools { background: linear-gradient(#f4f4f4, #e2e2e2); border-bottom: 1px solid #c9c9c9; }
.desk .me-card .me-perm { border: 1px solid #a9a9a9 !important; background: linear-gradient(#fdfdfd, #e6e6e6) !important; border-radius: 2px; padding: 3px 12px; }
body:not(.desk) .me-card .me-perm { display: none; }
.desk .me-card .me-body { overflow-x: hidden !important; }
.desk .me-card .me-body * { max-width: 100%; box-sizing: border-box; }
/* نافذة سؤال بيضاء بشكل أندرويد (تبليغ عن ملف) مثل لقانا */
.sheet-card.and-dlg { background: #fff !important; border-radius: 2px !important; border: none !important; box-shadow: 0 10px 30px rgba(0,0,0,.35) !important; padding: 18px 20px 8px !important; width: min(320px, calc(100vw - 40px)) !important; }
.sheet-card.and-dlg .rl-head { background: none !important; border: none !important; padding: 0 0 6px !important; min-height: 0 !important; }
.sheet-card.and-dlg .rl-head .acc-title { color: #222 !important; font-size: 18px !important; font-weight: 700; }
.sheet-card.and-dlg .rl-head .me-x { display: none !important; }
.sheet-card.and-dlg .alert-body { padding: 0 0 16px !important; background: none !important; }
.sheet-card.and-dlg .alert-text { color: #444; font-size: 15px; }
.sheet-card.and-dlg .rl-foot { background: none !important; border: none !important; padding: 4px 0 !important; justify-content: flex-start !important; gap: 28px; }
.sheet-card.and-dlg .me-fbtn { background: none !important; border: none !important; box-shadow: none !important; color: #a0459a !important; font-size: 15px !important; padding: 6px 4px !important; min-width: 0 !important; }
.sheet-card.and-dlg .me-fbtn:last-child { margin-inline-start: auto; }
/* لوحة التحكم بالتلفون مثل لقانا: السهم يسار، الأيقونة المختارة ملونة والباقي باهتة، والمعلومات عنوان وتحته القيمة */
body:not(.desk) .cp-phone .cp-head { direction: ltr; }
body:not(.desk) .cp-phone .cp-side { direction: ltr; }
body:not(.desk) .cp-phone .cp-item:not(.on) { opacity: .4; }
body:not(.desk) .cp-phone .cp-item.on { opacity: 1; }
body:not(.desk) .cp-phone .lg-h { font-size: 14px; font-weight: 700; color: #333; border-bottom: 1px solid #999; padding: 10px 2px 4px; margin: 6px 0 4px; }
body:not(.desk) .cp-phone .lg-it { padding: 6px 2px 8px; }
body:not(.desk) .cp-phone .lg-k { color: #888; font-size: 12.5px; }
body:not(.desk) .cp-phone .lg-v { color: #333; font-size: 14px; margin-top: 2px; }
body:not(.desk) .cp-phone .lg-quota { padding: 8px 2px; }
body:not(.desk) .cp-phone .lg-q { font-size: 14px; padding: 3px 0; }
/* ادارة الحسابات بالتلفون مثل لقانا: الاسم يسار والقفل يمين، تحته الصلاحيات، بدون سطر النوع */
body:not(.desk) .cp-phone .cp-table tbody tr:has(td[data-l="قفل"]) { display: grid !important; grid-template-columns: 1fr auto; direction: ltr; align-items: center; padding: 4px 6px !important; gap: 0 6px; border-bottom: 1px solid #ddd; }
body:not(.desk) .cp-phone .cp-table tbody tr:has(td[data-l="قفل"]) td { padding: 0 !important; border: none !important; }
body:not(.desk) .cp-phone .cp-table tbody tr:has(td[data-l="قفل"]) td::before { display: none !important; }
body:not(.desk) .cp-phone .cp-table tbody td[data-l="النوع"] { display: none !important; }
body:not(.desk) .cp-phone .cp-table tbody td[data-l="الاسم"] { grid-column: 1; grid-row: 1; }
body:not(.desk) .cp-phone .cp-table tbody td[data-l="قفل"] { grid-column: 2; grid-row: 1 / span 2; }
body:not(.desk) .cp-phone .cp-table tbody td[data-l="الصلاحيات"] { grid-column: 1; grid-row: 2; }
body:not(.desk) .cp-phone .cp-mname { direction: ltr; display: inline-flex; gap: 4px; align-items: center; }
body:not(.desk) .cp-phone .cp-mname svg { width: 16px; height: 16px; }
body:not(.desk) .cp-phone .cp-perms { direction: ltr; display: flex; flex-wrap: wrap; justify-content: flex-start; }
body:not(.desk) .cp-phone .cp-table tbody tr:has(td[data-l="قفل"]) td { text-align: left !important; justify-self: start; }
body:not(.desk) .cp-phone .cp-table tbody tr:has(td[data-l="قفل"]) td[data-l="قفل"] { justify-self: end; }
/* اعدادات الغرفة بالتلفون: صفحة وحدة مثل لقانا */
body:not(.desk) .cp-phone .ph-sec { display: block !important; padding: 2px 4px 10px; }
body:not(.desk) .cp-phone .ph-sec .st-col { width: 100% !important; border: none !important; padding: 0 !important; margin: 0 0 6px; background: none !important; }
body:not(.desk) .cp-phone .ph-sec h4 { font-size: 13px; color: #555; font-weight: 400; margin: 6px 0; }
body:not(.desk) .cp-phone .ph-sec .me-radio { display: flex; align-items: center; gap: 8px; padding: 7px 4px; font-size: 14px; }
body:not(.desk) .cp-phone .ph-sec .me-radio input { width: 20px; height: 20px; accent-color: #555; }
body:not(.desk) .cp-phone .ph-sec .st-field { display: block; margin: 6px 0; font-size: 13px; color: #555; }
body:not(.desk) .cp-phone .ph-sec .st-field input, body:not(.desk) .cp-phone .ph-sec .st-field textarea { width: 100%; box-sizing: border-box; margin-top: 4px; border: 1px solid #ddd; background: #fff; padding: 8px; font-size: 15px; }
body:not(.desk) .cp-phone .ph-sec .st-time { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px; font-size: 14px; }
body:not(.desk) .cp-phone .ph-sec .st-time input { width: 56px; text-align: center; border: 1px solid #ddd; background: #fff; padding: 6px; }
body:not(.desk) .cp-phone .ph-design .st-field, body:not(.desk) .cp-phone .ph-design .st-preview { display: none !important; }
body:not(.desk) .cp-phone .ph-design { display: block !important; }
body:not(.desk) .cp-phone .ph-design .st-pvcol, body:not(.desk) .cp-phone .ph-design .st-dtop { display: block !important; }
body:not(.desk) .cp-phone .cp-main:has(.ph-sec) { overflow-y: auto !important; display: block !important; }
body:not(.desk) .cp-phone .ph-sec { flex: none !important; overflow: visible !important; height: auto !important; }
body:not(.desk) .cp-phone .cp-main:has(.ph-sec) .cp-foot { position: sticky; bottom: 0; }
/* المحظورين بالتلفون: بطاقات مثل لقانا */
body:not(.desk) .cp-phone .bn-list { flex: 1; overflow-y: auto; }
body:not(.desk) .cp-phone .bn-card { padding: 6px 6px 8px; border-bottom: 1px solid #ccc; direction: ltr; }
body:not(.desk) .cp-phone .bn-card.sel { background: #e6d9f5; }
body:not(.desk) .cp-phone .bn-name { font-size: 16px; color: #111; direction: rtl; text-align: left; unicode-bidi: plaintext; }
body:not(.desk) .cp-phone .bn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
body:not(.desk) .cp-phone .bn-ln { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #222; min-height: 19px; }
body:not(.desk) .cp-phone .bn-ln span { unicode-bidi: plaintext; }
body:not(.desk) .cp-phone .bn-foot { direction: ltr; gap: 16px; align-items: center; }
body:not(.desk) .cp-phone .bn-rad { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 14px; }
body:not(.desk) .cp-phone .bn-rad input { width: 18px; height: 18px; accent-color: #2bb3a3; }
body:not(.desk) .cp-phone .cp-tholder:has(.bn-list) { overflow-y: auto; }
body:not(.desk) .cp-phone .bn-name .log-ico svg { width: 16px; height: 16px; vertical-align: -3px; }
/* أيقونات الأدوات مثل لقانا: بدون لمعة، والممنوعة باهتة رصاصية */
.desk .d-tool::after { display: none !important; }
.desk .d-tool.off svg { filter: grayscale(1) !important; opacity: .45 !important; }
/* أيقونات لوحة التحكم بالفون: المختارة بحلقة غامقة مثل لقانا، وخط فاصل بعد سهم الرجوع */
body:not(.desk) .cp-phone .cp-item svg > circle:first-of-type { stroke: transparent; }
body:not(.desk) .cp-phone .cp-item.on svg > circle:first-of-type { stroke: #2b2b2b; stroke-width: 1.6; }
body:not(.desk) .cp-phone .cp-head .cp-x { border-right: 1px solid rgba(0,0,0,.18); padding-right: 8px; margin-right: 4px; background: none !important; }
/* أيقونة قفل الغرفة: شفافة والغرفة مفتوحة، وغير شفافة من تنقفل أو تصير بوابة دخول (مثل لقانا) */
.desk .d-tool.t-lock.dim svg { filter: grayscale(1) !important; opacity: .45 !important; }
.desk .d-tool.t-lock.on svg { filter: none !important; opacity: 1 !important; }
/* طلبات بوابة الدخول على أيقونة القفل (حاسبة) */
.desk .d-tool.t-lock { position: relative; }
.desk .d-tool.t-lock .gate-n { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: #e2262c; color: #fff; font: 700 10px/16px Tahoma, Arial, sans-serif; text-align: center; box-shadow: 0 0 0 1.5px #fff; }
.desk .d-tool.t-lock.ring svg { animation: gateRing .6s ease-in-out 3; transform-origin: 50% 20%; }
@keyframes gateRing { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.sheet-card.gate-pop { min-width: 230px; padding: 4px 0 !important; font: 13px Tahoma, Arial, sans-serif; background: linear-gradient(#fff, #eef4f9) !important; border: 1px solid #9fb5c8 !important; border-radius: 2px !important; }
.gate-pop .gp-h { font-weight: 700; padding: 6px 10px; border-bottom: 1px solid #d5dde5; }
.gate-pop .gp-empty { padding: 10px; color: #777; }
.gate-pop .gp-row { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid #e4e9ee; }
.gate-pop .gp-n { flex: 1; font-weight: 700; unicode-bidi: plaintext; }
.gate-pop .gp-row button { padding: 3px 10px; font: 12px Tahoma, Arial, sans-serif; }
.gate-pop .gp-open { display: block; width: 100%; text-align: start; padding: 7px 10px; background: none; border: none; font: 13px Tahoma, Arial, sans-serif; cursor: pointer; }
.gate-pop .gp-open:hover { background: #dbe8f4; }

/* ===== الارتفاعات مثل لقانا بالحاسبة (مقاسة بالبكسل): شريط «أنا»/التبويبات ٥٠، الشريط التحتاني ٥٣ ===== */
.desk #room .d-me, .desk #room .ptabs { height: 50px; min-height: 0 !important; box-sizing: border-box; padding-top: 0 !important; padding-bottom: 0 !important; }
.desk #room .d-me { align-items: center !important; }
.desk #room .ptabs { align-items: flex-end !important; padding-top: 6px !important; }
.desk #room .d-micbar, .desk #room .composer { height: 53px; min-height: 0 !important; box-sizing: border-box; }
.desk #room .d-micbar .d-mic { min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.desk #room .composer { padding-top: 0 !important; padding-bottom: 0 !important; align-items: center !important; }
.desk #room .composer input { height: 32px !important; }
/* ===== برنامج اللاب: شريط واحد بس فوك (مثل لقانا) — شريط الويندوز بيه اسم الروم، فنخفي شريط صدى الثاني والعدد يبقى بزاوية التبويبات ===== */
html.roomwin body.desk #room .room-bar { display: none !important; }
html.roomwin body.desk #room { margin-top: 0; border-top: none; }html.roomwin body.desk #room .ptab-count { display: block !important; color: inherit; font-weight: 700; }/* مقارنة ثانية ويا لقانا: الرسالة أقصر ~٥ بكسل (٥٧ مثل لقانا)، وصورة المتواجد أكبر تملي المربع */
.desk #room #messages .msg .mtext { line-height: 27px !important; padding-bottom: 5px !important; }
.desk #room #usersView .utile { font-size: 27px !important; }
.desk #room #usersView .utile img:not(.tile-st img) { width: 100%; height: 100%; }.desk #room #usersView .utile .av-svg { width: 100% !important; height: 100% !important; }
/* ===== برنامج اللاب (٥+): شريط عنوان مرسوم مثل لقانا بدل شريط الويندوز ===== */
html.roomwin.frameless body.desk #room { margin: 0 !important; border: none !important; border-radius: 0 !important; inset: 0; }
html.roomwin.frameless body.desk #room .room-bar { display: flex !important; app-region: drag; -webkit-app-region: drag; height: 41px; min-height: 0 !important; padding: 0 0 0 6px !important; gap: 8px; direction: ltr; align-items: center; box-shadow: none; user-select: none; }
html.roomwin.frameless body.desk #room .room-bar #roomCard { order: 0; display: flex !important; flex-direction: row; align-items: center; gap: 6px; direction: ltr; min-width: 0; flex: 1; }
html.roomwin.frameless body.desk #room .room-bar .rc-logo { width: 30px; height: 30px; display: block !important; }
html.roomwin.frameless body.desk #room .room-bar .rc-text { direction: rtl; text-align: left; min-width: 0; }
html.roomwin.frameless body.desk #room .room-bar .rc-name { display: block !important; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.roomwin.frameless body.desk #room .room-bar .rc-sub, html.roomwin.frameless body.desk #room .room-bar .rc-spk, html.roomwin.frameless body.desk #room .room-bar .hdr-ico { display: none !important; }
html.roomwin.frameless body.desk #room .room-bar .win-col { order: 9; margin-left: auto; align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; }
html.roomwin.frameless body.desk #room .room-bar .win-btns { display: flex; app-region: no-drag; -webkit-app-region: no-drag; }
html.roomwin.frameless body.desk #room .room-bar .win-b { width: 34px; height: 22px; border: none; background: transparent; color: inherit; display: grid; place-items: center; cursor: default; padding: 0; }
html.roomwin.frameless body.desk #room .room-bar .win-b:hover { background: rgba(0,0,0,.12); }
html.roomwin.frameless body.desk #room .room-bar .win-b.wb-close:hover { background: #e81123; color: #fff; }
html.roomwin.frameless body.desk #room .room-bar .room-count { display: block !important; font-size: 11px; font-weight: 700; padding: 0 8px 0 0; line-height: 16px; app-region: no-drag; -webkit-app-region: no-drag; }
html.roomwin.frameless body.desk #room .ptab-count { display: none !important; }
/* ===== تبويب «الجميع» بالحاسبة مثل لقانا: يملي الشريط من فوك لجوّا، زوايا مربعة، تدرّج، أيقونة ناس كبيرة ===== */
.desk #room .ptabs { padding: 0 !important; align-items: stretch !important; gap: 0 !important; }
.desk #room .ptab { border-radius: 0 !important; border: none !important; border-right: 1px solid rgba(0,0,0,.18) !important; margin: 0 !important; padding: 0 8px 0 6px !important; display: flex; align-items: center; gap: 4px; direction: ltr; font-weight: 400 !important; font-size: 13px; color: #222 !important;
  background: linear-gradient(rgba(255,255,255,.55), rgba(0,0,0,.12)) !important; }
.desk #room .ptab.on { background: linear-gradient(rgba(255,255,255,.85), rgba(0,0,0,.22)) !important; }
.desk #room .ptab .pt-ic { display: inline-flex; }
.desk #room .ptab .pt-t { direction: rtl; }
.desk #room .ptab .x { order: 9; color: #8a2a3a; font-weight: 700; }html.roomwin.frameless body.desk #room .room-bar #roomName, html.roomwin.frameless body.desk #room .room-bar .room-count { color: inherit !important; }
html.roomwin.frameless body.desk #room.themed .room-bar { color: var(--rt-text, #1b1b1b) !important; }
/* ===== نافذة «بوابة دخول» بالحاسبة مثل لقانا ===== */
.sheet-card.gate-win { width: 520px !important; max-width: 96vw; padding: 0 !important; border-radius: 0 !important; overflow: hidden; border: 1px solid #8a5a4a; background: var(--rt-bg, #eedad8) !important; font: 12px Tahoma, 'Segoe UI', Arial, sans-serif; color: #222; }
.gate-win .gw-head { display: flex; align-items: center; gap: 6px; direction: ltr; padding: 4px 6px; background: linear-gradient(var(--rt-frame, #f3dcdc), var(--rt-title, #e2bcbc)); }
.gate-win .gw-title { flex: 1; text-align: left; direction: rtl; font-size: 12px; }
.gate-win .gw-x { width: 20px; height: 20px; border: 1px solid #7a1010; border-radius: 3px; background: linear-gradient(#e44, #b11); color: #fff; font-size: 11px; line-height: 1; padding: 0; cursor: pointer; }
.gate-win .gw-table { margin: 0 4px; background: #fff; border: 1px solid #9a7a70; height: 200px; display: flex; flex-direction: column; }
.gate-win .gw-tr { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.3fr; direction: ltr; align-items: center; min-height: 20px; padding: 0 6px; cursor: default; }
.gate-win .gw-th { background: linear-gradient(var(--rt-frame, #e8c4c4), var(--rt-title, #c99a9a)); font-size: 12px; min-height: 22px; }
.gate-win .gw-body { flex: 1; overflow-y: auto; }
.gate-win .gw-body .gw-tr:hover { background: #f4ecf8; }
.gate-win .gw-body .gw-tr.on { background: #cfe3f7; }
.gate-win .gw-c { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gate-win .gw-dev { text-align: right; direction: ltr; }
.gate-win .gw-ip, .gate-win .gw-cc { text-align: center; }
.gate-win .gw-nm { text-align: left; direction: rtl; unicode-bidi: plaintext; }
.gate-win .gw-th .gw-dev { text-align: right; } .gate-win .gw-th .gw-nm { text-align: left; }
.gate-win .gw-foot { display: flex; align-items: center; gap: 4px; direction: ltr; padding: 6px; margin-top: 4px; background: linear-gradient(var(--rt-frame, #f0d4d4), var(--rt-title, #d6a8a8)); }
.gate-win .gw-b { display: inline-flex; align-items: center; gap: 4px; border: none; background: none; font: inherit; color: #222; padding: 2px 6px; cursor: pointer; }
.gate-win .gw-b:disabled { opacity: .4; cursor: default; filter: grayscale(.6); }
.gate-win .gw-b:not(:disabled):hover { background: rgba(255,255,255,.35); }
.gate-win .gw-sp { flex: 1; }
.gate-win .gw-close { border: none; background: none; font: inherit; color: #222; padding: 2px 10px; cursor: pointer; }
/* ===== لون الدردشة بالحاسبة مثل لقانا (مقاس من الشاشة): خلفية بيضاء، شريط الاسم رمادي فاتح #f4f6f5 ===== */
.desk #room #messages, .desk #room.themed #messages, .desk #room #chatView { background: #fff !important; background-image: none !important; }
.desk #room #messages .msg, .desk #room.themed #messages .msg { background: #fff !important; }
.desk #room #messages .msg .mhead, .desk #room.themed #messages .msg .mhead { background: #f4f6f5 !important; background-image: none !important; border-bottom: none !important; border-top: 1px solid #f9fbfa !important; }
.desk #room #messages .welcome { background: #fff !important; }
/* ===== قائمة المتواجدين بالحاسبة مثل لقانا: خلفية بيضاء، خط فاصل رمادي فاتح #f3f3f3، والمختار بلون الغرفة الفاتح ===== */
.desk #room #usersView, .desk #room.themed #usersView, .desk #room #usersCol { background: #fff !important; background-image: none !important; }
.desk #room #usersView .urow:not(.royal), .desk #room.themed #usersView .urow:not(.royal) { background: #fff !important; border-bottom: 1px solid #f3f3f3 !important; }
.desk #room #usersView .urow.self:not(.royal) { background: #fff !important; }
.desk #room #usersView .urow.sel:not(.royal), .desk #room.themed #usersView .urow.sel:not(.royal) { background: #dbb9b8 !important; }
.desk #room.themed #usersView .urow.sel:not(.royal) { background: color-mix(in srgb, var(--rt-title, #c58a88) 45%, #fff) !important; }
/* مقارنة الواجهة كاملة ويا لقانا: الخط يم الرسالة بلون اسم صاحبها، واسم الروم بالشريط الفوكاني عريض وغامق */
.desk #room #messages .msg { border-left-color: var(--rc, #111) !important; }
html.roomwin.frameless body.desk #room .room-bar #roomName { font-weight: 700 !important; font-size: 13px; color: #3a1010 !important; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
/* ===== تلفون مثل صور لقانا بالضبط (مقاسة: 907px = 360 بكسل) ===== */
/* المتواجدين: القائمة ٨٩.٥٪ من الشاشة، سطر ٦٧، صورة ٥٧.٥ زواياها ٨، الاسم يبدي من ٦٧ وحجمه ١٩، الأسود عادي والملوّن عريض */
body:not(.desk) #room .room-content.peek > #usersCol { right: 10.5% !important; }
body:not(.desk) #room .room-content.peek:not(.dragging) > #chatView { transform: translateX(89.5%); }
body:not(.desk) #room #usersView .urow:not(.royal) { min-height: 67px !important; padding: 5px 32px 4px 5px !important; gap: 5px !important; border-bottom: 1px solid #cfcfcf !important; }
body:not(.desk) #room #usersView .urow:not(.royal) .utile { width: 57px !important; height: 57px !important; border-radius: 8px !important; font-size: 32px !important; }
body:not(.desk) #room #usersView .urow:not(.royal) .uname { font-weight: 400 !important; font-size: 19px !important; padding-top: 8px !important; }
body:not(.desk) #room #usersView .urow:not(.royal) .uname.ranked { font-weight: 700 !important; }
body:not(.desk) #room #usersView .urow .uicons { margin-top: 10px !important; }
body:not(.desk) #room #usersView .utile .tile-st { right: -5px; bottom: -5px; }
body:not(.desk) #room #usersView .utile .tile-st svg { width: 18px; height: 18px; }
/* الدردشة: الصورة بدون مربع (٣٠ بكسل)، ويسارها خط عمودي ٣ بكسل بلون الاسم، والفقاعة إلها ذيل فوك يسار، والاسم عادي مو عريض */
body:not(.desk) #room #messages.chat-bubbles .msg { position: relative; }
body:not(.desk) #room #messages.chat-bubbles .msg .mav { width: 30px !important; height: 30px !important; border-radius: 0 !important; background: none !important; margin-left: 15px; font-size: 26px; }
body:not(.desk) #room #messages.chat-bubbles .msg .mav img, body:not(.desk) #room #messages.chat-bubbles .msg .mav svg { width: 30px !important; height: 30px !important; }
body:not(.desk) #room #messages.chat-bubbles .msg::before { content: ''; position: absolute; left: 9px; top: 8px; width: 3px; height: 30px; background: var(--rc, #111); }
body:not(.desk) #room #messages.chat-bubbles .msg .mbody { position: relative; border-radius: 12px !important; border-top-left-radius: 0 !important; margin-left: 12px; }
body:not(.desk) #room #messages.chat-bubbles .msg .mbody::before { content: ''; position: absolute; left: -11px; top: 0; width: 12px; height: 12px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%); }
body:not(.desk) #room #messages.chat-bubbles .msg .mname { font-weight: 400 !important; color: #111 !important; font-size: 16px; }body:not(.desk) #room #messages.chat-bubbles .msg .mav { margin-left: 5px !important; }
body:not(.desk) #room #messages.chat-bubbles .msg .mbody { margin-left: 4px !important; }
body:not(.desk) #room #messages.chat-bubbles .msg .mtime { font-size: 13px; color: #8a8a8a; }body:not(.desk) #room #messages.chat-bubbles .msg .mav { margin-left: 7px !important; }
body:not(.desk) #room #messages.chat-bubbles .msg .mbody { margin-left: 6px !important; }body:not(.desk) #room #usersView .urow:not(.royal) { padding-right: 16px !important; }
/* ===== قوائم الكليك بالحاسبة بنفس حجم لقانا (مقاسة): الأساسية سطر ~٢٨ وعرض ~١٦٠، وخيارات المشرف سطر ~٢٢ بدون أيقونات ===== */
.desk .ctx-menu { min-width: 160px !important; font: 12px Tahoma, 'Segoe UI', Arial, sans-serif !important; padding: 2px 0 !important; background: #fff !important; border: 1px solid #a0a0a0 !important; box-shadow: 2px 2px 6px rgba(0,0,0,.25) !important; }
.desk .ctx-menu .ctx-item { padding: 2px 8px 2px 10px !important; gap: 6px !important; min-height: 0; white-space: nowrap; }
.desk .ctx-menu .ctx-ico { width: 22px !important; min-height: 24px !important; padding-left: 4px !important; }
.desk .ctx-menu .ctx-ico svg { width: 18px; height: 18px; }
.desk .ctx-menu.ctx-sub { min-width: 0 !important; }
.desk .ctx-menu.ctx-sub .ctx-item { padding: 3px 26px 3px 26px !important; line-height: 16px; }
.desk .ctx-menu.ctx-sub .ctx-ico { display: none !important; }
.desk .ctx-menu.ctx-sub.ctx-status .ctx-ico { display: inline-grid !important; }
.desk .ctx-menu .ctx-sep { margin: 2px 4px !important; }
/* «P» = داخل من تلفون (مثل لقانا): صغيرة بأعلى عمود الحالة */
.uicons .ph-ic { display: inline-flex; align-self: flex-start; margin-top: -2px; line-height: 0; }
body:not(.desk) #room #usersView .uicons .slot.s-st { min-width: 14px; }
/* أسطر أوامر المشرفين بالحاسبة مثل لقانا: خلفية صفرة فاتحة #ffffd6، ⚠ باليسار، الكلام بالنص */
.desk #room #messages .sysline.info, .desk #room #messages .sysline.susp { background: #ffffd6 !important; border: none !important; border-top: 1px solid #f1ecc0 !important; border-bottom: 1px solid #f1ecc0 !important; border-radius: 0 !important; color: #222 !important; text-align: center !important; position: relative; padding: 3px 30px !important; font-size: 12px !important; margin: 2px 0 !important; }
.desk #room #messages .sysline.info::before, .desk #room #messages .sysline.susp::before { content: '⚠' !important; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: #c99a00; font-size: 15px; }
.desk #room #messages .sysline.info b, .desk #room #messages .sysline.susp b { color: #111; }
.desk #room #messages .sysline.susp .sl-mid { color: #222; }.desk #room #messages .sysline { direction: rtl; }
.desk #room #messages .sysline b { unicode-bidi: isolate; }
/* ===== صفحة الملف الشخصي: نفس قياسات وألوان لقانا ===== */
.prof-card { width: 400px !important; max-width: 100vw !important; padding: 0 !important; font-family: 'Noto Kufi Arabic', 'Tajawal', sans-serif !important; color: #47484a; background: linear-gradient(359deg, #e3e3e3 13%, #fff 50%) !important; }
.prof-card .pv-top { position: relative; overflow: hidden; padding: 40px 0 15px; background: linear-gradient(56deg, #c5c5c5 16%, #fff 43%, #cfcfcf 73%); background-size: 150% auto; }
.prof-card .pv-top::before { content: ""; position: absolute; top: 0; left: -200px; width: 100px; height: 100%; z-index: 1; background: linear-gradient(to right, transparent, rgba(255,255,255,.7), transparent); animation: pvShine 4s infinite 3s; }
@keyframes pvShine { 0% { left: -200px; } 100% { left: 100%; } }
.prof-card .pv-blur { filter: blur(10px) !important; transform: scale(1.1); }
.prof-card .pv-frame { width: 85%; box-sizing: border-box; min-height: 182px; margin: 103px auto 0 !important; padding: 92px 8px 10px !important; background: rgba(0,0,0,.3) !important; border: 2px solid #fff !important; border-radius: .25rem; box-shadow: none !important; color: #fff; z-index: 2; }
.prof-card .pv-av { top: -103px !important; width: 150px !important; height: 150px !important; border: 2px solid #fff !important; background: #fff !important; font-size: 80px !important; box-shadow: rgba(0,0,0,.19) 0 10px 20px, rgba(0,0,0,.23) 0 6px 6px !important; z-index: 3; }
.prof-card.royal .pv-frame { border: 2px solid #FFD700 !important; border-image: linear-gradient(to bottom, #FFD700, #fffdf1) 1 !important; }
.prof-card.royal .pv-av { border-color: #FFD700 !important; }
.prof-card .pv-name { font-size: 22px !important; font-weight: 700 !important; letter-spacing: 0 !important; line-height: 1.5; color: #fff !important; }
.prof-card .pv-st { font-size: 14px !important; font-weight: 500; margin-top: 5px; color: #fff !important; line-height: 1.6; }
.prof-card .pv-kind { display: none !important; }
.prof-card .pv-report { top: 5px !important; right: 10px !important; z-index: 4; }
.prof-card .pv-body { padding: 0 !important; background: transparent !important; }
.prof-card .pv-tabs { display: flex; justify-content: flex-start; border: none !important; background: none !important; padding: 0 10px; }
.prof-card .pv-tab { flex: none !important; padding: .5rem 1rem !important; border-radius: .25rem; font-size: 16px !important; font-weight: 400 !important; color: #47484a !important; background: none !important; }
.prof-card .pv-tab:first-child { border-right: 2px solid #333 !important; }
.prof-card .pv-tab:last-child { border-left: 2px solid #333 !important; }
.prof-card .pv-tab.on, .prof-card.rthemed .pv-tab.on { background: linear-gradient(180deg, #61AFAF 0%, #ABD6D6 100%) !important; color: #fff !important; box-shadow: rgba(175,175,175,.19) 0 3px 18px, rgba(70,70,70,.23) 0 6px 6px; }
.prof-card .pv-pane { margin-top: 20px; padding: 10px; text-align: center; }
.prof-card .pv-stats { display: flex !important; gap: 0 !important; padding: 5px; margin-bottom: 10px; }
.prof-card .pv-stat { flex: 1 1 0; margin: 2px; padding: 10px 2px; background: #f9f9f9; border: 1px solid rgba(0,0,0,.125); border-radius: .25rem; animation: pvBounce 1s ease-out; }
.prof-card .pv-stat:nth-child(2) { animation-name: pvInR; } .prof-card .pv-stat:nth-child(3) { animation-name: pvInL; } .prof-card .pv-stat:nth-child(4) { animation: pvFlip 2s ease-in-out; }
.prof-card .pv-si { font-size: 40px !important; line-height: 60px; margin-bottom: 7px; }
.prof-card .pv-sl { font-size: 15px !important; height: 20px; line-height: 20px; color: #47484a !important; }
.prof-card .pv-sv { font-size: 16px !important; margin-top: 2px; font-weight: 400 !important; color: #47484a !important; }
.prof-card .pv-stat:nth-child(4) .pv-sv { color: green !important; }
.prof-card .pv-msg-h { margin-top: 0 !important; height: 35px; line-height: 35px; padding: 0 10px; text-align: right; font-size: 15px !important; font-weight: 400 !important; color: #47484a !important; animation: pvUp 1s ease-out; }
.prof-card .pv-msg { margin: 0 0 10px !important; padding: 3px; padding-top: 13px; padding-bottom: 13px; font-size: 15px; color: #47484a !important; background: #f2f2f2; border: 1px solid rgba(0,0,0,.125); border-radius: .25rem; animation: pvUp 1s ease-out; }
.prof-card .pv-since { font-size: 14px; color: #3e3e3e; }
.prof-card .pv-slide { position: relative; height: 300px !important; border-radius: 5px !important; padding: 0 !important; color: #fff; animation: pvFlipX 1s ease-in-out; }
.prof-card .pv-sl-ic { margin-top: 40px !important; }
.prof-card .pv-sl-ic .emo, .prof-card .pv-sl-emo { width: 90px !important; height: 90px !important; }
.prof-card .pv-sl-lab { margin-top: 10px !important; font-size: 16px !important; font-weight: 700 !important; color: #fff !important; }
.prof-card .pv-sl-val { margin-top: 30px !important; font-size: 18px !important; font-weight: 700 !important; color: #fff !important; }
.prof-card .pv-sl-arrow { position: absolute !important; top: 50% !important; transform: translateY(-50%); width: 30px !important; height: 30px !important; border-radius: 50% !important; background: #ccc !important; color: #fff !important; font-size: 20px !important; line-height: 30px !important; padding: 0 !important; border: none !important; }
.prof-card .pv-sl-arrow.prev { right: 10px !important; left: auto !important; } .prof-card .pv-sl-arrow.next { left: 10px !important; right: auto !important; }
.prof-card .pv-sl-dots { position: absolute !important; bottom: 10px; left: 0; right: 0; text-align: center; }
.prof-card .pv-sl-dot { background: none !important; border: none !important; padding: 0 !important; }
.prof-card .pv-sl-dot .emo { width: 26px !important; height: 26px !important; }
.prof-card .pv-sl-dot.on { border-bottom: 2px solid #fff !important; padding-bottom: 5px !important; }
.prof-card .pv-gallery { display: flex !important; flex-wrap: wrap; }
.prof-card .pv-gallery img { flex-basis: calc(33.33% - 20px); width: calc(33.33% - 20px) !important; height: auto !important; margin: 10px; }
.prof-card .pv-none { font-size: 16px; color: #47484a; }
.desk .prof-card .me-foot { display: none !important; }
@keyframes pvBounce { 0% { transform: scale(.1); opacity: 0; } 60% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); } }
@keyframes pvInR { 0% { transform: translateX(800px); opacity: 0; } 60% { transform: translateX(-30px); opacity: 1; } 100% { transform: translateX(0); } }
@keyframes pvInL { 0% { transform: translateX(-800px); opacity: 0; } 60% { transform: translateX(30px); opacity: 1; } 100% { transform: translateX(0); } }
@keyframes pvUp { 0% { transform: translateY(800px); opacity: 0; } 60% { transform: translateY(-30px); opacity: 1; } 100% { transform: translateY(0); } }
@keyframes pvFlip { 0% { transform: perspective(400px) rotateY(360deg); opacity: 0; } 100% { transform: perspective(400px) rotateY(0); opacity: 1; } }
@keyframes pvFlipX { 0% { transform: perspective(400px) rotateX(180deg); opacity: 0; } 100% { transform: perspective(400px) rotateX(0); opacity: 1; } }
.desk .sheet-card.me-card.prof-card:not(.alert-card) { width: 360px !important; max-width: 100vw !important; font-family: 'Noto Kufi Arabic', 'Tajawal', sans-serif !important; font-size: 14px; }
.prof-card .pv-slide { display: flex !important; flex-direction: column !important; justify-content: flex-start !important; align-items: center !important; }
.prof-card .pv-sl-ic, .prof-card .pv-sl-lab, .prof-card .pv-sl-val { position: static !important; line-height: 1.4 !important; }
.prof-card .pv-sl-ic { margin-top: 30px !important; }
.prof-card .pv-sl-val { margin-top: 18px !important; padding: 0 44px; }

/* ===== غرفة التلفون: قياسات لقانا (من ملفات شاشته + صوره) ===== */
body:not(.desk) #room .room-bar { height: 56px !important; min-height: 0 !important; padding: 0 5px 0 6px !important; gap: 6px !important; align-items: center !important; box-sizing: border-box; }
body:not(.desk) #room .room-bar .hdr-ico { width: 34px !important; height: 34px !important; padding: 0 !important; font-size: 28px !important; border-radius: 6px !important; display: grid; place-items: center; }
body:not(.desk) #room .room-bar .hdr-ico svg, body:not(.desk) #room .room-bar .hdr-ico img { width: 30px !important; height: 30px !important; }
body:not(.desk) #room .room-bar .burger { width: 26px !important; height: 21px !important; }
body:not(.desk) #room .room-bar .burger i { height: 3.5px !important; }
body:not(.desk) #room .room-bar .users-badge { transform: scale(.85); }
body:not(.desk) #room .room-card { height: 42px !important; box-sizing: border-box; padding: 3px 10px 3px 6px !important; border-radius: 10px !important; align-items: center; }
body:not(.desk) #room .room-card .rc-spk { width: 27px !important; font-size: 22px !important; }
body:not(.desk) #room .room-card .rc-name { font-size: 15px !important; line-height: 18px !important; }
body:not(.desk) #room .room-card .rc-sub { font-size: 14px !important; line-height: 18px !important; }
body:not(.desk) .composer { height: 48px !important; min-height: 0 !important; box-sizing: content-box; padding: 0 6px !important; padding-bottom: env(safe-area-inset-bottom) !important; gap: 10px !important; align-items: center !important; }
body:not(.desk) .composer #micBtn { width: 32px !important; height: 32px !important; padding: 0 !important; font-size: 22px !important; border-radius: 6px !important; flex: none; }
body:not(.desk) .composer #quickBtn { width: 26px !important; height: 26px !important; flex: none; }
body:not(.desk) .composer #emojiBtn, body:not(.desk) .composer #sendBtn { width: 32px !important; height: 32px !important; padding: 0 !important; flex: none; }
body:not(.desk) .composer #emojiBtn { font-size: 25px !important; }
body:not(.desk) .composer #msgInput { height: 34px !important; min-width: 0; flex: 1 1 auto !important; font-size: 16px !important; border-radius: 6px !important; padding: 0 10px !important; box-sizing: border-box; }
body:not(.desk) .composer #quickBtn { min-width: 0 !important; max-width: 26px !important; padding: 0 !important; }

/* لوحة الوجوه بالتلفون مثل لقانا: بعرض الشاشة، بلا زوايا، رأس 48، أيقونات التبويب 24 */
body:not(.desk) .emoji-panel { left: 0 !important; right: 0 !important; width: auto !important; border-radius: 0 !important; box-shadow: 0 -1px 0 #afafaf !important; }
body:not(.desk) .emoji-panel .em-tabs { height: 48px !important; box-sizing: border-box; padding: 0 10px !important; gap: 16px !important; align-items: center !important; border-bottom: 1px solid #afafaf; border-radius: 0 !important; }
body:not(.desk) .emoji-panel .emo-tab { width: 24px !important; height: 24px !important; padding: 0 !important; }
body:not(.desk) .emoji-panel .em-grid { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; padding: 4px 6px !important; box-sizing: border-box; overflow-x: hidden !important; }
body:not(.desk) .emoji-panel .emo-btn { width: auto !important; height: 42px !important; padding: 0 !important; min-width: 0 !important; }
body:not(.desk) .emoji-panel .emo-btn img, body:not(.desk) .emoji-panel .emo-btn .emo { width: 32px !important; height: 32px !important; }

/* قائمة الإرسال (صورة / كاميرا) بالتلفون مثل لقانا: 220×102، مربعات #f7f7f7 */
body:not(.desk) .att-pop { width: 220px !important; height: 102px !important; box-sizing: border-box; padding: 6px !important; gap: 6px !important; border-radius: 0 !important; display: flex !important; align-items: stretch !important; }
body:not(.desk) .att-pop .att-col { background: #f7f7f7; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 4px; box-sizing: border-box; }
body:not(.desk) .att-pop .att-col:first-child { width: 120px; } body:not(.desk) .att-pop .att-col:last-child { width: 80px; }
body:not(.desk) .att-pop .att-t { font-size: 15px !important; font-weight: 700 !important; color: #121212 !important; height: 30px; line-height: 30px; }
body:not(.desk) .att-pop .att-row { margin-top: 8px; gap: 8px; }
body:not(.desk) .att-pop .att-b { width: 32px !important; height: 32px !important; padding: 0 !important; }

/* لمسات أسرع بالتلفون (بلا تأخير الضغطة المزدوجة) */
html { touch-action: manipulation; }

/* لوحة طلبات البوابة بالتلفون مثل لقانا: شريط أبيض تحت الشريط الفوق، ارتفاعه 170، وحافة تحت غامقة #2e2e2e */
body:not(.desk) .sheet:has(> .gate-pop) { align-items: flex-start !important; justify-content: stretch !important; padding: 0 !important; background: transparent !important; }
body:not(.desk) .sheet-card.gate-pop { position: fixed !important; top: 61px !important; left: 0 !important; right: 0 !important; width: 100% !important; max-width: none !important; height: 170px !important; margin: 0 !important; box-sizing: border-box; padding: 0 !important; border: none !important; border-bottom: 2px solid #2e2e2e !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; overflow-y: auto !important; animation: none !important; }
body:not(.desk) .gate-pop .gp-h { display: none !important; }
body:not(.desk) .gate-pop .gp-empty { margin-top: 61px; height: 49px; line-height: 49px; text-align: center; font-size: 14px; color: #404040; padding: 0 !important; }
body:not(.desk) .gate-pop .gp-row { min-height: 48px; box-sizing: border-box; padding: 6px 10px !important; border-bottom: 1px solid #e3e3e3; margin: 0 !important; border-radius: 0 !important; }
body:not(.desk) .gate-pop .gp-open { display: none !important; }

/* قائمة الغرف بالتلفون: قياسات لقانا (من ملف wvmain): شريط فوق 48، شريط العدد 30 وخطه 14 #858585، الشريط الجوّة 65 وكتابته 14 */
body:not(.desk) #home > header.bar { height: 48px !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; box-sizing: border-box; align-items: center !important; }
body:not(.desk) #home > header.bar .logo { font-size: 28px !important; line-height: 48px !important; height: 48px !important; }
body:not(.desk) #home .stats { height: 30px !important; min-height: 0 !important; padding: 0 10px !important; box-sizing: border-box; font-size: 14px !important; color: #858585 !important; background: #f1f1f1 !important; align-items: center !important; }
body:not(.desk) #home .tabbar { height: 65px !important; min-height: 0 !important; box-sizing: border-box; }
body:not(.desk) #home .tabbar button { font-size: 14px !important; padding: 6px 0 6px !important; }
body:not(.desk) #home .tabbar button i { font-size: 22px !important; height: 26px !important; line-height: 26px !important; }

/* قائمة الغرف بالتلفون: لون لقانا الوردي للشريط الفوق والشريط الجوّة */
body:not(.desk) #home > header.bar { background: #ca6d9c !important; }
body:not(.desk) #home .tabbar { background: #ca6d9c !important; }

/* ===== شاشة الدخول بالتلفون: مثل لوحة دخول لقانا (wvmain pnlPlogin) ===== */
body:not(.desk) #login { background: #f5f5f5; }
body:not(.desk) #login > header.bar { background: #ca6d9c !important; min-height: 48px; height: 48px; padding-top: 0; padding-bottom: 0; }
body:not(.desk) #login > header.bar .logo { font-size: 28px; }
body:not(.desk) #login .scroll.pad { padding: 0; }
body:not(.desk) #login .login-card { background: #f0f0f0; border-radius: 0; box-shadow: none; padding: 8px 10px 10px; gap: 8px; }
body:not(.desk) #login .big-ico, body:not(.desk) #login .login-card h2 { display: none; }
body:not(.desk) #login .auth-tabs { background: none; padding: 0; gap: 4px; border-radius: 0; justify-content: flex-start; }
body:not(.desk) #login .auth-tabs button { flex: 0 0 90px; height: 30px; padding: 0; border-radius: 5px; background: rgba(202, 109, 156, .59); color: #242424; font-size: 14px; font-weight: 400; box-shadow: none; }
body:not(.desk) #login .auth-tabs button.on { background: rgba(255, 255, 255, .59); color: #242424; box-shadow: none; }
body:not(.desk) #login .login-card p { font-size: 14px; color: #858585; text-align: start; margin: 4px 0 0; }
body:not(.desk) #login label.field { font-size: 0; gap: 0; }
body:not(.desk) #login .field input { height: 35px; padding: 0 10px; border: 1px solid #e6e6e6; border-radius: 0; font-size: 16px; color: #141414; background: #fff; }
body:not(.desk) #login div.field { font-size: 14px; font-weight: 400; color: #242424; }
body:not(.desk) #login .btn.blue.wide { align-self: flex-end; width: 100px; height: 38px; padding: 0; margin-top: 4px; border-radius: 2px; background: #e0e0e0; color: #ca6d9c; font-size: 14px; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
body:not(.desk) #login #loginBack { align-self: flex-end; width: 100px; height: 38px; padding: 0; border-radius: 2px; background: #e0e0e0; color: #3a3a3a; font-size: 14px; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
body:not(.desk) #login .avatar-pick button.on { border-color: #ca6d9c; background: #f6e3ed; }

/* ===== المزيد بالتلفون: مثل لقانا tab2 (أزرار 50 بينها 10، خط #ececec، نص 14 #242424) ===== */
body:not(.desk) .more-list { padding: 10px 0 0; background: #fff; }
body:not(.desk) .more-item { width: calc(100% - 20px); height: 50px; padding: 0; margin-bottom: 10px; font: 400 14px 'Tajawal', sans-serif; color: #242424; border-bottom: 0; position: relative; }
body:not(.desk) .more-item:not(:last-child)::after { content: ''; position: absolute; left: 50px; right: 50px; bottom: -6px; height: 1px; background: #ececec; }
/* ===== البحث بالتلفون: مثل لقانا tab4 (مربع 35 بإطار #e6e6e6، خط تحت 2 #c2c2c2) ===== */
body:not(.desk) #vSearch { background: #f0f0f0; min-height: 100%; }
body:not(.desk) .search-box { height: 46px; padding: 5px 10px 0; background: #f0f0f0; border-bottom: 2px solid #c2c2c2; }
body:not(.desk) .search-box input { height: 35px; padding: 0 10px; border-radius: 0; border: 1px solid #e6e6e6; font-size: 16px; text-align: center; background: #fff; }
body:not(.desk) #searchList { background: #fff; }
/* ===== المفضلة الفارغة: 14 رمادي #808080 ===== */
body:not(.desk) #vFav .empty, body:not(.desk) #searchList .empty { font-size: 14px; color: #808080; padding-top: 210px; }
/* ===== الإعدادات بالتلفون: مثل لقانا lysettings / lsvappsettings ===== */
body:not(.desk) #settings > header.bar { background: #ca6d9c; min-height: 48px; height: 48px; padding-top: 0; padding-bottom: 0; }
body:not(.desk) #settings .bar-title { font-size: 18px; }
body:not(.desk) #settings .bar-btn { width: 32px; height: 32px; font-size: 22px; }
body:not(.desk) #settings .bar-btn.side-l { left: 5px; }
body:not(.desk) .set-scroll { background: #f5f5f5; padding: 6px 10px 16px; }
body:not(.desk) .set-h { font-size: 22px; font-weight: 700; color: #696969; margin: 10px 4px 8px; }
body:not(.desk) .set-card { border-radius: 20px; padding: 2px 14px; }
body:not(.desk) .switch-row, body:not(.desk) .radio-row { font-size: 14px; color: #3c3c3c; padding: 12px 0; border-bottom-color: #e2e2e2; }
body:not(.desk) .radio-row input { width: 22px; height: 22px; }
body:not(.desk) .radio-row input:checked { border-color: #ca6d9c; }
body:not(.desk) .radio-row input:checked::after { width: 12px; height: 12px; background: #ca6d9c; }
body:not(.desk) .slider-labels { font-size: 14px; color: #3c3c3c; }
body:not(.desk) .set-acc { font-size: 14px; font-weight: 400; color: #3c3c3c; }
body:not(.desk) .set-foot { height: 48px; padding: 4px 14px; gap: 10px; justify-content: flex-end; background: #ca6d9c; padding-bottom: max(4px, env(safe-area-inset-bottom)); box-sizing: content-box; }
body:not(.desk) .set-foot .btn { flex: 0 0 100px; height: 40px; padding: 0; font-size: 14px; font-weight: 500; background: transparent; color: #fff; }
body:not(.desk) #searchList .empty { padding-top: 134px; }
body:not(.desk) .set-foot { box-sizing: border-box; align-items: center; }

/* ===== الخاص بالتلفون: شريط مثل رأس نافذة الخاص بلقانا (IMLV P4: 30 #d7e4f2، اسم 18 أسود، خط #afafaf) ===== */
body:not(.desk) .ptabs { height: 30px; padding: 0 4px; gap: 2px; align-items: stretch; background: #d7e4f2; border-bottom: 1px solid #afafaf; }
body:not(.desk) .ptab { border: 0; border-radius: 0; background: transparent; color: #000; font-size: 14px; padding: 0 10px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
body:not(.desk) .ptab.on { background: #fff; color: #000; font-size: 18px; border: 0; }
body:not(.desk) .ptab .x { color: #555; opacity: 1; font-size: 14px; }
/* ===== كامرة التلفون: مثل pnlCam بلقانا (180 عرض، أبيض، إطار #c0c0c0، رأس 25 #d7e4f2، عنوان 14 أسود) ===== */
body:not(.desk) .cam-win { width: 180px; background: #fff; border: 1px solid #c0c0c0; border-radius: 0; box-shadow: 0 2px 8px rgba(0,0,0,.25); padding: 1px; }
body:not(.desk) .cam-win.self { border-color: #c0c0c0; }
body:not(.desk) .cam-head { height: 25px; padding: 0 0 0 3px; background: #d7e4f2; color: #000; font-size: 14px; border-bottom: 1px solid #c0c0c0; direction: ltr; }
body:not(.desk) .cam-x { width: 32px; height: 25px; padding: 0; color: #333; font-size: 16px; }
body:not(.desk) .cam-win video { background: #fff; }
body:not(.desk) .cam-wait { top: 27px; background: #f0f0f0; color: #000; font-size: 16px; font-weight: 700; }
body:not(.desk) .cam-ask { left: 0; right: 0; top: 141px; border-radius: 0; border: 1px solid #d4d4d4; background: rgba(255,255,255,.82); padding: 5px 8px; box-shadow: none; display: flex; align-items: center; gap: 6px; }
body:not(.desk) .cam-ask-t { flex: 1; margin: 0; font-size: 14px; font-weight: 400; color: #000; text-align: start; }
body:not(.desk) .cam-ask-b { gap: 7px; }
body:not(.desk) .cam-ask-b button { flex: 0 0 55px; height: 28px; padding: 0; border-radius: 2px; font-size: 12px; font-weight: 500; background: #e0e0e0; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
body:not(.desk) .cam-ask-yes { color: #0a8a14; }
body:not(.desk) .cam-ask-no { color: #b40000; }

/* ===== مطابقة لقانا (الكمبيوتر) 2026-12-04 ===== */
/* سطر الملكي: 43 طول، الصورة مربعة 37 بدون إطار ذهبي */
.desk .urow.royal { min-height: 43px !important; }
.desk .urow.royal .utile { width: 37px !important; height: 37px !important; border-radius: 0 !important; box-shadow: none !important; }
/* ✕ على تبويب «الجميع» مثل لقانا (شكل بس) */
.desk .ptab .x.x-all { cursor: default; opacity: .75; margin-inline-start: 2px; font-size: 11px; }
.desk .speak-strip { display: none !important; }