/* ==========================================================
   جائزة قِيَم للتميز التعليمي — الهوية البصرية
   الألوان مأخوذة من أشكال الدليل: كحلي · فيروزي · ذهبي
   ========================================================== */
:root {
  --navy: #14315c; --navy-2: #1e4880; --navy-l: #eaf0f8;
  --teal: #0e7a77; --teal-2: #13948f; --teal-l: #e6f4f3;
  --gold: #b8821a; --gold-2: #d39d2c; --gold-l: #fdf5e4;
  --bg: #f4f6f9; --card: #ffffff; --text: #18222e; --muted: #5d6877; --line: #e1e6ee;
  --ok: #1b7f4b; --ok-l: #e5f5ec; --warn: #b86b00; --warn-l: #fff3e0; --bad: #b3261e; --bad-l: #fdecea;
  --info: #1e4880; --info-l: #eaf0f8;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,49,92,.06), 0 4px 16px rgba(20,49,92,.06);
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, 'Noto Sans Arabic', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.85; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: 2rem; font-weight: 700; } h2 { font-size: 1.45rem; font-weight: 700; } h3 { font-size: 1.15rem; font-weight: 700; } h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
small, .small { font-size: .88rem; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
svg.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 6px; }

/* ---------- الشعار ---------- */
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none !important; }
.brand img { flex: none; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.25; border-inline-start: 1.5px solid var(--line); padding-inline-start: 12px; }
.brand .bt b { font-size: 1.25rem; font-weight: 700; letter-spacing: 0; }
.brand .bt span { font-size: .82rem; color: var(--muted); }

