/* مخطط التوزيع (templates/plan.html, static/plan.js) */
#plan { height: calc(100vh - 230px); min-height: 420px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: #0b1220; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.pl-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 6px 0 10px; font-size: 13px; }
.pl-legend label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pl-legend b { color: var(--muted); font-weight: 600; }
.pl-c { display: inline-block; width: 14px; height: 14px; border-radius: 3px; box-shadow: 0 0 8px currentColor; }
.pl-c.on { background: #22c55e; color: #22c55e; } .pl-c.ok { background: #3b82f6; color: #3b82f6; }
.pl-c.soon { background: #f59e0b; color: #f59e0b; } .pl-c.bad { background: #ef4444; color: #ef4444; }
.pl-c.ghost { background: transparent; border: 1px dashed var(--muted); box-shadow: none; }
.pl-lbl { direction: rtl; pointer-events: none; display: flex; flex-direction: column; align-items: center; padding: 2px 7px;
  border-radius: 8px; background: rgba(10, 16, 30, .82); color: #fff; font-size: 11px; line-height: 1.3; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); animation: pl-in .35s ease-out; }
.pl-lbl span { color: #9fe3ff; font-family: ui-monospace, monospace; }
.pl-lbl.on { border-color: #22c55e; } .pl-lbl.soon { border-color: #f59e0b; } .pl-lbl.bad { border-color: #ef4444; } .pl-lbl.ok { border-color: #3b82f6; }
@keyframes pl-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pl-pop .maplibregl-popup-content { direction: rtl; text-align: right; background: rgba(12, 18, 34, .95); color: #e8eefc; border-radius: 12px;
  padding: 10px 12px; font-size: 13px; line-height: 1.6; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .12); }
.pl-pop .maplibregl-popup-tip { border-top-color: rgba(12, 18, 34, .95); border-bottom-color: rgba(12, 18, 34, .95); }
.pl-pop a { color: #7cc4ff; }
.pl-pop .muted { color: #9aa7bd; font-size: 12px; }
.pl-h { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.pl-h.on { color: #4ade80; } .pl-h.ok { color: #60a5fa; } .pl-h.soon { color: #fbbf24; } .pl-h.bad { color: #f87171; }
