/* Pete's 10 Nov 2026 list (branch feat/crm-1110c): one-line links in Contact info,
   the Ignore Zillow status note, Voicemail left beside a number, the template
   picker laid out like Follow Up Boss's, and the all-deals duplicate check. */

/* A text-looking button, for small actions inside a row. */
.linkish { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font: inherit; }
.linkish:hover { text-decoration: underline; }

/* A link field (Zillow, Picture Link) shows ONE line, cut with an ellipsis. The
   row's .v carries overflow-wrap:anywhere, which would wrap it again. */
.ci-oneline { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  overflow-wrap: normal; word-break: normal; }
.person-layout .kv .v .ci-oneline { overflow-wrap: normal; }
.ci-open { display: inline-block; margin-top: 2px; }

.zi-set { margin-top: 4px; }
.zi-note { margin-top: 6px; padding: 6px 8px; border-radius: 7px; background: var(--amber-bg, #fff7e6);
  border: 1px solid var(--amber-line, #f3d08b); font-size: 12.5px; line-height: 1.4; }
.zi-note .linkish { margin-left: 6px; }
/* The words and the reason are one line (11 Nov 2026); click or tap opens the whole reason. */
.zi-note .zi-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  overflow-wrap: normal; word-break: normal; cursor: pointer; }
.person-layout .kv .v .zi-note .zi-line { overflow-wrap: normal; }
.zi-note .zi-line.open { white-space: normal; overflow-wrap: anywhere; }
.zi-note .zi-meta { margin-top: 2px; }

.num-vm { font-size: 11px; color: var(--muted); white-space: nowrap; }
.num-vm::before { content: '· '; }

/* ---- Template picker ---- */
.tplp-search { position: relative; margin-bottom: 14px; }
.tplp-search input { width: 100%; padding: 10px 38px 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }
.tplp-search input:focus { outline: none; border-color: var(--blue); }
.tplp-search svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.tplp-list { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.tplp-folder + .tplp-folder { border-top: 1px solid var(--border); }
.tplp-head { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 10px 14px;
  background: none; border: 0; text-align: left; cursor: pointer; font: inherit; font-size: 14px; color: var(--text); }
.tplp-head:hover { background: var(--hover, rgba(0, 0, 0, .03)); }
.tplp-count { color: var(--muted); font-size: 13px; }
.tplp-chev { margin-left: auto; display: inline-flex; color: var(--muted); transition: transform .15s; }
.tplp-chev svg { width: 16px; height: 16px; }
.tplp-folder[data-open="1"] .tplp-chev { transform: rotate(90deg); }
.tplp-rows { display: none; padding: 0 10px 8px; }
.tplp-folder[data-open="1"] .tplp-rows { display: block; }
#tplp-hits { padding: 4px 10px; }

/* ---- Duplicate deals ---- */
.ddc-set { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.ddc-set-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* An address is selectable on the first click and edits on the second (12 Nov 2026).
   Armed, it says so: the same blue as the hover, held, so the second click is expected. */
.ied.ied-twostep { user-select: text; -webkit-user-select: text; }
.ied.ied-twostep.ied-armed { background: #eef2ff; box-shadow: inset 0 0 0 1px #818cf8; }
