/* أدوات المضلع المؤقتة (لا تعارض أي كلاس عندك) */
.poly-tools {
  position: fixed;
  top: 85px;
  left: 20px;
  z-index: 1300;           /* أعلى من عناصر الخريطة وأقل من السبلّاش */
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  direction: rtl;
}

.poly-tools button {
  background: #017580;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.poly-tools button:hover { background: #046c73; }
.poly-tools button:disabled { opacity: .5; cursor: not-allowed; }

.poly-preview {
  position: fixed;
  top: 72px;          /* تحت الأزرار */
  left: 20px;
  width: min(480px, 90vw);
  z-index: 1299;
  background: rgba(255,255,255,.95);
  border: 1px solid #d0e6e6;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.poly-preview h4 {
  margin: 6px 0 8px;
  font-size: 14px;
  color: #0b3d3b;
}

.poly-preview textarea {
  width: 100%;
  height: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
  direction: ltr;
  white-space: pre;
  border: 1px solid #bfdcdc;
  border-radius: 8px;
  padding: 8px;
  background: #f8ffff;
  color: #053;
  resize: vertical;
}

.poly-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.poly-actions button {
  background: #0f2b2b;
  color: #c9ffff;
  border: 1px solid #1b6666;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}
.poly-actions button:hover { background: #134; }