/* ---------- الترويسة ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 1280px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.topbar nav { display: flex; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; }
.topbar nav a { padding: 8px 14px; border-radius: 10px; color: var(--text); font-weight: 500; }
.topbar nav a:hover, .topbar nav a.on { background: var(--navy-l); color: var(--navy); text-decoration: none; }
.who { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.who .av { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.who .nm { line-height: 1.3; } .who .nm b { display: block; font-size: .95rem; } .who .nm span { font-size: .8rem; color: var(--muted); }
.topbar .menu-btn { display: none; }

/* ---------- تخطيط التطبيق ---------- */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 67px); max-width: 1440px; margin: 0 auto; }
.side { background: #fff; border-inline-end: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 67px; height: calc(100vh - 67px); overflow: auto; }
.side .role-tag { margin: 0 8px 14px; padding: 10px 12px; border-radius: 12px; background: var(--navy-l); color: var(--navy); font-weight: 700; font-size: .92rem; }
.side .role-tag small { display: block; font-weight: 400; color: var(--muted); }
.side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 500; margin-bottom: 2px; }
.side a:hover { background: var(--bg); text-decoration: none; }
.side a.on { background: var(--navy); color: #fff; }
.side a .ic { width: 20px; height: 20px; flex: none; opacity: .85; }
.side a .cnt { margin-inline-start: auto; background: var(--gold); color: #fff; border-radius: 99px; font-size: .75rem; padding: 0 8px; line-height: 1.7; }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 12px 8px; }
.main { padding: 26px 30px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }

/* ---------- بطاقات ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.card.tight { padding: 16px; }
.card > h3:first-child, .card > h2:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

/* ---------- مؤشرات ---------- */
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.kpi .v { font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.kpi .l { color: var(--muted); font-size: .92rem; }
.kpi.gold .v { color: var(--gold); } .kpi.teal .v { color: var(--teal); }

/* ---------- أزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 1rem; font-weight: 600; padding: 10px 20px; border-radius: 11px; border: 1.5px solid transparent; cursor: pointer; background: var(--navy); color: #fff; transition: .15s; text-decoration: none !important; line-height: 1.5; }
.btn:hover { background: var(--navy-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.gold { background: var(--gold); } .btn.gold:hover { background: var(--gold-2); }
.btn.teal { background: var(--teal); } .btn.teal:hover { background: var(--teal-2); }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--line); } .btn.ghost:hover { border-color: var(--navy); background: var(--navy-l); }
.btn.danger { background: #fff; color: var(--bad); border-color: #f0c4c0; } .btn.danger:hover { background: var(--bad-l); }
.btn.ok { background: var(--ok); }
.btn.sm { padding: 6px 13px; font-size: .9rem; border-radius: 9px; }
.btn.lg { padding: 14px 28px; font-size: 1.1rem; border-radius: 13px; }
.btn.block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }

/* ---------- شارات ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 11px; border-radius: 99px; font-size: .82rem; font-weight: 600; white-space: nowrap; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge.ok { background: var(--ok-l); color: var(--ok); border-color: #bfe3cf; }
.badge.warn { background: var(--warn-l); color: var(--warn); border-color: #f5d6a6; }
.badge.bad { background: var(--bad-l); color: var(--bad); border-color: #f2c2bd; }
.badge.info, .badge.navy { background: var(--info-l); color: var(--info); border-color: #c9d7ea; }
.badge.gold { background: var(--gold-l); color: var(--gold); border-color: #efd8a8; }
.badge.teal { background: var(--teal-l); color: var(--teal); border-color: #b5dedb; }
.badge.l4 { background: #fdf3dc; color: #8a5d00; border-color: #efd29a; }
.badge.l3 { background: var(--teal-l); color: var(--teal); border-color: #b5dedb; }
.badge.l2 { background: var(--navy-l); color: var(--navy-2); border-color: #c9d7ea; }
.badge.l1 { background: #f1f1f1; color: #666; border-color: #ddd; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: currentColor; }

/* ---------- تنبيهات ---------- */
.alert { border-radius: 12px; padding: 14px 16px; border: 1px solid; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.alert .ic { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.alert.info { background: var(--info-l); border-color: #c9d7ea; color: #183b69; }
.alert.ok { background: var(--ok-l); border-color: #bfe3cf; color: #12603a; }
.alert.warn { background: var(--warn-l); border-color: #f5d6a6; color: #7c4900; }
.alert.bad { background: var(--bad-l); border-color: #f2c2bd; color: #8c1d17; }
.alert.gold { background: var(--gold-l); border-color: #efd8a8; color: #6f4c06; }
.alert b { display: block; }

/* ---------- نماذج ---------- */
label.f { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field { margin-bottom: 16px; }
.field .help { font-size: .88rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font-family: inherit; font-size: 1rem; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--text); transition: .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy-2); outline: none; box-shadow: 0 0 0 3px var(--navy-l); }
textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
input[type=number] { max-width: 140px; }
select.sm, input.sm { padding: 6px 10px; font-size: .92rem; border-radius: 9px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; margin-bottom: 8px; transition: .15s; }
.check:hover { border-color: var(--navy-2); }
.check input { width: 21px; height: 21px; margin-top: 4px; accent-color: var(--navy); flex: none; }
.check.on { border-color: var(--teal); background: var(--teal-l); }
.wc { font-size: .82rem; color: var(--muted); text-align: left; margin-top: 4px; }
.wc.over { color: var(--bad); font-weight: 700; }

/* ---------- جداول ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: #f7f9fc; color: var(--navy); font-weight: 700; font-size: .88rem; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfd; }
td.num, th.num { text-align: center; font-variant-numeric: tabular-nums; }
.table-wrap.flat { border: 0; }

/* ---------- شريط التقدم ---------- */
.progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-2)); border-radius: 99px; transition: width .4s; }
.progress.gold > i { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

/* ---------- رحلة الملف ---------- */
.journey { display: flex; gap: 0; counter-reset: s; margin: 6px 0 4px; overflow-x: auto; padding-bottom: 6px; }
.journey .st { flex: 1; min-width: 110px; text-align: center; position: relative; font-size: .85rem; color: var(--muted); padding-top: 44px; }
.journey .st::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 700; color: var(--muted); z-index: 1; }
.journey .st::after { content: ''; position: absolute; top: 16px; right: 50%; width: 100%; height: 3px; background: var(--line); }
.journey .st:first-child::after { display: none; }
.journey .st.done { color: var(--teal); } .journey .st.done::before { background: var(--teal); border-color: var(--teal); color: #fff; content: '✓'; }
.journey .st.done::after, .journey .st.cur::after { background: var(--teal); }
.journey .st.cur { color: var(--navy); font-weight: 700; } .journey .st.cur::before { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 0 0 5px var(--gold-l); }

/* ---------- خطوات المعالج ---------- */
.wizard { display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start; }
.steps { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 85px; }
.steps a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--text); font-size: .93rem; }
.steps a:hover { background: var(--bg); text-decoration: none; }
.steps a.on { background: var(--navy-l); color: var(--navy); font-weight: 700; }
.steps .sn { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--bg); color: var(--muted); flex: none; }
.steps a.done .sn { background: var(--teal); color: #fff; }
.steps .dh { font-size: .78rem; color: var(--muted); padding: 10px 10px 4px; font-weight: 700; }

/* ---------- بطاقات المراسي ---------- */
.anchors { display: grid; gap: 10px; }
.anchor { border: 2px solid var(--line); border-radius: 13px; padding: 14px 16px; background: #fff; cursor: pointer; transition: .15s; text-align: start; font-family: inherit; font-size: .97rem; color: var(--text); width: 100%; line-height: 1.8; }
.anchor:hover { border-color: var(--navy-2); }
.anchor .ah { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.anchor .ah b { font-size: 1.02rem; }
.anchor.on { border-color: var(--teal); background: var(--teal-l); box-shadow: 0 0 0 3px rgba(14,122,119,.12); }
.anchor.static { cursor: default; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: inherit; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 14px; font-size: .95rem; cursor: pointer; font-weight: 600; color: var(--text); min-width: 52px; transition: .12s; }
.chip:hover { border-color: var(--navy-2); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.l4.on { background: var(--gold); border-color: var(--gold); }
.chip.l3.on { background: var(--teal); border-color: var(--teal); }
.chip:disabled { opacity: .5; cursor: default; }
.scale-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.scale-row .grp { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--bg); }
.scale-row .chip { min-width: 44px; padding: 4px 8px; font-size: .9rem; }

/* ---------- قسم الأسئلة ---------- */
.qbox { border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; background: #fbfcfe; margin-bottom: 14px; }
.qbox .qt { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 1.07rem; margin-bottom: 4px; }
.qbox .qn { width: 30px; height: 30px; border-radius: 9px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .9rem; flex: none; }
.qbox .hint { color: var(--muted); font-size: .93rem; margin-bottom: 8px; }
details.ex { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
details.ex summary { cursor: pointer; color: var(--teal); font-weight: 600; }
.ind-list { margin: 0; padding: 0; list-style: none; }
.ind-list li { position: relative; padding: 6px 34px 6px 0; border-bottom: 1px dashed var(--line); }
.ind-list li:last-child { border-bottom: 0; }
.ind-list li::before { content: attr(data-n); position: absolute; right: 0; top: 8px; width: 24px; height: 24px; border-radius: 7px; background: var(--teal-l); color: var(--teal); font-size: .78rem; font-weight: 700; display: grid; place-items: center; }

/* ---------- شواهد ---------- */
.ev-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ev-row:last-child { border-bottom: 0; }
.ev-code { font-weight: 700; font-size: 1.1rem; color: var(--navy); background: var(--navy-l); border-radius: 10px; text-align: center; padding: 6px 0; }
.ev-code.done { background: var(--teal); color: #fff; }
.file { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; background: #fbfcfe; font-size: .92rem; }
.file .ic { width: 20px; height: 20px; color: var(--navy-2); flex: none; }
.file .fn { font-weight: 600; direction: rtl; }
.file .meta { color: var(--muted); font-size: .8rem; margin-inline-start: auto; white-space: nowrap; }
.drop { border: 2px dashed #c7d2e2; border-radius: 12px; padding: 10px 14px; text-align: center; color: var(--muted); font-size: .9rem; cursor: pointer; background: #fff; display: inline-flex; gap: 8px; align-items: center; }
.drop:hover { border-color: var(--navy-2); color: var(--navy); }

/* ---------- صفحة الهبوط ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #1a3d70 55%, var(--teal) 130%); color: #fff; position: relative; overflow: hidden; }
.hero .in { max-width: 1180px; margin: 0 auto; padding: 70px 24px 80px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero p { font-size: 1.15rem; color: #d8e3f1; max-width: 620px; }
.hero .peaks { position: absolute; bottom: -2px; left: 0; right: 0; height: 90px; opacity: .14; }
.hero .badge-big { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 99px; padding: 5px 16px; font-size: .9rem; margin-bottom: 18px; }
.hero-logo { display: grid; place-items: center; }
.logo-card { background: #fff; border-radius: 28px; padding: 30px 40px 24px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.28); width: min(340px, 90%); }
.logo-card img { width: 100%; max-width: 230px; height: auto; display: block; margin: 0 auto; }
.logo-card .lc-t { margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--line); color: var(--navy); font-size: 1.6rem; font-weight: 700; line-height: 1.4; }
.logo-card .lc-t span { display: block; color: var(--gold); font-size: 1.05rem; font-weight: 600; }
.section { max-width: 1180px; margin: 0 auto; padding: 56px 24px; }
.section .lead { color: var(--muted); font-size: 1.08rem; max-width: 760px; }
.sec-title { text-align: center; margin-bottom: 30px; } .sec-title p { margin: 0 auto; }
.flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.flow .fs { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px; text-align: center; box-shadow: var(--shadow); position: relative; }
.flow .fs .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto 8px; background: var(--navy-l); color: var(--navy); font-weight: 700; }
.flow .fs:nth-child(3n+2) .n { background: var(--teal-l); color: var(--teal); }
.flow .fs:nth-child(3n) .n { background: var(--gold-l); color: var(--gold); }
.flow .fs b { display: block; color: var(--navy); font-size: .98rem; line-height: 1.5; }
.flow .fs span { font-size: .8rem; color: var(--muted); }
.dim-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.dim-card .dh { padding: 16px 18px; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.dim-card .dh b { font-size: 1.1rem; } .dim-card .dh .w { background: rgba(255,255,255,.2); border-radius: 10px; padding: 2px 12px; font-weight: 700; font-size: 1.15rem; }
.dim-card.navy .dh { background: linear-gradient(90deg, var(--navy), var(--navy-2)); }
.dim-card.teal .dh { background: linear-gradient(90deg, var(--teal), var(--teal-2)); }
.dim-card.gold .dh { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.dim-card ul { list-style: none; margin: 0; padding: 8px 18px 14px; }
.dim-card li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.dim-card li:last-child { border-bottom: 0; }
.dim-card li .wt { font-weight: 700; color: var(--navy); background: var(--bg); border-radius: 8px; padding: 0 10px; }
.feat { display: flex; gap: 14px; }
.feat .fi { width: 48px; height: 48px; border-radius: 14px; background: var(--gold-l); color: var(--gold); display: grid; place-items: center; flex: none; }
.feat .fi svg { width: 26px; height: 26px; }
.feat h3 { margin-bottom: 4px; }
.footer { background: var(--navy); color: #b9c7da; text-align: center; padding: 26px; font-size: .9rem; }

/* ---------- الدخول ---------- */
.login-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 24px 60px; }
.role-card { border: 1.5px solid var(--line); border-radius: 16px; background: #fff; padding: 18px; transition: .15s; box-shadow: var(--shadow); }
.role-card:hover { border-color: var(--navy-2); }
.role-card .rh { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.role-card .ri { width: 46px; height: 46px; border-radius: 13px; background: var(--navy-l); color: var(--navy); display: grid; place-items: center; flex: none; }
.role-card .ri svg { width: 24px; height: 24px; }
.role-card p { color: var(--muted); font-size: .92rem; min-height: 50px; }
.role-card .users { display: flex; flex-direction: column; gap: 6px; }
.user-btn { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; font-family: inherit; text-align: start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; font-size: .93rem; color: var(--text); }
.user-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.user-btn:hover .muted { color: #cfd9e8; }

/* ---------- نافذة منبثقة وإشعار ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15,28,48,.5); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 16px; max-width: 620px; width: 100%; max-height: 90vh; overflow: auto; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 980px; }
.modal .mf { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 12px; z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 600; animation: tin .25s; }
.toast.ok { background: var(--ok); } .toast.bad { background: var(--bad); }
@keyframes tin { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- عناصر متفرقة ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 54px; height: 54px; opacity: .35; margin-bottom: 8px; }
.score-big { font-size: 3.2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.score-big small { font-size: 1.2rem; color: var(--muted); font-weight: 500; }
.bar-row { display: grid; grid-template-columns: 220px 1fr 90px; gap: 12px; align-items: center; padding: 7px 0; font-size: .95rem; }
.bar-row .progress { height: 12px; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: .95rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { font-family: inherit; font-size: .98rem; background: none; border: 0; padding: 10px 16px; cursor: pointer; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button.on { color: var(--navy); border-bottom-color: var(--gold); }
.pill-src { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.calc-box { background: var(--navy-l); border-radius: 12px; padding: 12px 16px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: .95rem; }
.calc-box b { font-size: 1.25rem; color: var(--navy); }
.obs-opt { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.obs-opt button { font-family: inherit; border: 0; background: #fff; padding: 6px 14px; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--muted); }
.obs-opt button + button { border-inline-start: 1.5px solid var(--line); }
.obs-opt button.on.y { background: var(--ok); color: #fff; } .obs-opt button.on.p { background: var(--warn); color: #fff; } .obs-opt button.on.n { background: var(--bad); color: #fff; }
.crit-block { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; background: #fff; overflow: hidden; }
.crit-block > .ch { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #f7f9fc; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.crit-block > .ch .code { background: var(--navy); color: #fff; border-radius: 9px; padding: 2px 10px; font-weight: 700; }
.crit-block > .cb { padding: 16px 18px; }
.anchor-mini { font-size: .88rem; border-radius: 10px; padding: 8px 12px; background: var(--bg); margin-bottom: 6px; border-inline-start: 4px solid var(--line); }
.anchor-mini.l4 { border-color: var(--gold); } .anchor-mini.l3 { border-color: var(--teal); } .anchor-mini.l2 { border-color: var(--navy-2); } .anchor-mini.l1 { border-color: #aaa; }
.anchor-mini.hit { background: var(--teal-l); box-shadow: inset 0 0 0 1.5px var(--teal); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 10px 0; font-size: 1.03rem; }
.faq details p { color: var(--text); }
.print-only { display: none; }
.rank { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: var(--bg); color: var(--navy); }
.rank.r1 { background: var(--gold); color: #fff; } .rank.r2 { background: #9aa7b8; color: #fff; } .rank.r3 { background: #b77b4b; color: #fff; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }

/* ---------- الاستجابة ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .wizard { grid-template-columns: 1fr; }
  .steps { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .steps .dh { width: 100%; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; top: 67px; right: 0; width: 280px; z-index: 40; transform: translateX(110%); transition: .2s; box-shadow: -10px 0 30px rgba(0,0,0,.1); }
  .side.open { transform: none; }
  .topbar .menu-btn { display: inline-flex; }
  .main { padding: 18px 14px 50px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .hero .in { grid-template-columns: 1fr; padding: 40px 20px 60px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-logo { display: none; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .topbar nav.pub { display: none; }
  .who .nm { display: none; }
  .bar-row { grid-template-columns: 1fr 70px; } .bar-row .progress { grid-column: 1 / -1; grid-row: 2; }
  .ev-row { grid-template-columns: 54px 1fr; } .ev-row > :last-child { grid-column: 1 / -1; }
  .kv { grid-template-columns: 1fr; }
  .steps { flex-wrap: nowrap; overflow-x: auto; padding: 6px; }
  .steps .dh, .steps > div { display: none; }
  .steps a { flex: none; font-size: 0; padding: 4px; gap: 0; }
  .steps .sn { width: 40px; height: 36px; font-size: .85rem; }
  .steps a.on .sn { background: var(--navy); color: #fff; }
}

/* ---------- الطباعة (تقرير التغذية الراجعة) ---------- */
@media print {
  .topbar, .side, .no-print, .toast { display: none !important; }
  .shell { display: block; } .main { padding: 0; }
  body { background: #fff; font-size: 13px; }
  .card { box-shadow: none; break-inside: avoid; }
  .print-only { display: block; }
}
