/* ================================================================
   FalCoN LiFe Police — MDT
   ================================================================ */
:root {
  --bg: #070b14;
  --police-red: #ff2d3d;
  --police-blue: #1e7bff;
  --panel: #0d1424;
  --panel2: #121b2f;
  --panel3: #0a101d;
  --line: #1b2740;
  --line2: #283a5c;
  --text: #e9eef7;
  --muted: #8d9ab4;
  --gold: #c9a24a;
  --gold2: #e6cd8b;
  --green: #3ecf6e;
  --red: #e5484d;
  --orange: #f08c2e;
  --yellow: #f2c94c;
  --blue: #4da3ff;
  --radius: 12px;
  --font: "Cairo", "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --head: "Noto Kufi Arabic", "Cairo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --top-h: 60px;
  --bnav-h: 0px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(77,163,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,163,255,.028) 1px, transparent 1px);
  background-size: 32px 32px;
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
b, strong { font-weight: 700; }
a { color: var(--gold2); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.35; }
.mono { font-family: var(--mono); letter-spacing: .01em; font-weight: 500; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.spacer { flex: 1; }
.grow { flex: 1; min-width: 0; }
.faded { opacity: .55; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ------------------------------------------------ controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line2); background: var(--panel2); padding: 9px 16px; min-height: 40px;
  border-radius: 10px; cursor: pointer; font-weight: 700; transition: border-color .15s, background .15s, filter .15s; white-space: nowrap;
  position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--gold); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1406; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { border-color: #5a2427; color: #ffaaad; }
.btn.danger:hover { background: #2a1214; border-color: var(--red); }
.btn.ok { border-color: #22492f; color: #94f0b4; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 12px; min-height: 34px; font-size: 13.5px; border-radius: 9px; }
.btn.big { min-height: 50px; padding: 12px 22px; font-size: 16px; }
.btn.danger.big { background: #8a1c20; color: #fff; border-color: var(--red); }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; padding: 0; color: var(--text);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--gold); }
.mini { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.mini:hover { color: var(--text); background: var(--panel2); }
.link { border: none; background: none; color: var(--gold2); cursor: pointer; padding: 0; font-weight: 700; }

.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 700; }
.input, select.input, textarea.input {
  width: 100%; background: var(--panel3); border: 1px solid var(--line2); border-radius: 10px;
  padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; min-height: 44px; font-weight: 500;
}
.input::placeholder { color: #5f6c86; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,74,.15); }
textarea.input { min-height: 90px; resize: vertical; line-height: 1.7; }
input[type="color"].input { padding: 4px; height: 44px; }
input[type="range"] { width: 100%; accent-color: var(--gold); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.stack { display: grid; gap: 12px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .input { flex: 1 1 220px; max-width: 420px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; border: 1px solid var(--line2); background: var(--panel2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
button.chip { cursor: pointer; font-family: inherit; color: inherit; }
.chip.red { color: #ffb1b3; border-color: #6b2a2d; background: #2a1214; }
.chip.green { color: #a6f5c1; border-color: #24553a; background: #0f2418; }
.chip.yellow { color: #ffe08a; border-color: #6b5a20; background: #2a2410; }
.chip.orange { color: #ffc28a; border-color: #6b4120; background: #2a1a10; }
.chip.blue { color: #b3d6ff; border-color: #24466b; background: #0f1c2a; }
.chip.gold { color: var(--gold2); border-color: #5c4a20; background: #221c0d; }
.chip.gray { color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; background: var(--panel3); max-width: 100%; }
.seg button { border: none; background: transparent; padding: 7px 14px; cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--gold); color: #1a1406; }
.seg button.on.sub, .seg button.on.final, .seg button.on.c2, .seg button.on.urgent { background: var(--red); color: #fff; }
.seg button.on.warn, .seg button.on.c1, .seg button.on.important { background: var(--orange); color: #1a1006; }
.seg.wide { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg.wide::-webkit-scrollbar { display: none; }
.seg.wide button { flex: 1 0 auto; }
.bar { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; flex: 1; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 6px; }

/* ------------------------------------------------ auth / onboarding */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .side {
  position: relative; overflow: hidden; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 40px; text-align: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(201,162,74,.13), transparent 60%), #0a1122; border-left: 1px solid var(--line);
}
.auth .side::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 2px, transparent 2px 4px); pointer-events: none; }
.auth .side img.emblem { width: 150px; filter: drop-shadow(0 10px 30px rgba(201,162,74,.25)); }
.auth .side h1 { font-size: 38px; margin: 0; color: var(--gold2); }
.auth .side p { color: var(--muted); max-width: 400px; margin: 0; }
.auth .side .banner { max-width: 420px; width: 100%; border-radius: 12px; border: 1px solid var(--line2); }
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .auth .side { padding: calc(28px + var(--sat)) 20px 6px; border: none; background: radial-gradient(ellipse at 50% 30%, rgba(201,162,74,.12), transparent 70%); gap: 10px; }
  .auth .side img.emblem { width: 88px; }
  .auth .side h1 { font-size: 24px; }
  .auth .side p { font-size: 13.5px; }
  .auth .side .banner, .auth .side::after { display: none; }
  .auth .main { padding-top: 12px; place-content: start center; }
}
.classified { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--red); border: 1px solid #6b2a2d; padding: 3px 12px; border-radius: 4px; }
.auth .main { display: grid; place-content: center; padding: calc(40px + var(--sat)) 18px calc(40px + var(--sab)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.auth .card { width: min(460px, calc(100vw - 32px)); display: grid; gap: 16px; }
.auth h2 { margin: 0; font-size: 24px; }
.hint { font-size: 13px; color: var(--muted); background: var(--panel3); border: 1px dashed var(--line2); padding: 10px 12px; border-radius: 10px; }
.code-input { font-family: var(--mono); font-size: 28px; letter-spacing: .5em; text-align: center; direction: ltr; }
.onboard { min-height: 100dvh; display: grid; place-content: start center; padding: calc(30px + var(--sat)) 14px calc(30px + var(--sab)); gap: 22px; }
.onboard .head { text-align: center; display: grid; gap: 6px; justify-items: center; }
.onboard .head img { width: 64px; }
.onboard .head h1 { margin: 0; color: var(--gold2); }
.steps { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.steps .s { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 14px; }
.steps .s b { width: 28px; height: 28px; display: grid; place-content: center; border-radius: 50%; border: 1px solid var(--line2); font-family: var(--mono); }
.steps .s.active { color: var(--gold2); } .steps .s.active b { background: var(--gold); color: #1a1406; border-color: var(--gold); }
.steps .s.done b { background: #0f2418; color: var(--green); border-color: #24553a; }
.steps .bar { width: 30px; height: 1px; background: var(--line2); align-self: center; flex: none; }
.onboard .card { width: min(720px, calc(100vw - 28px)); display: grid; gap: 16px; }
.sigpad { position: relative; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: #f4efe2; }
.sigpad canvas { display: block; width: 100%; height: 220px; touch-action: none; cursor: crosshair; }
.sigpad .baseline { position: absolute; left: 24px; right: 24px; bottom: 52px; border-bottom: 1.5px dashed #b9ad8e; pointer-events: none; }
.sigpad .x { position: absolute; right: 18px; bottom: 54px; color: #9c8f6c; font-family: var(--mono); font-size: 20px; pointer-events: none; }
.sigpad .ph { position: absolute; inset: 0; display: grid; place-content: center; color: #b3a684; pointer-events: none; font-weight: 700; }
.oath { background: var(--panel3); border: 1px solid #3c3220; border-radius: 10px; padding: 14px 16px; font-size: 14px; color: #d9cfb5; }
.oath label { display: flex; gap: 10px; align-items: center; margin-top: 10px; color: var(--text); font-weight: 700; cursor: pointer; }
.oath input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }

/* ------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.main-col { min-width: 0; }
.sidebar {
  background: #080e1b; border-left: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.brand img { width: 40px; flex: none; }
.brand b { display: block; font-size: 15px; line-height: 1.25; }
.brand small { display: block; color: var(--muted); font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; }
.side-nav { display: grid; gap: 2px; }
.nav-group { font-size: 11.5px; color: #5f6c86; font-weight: 800; padding: 12px 12px 4px; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; cursor: pointer; color: var(--muted); font-weight: 700; border: 1px solid transparent; background: none; text-align: right; width: 100%; font-size: 14.5px; }
.nav svg { width: 20px; height: 20px; flex: none; }
.nav-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav:hover { color: var(--text); background: var(--panel); }
.nav.active { color: var(--gold2); background: linear-gradient(270deg, rgba(201,162,74,.12), transparent); border-color: #3c3220; }
.nav .badge, .badge { background: var(--police-red); color: #fff; font-size: 11px; border-radius: 99px; padding: 0 7px; font-family: var(--mono); line-height: 18px; min-width: 18px; text-align: center; font-weight: 700; }
.sidebar .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.sidebar .me img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.sidebar .me div { min-width: 0; flex: 1; }
.sidebar .me b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .me small { color: var(--muted); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scrim { display: none; }

.topbar {
  position: sticky; top: 0; z-index: 25; border-bottom: 1px solid var(--line);
  background: rgba(7,11,20,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: calc(10px + var(--sat)) calc(22px + var(--sar)) 10px calc(22px + var(--sal));
}
.tb-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar h1 { font-size: 20px; margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clock { color: var(--muted); font-size: 13px; }
.defcon { font-family: var(--mono); font-weight: 700; font-size: 11.5px; letter-spacing: .06em; padding: 4px 9px; border-radius: 7px; border: 1px solid; white-space: nowrap; flex: none; }
.defcon.d1 { color: #fff; background: #8a1c20; border-color: var(--red); animation: blink 1s infinite; }
.defcon.d2 { color: #ffc28a; background: #2a1a10; border-color: var(--orange); }
.defcon.d3 { color: #ffe08a; background: #2a2410; border-color: var(--yellow); }
.defcon.d4 { color: #a9d1ff; background: #0f1c2a; border-color: var(--blue); }
.defcon.d5 { color: #a6f5c1; background: #0f2418; border-color: var(--green); }
@keyframes blink { 50% { opacity: .6; } }
.duty-btn.on { border-color: #24553a; background: #0f2418; color: #a6f5c1; }
.status-strip { display: none; }
.menu-btn { display: none; }
.content { padding: 22px calc(24px + var(--sar)) 60px calc(24px + var(--sal)); display: grid; gap: 18px; align-content: start; min-width: 0; }
.content > * { min-width: 0; }

/* الجوال */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 86vw); z-index: 60; transform: translateX(105%); transition: transform .22s ease;
    padding-top: calc(16px + var(--sat)); padding-bottom: calc(16px + var(--sab)); padding-right: calc(12px + var(--sar));
  }
  .sidebar.open { transform: none; box-shadow: -20px 0 60px #000; }
  .sidebar.open + .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.55); }
  .menu-btn { display: inline-grid; }
  .hide-sm, .clock { display: none !important; }
  .topbar { padding: calc(8px + var(--sat)) calc(12px + var(--sar)) 8px calc(12px + var(--sal)); }
  .tb-row { gap: 8px; }
  .topbar h1 { font-size: 17px; }
  .status-strip { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-width: 0; }
  .content { padding: 14px calc(12px + var(--sar)) calc(24px + var(--bnav-h)) calc(12px + var(--sal)); gap: 14px; }
}
.duty-pill, .code-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line2);
  background: var(--panel2); cursor: pointer; font-weight: 700; font-size: 13px; min-width: 0; white-space: nowrap;
}
.duty-pill.on { border-color: #24553a; background: #0f2418; color: #a6f5c1; }
.duty-pill .dp-act { color: var(--gold2); font-size: 12px; }
.duty-pill .dp-time { font-size: 12px; color: var(--muted); }
.code-pill { overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; }
.code-pill span { overflow: hidden; text-overflow: ellipsis; }
.panic-mini { height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--red); background: #3a0f12; color: #ffd0d1; font-family: var(--mono); font-weight: 700; cursor: pointer; flex: none; font-size: 13px; }
.tone-green { color: #a6f5c1; border-color: #24553a !important; }
.tone-blue { color: #b3d6ff; border-color: #24466b !important; }
.tone-yellow { color: #ffe08a; border-color: #6b5a20 !important; }
.tone-orange { color: #ffc28a; border-color: #6b4120 !important; }
.tone-red { color: #ffb1b3; border-color: var(--red) !important; }
.tone-gray { color: var(--muted); }

/* الشريط السفلي */
.bnav { display: none; }
@media (max-width: 900px) {
  .bnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: rgba(8,13,25,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line2);
    padding: 6px calc(4px + var(--sar)) calc(6px + var(--sab)) calc(4px + var(--sal));
  }
  .bnav button { background: none; border: none; color: var(--muted); display: grid; justify-items: center; gap: 1px; font-size: 11px; font-weight: 700; padding: 4px 0; cursor: pointer; position: relative; min-width: 0; -webkit-tap-highlight-color: transparent; }
  .bnav button span:not(.badge) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bnav button svg { width: 23px; height: 23px; }
  .bnav button.active { color: var(--gold2); }
  .bnav button.active::before { content: ""; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
  .bnav .badge { position: absolute; top: -2px; left: 50%; margin-left: 4px; font-size: 10px; padding: 0 5px; line-height: 16px; min-width: 16px; }
  #toasts { bottom: calc(var(--bnav-h) + 10px) !important; left: 10px !important; right: 10px; }
  .toast { max-width: none !important; min-width: 0 !important; }
  .npanel { top: calc(var(--top-h) + 6px) !important; left: 10px !important; right: 10px; width: auto !important; }
}

/* قائمة المزيد ( جوال ) */
.sheet-back { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; animation: fade .18s; }
.sheet-back.out { opacity: 0; transition: opacity .18s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-height: 82dvh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line2); border-bottom: none; border-radius: 20px 20px 0 0; padding: 8px calc(14px + var(--sar)) calc(18px + var(--sab)) calc(14px + var(--sal)); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line2); margin: 2px auto 12px; }
.sheet-me { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel2); margin-bottom: 6px; }
.sheet-me img { width: 42px; height: 42px; border-radius: 10px; }
.sheet-me b { display: block; } .sheet-me small { color: var(--muted); }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.more-h { grid-column: 1 / -1; font-size: 12px; font-weight: 800; color: #5f6c86; margin-top: 10px; }
.more-i { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 4px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); cursor: pointer; font-size: 12px; font-weight: 700; min-width: 0; }
.more-i span:not(.badge) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-i svg { width: 24px; height: 24px; color: var(--gold2); }
.more-i.active { border-color: var(--gold); }
.more-i .badge { position: absolute; top: 6px; left: 8px; }
@media (max-width: 360px) { .more-grid { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------ dashboard */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 600px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; position: relative; overflow: hidden; text-align: right; color: inherit; min-width: 0; }
button.stat { cursor: pointer; font: inherit; }
button.stat:hover { border-color: var(--line2); }
.stat::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 3px; background: var(--c, var(--gold)); }
.stat small { color: var(--muted); font-weight: 700; font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b { display: block; font-family: var(--mono); font-size: 28px; line-height: 1.2; margin-top: 2px; }
@media (max-width: 600px) { .stat b { font-size: 24px; } }
.panels { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.panels .col { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (max-width: 1100px) { .panels { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; }
.panel > header { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--panel2); min-height: 52px; }
.panel > header h3 { margin: 0; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel > .body { padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.panel > .body.tight { padding: 10px; gap: 6px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #0e1628; min-width: 0; flex-wrap: wrap; }
.list-item b { display: block; overflow: hidden; text-overflow: ellipsis; }
.list-item small { color: var(--muted); display: block; }
.empty { color: var(--muted); text-align: center; padding: 22px; font-size: 14px; }
.defcon-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; direction: ltr; }
.defcon-meter div { padding: 6px 0; text-align: center; border-radius: 8px; font-family: var(--mono); border: 1px solid var(--line2); color: var(--muted); display: grid; line-height: 1.2; }
.defcon-meter small { font-size: 9px; letter-spacing: .08em; }
.defcon-meter b { font-size: 20px; }
.defcon-meter div.cur { color: #fff; }
.defcon-meter div.cur.l1 { background: var(--red); border-color: var(--red); }
.defcon-meter div.cur.l2 { background: var(--orange); border-color: var(--orange); }
.defcon-meter div.cur.l3 { background: #b8961f; border-color: var(--yellow); }
.defcon-meter div.cur.l4 { background: #2b6cb0; border-color: var(--blue); }
.defcon-meter div.cur.l5 { background: #1f8a48; border-color: var(--green); }
.rank-no { width: 28px; height: 28px; display: grid; place-content: center; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line2); font-size: 12px; flex: none; }
.rank-no.top1 { background: #3a2f10; border-color: var(--gold); color: var(--gold2); }
.rank-no.top2 { background: #24272e; border-color: #9aa3b2; color: #dfe5ee; }
.rank-no.top3 { background: #2e1d12; border-color: #b0703a; color: #f0b483; }
.pts { color: var(--gold2); font-weight: 700; }

.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.q { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; font-weight: 700; color: var(--text); padding: 8px; }
.q svg { width: 20px; height: 20px; color: var(--gold2); flex: none; }
.q:hover { border-color: var(--gold); }
.q-red { background: linear-gradient(180deg, #4a1215, #2a0c0e); border-color: var(--red); color: #ffd0d1; }
.q-red b { font-family: var(--mono); font-size: 16px; }
@media (max-width: 600px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .q { min-height: 48px; font-size: 14px; } }

.units { display: grid; gap: 6px; }
.unit { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: #0e1628; min-width: 0; }
.unit .u-code { min-width: 54px; text-align: center; padding: 3px 6px; border-radius: 7px; border: 1px solid; font-size: 12px; font-weight: 700; flex: none; }
.unit .u-main { flex: 1; min-width: 0; }
.unit .u-main b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unit .u-main small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-cs { font-size: 11.5px; margin-right: 6px; }
.u-time { font-size: 12px; flex: none; }
.unit.sos { border-color: var(--red); background: #2a0f11; animation: glow 1.2s infinite; }

.order-banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid #5c4a20; background: linear-gradient(270deg, rgba(201,162,74,.12), rgba(201,162,74,.03)); flex-wrap: wrap; }
.order-banner.lvl-urgent { border-color: var(--red); background: linear-gradient(270deg, rgba(229,72,77,.16), rgba(229,72,77,.04)); }
.order-banner.lvl-important { border-color: var(--orange); }
.ob-text { flex: 1 1 240px; min-width: 0; }
.ob-text small { color: var(--gold2); font-weight: 700; display: block; }
.ob-text b { display: block; font-size: 16px; }
.ob-text p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.push-banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid #1e3a6a; background: linear-gradient(270deg, rgba(30,123,255,.12), rgba(255,45,61,.06)); flex-wrap: wrap; }
.pb-text { flex: 1 1 220px; min-width: 0; }
.pb-text .muted { font-size: 13px; }

/* ------------------------------------------------ MDT */
.mdt { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .mdt { grid-template-columns: minmax(0, 1fr); } }
.search { position: relative; }
.search input { padding-right: 42px; }
.search svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
.result { cursor: pointer; transition: border-color .12s, background .12s; }
.result:hover, .result.sel { border-color: var(--gold); background: #141a2a; }
.avatar-ph { width: 40px; height: 40px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line2); display: grid; place-content: center; font-family: var(--head); color: var(--gold2); flex: none; font-weight: 700; }
.file-head { display: flex; gap: 14px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); background: linear-gradient(270deg, rgba(201,162,74,.07), transparent); flex-wrap: wrap; }
.file-head .avatar-ph { width: 60px; height: 60px; font-size: 24px; }
.file-head h2 { margin: 0; }
.wanted { background: repeating-linear-gradient(-45deg, #3a1214 0 12px, #2a0f11 12px 24px); color: #ffd0d1; border-bottom: 1px solid var(--red); padding: 10px 16px; font-weight: 800; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.kv div { background: #0e1628; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 0; overflow-wrap: anywhere; }
.kv small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 12px; cursor: pointer; color: var(--muted); font-weight: 700; border: none; background: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--gold2); border-bottom-color: var(--gold); }
.record { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.record header { display: flex; gap: 8px 10px; align-items: center; padding: 10px 14px; background: #0e1628; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.record .body { padding: 10px 14px; display: grid; gap: 8px; }
.record .charges { display: flex; flex-wrap: wrap; gap: 6px; }
.record .charges .chip { white-space: normal; }
.sig-mini { height: 44px; background: #f4efe2; border-radius: 8px; padding: 2px 8px; max-width: 100%; }
.intel-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid #3a2a4a; background: #140f1e; }
.chip.cls-1 { color: #ffc28a; border-color: #6b4120; }
.chip.cls-2 { color: #ffb1b3; border-color: #8a1c20; background: #2a0f11; }

.penal { max-height: 320px; overflow: auto; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--panel3); }
.penal label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; flex-wrap: wrap; }
.penal label:hover { background: var(--panel); }
.penal label.on { border-color: #5c4a20; background: #1b170c; }
.penal input { accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.totals { display: flex; gap: 12px; flex-wrap: wrap; }
.totals div { flex: 1; min-width: 130px; background: #0e1628; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 14px; }
.totals b { font-family: var(--mono); font-size: 22px; display: block; color: var(--gold2); }

/* ------------------------------------------------ reports */
.reports { display: grid; gap: 12px; }
.report { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; border-right: 4px solid var(--pc, var(--line2)); }
.report.critical { --pc: var(--red); animation: glow 2s infinite; }
.report.high { --pc: var(--orange); }
.report.mid { --pc: var(--yellow); }
.report.low { --pc: var(--green); }
.report.closed { opacity: .6; --pc: var(--line2); animation: none; }
@keyframes glow { 50% { box-shadow: 0 0 0 1px rgba(229,72,77,.5), 0 0 24px rgba(229,72,77,.2); } }
.report header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; flex-wrap: wrap; }
.report header h3 { margin: 0; font-size: 16px; }
.report .body { padding: 0 14px 14px; display: grid; gap: 10px; overflow-wrap: anywhere; }
.report .meta { display: flex; gap: 6px 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.report .meta b { color: var(--text); font-weight: 700; }
.report .row .btn { flex: 1 1 auto; }
@media (max-width: 600px) { .report .row:last-child { display: grid; grid-template-columns: 1fr 1fr; } }
.timeline { border-right: 2px solid var(--line2); padding-right: 12px; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.prio-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.prio-pick label { text-align: center; padding: 9px 4px; border: 1px solid var(--line2); border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 13px; }
.prio-pick input { display: none; }
.prio-pick label.on.low { border-color: var(--green); color: var(--green); background: #0f2418; }
.prio-pick label.on.mid { border-color: var(--yellow); color: var(--yellow); background: #2a2410; }
.prio-pick label.on.high { border-color: var(--orange); color: var(--orange); background: #2a1a10; }
.prio-pick label.on.critical { border-color: var(--red); color: #ff9b9e; background: #2a1214; }

/* ------------------------------------------------ roster + ID card */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px; }
.soldier { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; min-width: 0; }
.soldier .top { display: flex; gap: 10px; align-items: center; }
.soldier img.av { width: 44px; height: 44px; border-radius: 10px; }
.soldier img.sig { height: 46px; width: 100%; object-fit: contain; background: #f4efe2; border-radius: 8px; }
.soldier-acts .btn { flex: 1; }
.idcard {
  width: min(560px, 100%); aspect-ratio: 1.6; border-radius: 16px; position: relative; overflow: hidden; color: #1d1a12;
  background: linear-gradient(135deg, #efe6cf, #d8c9a0); box-shadow: 0 20px 60px rgba(0,0,0,.5); border: 1px solid #b59a5a;
  display: grid; grid-template-rows: auto 1fr auto; container-type: inline-size;
}
.idcard::before { content: ""; position: absolute; inset: 0; background: url("/emblem.svg") no-repeat 12% 60% / 46%; opacity: .07; }
.idcard .ih { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #0f1a33; color: var(--gold2); }
.idcard .ih img { width: 30px; }
.idcard .ih b { font-size: 15px; }
.idcard .ih .mono { margin-right: auto; font-size: 12px; color: #d9c58f; }
.idcard .ib { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; padding: 12px 16px; position: relative; }
.idcard .ib img.photo { width: 100px; height: 120px; object-fit: cover; border-radius: 8px; border: 2px solid #8a7334; background: #ccc; }
.idcard dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1px 10px; font-size: 13px; align-content: start; }
.idcard dt { color: #6b5d3a; font-weight: 700; }
.idcard dd { margin: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idcard .if { display: flex; align-items: end; justify-content: space-between; padding: 0 16px 10px; position: relative; gap: 10px; }
.idcard .if img.sig { height: 50px; max-width: 200px; mix-blend-mode: multiply; }
.idcard .if small { display: block; font-size: 10px; color: #6b5d3a; border-top: 1px solid #8a7334; padding-top: 2px; }
.stamp { font-family: var(--mono); font-weight: 700; color: #8a1c20; border: 2px solid #8a1c20; padding: 2px 10px; transform: rotate(-8deg); border-radius: 4px; font-size: 12px; opacity: .8; }
@container (max-width: 420px) {
  .idcard .ib { grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 8px 12px; }
  .idcard .ib img.photo { width: 74px; height: 92px; }
  .idcard dl { font-size: 11px; }
  .idcard .if img.sig { height: 36px; }
  .idcard .ih { padding: 7px 12px; }
}

/* ------------------------------------------------ modal + toast */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: grid; place-items: center; z-index: 80; padding: calc(16px + var(--sat)) 16px calc(16px + var(--sab)); backdrop-filter: blur(3px); }
.modal { background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; width: min(640px, 100%); max-height: 92vh; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; animation: viewin .18s; }
.modal > header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.modal > header h3 { margin: 0; font-size: 17px; min-width: 0; }
.modal > .body { padding: 16px; display: grid; gap: 14px; min-width: 0; }
.modal > footer { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--panel); }
@media (max-width: 640px) {
  .modal-back { place-items: end stretch; padding: calc(10px + var(--sat)) 0 0; }
  .modal { width: 100%; border-radius: 18px 18px 0 0; border-bottom: none; max-height: calc(100dvh - 10px - var(--sat)); animation: up .22s ease-out; }
  .modal > footer { padding-bottom: calc(12px + var(--sab)); }
  .modal > footer .btn { flex: 1; min-height: 48px; }
  .input, select.input, textarea.input { font-size: 16px; } /* يمنع تكبير الآيفون عند الكتابة */
}
#toasts { position: fixed; bottom: 18px; left: 18px; display: grid; gap: 8px; z-index: 100; pointer-events: none; }
.toast { pointer-events: auto; background: var(--panel2); border: 1px solid var(--line2); border-right: 4px solid var(--gold); padding: 11px 14px; border-radius: 12px; min-width: 260px; max-width: 380px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: tin .2s ease-out; font-weight: 700; overflow-wrap: anywhere; }
.toast.err { border-right-color: var(--red); }
.toast.alert { border-right-color: var(--red); background: #2a1214; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }

@media print {
  body { background: #fff; color: #000; }
  .sidebar, .topbar, .no-print, #toasts, .bnav, .lightbar { display: none !important; }
  .shell { display: block; }
  .panel, .record { border-color: #999; background: #fff; }
}

/* ------------------------------------------------ brand + effects */
.logo-text { font-family: "Black Ops One", var(--head); letter-spacing: .03em; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.logo-text .c { color: var(--gold2); }
.logo-text .w { color: #fff; }
.brand .logo-text { font-size: 14px; }
.lightbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; display: flex; pointer-events: none; }
.lightbar i { flex: 1; background: var(--police-blue); opacity: .5; }
.lightbar i:first-child { background: var(--police-red); }
.lightbar.alarm { height: 3px; }
.lightbar.alarm i:first-child { animation: lb-red .5s steps(1) infinite; }
.lightbar.alarm i:last-child { animation: lb-blue .5s steps(1) infinite; }
.lightbar.alarm::after { content: ""; position: fixed; inset: 0; pointer-events: none; animation: lb-glow 1s infinite; }
@keyframes lb-red { 0% { opacity: 1; box-shadow: 0 0 22px 6px var(--police-red); } 50% { opacity: .15; box-shadow: none; } }
@keyframes lb-blue { 0% { opacity: .15; box-shadow: none; } 50% { opacity: 1; box-shadow: 0 0 22px 6px var(--police-blue); } }
@keyframes lb-glow { 0%, 100% { box-shadow: inset 0 0 80px rgba(255,45,61,.08); } 50% { box-shadow: inset 0 0 80px rgba(30,123,255,.08); } }
.splash { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 20px; }
.radar { width: 160px; height: 160px; border-radius: 50%; position: relative; border: 1px solid #1e3a6a;
  background: radial-gradient(circle, transparent 32%, #1e3a6a 33%, transparent 34%, transparent 65%, #1e3a6a 66%, transparent 67%), #070d1c; overflow: hidden; }
.radar::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(77,163,255,.5), transparent 22%); animation: spin 1.6s linear infinite; }
.radar img { position: absolute; inset: 22%; width: 56%; }
@keyframes spin { to { transform: rotate(360deg); } }
.splash .logo-text { font-size: clamp(20px, 6vw, 30px); }
.splash .load { width: 200px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.splash .load::after { content: ""; display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--police-red), var(--police-blue)); animation: load 1.1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-260%); } to { transform: translateX(260%); } }
.btn, .nav, .tab, .result, .poster button, .bnav button, .q, .chan, .rch { -webkit-tap-highlight-color: transparent; }
.btn:active, .nav:active, .tab:active, .bnav button:active, .q:active, .more-i:active { transform: scale(.97); }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.22); animation: ripple .5s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
.view-in { animation: viewin .22s ease-out; }
@keyframes viewin { from { opacity: 0; transform: translateY(6px); } }
.icon-btn .count { position: absolute; top: -6px; left: -6px; background: var(--police-red); color: #fff; font-size: 10px; font-family: var(--mono); border-radius: 99px; min-width: 18px; height: 18px; display: grid; place-content: center; padding: 0 4px; }
.bell-ring svg { animation: ring .6s ease-in-out 2; transform-origin: 50% 10%; }
@keyframes ring { 25% { transform: rotate(18deg); } 75% { transform: rotate(-18deg); } }
.npanel { position: fixed; top: 70px; left: 20px; width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; z-index: 45; background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: viewin .15s; }
.npanel header { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); }
.npanel .n { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.npanel .n:hover { background: var(--panel2); }
.npanel .n .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-content: center; background: var(--panel2); flex: none; }
.npanel .n.unread { background: rgba(30,123,255,.06); }
.npanel .n b { display: block; font-size: 14px; }
.npanel .n small { color: var(--muted); overflow-wrap: anywhere; }
.switch { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #0e1628; cursor: pointer; flex-wrap: wrap; }
.switch .grow { flex: 1; min-width: 150px; }
.switch small { display: block; color: var(--muted); font-size: 12px; }
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 99px; background: var(--line2); position: relative; cursor: pointer; transition: .2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked { background: var(--green); }
.switch input:checked::after { right: 23px; }

/* ------------------------------------------------ المطلوبين */
.wanted-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
@media (max-width: 600px) { .wanted-head { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 18px; }
.poster {
  position: relative; color: #2a1d0c; border-radius: 6px; padding: 16px 16px 14px; display: grid; gap: 8px; text-align: center; min-width: 0;
  background: radial-gradient(ellipse at 30% 20%, #f6ecd2, #e6d3a6 60%, #cfb67e); box-shadow: 0 14px 40px rgba(0,0,0,.55), inset 0 0 40px rgba(110,70,20,.35);
  transform: rotate(var(--rot, 0deg)); transition: transform .2s;
}
.poster:hover { transform: rotate(0) translateY(-3px); }
.poster::before { content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6b6b, #8a1c20); box-shadow: 0 3px 6px rgba(0,0,0,.5); }
.poster .w { font-family: "Black Ops One", var(--head); font-size: 40px; line-height: 1; letter-spacing: .08em; color: #5c1a12; direction: ltr; }
.poster .w2 { font-family: var(--head); font-size: 15px; color: #5c1a12; margin-top: -4px; }
.poster .photo { width: 100%; aspect-ratio: 1.15; object-fit: cover; border: 3px solid #3b2a14; filter: sepia(.35) contrast(1.05); background: #2a2116; }
.poster .silhouette { width: 100%; aspect-ratio: 1.15; border: 3px solid #3b2a14; background: linear-gradient(#3a2e20, #1e1710); display: grid; place-content: center; }
.poster .silhouette svg { width: 110px; opacity: .55; }
.poster h3 { margin: 0; font-size: 22px; color: #1d140a; }
.poster .reason { font-size: 13.5px; font-weight: 700; color: #4a3820; overflow-wrap: anywhere; }
.poster .bounty { font-family: "Black Ops One", var(--mono); font-size: 26px; color: #1d5c2a; direction: ltr; }
.poster .bounty small { display: block; font-family: var(--font); font-size: 11px; color: #6b5a3a; letter-spacing: .1em; }
.poster .facts { display: grid; gap: 2px; font-size: 12.5px; color: #5a4628; text-align: right; border-top: 1px dashed #9c8456; padding-top: 6px; overflow-wrap: anywhere; }
.poster .danger { position: absolute; top: 14px; right: 12px; transform: rotate(8deg); }
.poster .danger.critical { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.96); } }
.poster .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.poster .acts button { border: 1px solid #6b5432; background: rgba(255,255,255,.35); color: #2a1d0c; border-radius: 8px; padding: 7px 11px; font-weight: 800; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.poster .acts button.cap { background: #1d5c2a; color: #fff; border-color: #1d5c2a; }
.poster .acts button.seen { background: #8a1c20; color: #fff; border-color: #8a1c20; }
.poster .sightings { font-size: 11.5px; text-align: right; color: #6b2a1a; font-weight: 800; }
.captured-stamp { font-family: "Black Ops One", var(--mono); color: var(--green); border: 2px solid var(--green); padding: 0 8px; border-radius: 4px; transform: rotate(-6deg); font-size: 12px; letter-spacing: .1em; }
.cit-pick { max-height: 220px; overflow: auto; display: grid; gap: 6px; }

/* ------------------------------------------------ النقاط */
.my-pts { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid #5c4a20; background: linear-gradient(270deg, rgba(201,162,74,.12), rgba(201,162,74,.02)); flex-wrap: wrap; }
.my-pts b.mono { display: block; font-size: 26px; color: var(--gold2); line-height: 1.2; }
.my-pts .grow { min-width: 180px; }
.up { color: var(--green) !important; } .down { color: #ff9b9e !important; }
.pts-list { display: grid; gap: 6px; }
.pts-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: #0e1628; cursor: pointer; min-width: 0; }
.pts-row:hover { border-color: var(--line2); }
.pts-row.mine { border-color: #5c4a20; }
.pts-row.sel { border-color: var(--gold); background: #1b170c; }
.pts-row .av { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.pts-row .avatar-ph { width: 38px; height: 38px; }
.pts-row .grow b { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.pts-row .grow small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs { font-size: 11.5px; }
.pts-side { display: grid; justify-items: end; gap: 1px; flex: none; }
.pts-side b { font-size: 20px; }
.pts-side small { font-size: 11px; }
.pts-acts { display: grid; gap: 4px; flex: none; }
.pa { width: 32px; height: 26px; border-radius: 7px; border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; font-weight: 800; font-size: 16px; line-height: 1; }
.pa.plus { color: var(--green); } .pa.minus { color: #ff9b9e; }
.check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line2); flex: none; display: grid; place-content: center; }
.check.on { background: var(--gold); border-color: var(--gold); }
.check.on::after { content: "✓"; color: #1a1406; font-weight: 900; font-size: 13px; }
.promo { position: relative; height: 16px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 4px; max-width: 280px; }
.promo i { position: absolute; inset: 0 0 0 auto; background: linear-gradient(270deg, #2b6cb0, #4da3ff); opacity: .55; }
.promo.ok i { background: linear-gradient(270deg, #1f8a48, var(--green)); opacity: .7; }
.promo span { position: relative; font-size: 10.5px; font-weight: 700; padding: 0 6px; line-height: 16px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo.big { height: 22px; max-width: none; } .promo.big span { line-height: 22px; font-size: 12px; }
.sel-bar { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--gold); background: #1b170c; flex-wrap: wrap; position: sticky; top: calc(var(--top-h) + 6px); z-index: 10; }
.ledger { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); min-width: 0; flex-wrap: wrap; }
.ledger:last-child { border-bottom: none; }
.ledger .delta { min-width: 44px; text-align: center; font-size: 15px; }
.ledger small { display: block; }
.ledger-box { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.targets { display: flex; flex-wrap: wrap; gap: 6px; }
.big-num { font-size: 22px; text-align: center; }
.person-head { display: flex; align-items: center; gap: 12px; }
.person-head .av, .person-head .avatar-ph { width: 52px; height: 52px; border-radius: 12px; }
.person-head small { display: block; }
.pts.big { font-size: 28px; }
.perf { display: grid; gap: 6px; }
.perf > div { display: grid; grid-template-columns: 70px 1fr 44px; align-items: center; gap: 8px; font-size: 13px; }

/* ------------------------------------------------ المحادثة */
.chat { display: grid; grid-template-columns: 290px minmax(0, 1fr); height: calc(100dvh - var(--top-h) - 22px - 24px); min-height: 420px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.chat-side { border-left: 1px solid var(--line); overflow-y: auto; padding: 8px; display: grid; align-content: start; gap: 2px; background: #0b1120; }
.cs-h { display: flex; align-items: center; font-size: 12px; font-weight: 800; color: #5f6c86; padding: 10px 8px 4px; }
.chan { display: flex; align-items: center; gap: 10px; width: 100%; text-align: right; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--muted); min-width: 0; }
.chan:hover { background: var(--panel2); color: var(--text); }
.chan.active { background: var(--panel2); border-color: var(--line2); color: var(--text); }
.chan.unread .chan-t b { color: var(--text); }
.hash { width: 34px; height: 34px; border-radius: 10px; display: grid; place-content: center; background: var(--panel2); border: 1px solid var(--line2); font-family: var(--mono); color: var(--gold2); flex: none; }
.chan-av { position: relative; flex: none; }
.chan-av img, .chan-av .avatar-ph { width: 34px; height: 34px; border-radius: 10px; }
.chan-av i.on { position: absolute; bottom: -2px; left: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid #0b1120; }
.chan-t { flex: 1; min-width: 0; display: grid; }
.chan-t b, .chan-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan-t small { font-size: 12px; }
.conv { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; min-width: 0; min-height: 0; }
.conv-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel2); min-width: 0; }
.conv-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.conv-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-back { display: none; }
.msgs { overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; }
.day-sep { text-align: center; margin: 10px 0; }
.day-sep span { font-size: 11.5px; color: var(--muted); background: var(--panel2); padding: 2px 12px; border-radius: 99px; border: 1px solid var(--line); }
.msg { display: flex; gap: 8px; align-items: flex-start; max-width: min(640px, 88%); margin-top: 8px; }
.msg.grouped { margin-top: 1px; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-av { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.msg-gap { width: 34px; flex: none; }
.bubble { background: var(--panel2); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 6px 12px 4px; min-width: 0; overflow-wrap: anywhere; }
.msg.mine .bubble { background: #221c0d; border-color: #4c3d1a; border-radius: 14px 4px 14px 14px; }
.msg.from-dc .bubble { border-color: #3b3f8a; }
.msg-h { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.msg-h b { font-size: 13.5px; color: var(--gold2); }
.msg-h small { color: var(--muted); font-size: 11px; }
.dc-tag { font-size: 10px; background: #5865f2; color: #fff; border-radius: 4px; padding: 0 5px; font-weight: 700; }
.msg-t { white-space: pre-wrap; font-size: 15px; line-height: 1.7; }
.msg-t a { word-break: break-all; }
.mention { color: #b3d6ff; background: rgba(77,163,255,.14); border-radius: 4px; padding: 0 3px; font-weight: 700; }
.msg-reply { font-size: 12.5px; color: var(--muted); border-right: 3px solid var(--gold); padding: 2px 8px; margin: 2px 0 4px; background: rgba(0,0,0,.2); border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-f { display: flex; align-items: center; gap: 2px; justify-content: flex-end; color: var(--muted); }
.msg-f small { font-size: 10.5px; margin-left: 4px; }
.msg-f .mini { opacity: 0; transition: opacity .15s; font-size: 11px; }
.msg:hover .msg-f .mini, .msg:focus-within .msg-f .mini { opacity: 1; }
@media (pointer: coarse) { .msg-f .mini { opacity: .7; } }
.typing { font-size: 12px; color: var(--muted); padding: 0 16px; min-height: 18px; }
.composer { border-top: 1px solid var(--line); padding: 8px 10px; display: grid; gap: 6px; background: var(--panel); }
.reply-bar { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); border-right: 3px solid var(--gold); padding: 2px 8px; }
.reply-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-row { display: flex; gap: 8px; align-items: flex-end; }
.cmp-row textarea { min-height: 44px; max-height: 140px; resize: none; }
.send-btn { width: 46px; height: 44px; border-radius: 12px; border: none; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1406; display: grid; place-items: center; cursor: pointer; flex: none; }
.send-btn svg { width: 22px; height: 22px; transform: scaleX(-1); }
.send-btn:disabled { opacity: .5; }
@media (max-width: 900px) {
  .chat { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - var(--top-h) - var(--bnav-h) - 28px); border-radius: 14px; }
  .chat .conv { display: none; }
  .chat.in-conv .chat-side { display: none; }
  .chat.in-conv .conv { display: grid; }
  .conv-back { display: inline-grid; width: 36px; height: 36px; }
  .msg { max-width: 92%; }
  body[data-view="chat"] .status-strip { display: none; }
}

/* ------------------------------------------------ اللاسلكي */
.radio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .radio-grid { grid-template-columns: minmax(0, 1fr); } }
.radio-dev { grid-row: span 2; background: linear-gradient(180deg, #1a1f29, #0f131a); border: 1px solid #2c3444; border-radius: 22px; padding: 16px; display: grid; gap: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 20px 50px rgba(0,0,0,.4); }
.lcd { background: linear-gradient(180deg, #a9c49a, #8fae80); color: #142010; border-radius: 12px; padding: 10px 14px; box-shadow: inset 0 2px 8px rgba(0,0,0,.35); display: grid; gap: 2px; direction: ltr; text-align: left; min-width: 0; }
.radio-dev.off .lcd { filter: grayscale(.8) brightness(.55); }
.lcd-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; }
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sig i { width: 3px; background: #142010; } .sig i:nth-child(1) { height: 4px; } .sig i:nth-child(2) { height: 7px; } .sig i:nth-child(3) { height: 10px; } .sig i:nth-child(4) { height: 12px; }
.lcd-freq { font-size: clamp(30px, 9vw, 44px); font-weight: 700; line-height: 1.05; letter-spacing: .02em; }
.lcd-freq small { font-size: 14px; margin-left: 6px; }
.lcd-name { font-family: var(--font); direction: rtl; text-align: right; font-weight: 800; font-size: 15px; }
.rd-live { direction: rtl; text-align: right; display: grid; gap: 4px; min-height: 44px; }
.rd-live .idle { font-size: 12px; opacity: .7; direction: ltr; text-align: left; }
.tx-on, .rx-on { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; }
.tx-on i, .rx-on i { width: 10px; height: 10px; border-radius: 50%; background: #b3261e; animation: blink .6s infinite; }
.rx-on i { background: #1d5c2a; }
.rmembers { display: flex; flex-wrap: wrap; gap: 4px; }
.rm { font-size: 11px; font-family: var(--mono); border: 1px solid rgba(20,32,16,.4); border-radius: 4px; padding: 0 5px; }
.rm.talk { background: #142010; color: #a9c49a; }
.rd-ctrl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.rd-side { display: grid; gap: 10px; min-width: 0; }
.ptt {
  width: 150px; height: 150px; border-radius: 50%; border: 4px solid #3a4252; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 2px;
  background: radial-gradient(circle at 40% 35%, #3a4252, #1b2029); color: #d7dde8; box-shadow: 0 10px 26px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.08);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; transition: transform .08s, border-color .15s; font-family: inherit;
}
.ptt svg { width: 34px; height: 34px; }
.ptt b { font-size: 14px; }
.ptt small { font-size: 9.5px; letter-spacing: .14em; color: #8d9ab4; font-family: var(--mono); }
.ptt:disabled { opacity: .5; cursor: not-allowed; }
.ptt.nomic { border-style: dashed; }
.radio-dev:has(.tx-on) .ptt { border-color: #e5484d; background: radial-gradient(circle at 40% 35%, #8a1c20, #4a0f12); transform: scale(.96); box-shadow: 0 0 0 8px rgba(229,72,77,.15), 0 0 40px rgba(229,72,77,.35); }
@media (max-width: 420px) { .ptt { width: 124px; height: 124px; } .rd-ctrl { gap: 12px; } }
.chan-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 8px !important; }
.rch { display: grid; gap: 0; text-align: right; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #0e1628; cursor: pointer; color: var(--text); min-width: 0; }
.rch b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rch .mono { color: var(--gold2); font-size: 13px; }
.rch small { color: var(--muted); font-size: 11.5px; }
.rch .chip { justify-self: start; margin-top: 4px; }
.rch.on { border-color: var(--green); background: #0f2418; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); gap: 6px; }
.code-btn { display: grid; text-align: right; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; color: var(--text); min-width: 0; }
.code-btn b { color: var(--gold2); font-size: 14px; }
.code-btn small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code-btn.danger { border-color: #6b2a2d; } .code-btn.danger b { color: #ff9b9e; }
.rlog { max-height: 340px; overflow: auto; }
.rl { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; font-size: 13.5px; }
.rl .code { color: var(--gold2); }

/* ------------------------------------------------ الاستغاثة + الحالة */
.sos-warn { background: #2a0f11; border: 1px solid var(--red); color: #ffd0d1; border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 13.5px; }
.sos-overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: calc(20px + var(--sat)) 16px calc(20px + var(--sab)); background: rgba(40,0,4,.86); animation: sosbg .8s infinite alternate; }
@keyframes sosbg { to { background: rgba(10,10,40,.88); } }
.sos-box { width: min(460px, 100%); background: #14070a; border: 2px solid var(--red); border-radius: 20px; padding: 24px 20px; text-align: center; display: grid; gap: 8px; box-shadow: 0 0 60px rgba(255,45,61,.45); }
.sos-code { font-size: 56px; font-weight: 700; color: var(--police-red); line-height: 1; animation: blink .5s infinite; }
.sos-box h2 { margin: 0; font-size: 22px; }
.sos-name { font-size: 18px; }
.sos-loc { font-size: 17px; font-weight: 800; color: var(--gold2); }
.sos-box p { margin: 0; color: #ffd0d1; }
.status-list { display: grid; gap: 8px; }
.st-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; font-weight: 700; text-align: right; color: inherit; }
.st-btn b { min-width: 52px; }
.st-btn.on { background: #1b170c; }

/* ------------------------------------------------ الاستخبارات */
.intel-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px solid #3a2a4a; background: linear-gradient(270deg, rgba(140,80,200,.1), transparent); }
.intel-head small { display: block; }
.clr { font-size: 17px; }
.clr-0 { color: var(--blue); } .clr-1 { color: var(--orange); } .clr-2 { color: #ff6b70; }
.intel-list { display: grid; gap: 12px; }
.intel { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; border-right: 4px solid var(--blue); overflow: hidden; min-width: 0; }
.intel.cls-1 { border-right-color: var(--orange); }
.intel.cls-2 { border-right-color: var(--red); background: linear-gradient(180deg, #170a0d, var(--panel)); }
.intel-stamp { position: absolute; top: 10px; left: -30px; transform: rotate(-35deg); font-size: 10px; font-weight: 700; letter-spacing: .12em; padding: 2px 34px; background: #1e3a6a; color: #cfe3ff; }
.intel.cls-1 .intel-stamp { background: #6b4120; color: #ffe0c2; }
.intel.cls-2 .intel-stamp { background: #8a1c20; color: #fff; }
.intel header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-left: 50px; }
.intel header h3 { margin: 0; font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.intel-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.intel-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.intel footer, .org footer { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.org { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--oc); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; min-width: 0; }
.org header { display: flex; gap: 8px; align-items: flex-start; }
.org h3 { margin: 0; font-size: 17px; color: var(--oc); filter: brightness(1.4); }
.org-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.org-stats b { color: var(--text); font-size: 15px; }
.org-members { display: grid; gap: 4px; max-height: 220px; overflow: auto; }
.om { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; background: #0e1628; flex-wrap: wrap; }
.org-notes { margin: 0; font-size: 13px; white-space: pre-wrap; }
.bolo { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; border-right: 4px solid var(--orange); }
.bolo.critical { border-right-color: var(--red); }
.bolo p { margin: 2px 0; color: var(--muted); font-size: 13.5px; }
.bolo-tag { font-size: 11px; color: var(--orange); font-weight: 700; writing-mode: horizontal-tb; }
.plate { display: inline-block; margin-right: 8px; background: #f2f2f2; color: #111; border-radius: 4px; padding: 0 8px; font-weight: 700; border: 2px solid #333; font-size: 13px; }

/* ------------------------------------------------ العمليات + الأوامر + السجل */
.ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 14px; }
.op { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; min-width: 0; border-top: 3px solid var(--yellow); }
.op.high { border-top-color: var(--orange); } .op.critical { border-top-color: var(--red); } .op.low { border-top-color: var(--green); }
.op.st-active { box-shadow: 0 0 0 1px rgba(62,207,110,.35); }
.op.st-active .op-st { color: #a6f5c1; border-color: #24553a; background: #0f2418; }
.op header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.op header h3 { margin: 0; font-size: 17px; }
.op-obj { display: grid; }
.force { display: flex; align-items: center; gap: 10px; }
.force .bar { height: 8px; }
.op details summary, .order details summary { cursor: pointer; color: var(--gold2); font-weight: 700; font-size: 13.5px; }
.op details p { white-space: pre-wrap; margin: 6px 0 0; color: var(--muted); }
.order { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; border-right: 4px solid var(--gold); min-width: 0; }
.order.lvl-important { border-right-color: var(--orange); }
.order.lvl-urgent { border-right-color: var(--red); }
.order.pending { box-shadow: 0 0 0 1px rgba(201,162,74,.35); }
.order header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order header h3 { margin: 0; font-size: 16px; }
.order-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ack { display: flex; align-items: center; gap: 10px; }
.audit { display: grid; }
.au { display: flex; gap: 8px 12px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; font-size: 13.5px; }
.au-d { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }

/* حركة مخففة لمن يفضل ذلك */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================================================================ البصمة */
.fp-overlay { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; background: rgba(4,7,14,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .2s; padding: 20px; }
.fp-overlay.out { opacity: 0; transition: opacity .2s; }
.fp-box { display: grid; justify-items: center; gap: 14px; text-align: center; }
.fp-title { font-family: var(--head); font-size: 20px; font-weight: 700; }
.fp-status { color: var(--muted); font-weight: 600; max-width: 300px; }
.fp-code { font-size: 10px; letter-spacing: .25em; color: #3d5170; }
.fp-ring { position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; color: #2f5e9e;
  background: radial-gradient(circle, rgba(77,163,255,.1), transparent 70%); border: 2px solid #1e3a6a; box-shadow: 0 0 0 8px rgba(30,123,255,.05), inset 0 0 30px rgba(30,123,255,.15); transition: color .3s, border-color .3s, box-shadow .3s; }
.fp-ring svg { width: 62%; height: 62%; }
.fp-ring .r { stroke-dasharray: 80; stroke-dashoffset: 0; }
.fp-ring.scanning { color: #4da3ff; border-color: #2b6cb0; animation: fpglow 1.4s ease-in-out infinite; }
.fp-ring.scanning .r { animation: ridge 1.6s ease-in-out infinite; }
.fp-ring.scanning .r2, .fp-ring.scanning .r5, .fp-ring.scanning .r8 { animation-delay: .2s; }
.fp-ring.scanning .r3, .fp-ring.scanning .r6, .fp-ring.scanning .r9 { animation-delay: .4s; }
.fp-line { position: absolute; left: 10%; right: 10%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #7cc0ff, transparent); box-shadow: 0 0 14px #4da3ff; top: 15%; display: none; }
.fp-ring.scanning .fp-line { display: block; animation: scanline 1.3s ease-in-out infinite alternate; }
.fp-ring.ok { color: var(--green); border-color: var(--green); box-shadow: 0 0 0 8px rgba(62,207,110,.1), 0 0 40px rgba(62,207,110,.35); }
.fp-ring.ok .r { animation: none; }
.fp-ring.bad { color: var(--red); border-color: var(--red); animation: shake .4s; }
.fp-ring.idle { color: var(--gold2); border-color: #5c4a20; cursor: pointer; }
.big-fp { width: 120px; height: 120px; margin: 0 auto; }
@keyframes scanline { from { top: 12%; } to { top: 85%; } }
@keyframes ridge { 0% { stroke-dashoffset: 80; opacity: .35; } 60% { stroke-dashoffset: 0; opacity: 1; } 100% { opacity: .6; } }
@keyframes fpglow { 50% { box-shadow: 0 0 0 12px rgba(30,123,255,.08), 0 0 40px rgba(30,123,255,.3); } }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.bio-wrap { display: grid; gap: 12px; }
.bio-login { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid #2b4a7a; background: linear-gradient(270deg, rgba(30,123,255,.14), rgba(30,123,255,.03)); cursor: pointer; text-align: right; color: var(--text); width: 100%; }
.bio-login:hover { border-color: var(--blue); }
.bio-login .bio-ic { width: 46px; height: 46px; color: #7cc0ff; flex: none; }
.bio-login .bio-ic svg { width: 100%; height: 100%; }
.bio-login b { display: block; font-size: 16px; } .bio-login small { color: var(--muted); }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.lock-screen { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: calc(20px + var(--sat)) 20px calc(20px + var(--sab));
  background: radial-gradient(ellipse at 50% 30%, rgba(201,162,74,.12), transparent 60%), rgba(5,8,15,.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: fade .25s; }
.lk-box { display: grid; justify-items: center; gap: 12px; text-align: center; }
.lk-emb { width: 56px; opacity: .8; }
.lk-time { font-size: 56px; font-weight: 700; line-height: 1; }
.lk-who { font-family: var(--head); font-size: 18px; }
.bio-hero { display: flex; gap: 22px; align-items: center; padding: 20px; border-radius: 18px; border: 1px solid #1e3a6a; background: linear-gradient(270deg, rgba(30,123,255,.1), rgba(201,162,74,.04)); flex-wrap: wrap; }
.bio-hero h2 { margin: 0 0 4px; } .bio-hero p { margin: 0 0 12px; }
.bio-hero .grow { min-width: 220px; }
.att { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.dev-ic { font-size: 20px; }
.cur-sess { border-color: #24553a; }
.chip.purple { color: #d6b8ff; border-color: #4a2e75; background: #1a1028; }
.chip.off { opacity: .4; text-decoration: line-through; }
.threat-stat.lvl-1 { --c: var(--green); } .threat-stat.lvl-2 { --c: var(--yellow); } .threat-stat.lvl-3 { --c: var(--orange); } .threat-stat.lvl-4 { --c: var(--red); }
.threat-stat b { color: var(--c); display: flex !important; align-items: baseline; gap: 8px; }
.threat-stat .tl { font-family: var(--font); font-size: 13px; }

/* ================================================================ المراقبة */
.watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 12px; }
.watch-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; min-width: 0; border-top: 3px solid #6b4aa0; }
.watch-card.lvl-high { border-top-color: var(--red); box-shadow: 0 0 0 1px rgba(229,72,77,.2); }
.watch-card.lvl-observe { border-top-color: var(--line2); }
.watch-card header { display: flex; align-items: center; gap: 10px; }
.watch-card h3 { margin: 0; font-size: 17px; }
.wt-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-content: center; background: #1a1028; border: 2px dashed #a66cff; color: #d6b8ff; font-weight: 800; flex: none; }
.wt-reason { margin: 0; font-size: 13.5px; }
.wt-feed { display: grid; gap: 2px; border-right: 2px solid var(--line2); padding-right: 10px; max-height: 210px; overflow: auto; }
.wf { display: flex; align-items: center; gap: 8px; padding: 4px 0; min-width: 0; }
.wf i { width: 8px; height: 8px; border-radius: 50%; background: #a66cff; flex: none; margin-right: -15px; box-shadow: 0 0 0 3px var(--panel); }
.wf.k-record i, .wf.k-warrant i { background: var(--red); } .wf.k-sighting i { background: var(--orange); } .wf.k-capture i { background: var(--green); } .wf.k-lookup i { background: var(--muted); }
.wf b { font-size: 13px; display: block; } .wf small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.watch-card footer { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ================================================================ شبكة العلاقات */
.graph-box { position: relative; background: radial-gradient(circle at 50% 50%, #0c1426, #070b14); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; height: calc(100dvh - var(--top-h) - var(--bnav-h) - 120px); min-height: 380px; }
.graph-svg { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.g-e { stroke: #24324d; stroke-width: 1.4; transition: stroke .2s; }
.g-e.hot { stroke: var(--gold); stroke-width: 2.2; }
.g-n { cursor: pointer; transition: opacity .2s; }
.g-n.dim { opacity: .15; }
.g-n.focus circle, .g-n.focus rect { filter: drop-shadow(0 0 8px var(--gold)); }
.g-n.wanted > circle:last-of-type { filter: drop-shadow(0 0 6px rgba(255,45,61,.7)); }
.g-l { fill: #b8c3d9; font-size: 11px; font-family: var(--font); font-weight: 600; paint-order: stroke; stroke: #070b14; stroke-width: 3px; pointer-events: none; }
.g-i { fill: #e9eef7; font-size: 12px; font-weight: 800; pointer-events: none; font-family: var(--font); }
.spin { animation: spin 8s linear infinite; transform-origin: center; transform-box: fill-box; }
.g-legend { position: absolute; top: 10px; right: 10px; display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; background: rgba(7,11,20,.8); padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); }
.g-legend span { display: flex; align-items: center; gap: 5px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lg.ring-red { border: 2px solid #ff2d3d; } .lg.ring-purple { border: 2px dashed #a66cff; }
.g-info { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(13,20,36,.96); border: 1px solid var(--line2); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; backdrop-filter: blur(8px); animation: up .2s; }

/* ================================================================ الإيجاز */
.brief-top { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .brief-top { grid-template-columns: minmax(0, 1fr); } }
.gauge-panel { display: grid; align-content: center; gap: 8px; padding: 16px; }
.gauge { position: relative; display: grid; justify-items: center; }
.gauge svg { width: 100%; max-width: 260px; }
.g-val { font-size: 40px; font-weight: 700; margin-top: -2px; line-height: 1; }
.g-lvl { font-weight: 800; font-size: 15px; }
.brief-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-content: start; }
.hot { display: flex; align-items: center; gap: 10px; }
.hbar { width: 40%; height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--red)); }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 150px; align-items: end; }
.hcol { display: grid; grid-template-rows: 1fr auto; height: 100%; align-items: end; text-align: center; }
.hcol i { display: block; background: linear-gradient(0deg, #1e3a6a, #4da3ff); border-radius: 3px 3px 0 0; min-height: 3px; }
.hcol.peak i { background: linear-gradient(0deg, #8a1c20, var(--orange)); }
.hcol small { font-size: 9px; color: var(--muted); height: 14px; }

/* ================================================================ البحث الشامل */
.cmdk-back { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); display: grid; justify-items: center; align-content: start; padding: calc(70px + var(--sat)) 12px 12px; animation: fade .15s; }
.cmdk { width: min(620px, 100%); background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: viewin .15s; }
.cmdk-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cmdk-top svg { width: 20px; color: var(--muted); flex: none; }
.cmdk-in { flex: 1; min-width: 0; background: none; border: none; outline: none; font-size: 16px; }
.cmdk-top kbd { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line2); border-radius: 5px; padding: 1px 6px; }
.cmdk-list { max-height: min(60vh, 460px); overflow: auto; padding: 6px; }
.cmdk-h { font-size: 11.5px; font-weight: 800; color: #5f6c86; padding: 8px 10px 4px; }
.cmdk-i { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: right; background: none; border: 1px solid transparent; border-radius: 10px; padding: 9px 10px; cursor: pointer; color: var(--text); min-width: 0; }
.cmdk-i b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-i small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-i.on { background: var(--panel2); border-color: #5c4a20; }
@media (max-width: 640px) { .cmdk-back { padding-top: calc(12px + var(--sat)); } }
