/* ───────────────────────── مركز العمليات ───────────────────────── */
.ops-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.ops-s { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 18px; }
.ops-s > span { grid-row: span 2; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(63, 169, 255, .12); color: var(--blue); }
.ops-s.red > span { background: var(--red-bg); color: var(--red); } .ops-s.green > span { background: rgba(34, 211, 166, .12); color: var(--green); }
.ops-s.violet > span { background: rgba(167, 139, 250, .12); color: var(--violet); } .ops-s.mute > span { background: rgba(127, 145, 171, .12); color: var(--mute); }
.ops-s > span svg { width: 24px; height: 24px; }
.ops-s b { font-size: 30px; line-height: 1; } .ops-s small { color: var(--mute); font-weight: 600; }
.ops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ops-grid.compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.opc { border-radius: 16px; overflow: hidden; background: var(--plate); border: 1px solid var(--line); cursor: pointer; transition: .2s; display: grid; grid-template-rows: auto 1fr; }
.opc:hover { transform: translateY(-4px); border-color: var(--dc, var(--blue)); box-shadow: var(--shadow), 0 0 0 1px var(--dc, var(--blue)); }
.opc-cv { position: relative; aspect-ratio: 16 / 8; background: #061226; overflow: hidden; }
.opc-cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opc-pat { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--dc) 45%, transparent), transparent 60%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 8px, transparent 8px 16px), linear-gradient(160deg, #0c1d36, #050b16); }
.opc-pat span { font-size: clamp(22px, 2.4vw, 34px); color: #fff; letter-spacing: .28em; text-shadow: 0 0 24px var(--dc); opacity: .92; direction: ltr; text-transform: uppercase; }
.opc-st { position: absolute; top: 10px; right: 10px; backdrop-filter: blur(6px); background: rgba(5, 10, 20, .7) !important; }
.opc-ref { position: absolute; bottom: 8px; left: 10px; font-size: 11.5px; color: #cfe3ff; background: rgba(0, 0, 0, .55); padding: 2px 8px; border-radius: 6px; }
.opc-b { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.opc-b b { font-size: 17px; line-height: 1.35; }
.opc-b p { margin: 0; color: var(--mute); font-size: 13.5px; line-height: 1.7; }
.opc-f { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink2); margin-top: 4px; }
.opc-f > span { display: flex; align-items: center; gap: 5px; }
.opc-f svg { width: 14px; height: 14px; }
.opc-d { color: var(--dc); font-family: var(--fl); font-weight: 700; letter-spacing: .1em; }
.opc .faces { margin-inline-start: auto; display: flex; }
.opc .faces .av { width: 28px; height: 28px; border-radius: 50%; margin-inline-start: -8px; border: 2px solid var(--bg); }
.opc .faces .more { font-style: normal; font-size: 11px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel2); margin-inline-start: -8px; border: 2px solid var(--bg); }
.opc.st-done { opacity: .85; } .opc.st-archived { opacity: .65; filter: saturate(.5); }
.opc.locked .opc-cv { display: grid; place-items: center; background: repeating-linear-gradient(-45deg, #1a0508 0 12px, #12030a 12px 24px); }
.opc-lock { display: grid; justify-items: center; gap: 6px; color: var(--red); }
.opc-lock svg { width: 34px; height: 34px; } .opc-lock b { font-family: var(--fl); letter-spacing: .3em; }
.opd { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
.opd h4 { margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.opd h4 svg { color: var(--blue); }
.opd-cv { width: 100%; max-height: 300px; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.opd-side { display: grid; gap: 4px; align-content: start; }
.opd-ppl { display: grid; gap: 6px; }
.opd-files { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.op-ppl, .op-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; max-height: 240px; overflow-y: auto; padding: 2px; }

/* ───────────────────────── الأخبار ───────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.nwc { border-radius: 16px; overflow: hidden; background: var(--plate); border: 1px solid var(--line); cursor: pointer; transition: .2s; display: grid; grid-template-rows: auto 1fr; }
.nwc:hover { transform: translateY(-3px); border-color: var(--line3); }
.nwc.big { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.nw-cv { position: relative; aspect-ratio: 16 / 9; background: #061226; overflow: hidden; }
.nwc.big .nw-cv { aspect-ratio: auto; min-height: 280px; }
.nw-cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-pat { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(63, 169, 255, .5); background: radial-gradient(circle at 70% 30%, rgba(31, 124, 255, .3), transparent 60%), linear-gradient(160deg, #0c1d36, #050b16); }
.nw-pat svg { width: 64px; height: 64px; }
.nw-cat { position: absolute; top: 10px; right: 10px; background: rgba(5, 10, 20, .75) !important; backdrop-filter: blur(6px); }
.nw-b { padding: 16px 18px; display: grid; gap: 6px; align-content: start; }
.nwc.big .nw-b { padding: 26px; align-content: center; }
.nw-b b { font-size: 18px; line-height: 1.4; } .nwc.big .nw-b b { font-size: 28px; }
.nw-b p { margin: 0; color: var(--ink2); line-height: 1.8; font-size: 14px; }
.news-list { display: grid; gap: 12px; }
.news-list .nwc { grid-template-rows: none; grid-template-columns: 110px minmax(0, 1fr); }
.news-list .nw-cv { aspect-ratio: auto; min-height: 90px; }
.news-list .nw-cat { display: none; }
.news-list .nw-b { padding: 10px 12px; } .news-list .nw-b b { font-size: 14.5px; } .news-list .nw-b p { display: none; }
.news-list .nw-pat svg { width: 30px; height: 30px; }
.nw-full img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.nw-full small { display: flex; align-items: center; gap: 6px; }
.nw-full h2 { margin: 8px 0; font-size: 28px; line-height: 1.35; }
.nw-sum { font-size: 17px; color: var(--ink2); line-height: 1.8; border-inline-start: 3px solid var(--blue); padding-inline-start: 14px; }
.nw-body { white-space: pre-wrap; line-height: 2; font-size: 15.5px; color: var(--ink2); }

/* ───────────────────────── الطرفية ───────────────────────── */
.term-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; height: calc(100vh - var(--top) - 56px); min-height: 480px; }
.term { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-radius: 16px; background: #02060c; border: 1px solid rgba(54, 224, 255, .35); box-shadow: 0 0 60px -20px rgba(54, 224, 255, .5), inset 0 0 80px rgba(0, 120, 255, .06); overflow: hidden; font-family: var(--fm); color: #7cf7d4; }
.term::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.term-h { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(54, 224, 255, .2); background: rgba(54, 224, 255, .05); }
.term-h .dots { display: flex; gap: 6px; } .term-h .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .term-h .dots i:nth-child(2) { background: #febc2e; } .term-h .dots i:nth-child(3) { background: #28c840; }
.term-h b { font-size: 12.5px; letter-spacing: .14em; color: #36e0ff; flex: 1; }
.term-h .btn { color: #9fd; border-color: rgba(54, 224, 255, .3); }
.term-out { overflow-y: auto; padding: 14px 16px; font-size: 14px; line-height: 1.75; text-align: left; }
.tl { white-space: pre-wrap; word-break: break-word; }
.tl.cmd { color: #e6f7ff; margin-top: 6px; } .tl.ok { color: #36e0ff; text-shadow: 0 0 8px rgba(54, 224, 255, .5); } .tl.err { color: #ff6b7a; }
.tl.dim { color: #4f8f7f; } .tl.mx { color: #22d3a6; opacity: .7; font-size: 12px; line-height: 1.2; }
.term-in { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(54, 224, 255, .2); }
.term-in .ps { color: #36e0ff; white-space: nowrap; font-size: 14px; }
.term-in input { flex: 1; background: transparent; border: 0; outline: none; color: #e6f7ff; font: 14px var(--fm); caret-color: #36e0ff; }
.term-side { display: grid; gap: 10px; align-content: start; overflow-y: auto; }
.term-side h4 { margin: 0; display: flex; gap: 8px; align-items: center; }
.term-cmds { display: grid; gap: 4px; }
.term-cmds button { display: grid; gap: 1px; text-align: start; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--plate); color: var(--ink); }
.term-cmds button:hover { border-color: var(--cyan); }
.term-cmds b { color: var(--cyan); font-size: 13px; direction: ltr; text-align: left; } .term-cmds small { color: var(--mute); font-size: 12px; }

.ic-pick { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.ic-pick button { height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: var(--plate); color: var(--ink2); display: grid; place-items: center; }
.ic-pick button.on { border-color: var(--blue); color: var(--blue); background: rgba(63, 169, 255, .14); }

@media (max-width: 1100px) {
  .opd { grid-template-columns: minmax(0, 1fr); }
  .term-wrap { grid-template-columns: minmax(0, 1fr); height: auto; } .term { height: 70vh; }
  .nwc.big { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) { .ops-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ic-pick { grid-template-columns: repeat(6, 1fr); } }
/* التذييل: الروابط كثرت فصارت تعصر العمود الأوسط كلمة كلمة — عمودان مرنان */
.foot { grid-template-columns: auto minmax(260px, 1fr) minmax(0, 1.25fr); }
.foot .links { gap: 6px 18px; }
@media (max-width: 860px) { .foot { grid-template-columns: minmax(0, 1fr); } }
.fd-label small, .fd-emb b { white-space: nowrap; overflow: hidden; }
