/* AI วิเคราะห์ทำเล — หน้าลงประกาศ */
.pd-land-ai{
  margin-top:14px;
  padding:16px 18px;
  border-radius:16px;
  border:1px solid #e2e8f0;
  background:linear-gradient(180deg,#fafbfc 0%,#f4f6f8 100%);
  box-shadow:0 4px 18px rgba(15,23,42,.04);
}
.pd-land-ai-head{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:12px;
}
.pd-land-ai-head h3{
  margin:0;
  font-size:16px;
  font-weight:900;
  color:#1e293b;
  line-height:1.3;
}
.pd-land-ai-head p{
  margin:4px 0 0;
  font-size:12px;
  font-weight:650;
  color:#64748b;
  line-height:1.45;
}
.pd-land-ai-ico{
  font-size:22px;
  line-height:1;
  flex-shrink:0;
}
.pd-lai-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:12px;
}
.pd-lai-tag{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:5px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid #e2e8f0;
  font-size:11px;
  font-weight:800;
  color:#334155;
}
.pd-lai-sub{
  margin:0 0 8px;
  font-size:14px;
  font-weight:900;
  color:#475569;
}
.pd-lai-deep{
  margin-bottom:14px;
  padding:12px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e2e8f0;
}
.pd-lai-deep-facts{
  margin:0 0 10px;
  font-size:13px;
  font-weight:650;
  color:#475569;
  line-height:1.55;
}
.pd-lai-deep-facts strong{ font-weight:900; color:#334155; }
.pd-lai-deep-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media (min-width:520px){
  .pd-lai-deep-grid{ grid-template-columns:1fr 1fr; }
}
.pd-lai-deep-block{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #eef1f4;
  background:#fafbfc;
}
.pd-lai-deep--good{ border-color:#bbf7d0; background:#f0fdf4; }
.pd-lai-deep--warn{ border-color:#fed7aa; background:#fff7ed; }
.pd-lai-deep--opp{ border-color:#bfdbfe; background:#eff6ff; }
.pd-lai-deep--who{ border-color:#e9d5ff; background:#faf5ff; }
.pd-lai-deep--check{ border-color:#e2e8f0; background:#f8fafc; }
.pd-lai-deep-h{
  margin:0 0 6px;
  font-size:14px;
  font-weight:900;
  color:#334155;
}
.pd-lai-deep-block ul{
  margin:0;
  padding:0 0 0 16px;
  font-size:14px;
  font-weight:650;
  color:#475569;
  line-height:1.6;
}
.pd-lai-deep-block li{ margin-bottom:5px; }
.pd-lai-uses{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:14px;
}
.pd-lai-use{
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e8edf3;
}
.pd-lai-use-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  margin-bottom:6px;
}
.pd-lai-use-top strong{
  font-size:15px;
  font-weight:900;
  color:#0f172a;
  line-height:1.4;
}
.pd-lai-score{
  font-size:13px;
  font-weight:900;
  color:#5f6368;
  white-space:nowrap;
}
.pd-lai-bar{
  height:5px;
  border-radius:999px;
  background:#eef1f4;
  overflow:hidden;
  margin-bottom:6px;
}
.pd-lai-bar-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#94a3b8,#64748b);
}
.pd-lai-reason{
  margin:0;
  font-size:14px;
  font-weight:650;
  color:#64748b;
  line-height:1.55;
}
.pd-lai-future{
  padding:12px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e8edf3;
  margin-bottom:10px;
}
.pd-lai-future > p:first-of-type{
  margin:0 0 8px;
  font-size:14px;
  font-weight:650;
  color:#334155;
  line-height:1.55;
}
.pd-lai-sources-title{
  margin:10px 0 4px;
  font-size:13px;
  font-weight:900;
  color:#64748b;
}
.pd-lai-sources{
  margin:0 0 8px;
  padding:0 0 0 16px;
  font-size:13px;
  font-weight:650;
  color:#475569;
  line-height:1.6;
}
.pd-lai-sources li{ margin-bottom:3px; }
.pd-lai-future-disclaimer{
  margin:8px 0 0;
  padding:8px 10px;
  border-radius:8px;
  background:#f8fafc;
  border:1px dashed #cbd5e1;
  font-size:12px;
  font-weight:650;
  color:#94a3b8;
  line-height:1.5;
}
.pd-lai-treasury{
  margin:6px 0 0;
  font-size:13px;
  font-weight:700;
}
.pd-lai-treasury a{
  color:#2563eb;
  text-decoration:none;
}
.pd-lai-treasury a:hover{ text-decoration:underline; }
.pd-lai-tip{
  padding:10px 12px;
  border-radius:12px;
  background:#f1f5f9;
  border:1px dashed #cbd5e1;
  font-size:11px;
  font-weight:650;
  color:#475569;
  line-height:1.5;
  margin-bottom:8px;
}
.pd-lai-tip strong{ font-weight:900; color:#334155; }
.pd-lai-note{
  margin:0;
  font-size:10px;
  font-weight:650;
  color:#94a3b8;
  line-height:1.45;
}
.pd-lai-empty{
  margin:0;
  font-size:12px;
  font-weight:700;
  color:#94a3b8;
  line-height:1.5;
}
.pd-lai-loading{
  margin:0;
  font-size:12px;
  font-weight:800;
  color:#64748b;
  line-height:1.5;
}
.pd-lai-summary{
  padding:12px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e2e8f0;
  margin-bottom:12px;
}
.pd-lai-summary-list{
  margin:0;
  padding:0 0 0 16px;
  font-size:12px;
  font-weight:650;
  color:#334155;
  line-height:1.65;
}
.pd-lai-summary-list li{ margin-bottom:4px; }
.pd-lai-summary-list strong{ font-weight:900; color:#0f172a; }
.pd-lai-est{
  font-size:10px;
  font-weight:700;
  color:#94a3b8;
}

/* Popup ยืนยันบันทึกพร้อม AI */
.pd-lai-save-modal{
  position:fixed;
  inset:0;
  z-index:12000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.pd-lai-save-modal.show{ display:flex; }
.pd-lai-save-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.45);
  backdrop-filter:blur(2px);
}
.pd-lai-save-dialog{
  position:relative;
  width:min(520px,100%);
  max-height:min(88vh,760px);
  display:flex;
  flex-direction:column;
  border-radius:18px;
  background:#fff;
  border:1px solid #e2e8f0;
  box-shadow:0 24px 60px rgba(15,23,42,.18);
  overflow:hidden;
}
.pd-lai-save-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px 12px;
  border-bottom:1px solid #eef1f4;
  background:linear-gradient(180deg,#fafbfc,#fff);
}
.pd-lai-save-head h3{
  margin:0;
  font-size:17px;
  font-weight:900;
  color:#0f172a;
}
.pd-lai-save-head p{
  margin:4px 0 0;
  font-size:12px;
  font-weight:650;
  color:#64748b;
  line-height:1.45;
}
.pd-lai-save-close{
  border:0;
  background:#f1f5f9;
  color:#475569;
  width:34px;
  height:34px;
  border-radius:999px;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  flex-shrink:0;
}
.pd-lai-save-close:hover{ background:#e2e8f0; }
.pd-lai-save-body{
  padding:14px 18px;
  overflow:auto;
  flex:1;
}
.pd-lai-save-lead{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:12px;
  background:#f0fdf4;
  border:1px solid #bbf7d0;
  font-size:12px;
  font-weight:800;
  color:#166534;
  line-height:1.5;
}
.pd-lai-save-warn{
  padding:12px;
  border-radius:12px;
  background:#fff7ed;
  border:1px solid #fed7aa;
}
.pd-lai-save-warn p{
  margin:0 0 6px;
  font-size:12px;
  font-weight:650;
  color:#9a3412;
  line-height:1.5;
}
.pd-lai-save-warn p:last-child{ margin-bottom:0; }
.pd-lai-save-warn strong{ font-weight:900; }
.pd-lai-save-foot{
  margin:12px 0 0;
  font-size:10px;
  font-weight:650;
  color:#94a3b8;
  line-height:1.45;
}
.pd-lai-save-actions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  padding:12px 18px 16px;
  border-top:1px solid #eef1f4;
  background:#fafbfc;
}
.pd-lai-save-actions button{
  border:1px solid #cbd5e1;
  background:#fff;
  color:#334155;
  border-radius:12px;
  padding:10px 14px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
.pd-lai-save-actions button.primary{
  border-color:#16a34a;
  background:#16a34a;
  color:#fff;
}
.pd-lai-save-actions button.primary:hover{ background:#15803d; }
.pd-lai-save-actions button:not(.primary):hover{ background:#f8fafc; }
