/* Contacts view: Buyers | Sellers | Everyone, incomplete flags, the review step in the form. */

.ct-seg{max-width:440px}

/* toolbar: needs-completing chip */
.chips button.ct-need .ct-n{display:inline-block;min-width:20px;margin-left:6px;padding:1px 6px;border-radius:100px;background:var(--bg-2);color:var(--ink);font-size:11.5px;font-weight:700;text-align:center}
.chips button.ct-need.on .ct-n{background:rgba(255,255,255,.22);color:#fff}

/* banners with a pair of buttons on the right */
.ct-banner .ct-bn-acts{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
.ct-banner .ct-bn-acts .btn{margin-left:0}

.pill.ct-inc{font-size:11px;padding:3px 8px;vertical-align:1px}

/* card list for the buyer and seller views */
.ct-list{display:grid;gap:14px}
.ct-card{cursor:pointer;padding:18px 20px}
.ct-card:hover{box-shadow:var(--shadow-md);border-color:var(--line-2)}
.ct-head{display:grid;grid-template-columns:44px minmax(0,2fr) minmax(0,1.4fr) auto;gap:14px;align-items:center}
.ct-who b{font-weight:600;color:var(--ink);font-size:15px}
.ct-who .dim{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.ct-reach{display:flex;flex-direction:column;gap:2px;font-size:13px;color:var(--muted);min-width:0}
.ct-reach span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ct-meta{display:flex;flex-direction:column;align-items:flex-end;gap:6px;font-size:12.5px;color:var(--muted)}
.ct-sub{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 10px}
.ct-none{margin:0;font-size:13px;color:var(--muted)}

/* buyers: property interests */
.ct-int{margin-top:16px;padding:14px 16px;background:var(--bg-2);border-radius:var(--rs)}
.ct-int>.kicker{display:block;margin-bottom:10px;color:var(--red)}
.ct-int-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px 18px}
.ct-int-grid small{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:3px}
.ct-int-grid b{font-weight:600;color:var(--ink);font-size:14px;word-break:break-word}
.ct-tags{margin-top:12px}

/* opportunities under a contact */
.ct-opp-list{border:1px solid var(--line);border-radius:var(--rs);overflow:hidden}
.ct-opp{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border-top:1px solid var(--line);font-size:13.5px;transition:var(--t)}
.ct-opp:first-child{border-top:0}
.ct-opp:hover{background:var(--panel-2)}
.ct-ref{font:600 13px/1 var(--og-font-title);letter-spacing:.08em;color:var(--red);white-space:nowrap}
.ct-opp-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}

/* sellers: listing cards (reuse .pcard) */
.ct-lgrid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.ct-lst .b{padding:12px 14px 14px}
.ct-lst .price{font-size:19px}
.ct-lst .t{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct-kv{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px;font-size:12.5px;color:var(--ink-2)}
.ct-kv span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ct-kv small{display:block;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:2px}
.ct-dest{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.pill.ct-d{background:var(--panel);border:1px solid var(--line-2);color:var(--ink);font-size:11.5px;padding:3px 9px}
.pill.ct-d-pocket{background:var(--inv);border-color:var(--inv);color:var(--inv-ink)}

/* live / not-live light: the one place --good is used */
.ct-live{position:absolute;right:10px;top:10px;display:inline-flex;align-items:center;gap:6px;padding:4px 9px 4px 7px;border-radius:100px;background:rgba(255,255,255,.92);color:#000;font-size:11.5px;font-weight:600;box-shadow:var(--shadow-sm)}
.ct-live i{width:9px;height:9px;border-radius:50%;display:inline-block}
.ct-live.on i{background:var(--good);box-shadow:0 0 0 3px var(--good-soft)}
.ct-live.off i{background:var(--red);box-shadow:0 0 0 3px var(--red-soft)}

/* form: required marks, reminder chip in the footer, review card */
.ct-req{font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:none;color:var(--red);margin-left:4px}
.ct-remind{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:22px}
.ct-remind .chips button{padding:6px 11px;font-size:12.5px}
.ct-review{margin-top:4px}
.ct-review .facts{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.ct-review .ct-empty{color:var(--muted-2);font-weight:500}
.ct-review .rows{margin:10px 0 0}
.ct-q{margin:0 0 10px;font-size:14px;color:var(--ink)}
.ct-miss{margin:4px 0 0}

/* phones */
@media(max-width:1000px){
  .ct-seg{max-width:none}
  .ct-head{grid-template-columns:40px minmax(0,1fr);gap:10px 12px}
  .ct-reach,.ct-meta{grid-column:2}
  .ct-meta{flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap}
  .ct-card{padding:16px}
  .rows-h.ct-grid{display:none}
  .row.ct-grid{grid-template-columns:40px minmax(0,1fr) auto !important}
  .row.ct-grid .ct-c-reach,.row.ct-grid .ct-c-want,.row.ct-grid .ct-c-t{display:none}
}
@media(max-width:560px){
  .ct-lgrid{grid-template-columns:1fr 1fr}
  .ct-kv{grid-template-columns:1fr 1fr}
  .ct-kv span:last-child{grid-column:1 / -1}
  .ct-lst .img .ct-live{right:6px;top:6px}
}
@media(max-width:400px){.ct-lgrid{grid-template-columns:1fr}}
