/* حاسوبنا: الألوان والخطوط الأساسية المشتركة */
:root{
  --bg:#f2f4f6; --surface:#ffffff; --sunk:#e8ecf0; --line:#d5dbe2;
  --ink:#16213a; --muted:#59647a;
  --navy:#1f3a6d; --green:#1d6b3f; --crimson:#a3203a; --gold:#a97c22;
  --ok:#1d6b3f; --ok-bg:#e3f2e8; --bad:#a3203a; --bad-bg:#f9e4e8;
  --accent:var(--navy); --on-accent:#ffffff;
  --code-bg:#f6f8fb; --code-ink:#1b2540; --console-bg:#101828; --console-ink:#e6edf7;
  --display:"Reem Kufi","IBM Plex Sans Arabic",system-ui,sans-serif;
  --body:"IBM Plex Sans Arabic",system-ui,"Segoe UI",Tahoma,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  --r:14px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0e1525; --surface:#162038; --sunk:#1c2843; --line:#2b3a5a;
  --ink:#e8ecf4; --muted:#9ba7bf;
  --navy:#7fa3e6; --green:#5cc489; --crimson:#ef7d92; --gold:#e0b45a;
  --ok:#5cc489; --ok-bg:#16352a; --bad:#ef7d92; --bad-bg:#3a1c27;
  --accent:#7fa3e6; --on-accent:#0e1525;
  --code-bg:#0f1830; --code-ink:#dbe5f7; --console-bg:#070c18; --console-ink:#e6edf7; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0e1525; --surface:#162038; --sunk:#1c2843; --line:#2b3a5a;
  --ink:#e8ecf4; --muted:#9ba7bf;
  --navy:#7fa3e6; --green:#5cc489; --crimson:#ef7d92; --gold:#e0b45a;
  --ok:#5cc489; --ok-bg:#16352a; --bad:#ef7d92; --bad-bg:#3a1c27;
  --accent:#7fa3e6; --on-accent:#0e1525;
  --code-bg:#0f1830; --code-ink:#dbe5f7; --console-bg:#070c18; --console-ink:#e6edf7; color-scheme:dark}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.75;margin:0}
[hidden]{display:none!important}
.wrap{max-width:44rem;margin:0 auto;padding-inline:16px;padding-block:calc(16px + env(safe-area-inset-top,0px)) 40px;display:flex;flex-direction:column;gap:16px}
main,.view{display:flex;flex-direction:column;gap:16px;min-width:0}
h1,h2,h3{font-family:var(--display);line-height:1.35;margin:0;text-wrap:balance;font-weight:700}
.h2{font-size:1.2rem}
p{margin:0}
button{font:inherit;color:inherit}
.lt{font-family:var(--mono);font-size:.92em;unicode-bidi:isolate;direction:ltr}
.stack{display:flex;flex-direction:column;gap:12px;min-width:0}
.row{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;justify-content:space-between}
.ribbon{display:flex;height:5px;border-radius:3px;overflow:hidden}
.ribbon i{flex:1}
.ribbon i:nth-child(1){background:var(--green)}.ribbon i:nth-child(2){background:var(--navy)}
.ribbon i:nth-child(3){background:var(--crimson)}.ribbon i:nth-child(4){background:var(--gold)}

.head{display:flex;gap:14px;align-items:center}
.logo{width:76px;height:76px;border-radius:50%;flex:none;background:#fff;box-shadow:0 0 0 1px var(--line)}
.logo2{width:76px;height:76px;border-radius:12px;flex:none;background:#fff;box-shadow:0 0 0 1px var(--line);margin-inline-start:auto;object-fit:contain}
.head .t{min-width:0;display:flex;flex-direction:column;gap:2px}
.head .school,.head .sub{font-size:.82rem;color:var(--muted);font-weight:600}
.head h1{font-size:clamp(1.35rem,4.6vw,1.9rem)}

.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:18px}
.home-link{align-self:flex-start;font-size:.85rem;font-weight:700;color:var(--accent);text-decoration:none;margin-bottom:-6px}
.foot{text-align:center;font-size:.8rem;color:var(--muted);display:flex;flex-direction:column;gap:4px;padding-top:8px}
.foot p{margin:0}
a{color:var(--accent)}

/* شاشة الكمبيوتر */
@media (min-width:64rem){
  body{font-size:17px}
  .wrap.wide{max-width:80rem;padding-inline:32px;gap:20px}
  .logo,.logo2{width:92px;height:92px}
}

/* شعار حاسوبنا وسطر التصميم والإعداد */
.mark{width:76px;height:76px;flex:none}
.foot .credit{color:var(--ink);font-size:.85rem}
.foot .credit b{color:var(--navy)}
@media (max-width:30rem){.mark{width:60px;height:60px}}
@media (min-width:64rem){.mark{width:88px;height:88px}}
