/* ================= عناصر مشتركة داخل الشاشة ================= */
.win{font-size:max(11px,1.05cqw)}
.win svg{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.win .addr{direction:ltr;unicode-bidi:isolate}
.win.dark-bar .win-bar{background:linear-gradient(180deg,#2b3034,#202427);border-bottom-color:#111}
.win.dark-bar .win-title{color:#d7dee3}
.nocopy{user-select:none;-webkit-user-select:none}

/* شريط القوائم: مؤقت الجلسة */
.mb-session{display:inline-flex;align-items:center;gap:.6cqw;margin-inline-start:1cqw;padding:.15cqh .8cqw;border-radius:999px;background:rgba(223,243,244,.16);font-variant-numeric:tabular-nums}
.mb-session[hidden]{display:none}
.mb-session.warn{background:rgba(255,95,87,.35)}
.mb-session.done{background:rgba(64,190,120,.3)}
.mb-session button{border:0;border-radius:999px;background:#dff3f4;color:#0c272c;font:700 max(9px,.95cqw) var(--font);padding:.1cqh .9cqw;cursor:pointer}

/* طبقات فوق المكتب */
.ov{position:absolute;inset:0;z-index:80;display:grid;place-items:center;background:rgba(3,14,16,.5);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  opacity:0;pointer-events:none;transition:opacity .35s;font-size:max(11px,1.1cqw);color:#fff}
.ov.show{opacity:1;pointer-events:auto}
.ov-card{width:max(290px,36cqw);border-radius:20px;padding:3cqh 2.6cqw;text-align:center;background:linear-gradient(160deg,rgba(23,64,71,.95),rgba(8,30,34,.97));
  border:1px solid rgba(191,224,226,.28);box-shadow:0 30px 80px rgba(0,0,0,.55);transform:translateY(16px) scale(.97);transition:transform .45s cubic-bezier(.2,.9,.3,1)}
.ov.show .ov-card{transform:none}
.ov-card.sm{width:max(270px,30cqw)}
.ov-card h2{font-size:1.9em;margin:.4em 0 .3em}.ov-card h3{font-size:1.35em;margin-bottom:.4em}
.ov-card p{color:#cfe3e5;line-height:1.8}
.ov-btns{display:flex;gap:.6em;justify-content:center;margin-top:1.4em}
.ov-btns button{border:0;border-radius:12px;padding:.65em 1.4em;font:700 1em var(--font);cursor:pointer;background:#dff3f4;color:#0c272c}
.ov-btns button.ghost{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.25)}
.seal-img{width:max(60px,7cqw);filter:drop-shadow(0 10px 18px rgba(0,0,0,.5))}
.jump .j-icon{width:max(50px,5.5cqw);height:max(50px,5.5cqw);margin:0 auto;border-radius:50%;display:grid;place-items:center;background:rgba(223,243,244,.12)}
.jump .j-icon svg{width:60%;fill:none;stroke:#dff3f4;stroke-width:1.8;stroke-linecap:round;animation:spinS 2.4s linear 1}
@keyframes spinS{to{transform:rotate(360deg)}}
.jump .j-skip{margin-top:1em;color:#9fd0d3;font-weight:600;letter-spacing:.04em}
.jump .j-day{font-size:1.4em;font-weight:600;margin-top:.3em}
.jump .j-time{font-size:3.2em;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}

/* نموذج الجدولة */
.sched .sched-card{text-align:start;width:max(320px,44cqw);max-height:86cqh;overflow:auto;display:flex;flex-direction:column;gap:.8em}
.sched h3{display:flex;align-items:center;gap:.5em}
.sched h3 svg{width:1.2em;fill:none;stroke:currentColor;stroke-width:2}
.sched label{display:flex;flex-direction:column;gap:.3em;font-size:.92em;color:#bfdadd}
.sched label[hidden]{display:none}
.sched input,.sched select,.sched textarea{border:1px solid rgba(223,243,244,.25);background:rgba(255,255,255,.07);color:#fff;border-radius:10px;padding:.55em .8em;font:inherit;outline:0;color-scheme:dark}
.sched input:focus,.sched select:focus,.sched textarea:focus{border-color:#9fe0e4;background:rgba(255,255,255,.12)}
.sched select option{color:#111}
.sched .g3{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:.6em}
.sched .dayhint{font-size:.88em;color:#9fe0e4;margin-top:-.3em}
.seg2{display:grid;grid-template-columns:1fr 1fr;gap:.4em;background:rgba(0,0,0,.25);padding:.3em;border-radius:12px}
.seg2 button{display:flex;align-items:center;justify-content:center;gap:.4em;border:0;border-radius:9px;padding:.55em;font:600 1em var(--font);color:#cfe3e5;background:none;cursor:pointer}
.seg2 button svg{width:1.2em;fill:none;stroke:currentColor;stroke-width:1.9}
.seg2 button.on{background:#dff3f4;color:#0c272c}

/* ================= البريد: الشريط العلوي والمرفقات ================= */
.ribbon{flex:none;display:flex;align-items:center;gap:.2em;padding:.45em .8em;background:#f8f9fa;border-bottom:1px solid #e1e5e8;font-size:max(10.5px,1cqw);overflow-x:auto}
.rb{display:flex;align-items:center;gap:.4em;border:0;background:none;border-radius:7px;padding:.45em .7em;font:500 1em var(--font);color:#29343c;cursor:pointer;white-space:nowrap}
.rb svg{width:1.25em;height:1.25em}
.rb:hover:not(:disabled){background:#e6ecee}
.rb:disabled{opacity:.38;cursor:default}
.rb.on{color:#c2410c}
.rb.primary{background:#0c272c;color:#fff}
.rb.primary:hover:not(:disabled){background:#14434b}
.rb-sep{width:1px;height:1.6em;background:#d8dde1;margin:0 .3em}
.ribbon .m-search{margin:0;margin-inline-start:auto;width:min(260px,30%);height:2.2em;flex:none}
.m-acct{flex-direction:row!important;align-items:center;gap:.6em}
.m-acct>div{display:flex;flex-direction:column;min-width:0}
.m-av.me{background:#0c272c!important;width:2.3em;height:2.3em;display:grid}
.m-ic{font-style:normal;color:#7a858e;display:inline-grid}
.m-ic svg{width:1em;height:1em}
.m-ic.flag{color:#c2410c}
.m-list-head{display:flex;align-items:baseline;gap:.5em}
.m-list-head small{color:#7a858e;font-weight:500;font-size:.8em}
.m-atts,.c-atts{display:flex;flex-wrap:wrap;gap:.5em;margin-top:.9em}
.c-atts{margin:0;padding:0 1em}
.c-atts:empty{display:none}
.m-att,.c-att{display:inline-flex;align-items:center;gap:.5em;border:1px solid #d7e3e6;background:#f5fafb;border-radius:9px;padding:.45em .8em;font:500 .9em var(--font);color:#1f3a40;cursor:pointer}
.c-att{cursor:default;padding:.3em .4em .3em .8em}
.c-att button{border:0;background:#e1ecee;border-radius:50%;width:1.5em;height:1.5em;cursor:pointer;color:#34474d}
.m-att svg,.c-att svg{width:1.2em;height:1.2em;color:#d64545}
.m-att:hover{background:#e8f3f4}
.c-attach{display:flex;align-items:center;gap:.4em;border:1px solid #d3dde1;background:#fff;border-radius:8px;padding:.45em .8em;font:500 .92em var(--font);cursor:pointer;color:#33444b}
.c-attach svg{width:1.1em;height:1.1em}
.m-compose{position:relative}
.c-picker{position:absolute;bottom:3.6em;inset-inline-start:1em;z-index:5;background:#fff;border:1px solid #d3dde1;border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.15);padding:.6em;display:flex;flex-direction:column;gap:.2em;min-width:16em}
.c-picker[hidden]{display:none}
.c-picker b{font-size:.85em;color:#6a737c;padding:.2em .5em}
.c-picker button{display:flex;align-items:center;gap:.5em;border:0;background:none;border-radius:8px;padding:.5em;cursor:pointer;font:inherit;text-align:start}
.c-picker button:hover{background:#eef5f6}
.c-picker svg{width:1.2em;height:1.2em;color:#d64545}

/* ================= المحادثات ================= */
.chat{flex:1;min-height:0;display:grid;grid-template-columns:minmax(220px,32%) 1fr;background:#fff;color:#111b21}
.ch-side{display:flex;flex-direction:column;min-height:0;border-inline-end:1px solid #e3e6e8}
.ch-side-top{padding:.9em 1em .4em;font-size:1.25em}
.ch-search{display:flex;align-items:center;gap:.5em;margin:.3em .8em .6em;background:#f0f2f5;border-radius:9px;padding:0 .8em;height:2.4em}
.ch-search svg{width:1.1em;color:#667781;flex:none}
.ch-search input{flex:1;min-width:0;border:0;background:none;outline:0;font:inherit;color:inherit}
.ch-list{flex:1;overflow:auto}
.ch-item{display:flex;align-items:center;gap:.8em;width:100%;border:0;background:#fff;padding:.7em 1em;cursor:pointer;text-align:start;font:inherit;color:inherit;border-bottom:1px solid #f0f2f5}
.ch-item:hover{background:#f5f6f6}
.ch-item.on{background:#f0f2f5}
.ch-av{flex:none;width:2.9em;height:2.9em;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:600;overflow:hidden}
.ch-av.sm{width:2.4em;height:2.4em}
.ch-av img{width:100%;height:100%;object-fit:cover}
.ch-av svg{width:58%;stroke:#dff3f4}
.ch-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:.15em}
.ch-r1,.ch-r2{display:flex;align-items:center;gap:.5em}
.ch-r1 b{flex:1;min-width:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-r1 time{font-size:.78em;color:#667781}
.ch-item.unread .ch-r1 time{color:#1aa35a;font-weight:600}
.ch-r2>span,.typing-t{flex:1;min-width:0;font-size:.88em;color:#667781;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-style:normal}
.typing-t{color:#1aa35a}
.ch-r2 em{font-style:normal;background:#25c25a;color:#fff;border-radius:999px;font-size:.75em;font-weight:700;min-width:1.7em;height:1.7em;display:grid;place-items:center;padding:0 .4em}
.ch-pane{display:flex;flex-direction:column;min-height:0;background:#efeae2;position:relative}
.ch-pane::before{content:"";position:absolute;inset:0;opacity:.06;pointer-events:none;
  background-image:radial-gradient(#0c272c 1px,transparent 1.5px),radial-gradient(#0c272c 1px,transparent 1.5px);background-size:22px 22px;background-position:0 0,11px 11px}
.ch-blank{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.6em;color:#8696a0;background:#f8f9fa}
.ch-blank svg{width:4em;stroke-width:1.2}
.ch-head{position:relative;z-index:1;display:flex;align-items:center;gap:.7em;padding:.55em 1em;background:#f0f2f5;border-bottom:1px solid #e3e6e8}
.ch-head>div{display:flex;flex-direction:column;min-width:0}
.ch-head small{color:#667781;font-size:.8em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-back{display:none;border:0;background:none;color:#0c5f6b;cursor:pointer;width:2em;height:2em}
.ch-back svg{width:1.4em}
.ch-msgs{position:relative;z-index:1;flex:1;overflow:auto;padding:1em 6%;display:flex;flex-direction:column;gap:.3em}
.ch-day{text-align:center;margin:.6em 0}
.ch-day span{background:#fff;color:#54656f;font-size:.78em;padding:.25em .9em;border-radius:8px;box-shadow:0 1px 1px rgba(0,0,0,.08)}
.bub{max-width:72%;padding:.45em .7em .3em;border-radius:10px;box-shadow:0 1px 1px rgba(0,0,0,.1);position:relative;line-height:1.65}
.bub.in{align-self:flex-start;background:#fff;border-start-start-radius:3px}
.bub.out{align-self:flex-end;background:#d9fdd3;border-start-end-radius:3px}
.bub b{display:block;font-size:.85em}
.bub b small{color:#8696a0;font-weight:400}
.bub p{white-space:pre-wrap;word-wrap:break-word}
.bt{display:flex;align-items:center;gap:.25em;justify-content:flex-end;font-size:.72em;color:#667781;margin-top:.1em}
.ticks{display:inline-grid;color:#8696a0;font-style:normal}
.ticks svg{width:1.3em;stroke-width:2}
.ticks.read{color:#3aa4e8}
.bub.typing,.cs-m.typing{display:flex;gap:4px;padding:.8em 1em}
.bub.typing span,.cs-m.typing span,.sc-bubble.typing span{width:7px;height:7px;border-radius:50%;background:#9aa5ab;animation:dotb 1.2s infinite}
.bub.typing span:nth-child(2),.cs-m.typing span:nth-child(2),.sc-bubble.typing span:nth-child(2){animation-delay:.15s}
.bub.typing span:nth-child(3),.cs-m.typing span:nth-child(3),.sc-bubble.typing span:nth-child(3){animation-delay:.3s}
@keyframes dotb{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.ch-input{position:relative;z-index:1;display:flex;align-items:flex-end;gap:.6em;padding:.6em 1em;background:#f0f2f5}
.ch-input textarea{flex:1;resize:none;border:0;border-radius:10px;padding:.65em .9em;font:inherit;line-height:1.6;outline:0;background:#fff!important;color:#111b21!important;max-height:120px}
.ch-input button{border:0;width:2.6em;height:2.6em;border-radius:50%;background:#0c5f6b;color:#fff;cursor:pointer;display:grid;place-items:center;flex:none}
.ch-input button svg{width:1.2em;transform:scaleX(-1)}
.ch-locked{position:relative;z-index:1;text-align:center;padding:.8em;background:#f0f2f5;color:#667781;font-size:.9em}

/* ================= الاجتماعات (أونلاين) ================= */
.meet{flex:1;min-height:0;overflow:auto;background:#fff;color:#1b1f23;padding:1.6em 2em}
.meet[hidden],.call[hidden]{display:none}
.mh-hero{display:flex;align-items:center;gap:1em;justify-content:space-between;padding:1.4em 1.6em;border-radius:16px;background:linear-gradient(135deg,#0c272c,#145560);color:#fff;margin-bottom:1.2em}
.mh-hero h2{font-size:1.5em}.mh-hero p{color:#bfe0e3;font-size:.92em}
.mh-new{display:flex;align-items:center;gap:.4em;border:0;border-radius:12px;background:#dff3f4;color:#0c272c;font:700 1em var(--font);padding:.7em 1.2em;cursor:pointer;white-space:nowrap}
.mh-new:disabled{opacity:.5;cursor:default}
.mh-new svg{width:1.2em}
.mh-list{display:flex;flex-direction:column;gap:.6em}
.mh-item{display:flex;align-items:center;gap:1em;border:1px solid #e3e8ea;border-radius:14px;padding:.8em 1em}
.mh-item.ready{border-color:#1aa35a;box-shadow:0 0 0 3px rgba(26,163,90,.12)}
.mh-date{width:3.4em;text-align:center;border-radius:10px;background:#f1f6f7;padding:.3em 0;display:flex;flex-direction:column;line-height:1.2}
.mh-date b{font-size:1.4em;color:#0c272c}.mh-date span{font-size:.75em;color:#6a737c}
.mh-info{flex:1;min-width:0;display:flex;flex-direction:column}
.mh-info>span{font-size:.86em;color:#6a737c}
.mh-link{display:flex;align-items:center;gap:.3em;color:#0c5f6b!important}
.mh-link svg{width:1em}
.mstat{font-size:.78em;font-weight:700;border-radius:999px;padding:.2em .8em;white-space:nowrap}
.mstat.amber{background:#fff1dc;color:#9a5b00}.mstat.green{background:#e1f5e8;color:#1c7a3d}.mstat.red{background:#fde4e4;color:#a12a2a}.mstat.gray{background:#eef1f3;color:#5b6770}
.mstat.live{background:#1aa35a;color:#fff;animation:pulseL 1.6s infinite}
@keyframes pulseL{50%{box-shadow:0 0 0 6px rgba(26,163,90,.15)}}
.mh-join{border:0;border-radius:10px;background:#0c5f6b;color:#fff;font:700 .95em var(--font);padding:.55em 1.2em;cursor:pointer}
.mh-join[data-early]{background:#e3e8ea;color:#5b6770}
.mh-empty{padding:3em;text-align:center;color:#8a949b}

.call{flex:1;min-height:0;display:flex;flex-direction:column;background:#111417;color:#e8ecef}
.call-top{display:flex;align-items:center;gap:1em;padding:.6em 1.2em;font-size:.92em}
.call-top .addr{color:#8fa0a8;font-size:.9em}
.call-clock{margin-inline-start:auto;font-variant-numeric:tabular-nums;color:#b8c4ca}
.call-main{flex:1;min-height:0;display:grid;grid-template-columns:1fr;gap:.8em;padding:0 1em}
.call-main.with-side{grid-template-columns:1fr minmax(240px,30%)}
.call-stage{position:relative;min-height:0;display:grid}
.tile{position:relative;border-radius:16px;overflow:hidden;background:radial-gradient(circle at 50% 40%,#1d4a52,#0b1e22 70%)}
.tile.robot{display:grid;place-items:center}
.tile-art{height:86%;aspect-ratio:240/384;margin-top:4%;display:grid;place-items:center;transition:transform .4s}
.tile-art svg,.tile-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 30px rgba(0,0,0,.45)) drop-shadow(0 0 40px rgba(127,227,238,.12))}
.tile.robot.speaking{box-shadow:inset 0 0 0 3px #4fd8e3}
.tile-name{position:absolute;bottom:.8em;inset-inline-start:1em;display:flex;flex-direction:column;background:rgba(0,0,0,.45);padding:.3em .8em;border-radius:9px;font-size:.9em}
.tile-name small{color:#9fd0d3;font-size:.8em}
.captions{position:absolute;bottom:3.8em;left:50%;transform:translateX(-50%);width:min(80%,640px);background:rgba(0,0,0,.72);color:#fff;border-radius:10px;padding:.6em 1em;text-align:center;line-height:1.7;font-size:1.05em}
.tile.me{position:absolute;bottom:1em;inset-inline-end:1em;width:22%;aspect-ratio:16/10;background:#2a3034;display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.4);border:1px solid #3a4146}
.me-av{width:3em;height:3em;border-radius:50%;background:#0f5560;display:grid;place-items:center;font-weight:700;font-size:1.2em}
.tile.me .tile-name{bottom:.4em;inset-inline-start:.5em;font-size:.75em;padding:.15em .5em}
.tile-flags{position:absolute;top:.4em;inset-inline-end:.5em;display:flex;gap:.3em}
.tile-flags svg{width:1.1em;color:#ff6b6b}
.call-side{display:flex;flex-direction:column;min-height:0;background:#fff;color:#1b1f23;border-radius:14px;overflow:hidden}
.call-side[hidden]{display:none}
.cs-head{padding:.7em 1em;font-weight:700;border-bottom:1px solid #eceff1}
.cs-msgs{flex:1;overflow:auto;padding:.8em;display:flex;flex-direction:column;gap:.6em}
.cs-m b{font-size:.82em;color:#0c5f6b}.cs-m b time{color:#8a949b;font-weight:400;margin-inline-start:.3em}
.cs-m.me b{color:#5b6770}
.cs-m p{white-space:pre-wrap;line-height:1.7;font-size:.95em}
.cs-input{display:flex;gap:.5em;padding:.6em;border-top:1px solid #eceff1;align-items:flex-end}
.cs-input textarea{flex:1;resize:none;border:1px solid #d6dde0;border-radius:10px;padding:.5em .7em;font:inherit;line-height:1.6;outline:0;background:#fff!important;color:#1b1f23!important}
.cs-input textarea:focus{border-color:#0c5f6b}
.cs-input button{border:0;width:2.5em;height:2.5em;border-radius:50%;background:#0c5f6b;color:#fff;cursor:pointer;display:grid;place-items:center;flex:none}
.cs-input button svg{width:1.15em;transform:scaleX(-1)}
.cs-end{padding:.9em;text-align:center;color:#1c7a3d;font-weight:600;font-size:.92em}
.call-bar{display:flex;justify-content:center;gap:.8em;padding:.8em}
.call-bar button{width:3em;height:3em;border-radius:50%;border:0;background:#3a4146;color:#fff;cursor:pointer;display:grid;place-items:center}
.call-bar button svg{width:1.35em}
.call-bar button.off{background:#ea4335}
.call-bar button.on{background:#a8dce1;color:#0c272c}
.call-bar button.leave{background:#ea4335;width:4em;border-radius:999px}

/* ================= القاعة الحضورية ================= */
.room-win{inset:5.6cqh 2.5cqw 12.5cqh}
.room{flex:1;min-height:0;display:flex;flex-direction:column;background:#1a1d1f;position:relative}
.sc-bubble{position:absolute;top:6%;left:50%;transform:translateX(-50%);width:min(56%,560px);z-index:3;background:#fff;color:#16252a;border-radius:16px;padding:.8em 1.1em;line-height:1.75;box-shadow:0 12px 30px rgba(0,0,0,.25);font-size:1.02em;animation:bubIn .35s}
.sc-bubble::after{content:"";position:absolute;bottom:-.6em;left:50%;transform:translateX(-50%);border:.6em solid transparent;border-top-color:#fff;border-bottom:0}
.sc-bubble.typing{width:auto;display:flex;gap:5px}
@keyframes bubIn{from{opacity:0;transform:translate(-50%,8px)}}
.sc-mine{position:absolute;bottom:4%;inset-inline-start:3%;z-index:3;max-width:34%;background:rgba(12,39,44,.9);color:#dff3f4;border-radius:12px 12px 12px 3px;padding:.5em .8em;font-size:.85em;line-height:1.6}
.sc-info{position:absolute;bottom:4%;inset-inline-end:3%;z-index:3;display:flex;flex-direction:column;background:rgba(0,0,0,.5);color:#fff;border-radius:10px;padding:.4em .8em;font-size:.8em}
.sc-info span{color:#cfe3e5}
.room-bar{display:flex;align-items:flex-end;gap:.6em;padding:.7em;background:#f4f6f7}
.room-bar .cs-input{flex:1;border:0;padding:0}
.room-bar .cs-end{flex:1}
.room-log,.room-leave{border:0;border-radius:10px;padding:.65em 1em;font:600 .92em var(--font);cursor:pointer;white-space:nowrap}
.room-log{background:#e3e8ea;color:#2d3a40}
.room-leave{background:#ea4335;color:#fff}
.room-spk{border:0;border-radius:10px;width:2.9em;height:2.6em;display:grid;place-items:center;cursor:pointer;background:#d6eef0;color:#0c4a53;flex:none}
.room-spk.off{background:#f6d4d1;color:#b3261e}
.room-spk svg{width:1.3em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.room-transcript{position:absolute;inset:1em 1em 5em auto;width:min(40%,420px);z-index:5;background:#fff;color:#1b1f23;border-radius:14px;padding:1em;overflow:auto;box-shadow:0 16px 40px rgba(0,0,0,.3);font-size:.92em;line-height:1.7;display:flex;flex-direction:column;gap:.5em}
.room-transcript[hidden]{display:none}
.room-transcript .robot b{color:#0c5f6b}

/* ================= التقويم ================= */
.cal{flex:1;min-height:0;display:grid;grid-template-columns:1fr minmax(220px,28%);background:#fff;color:#1b1f23}
.cal-main{display:flex;flex-direction:column;min-height:0;padding:1em}
.cal-head{display:flex;align-items:center;gap:.5em;margin-bottom:.8em}
.cal-head h2{font-size:1.4em;min-width:8em;text-align:center}
.cal-head button{border:0;background:#f1f4f5;border-radius:8px;height:2.2em;min-width:2.2em;display:grid;place-items:center;cursor:pointer;color:#2d3a40;font:600 .92em var(--font);padding:0 .7em}
.cal-head button svg{width:1.2em}
.cal-head .cal-new{margin-inline-start:auto;background:#0c272c;color:#fff;display:flex;gap:.3em}
.cal-head .cal-new:disabled{opacity:.5}
.cal-dow{display:grid;grid-template-columns:repeat(7,1fr);font-size:.8em;color:#6a737c;text-align:center;padding-bottom:.4em;border-bottom:1px solid #eceff1}
.cal-grid{flex:1;display:grid;grid-template-columns:repeat(7,1fr);grid-auto-rows:1fr;min-height:0}
.cd{border:0;border-bottom:1px solid #f0f2f3;border-inline-start:1px solid #f0f2f3;background:#fff;text-align:start;padding:.3em;cursor:pointer;display:flex;flex-direction:column;gap:.15em;overflow:hidden;font:inherit;color:inherit;min-height:0}
.cd.empty{background:#fafbfb;cursor:default}
.cd b{font-weight:600;font-size:.9em;width:1.8em;height:1.8em;display:grid;place-items:center;border-radius:50%}
.cd.today b{background:#e5384f;color:#fff}
.cd.sel{background:#eef6f7}
.cd:hover:not(.empty){background:#f4f9f9}
.ce{font-size:.72em;border-radius:4px;padding:.05em .4em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#dcebed;color:#0c272c}
.ce.deadline{background:#fde4e4;color:#a12a2a}.ce.event{background:#ede7fb;color:#4c2fae}.ce.more{background:none;color:#6a737c}
.cal-side{border-inline-start:1px solid #eceff1;padding:1em;overflow:auto;background:#fafbfb}
.cal-side h3{font-size:1.05em;margin-bottom:.7em}.cal-side h4{font-size:.9em;color:#6a737c;margin:1.2em 0 .5em}
.cs-ev{display:flex;gap:.7em;background:#fff;border:1px solid #e6eaec;border-inline-start:3px solid #0f5560;border-radius:10px;padding:.6em .7em;margin-bottom:.5em}
.cs-ev.deadline{border-inline-start-color:#e5384f}.cs-ev.event{border-inline-start-color:#6d4bd0}
.cs-ev time{font-size:.82em;color:#6a737c;white-space:nowrap}
.cs-ev div{display:flex;flex-direction:column;gap:.15em;min-width:0}
.cs-ev span{font-size:.82em;color:#6a737c}
.cs-ev button{align-self:flex-start;border:0;background:#1aa35a;color:#fff;border-radius:8px;padding:.3em .8em;font:700 .85em var(--font);cursor:pointer;margin-top:.2em}
.cal-none{color:#8a949b;font-size:.9em}
.room-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e6eaec;border-radius:10px;padding:.5em .7em;margin-bottom:.4em;font-size:.88em}
.room-card span,.room-card small{color:#6a737c;font-size:.85em}

/* ================= المتصفح ================= */
.br{flex:1;min-height:0;display:flex;flex-direction:column;background:#fff;color:#1b1f23}
.br-tabs{display:flex;align-items:flex-end;gap:.2em;padding:.5em .6em 0;background:#dfe3e7;position:relative}

.br-tab{display:flex;align-items:center;gap:.4em;max-width:14em;min-width:7em;padding:.45em .8em;border-radius:9px 9px 0 0;background:transparent;cursor:pointer;font-size:.9em;color:#3a454c}
.br-tab span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.br-tab.on{background:#fff;color:#111}
.br-tab button{border:0;background:none;border-radius:50%;width:1.4em;height:1.4em;cursor:pointer;color:inherit}
.br-tab button:hover{background:#e3e6e9}
.br-newtab{border:0;background:none;font-size:1.3em;width:1.6em;height:1.6em;border-radius:50%;cursor:pointer;margin-bottom:.2em;color:#3a454c}
.br-bar{display:flex;align-items:center;gap:.3em;padding:.45em .6em;border-bottom:1px solid #e6e9ec}
.br-bar>button{border:0;background:none;width:2.2em;height:2.2em;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:#3a454c}
.br-bar>button:hover:not(:disabled){background:#eef1f3}
.br-bar>button:disabled{opacity:.35}
.br-bar>button svg{width:1.2em}
.br-url{flex:1;display:flex;align-items:center;gap:.5em;background:#f0f2f4;border-radius:999px;padding:0 1em;height:2.3em}
.br-url svg{width:1em;color:#5f6b72;flex:none}
.br-url input{flex:1;border:0;background:none!important;outline:0;font:inherit;color:#111!important;text-align:left}
.br-url:focus-within{background:#fff;box-shadow:0 0 0 2px #9fd0d3}
.br-marks{display:flex;gap:.3em;padding:.3em .6em;border-bottom:1px solid #eef0f2;overflow-x:auto}
.br-marks button{display:flex;align-items:center;gap:.35em;border:0;background:none;border-radius:999px;padding:.3em .7em;font:500 .85em var(--font);cursor:pointer;color:#33444b;white-space:nowrap}
.br-marks button:hover{background:#eef1f3}
.br-marks svg{width:1em;color:#0f5560}
.br-view{flex:1;min-height:0;position:relative;display:flex;flex-direction:column}
.br-view iframe{flex:1;border:0;width:100%;background:#fff}
.br-hint{font-size:.78em;color:#6a737c;padding:.35em .8em;background:#fafbfb;border-top:1px solid #eef0f2}
.br-hint a{color:#0c5f6b}
.br-home{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.6em;background:radial-gradient(circle at 50% 30%,#123a41,#0c272c 70%);color:#fff;text-align:center;padding:2em}
.br-home img{width:5em;filter:drop-shadow(0 10px 18px rgba(0,0,0,.5))}
.br-home h1{font-size:1.8em}.br-home p{color:#9fd0d3}
.br-tiles{display:flex;flex-wrap:wrap;gap:1em;justify-content:center;margin-top:1em}
.br-tiles button{display:flex;flex-direction:column;align-items:center;gap:.5em;border:0;background:none;color:#dff3f4;font:500 .9em var(--font);cursor:pointer;width:7em}
.br-tiles span{width:3.2em;height:3.2em;border-radius:14px;background:rgba(223,243,244,.14);display:grid;place-items:center;font-size:1.3em;font-weight:700}
.br-tiles button:hover span{background:rgba(223,243,244,.25)}

/* ================= الملفات ================= */
.fs{flex:1;min-height:0;display:grid;grid-template-columns:minmax(130px,16%) minmax(200px,28%) 1fr;background:#fff;color:#1b1f23}
.fs-side{background:#f3f5f6;border-inline-end:1px solid #e3e6e9;padding:1em .6em;display:flex;flex-direction:column;gap:.3em}
.fs-side b{font-size:.8em;color:#6a737c;padding:0 .5em}
.fs-side button{display:flex;align-items:center;gap:.5em;border:0;border-radius:8px;padding:.5em;background:none;font:500 .95em var(--font);text-align:start;cursor:pointer}
.fs-side button.on{background:#dcebed;color:#0c272c}
.fs-side svg{width:1.2em;color:#2b86e8}
.fs-list{border-inline-end:1px solid #e3e6e9;overflow:auto}
.fs-head{padding:.8em 1em;font-weight:700;border-bottom:1px solid #eceff1;display:flex;gap:.5em;align-items:baseline}
.fs-head small{color:#8a949b;font-weight:500}
.fs-item{display:flex;align-items:center;gap:.7em;width:100%;border:0;border-bottom:1px solid #f1f3f4;background:#fff;padding:.65em 1em;cursor:pointer;text-align:start;font:inherit;color:inherit}
.fs-item:hover{background:#f6f9f9}.fs-item.on{background:#e6f1f2}
.fs-item span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.f-ic{flex:none;width:2.2em;height:2.7em;border-radius:4px;background:#fff;border:1px solid #d7dde0;position:relative;display:grid;place-items:end center;padding-bottom:.25em}
.f-ic i{font-style:normal;font-size:.62em;font-weight:800;color:#fff;background:var(--c);border-radius:3px;padding:0 .3em}
.fs-view{display:flex;flex-direction:column;min-height:0;background:#e9ecee}
.fs-vhead{display:flex;align-items:center;gap:.7em;padding:.6em 1em;background:#fff;border-bottom:1px solid #e3e6e9}
.fs-vhead b{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fs-vhead button{display:flex;align-items:center;gap:.4em;border:1px solid #d3dde1;background:#fff;border-radius:8px;padding:.4em .8em;font:500 .9em var(--font);cursor:pointer}
.fs-vhead button svg{width:1.1em}
.fs-back{display:none!important}
.fs-page{flex:1;overflow:auto;margin:1.2em auto;width:min(92%,720px);background:#fff;box-shadow:0 4px 18px rgba(0,0,0,.12);padding:2.2em 2.6em;line-height:1.9;border-radius:3px}
.fs-page h1{font-size:1.5em;color:#0c272c;margin-bottom:.4em}.fs-page h2{font-size:1.2em;color:#0f5560;margin:1em 0 .3em}.fs-page h3{font-size:1.05em;margin:.8em 0 .2em}
.fs-page ul{padding-inline-start:1.4em}
.fs-page table{width:100%;border-collapse:collapse;margin:.8em 0;font-size:.92em}
.fs-page th,.fs-page td{border:1px solid #dfe5e8;padding:.4em .6em;text-align:start}
.fs-page th{background:#eef5f6}
.fs-page img{max-width:100%}
.fs-blank{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.6em;color:#8a949b}
.fs-blank svg{width:3.5em;stroke-width:1.2}
.fs-empty{padding:2em;text-align:center;color:#8a949b}

/* ================= المخطّط ================= */
.pl{flex:1;min-height:0;overflow:auto;background:#f6f5fb;color:#1b1f23;padding:1.6em 2em}
.pl-head h2{font-size:1.5em;color:#3d2a8f}.pl-head p{color:#6a737c}
.pl-prog{height:.6em;border-radius:999px;background:#e4def8;margin-top:1em;overflow:hidden}
.pl-prog div{height:100%;background:linear-gradient(90deg,#9a7bff,#5b3bd6);border-radius:inherit;transition:width .5s}
.pl-pct{color:#6a737c;font-size:.85em}
.pl h3{margin:1.4em 0 .5em;font-size:1.05em;color:#3d2a8f}
.pl-list{list-style:none;display:flex;flex-direction:column;gap:.5em;margin-top:1em}
.pl-list li{display:flex;align-items:center;gap:.8em;background:#fff;border:1px solid #e7e3f5;border-radius:12px;padding:.8em 1em}
.pl-list li>div{display:flex;flex-direction:column}
.pl-list small{color:#7a8088;font-size:.85em}
.pl-list li.done b{text-decoration:line-through;color:#8a8f96}
.pl-check{flex:none;width:1.6em;height:1.6em;border-radius:50%;border:2px solid #b7a8ef;background:#fff;display:grid;place-items:center;cursor:default;padding:0}
button.pl-check{cursor:pointer}
.pl-list li.done .pl-check{background:#5b3bd6;border-color:#5b3bd6}
.pl-check svg{width:1em;stroke:#fff;stroke-width:3}
.pl-none{color:#8a949b;margin-top:1em}

/* ================= الجوال ================= */
@media (max-width:820px), (max-height:520px){
  .win{font-size:14px}
  .ribbon .rb span{display:none}
  .ribbon .m-search{width:40%}
  .chat{grid-template-columns:1fr}
  .chat .ch-pane{display:none}
  .chat.reading .ch-side{display:none}
  .chat.reading .ch-pane{display:flex}
  .ch-back{display:grid;place-items:center}
  .call-main.with-side{grid-template-columns:1fr;grid-template-rows:42% 1fr}
  .tile.me{width:30%}
  .cal{grid-template-columns:1fr;grid-template-rows:auto 1fr;overflow:auto}
  .cal-grid{grid-auto-rows:3.6em}
  .cal-side{border:0;border-top:1px solid #eceff1}
  .cal-head h2{min-width:0;font-size:1.1em}
  .fs{grid-template-columns:1fr}
  .fs-side{display:none}
  .fs .fs-view{display:none}
  .fs.reading .fs-list{display:none}
  .fs.reading .fs-view{display:flex}
  .fs-back{display:flex!important}
  .fs-page{padding:1.2em}
  .sched .g3{grid-template-columns:1fr 1fr}
  .sched .sched-card,.ov-card{width:min(92vw,440px)}
  .room-win{inset:calc(max(20px,4.4cqh) + env(safe-area-inset-top)) 0 0}
  .sc-bubble{width:86%;font-size:.95em}
  .sc-mine{display:none}
  .room-bar{flex-wrap:wrap}
  .room-bar .cs-input{flex:1 1 100%}
  .room-transcript{width:auto;inset:1em}
  .br-tabs::before{display:none}
  .meet{padding:1em}
  .mh-hero{flex-direction:column;align-items:flex-start}
  .mh-item{flex-wrap:wrap}
}
.call-main{grid-template-rows:minmax(0,1fr)}
.call-stage{min-height:0;overflow:hidden;grid-template-rows:minmax(0,1fr)}
.tile{min-height:0}
.call-bar{position:relative;z-index:2}

/* ================= القاعة الفاخرة ================= */
.lux{position:relative;flex:1;min-height:0;overflow:hidden;container-type:size;background:#0e0c0b;--rh:min(70cqh,44cqw);--edge:calc(40cqh - 3.75cqw)}
.lux-back{position:absolute;inset:0;width:100%;height:100%}
.lux-chair{position:absolute;left:50%;transform:translateX(-50%);height:calc(var(--rh) * 1.02);width:auto;aspect-ratio:400/560;bottom:calc(var(--edge) - var(--rh) * .36);z-index:1;filter:drop-shadow(0 20px 30px rgba(0,0,0,.5))}
.lux-robot{position:absolute;left:50%;transform:translateX(-50%);height:var(--rh);aspect-ratio:240/384;bottom:calc(var(--edge) - var(--rh) * .4);z-index:2}
.lux-robot svg,.lux-robot img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 16px 22px rgba(0,0,0,.45))}
.lux-table{position:absolute;left:0;bottom:0;width:100%;height:40cqh;z-index:3;filter:drop-shadow(0 -10px 30px rgba(0,0,0,.35))}
.lux .sc-bubble{z-index:5;top:5%}
.lux .sc-mine,.lux .sc-info{z-index:5}
.lx-blink{animation:lxBlink 1.6s steps(1) infinite}
@keyframes lxBlink{50%{opacity:.15}}
@media (max-width:820px), (max-height:520px){ .lux{--rh:min(48cqh,64cqw);--edge:calc(40cqh - 10cqh * .6)} }

.win .lux svg,.win svg.robot,.adm svg.robot{stroke:none}
.lux-img{background-size:cover;background-position:center}
.ch-name{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:rgba(0,0,0,.35)}
.ch-name form{background:#fff;border-radius:16px;padding:1.4em;width:min(90%,340px);display:flex;flex-direction:column;gap:.6em;box-shadow:0 20px 50px rgba(0,0,0,.3)}
.ch-name p{color:#667781;font-size:.9em}
.ch-name input{border:1px solid #d6dde0;border-radius:10px;padding:.6em .8em;font:inherit;background:#fff!important;color:#111!important;outline:0}
.ch-name div{display:flex;gap:.5em;justify-content:flex-end}
.ch-name button{border:0;border-radius:9px;padding:.5em 1.1em;font:600 .95em var(--font);cursor:pointer;background:#0c5f6b;color:#fff}
.ch-name button[data-x]{background:#eef1f3;color:#333}
