/* Prime Buys AI v2 · buyer record detail (lead-detail-v2.js) */
.lead-modal:has(.pld) { width: min(100%, 920px); }
.pld { display: grid; gap: 12px; }
.pld svg { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pld-head { display: grid; gap: 10px; }
.pld-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; color: var(--muted); font-size: .875rem; }
.pld-meta span { opacity: .5; }
.pld-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pld-act { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--cyan); background: color-mix(in srgb, var(--cyan) 7%, var(--panel)); font-size: .8125rem; font-weight: 650; text-decoration: none; }
.pld-act:hover { background: color-mix(in srgb, var(--cyan) 13%, var(--panel)); }
.pld-act span { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pld-sec { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.pld-sec > summary { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 10px 14px; cursor: pointer; list-style: none;
  background: color-mix(in srgb, var(--cyan) 5%, var(--panel)); color: var(--ink); font-size: .9375rem; font-weight: 700; }
.pld-sec > summary::-webkit-details-marker { display: none; }
.pld-sec > summary svg { color: var(--cyan); }
.pld-sec > summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.pld-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--cyan) 12%, transparent); color: var(--cyan);
  font-size: .72rem; font-style: normal; font-weight: 700; text-align: center; }
.pld-chev { width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s ease; }
.pld-sec[open] > summary .pld-chev { transform: rotate(225deg) translate(-2px, -2px); }
.pld-sec[open] > summary { border-bottom: 1px solid var(--line); }

.pld-sec dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin: 0; padding: 6px 14px 10px; }
.pld-row { display: grid; grid-template-columns: 158px minmax(0, 1fr); align-items: start; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.pld-row.is-wide { grid-column: 1 / -1; }
.pld-row dt { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.pld-row dt svg { color: color-mix(in srgb, var(--cyan) 80%, var(--muted)); }
.pld-row dd { min-width: 0; margin: 0; color: var(--ink); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.pld-row dd a { display: inline-flex; align-items: center; gap: 4px; color: var(--cyan); font-weight: 600; text-decoration: none; }
.pld-row dd a:hover { text-decoration: underline; }
.pld-row dd a svg { opacity: .6; }

.pld-bool { font-weight: 650; }
.pld-bool.is-yes { color: var(--success); }
.pld-bool.is-no { color: var(--muted); font-weight: 500; }
.pld-pill { display: inline-grid; min-width: 26px; height: 22px; padding: 0 8px; place-items: center; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.pld-pri-a { color: #b91c1c; background: #fee2e2; }
.pld-pri-b { color: #b45309; background: #fef3c7; }
.pld-pri-c { color: #1d4ed8; background: #dbeafe; }
.pld-rating { display: inline-flex; align-items: center; gap: 5px; }
.pld-rating svg { color: #f59e0b; fill: #f59e0b; }
.pld-rating em { color: var(--muted); font-style: normal; font-size: .8125rem; }

.pld-stars { display: grid; gap: 4px; max-width: 320px; }
.pld-star-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 40px; align-items: center; gap: 8px; font-size: .78rem; }
.pld-star-row b { color: var(--muted); font-weight: 650; }
.pld-star-row i { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pld-star-row u { display: block; height: 100%; border-radius: inherit; background: #f59e0b; text-decoration: none; }
.pld-star-row em { color: var(--muted); font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }

.pld-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 3px 18px; margin: 0; padding: 0; list-style: none; }
.pld-hours li { display: flex; justify-content: space-between; gap: 10px; font-size: .8125rem; }
.pld-hours b { color: var(--muted); font-weight: 600; }

html[data-theme="dark"] .pld-pri-a { color: #fecaca; background: rgba(185, 28, 28, .3); }
html[data-theme="dark"] .pld-pri-b { color: #fde68a; background: rgba(180, 83, 9, .3); }
html[data-theme="dark"] .pld-pri-c { color: #bfdbfe; background: rgba(29, 78, 216, .3); }

@media (max-width: 760px) {
  .pld-sec dl { grid-template-columns: 1fr; }
  .pld-row { grid-template-columns: 128px minmax(0, 1fr); }
}
