/* fetch-2012: the approved Contacts directory and grouped record surface. */
.cti-page { min-width: 0; }
.cti-page > .pgh { margin-bottom: var(--s-4); }
.cti-page > .pgh .btn { flex: none; width: auto; }
.cti-grid { display: grid; grid-template-columns: minmax(16rem, 21.25rem) minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.cti-directory, .cti-record { min-width: 0; background: var(--surface-card); border: 1px solid var(--rule-soft); border-radius: var(--r-m); overflow: hidden; }
.cti-directory-head { padding: var(--s-4); border-bottom: 1px solid var(--rule-soft); }
.cti-heading, .cti-tools, .cti-meta, .cti-section-head, .cti-actions, .cti-owner-row { display: flex; align-items: center; gap: var(--s-3); }
.cti-heading, .cti-meta, .cti-section-head, .cti-owner-row { justify-content: space-between; }
.cti-heading h2, .cti-section-head h3 { font: inherit; font-weight: 650; margin: 0; }
.cti-heading > span, .cti-meta, .cti-count, .cti-source-label { color: var(--muted); font-size: var(--t-sub); }
.cti-types { display: flex; flex-wrap: wrap; gap: var(--s-4); border-bottom: 1px solid var(--rule-soft); margin: var(--s-2) 0 var(--s-3); }
.cti-types button { min-height: var(--control-height-touch); padding: var(--s-2) 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--navy); font-size: var(--t-mid); }
.cti-types button[aria-pressed="true"] { font-weight: 650; border-bottom-color: var(--gold); }
.cti-search { display: flex; flex: 1; align-items: center; gap: var(--s-2); min-width: 0; padding: 0 var(--s-3); border: 1px solid var(--rule); border-radius: var(--r-s); }
.cti-search input { min-width: 0; width: 100%; min-height: var(--control-height-touch); border: 0; outline: 0; background: transparent; font: inherit; }
.cti-search:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.cti-search .ci { flex: none; }
.cti-meta { margin-top: var(--s-2); flex-wrap: wrap; }
.cti-meta select { min-height: var(--control-height-touch); max-width: 10rem; background: transparent; border: 0; font: inherit; color: var(--navy); }
.cti-filter-panel { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--rule-soft); }
.cti-filter-panel fieldset { padding: 0; margin: var(--s-3) 0; border: 0; }
.cti-filter-panel legend { font-size: var(--t-sub); font-weight: 650; }
.cti-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-2); }
.cti-checks label { display: flex; align-items: center; gap: var(--s-2); min-height: var(--control-height-touch); font-size: var(--t-mid); }
.cti-checks input { flex: none; }
.cti-filter-panel .sel { width: 100%; min-height: var(--control-height-touch); }
.cti-tokens { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-2); }
.cti-tokens .btn { min-height: var(--control-height-touch); font-size: var(--t-sub); padding: 0 var(--s-2); }
.cti-rows { max-height: 34rem; overflow-y: auto; scrollbar-width: thin; }
.cti-row { display: flex; gap: var(--s-3); align-items: flex-start; width: 100%; min-height: var(--control-height-touch); text-align: left; padding: var(--s-3) var(--s-4); border: 0; border-bottom: 1px solid var(--rule-soft); border-radius: 0; background: transparent; color: var(--text-heading); position: relative; }
.cti-row:hover { background: var(--wash); }
.cti-row[aria-current="true"] { background: var(--mute-bg); }
.cti-row[aria-current="true"]::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--navy); }
.cti-avatar { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.125rem; height: 2.125rem; border: 1px solid var(--rule-soft); border-radius: 50%; background: var(--wash); color: var(--navy); font-size: var(--t-sub); font-weight: 650; }
.cti-avatar--group { border-radius: var(--r-s); }
.cti-row-main { min-width: 0; flex: 1; }
.cti-row-main strong { display: block; font-size: var(--t-body); overflow-wrap: anywhere; }
.cti-row-detail, .cti-row-role, .cti-match, .cti-recorded-label { display: block; margin-top: var(--s-1); font-size: var(--t-sub); overflow-wrap: anywhere; }
.cti-row-detail, .cti-match, .cti-recorded-label { color: var(--muted); }
.cti-row-role { color: var(--navy); }
.cti-directory-foot { padding: var(--s-3) var(--s-4); border-top: 1px solid var(--rule-soft); color: var(--muted); font-size: var(--t-sub); }
.cti-review-door { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); width: 100%; text-align: left; min-height: var(--control-height-touch); padding: var(--s-3) var(--s-4); border: 0; border-top: 1px solid var(--rule-soft); background: var(--surface-card); color: var(--navy); }
.cti-review-door strong, .cti-review-door small { display: block; }
.cti-review-door small { font-size: var(--t-sub); color: var(--muted); }
.cti-more { padding: var(--s-3) var(--s-4); }
.cti-more .btn { width: 100%; }
.cti-empty { padding: var(--s-5); }
.cti-empty h3 { margin: 0 0 var(--s-2); font-size: var(--t-section); }
.cti-empty p { margin: 0 0 var(--s-3); color: var(--muted); }
.cti-mobile-back { display: none; }
.cti-mobile-step { display: none; }
.cti-step-status { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); flex-basis: 100%; font-size: var(--t-sub); color: var(--muted); }
.cti-step-status > span { min-width: 0; overflow-wrap: anywhere; }
.cti-record-header { padding: var(--s-5) var(--s-5) 0; }
.cti-record-header > .pgh { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.cti-record-header .pgh-h { overflow-wrap: anywhere; }
.cti-role-line { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-3) 0; }
.cti-role-line > span:first-child { font-size: var(--t-sub); color: var(--muted); }
.cti-role { display: inline-flex; align-items: center; min-height: 1.75rem; padding: var(--s-1) var(--s-2); border: 1px solid var(--rule); border-radius: var(--r-s); font-size: var(--t-sub); color: var(--navy); }
.cti-identity-meta { color: var(--muted); font-size: var(--t-mid); overflow-wrap: anywhere; margin: var(--s-2) 0 var(--s-3); }
.cti-owner-row { border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); padding: var(--s-3) 0; flex-wrap: wrap; }
.cti-owner { display: flex; align-items: center; gap: var(--s-2); min-height: var(--control-height-touch); border: 0; background: transparent; padding: 0; text-align: left; }
.cti-owner span { display: block; font-size: var(--t-sub); }
.cti-owner strong { font-weight: 600; }
.cti-actions { flex-wrap: wrap; }
.cti-actions .btn { width: auto; flex: none; }
.cti-next { display: flex; align-items: center; gap: var(--s-3); min-height: var(--control-height-touch); padding: var(--s-2) 0; font-size: var(--t-mid); }
.cti-next > strong { color: var(--muted); font-size: var(--t-sub); font-weight: 550; }
.cti-next .btn { text-align: left; }
.cti-record > .sec-tabs { margin: 0; padding: 0 var(--s-5); background: var(--surface-card); border-bottom: 1px solid var(--rule-soft); }
.cti-record-body { padding: var(--s-4); min-width: 0; }
.cti-overview { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.cti-stack { display: grid; gap: var(--s-4); min-width: 0; }
.cti-section { min-width: 0; border: 1px solid var(--rule); border-radius: var(--r-s); overflow: hidden; background: var(--surface-card); }
.cti-section-head { min-height: var(--control-height-touch); padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--rule-soft); }
.cti-section-head > h3 { font-size: var(--t-body); }
.cti-section-head > .btn { min-height: var(--control-height-touch); }
.cti-section-body { padding: var(--s-3) var(--s-4); }
.cti-section--reference, .cti-section--reference .cti-section-head { background: var(--wash); }
.cti-section-body > :first-child { margin-top: 0; }
.cti-section-body > :last-child { margin-bottom: 0; }
.cti-section-body > .cti-row { padding-left: 0; padding-right: 0; }
.cti-section-body > .cti-row:last-child { border-bottom: 0; }
.cti-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin: 0; }
.cti-facts dt { color: var(--muted); font-size: var(--t-sub); margin-bottom: var(--s-1); }
.cti-facts dd { margin: 0; font-size: var(--t-mid); overflow-wrap: anywhere; white-space: pre-line; }
.cti-facts .cti-wide { grid-column: 1 / -1; }
.cti-facts--single { grid-template-columns: 1fr; }
.cti-fact-divider { border-top: 1px solid var(--rule-soft); padding-top: var(--s-4); }
.cti-event { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(5rem, 8rem); gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--rule-soft); align-items: start; }
.cti-event:last-child { border: 0; }
.cti-event button { text-align: left; min-height: var(--control-height-touch); padding: 0; color: var(--navy); }
.cti-event time, .cti-event-meta { font-size: var(--t-sub); color: var(--muted); }
.cti-event time strong { display: block; color: var(--navy); }
.cti-event-role { color: var(--navy); text-align: right; font-size: var(--t-sub); }
.cti-event-role small { display: block; color: var(--muted); font-size: var(--t-sub); }
.cti-note { font-size: var(--t-sub); color: var(--muted); margin: var(--s-3) 0; }
.cti-entry { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule-soft); overflow-wrap: anywhere; }
.cti-entry:last-child { border: 0; }
.cti-entry p { margin: var(--s-1) 0; }
.cti-context { margin-bottom: var(--s-3); padding: var(--s-3); background: var(--wash); border: 1px solid var(--rule-soft); border-radius: var(--r-s); }
.cti-context label { display: block; color: var(--muted); font-size: var(--t-sub); }
.cti-context select { width: 100%; min-height: var(--control-height-touch); }
.cti-form { display: grid; gap: var(--s-3); }
.cti-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.cti-form .field { margin: 0; min-width: 0; }
.cti-form .cti-wide { grid-column: 1 / -1; }
.cti-form input:not([type="checkbox"]), .cti-form select, .cti-form textarea { width: 100%; min-height: var(--control-height-touch); }
.cti-form textarea { min-height: 6rem; }
.cti-dialog { width: min(44rem, calc(100vw - var(--s-5))); max-height: calc(100dvh - var(--s-5)); padding: 0; border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--surface-card); color: var(--text-heading); }
.cti-dialog::backdrop { background: color-mix(in srgb, var(--navy-dark) 45%, transparent); }
.cti-dialog-head, .cti-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); }
.cti-dialog-head { border-bottom: 1px solid var(--rule-soft); }
.cti-dialog-head h2 { margin: 0; font-size: var(--t-section); }
.cti-dialog-body { padding: var(--s-4); overflow-y: auto; }
.cti-dialog-foot { justify-content: flex-end; border-top: 1px solid var(--rule-soft); flex-wrap: wrap; }
.cti-review-pair { padding: var(--s-3); border: 1px solid var(--rule); border-radius: var(--r-s); margin-bottom: var(--s-3); }
.cti-review-pair strong { display: block; }
.cti-legacy-back { margin-bottom: var(--s-3); }
.cti-record .crm-rec-work, .cti-record #crmRecordDetails, .cti-record #crmFoundation, .cti-record #crmHistory { margin: 0; box-shadow: none; }
@media (max-width: 1100px) {
  .cti-grid { grid-template-columns: 18rem minmax(0, 1fr); }
  .cti-overview { grid-template-columns: 1fr; }
  .cti-record-header { padding: var(--s-4) var(--s-4) 0; }
  .cti-record > .sec-tabs { padding: 0 var(--s-4); }
  .cti-event { grid-template-columns: 4rem minmax(0, 1fr); }
  .cti-event-role { grid-column: 2; text-align: left; }
  .cti-event-role small { display: inline; margin-left: var(--s-2); }
}
@media (max-width: 640px) {
  .cti-page.cti-open > .pgh { display: none; }
  .cti-page > .notice { margin: 0 0 var(--s-2); padding: var(--s-2) var(--s-3); font-size: var(--t-sub); }
  .cti-grid { display: block; }
  .cti-rows { max-height: none; overflow: visible; }
  .cti-record { display: none; }
  .cti-page.cti-open .cti-directory { display: none; }
  .cti-page.cti-open .cti-record { display: block; }
  .cti-page.cti-open .cti-mobile-back { display: inline-flex; margin-bottom: var(--s-2); min-height: var(--control-height-touch); }
  .cti-mobile-step { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: var(--s-2) 0; }
  .cti-record-body { padding: var(--s-3); }
  .cti-record-header { padding: var(--s-4) var(--s-4) 0; }
  .cti-record .rec-step { flex-basis: 100%; }
  .cti-owner { flex: 1; min-width: 0; }
  .cti-owner-row > .cti-actions { width: auto; }
  .cti-owner-row > .cti-actions > .btn { flex: none; }
  .cti-facts, .cti-form-grid { grid-template-columns: 1fr; }
  .cti-section-head, .cti-section-body { padding-left: var(--s-3); padding-right: var(--s-3); }
  .cti-section-head { gap: var(--s-2); }
  .cti-section-head h3 { font-size: var(--t-mid); }
  .cti-dialog { width: calc(100vw - var(--s-4)); max-height: calc(100dvh - var(--s-4)); }
  .cti-form input:not([type="checkbox"]), .cti-form textarea, .cti-form select, .cti-search input { font-size: 1rem; }
}
/* fetch-2019: Needs review by group. The groups view takes the whole row; there is no record pane beside it. */
.cti-page--review .cti-grid { grid-template-columns: minmax(0, 1fr); }
.cti-rv-mode { margin-top: 0; }
.cti-rv-body { padding: var(--s-3) var(--s-4) var(--s-4); min-width: 0; }
.cti-rv-tabs { gap: 0 var(--s-4); margin-top: 0; }
.cti-rv-count { color: var(--muted); font-size: var(--t-sub); }
.cti-rv-help { margin: var(--s-2) 0 var(--s-3); }
.cti-rv-tools { flex-wrap: wrap; }
.cti-rv-sort select { min-height: var(--control-height-touch); max-width: 12rem; background: transparent; border: 1px solid var(--rule); border-radius: var(--r-s); padding: 0 var(--s-2); font: inherit; color: var(--navy); }
.cti-rv-bulk { margin-top: var(--s-3); }
.cti-rv-notice { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-3); padding: var(--s-3); border-left: 3px solid var(--info-fg); border-radius: var(--r-s); background: var(--info-bg); color: var(--info-fg); font-size: var(--t-mid); }
.cti-rv-notice--ok { background: var(--ok-bg); color: var(--ok-fg); border-left-color: var(--ok-fg); }
.cti-rv-notice--err { background: var(--bad-bg); color: var(--bad-fg); border-left-color: var(--bad-fg); }
.cti-rv-notice > span { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.cti-rv-notice .btn { min-height: var(--control-height-touch); width: auto; flex: none; }
.cti-rv-list { margin-top: var(--s-3); border-top: 1px solid var(--rule-soft); }
.cti-rv-row { border-bottom: 1px solid var(--rule-soft); padding: var(--s-3) 0; min-width: 0; }
.cti-rv-head { display: flex; align-items: flex-start; gap: var(--s-3); }
.cti-rv-main { min-width: 0; flex: 1; }
.cti-rv-main strong { display: block; font-size: var(--t-body); overflow-wrap: anywhere; }
.cti-rv-link { flex: none; width: auto; min-height: var(--control-height-touch); min-width: var(--control-height-touch); }
.cti-rv-chips { display: block; margin-top: var(--s-1); font-size: var(--t-sub); color: var(--muted); overflow-wrap: anywhere; }
.cti-rv-chip { display: inline; }
.cti-rv-panel .cti-rv-chip { display: block; margin-top: var(--s-1); }
.cti-rv-client { border-bottom: 1px solid var(--rule-soft); padding: 0; }
.cti-rv-clientbtn { border-bottom: 0; }
.cti-rv-clientbtn > .ci { flex: none; margin-top: var(--s-1); }
.cti-rv-clientbtn[aria-expanded="true"] > .ci { transform: rotate(180deg); }
.cti-rv-client .cti-rv-panel { margin: 0 var(--s-4) var(--s-3); }
.cti-rv-saved { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: var(--s-3) 0; font-size: var(--t-mid); }
.cti-rv-saved > span { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.cti-rv-saved .cti-note { flex: 1 1 100%; margin: 0; }
.cti-rv-saved .btn, .cti-rv-all { min-height: var(--control-height-touch); width: auto; }
.cti-rv-remember { margin-bottom: var(--s-2); }
.cti-rv-panel { margin-top: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--rule); border-radius: var(--r-s); background: var(--wash); min-width: 0; }
.cti-rv-panel-h { margin: 0 0 var(--s-2); font-size: var(--t-sub); font-weight: 650; color: var(--muted); }
.cti-rv-panel-h:not(:first-child) { margin-top: var(--s-3); }
.cti-rv-events { list-style: none; margin: 0 0 var(--s-2); padding: 0; }
.cti-rv-events li { padding: var(--s-1) 0; overflow-wrap: anywhere; }
.cti-rv-events strong { display: block; font-size: var(--t-mid); }
.cti-rv-choices { border: 0; margin: var(--s-3) 0; padding: 0; min-width: 0; }
.cti-rv-choices legend { font-size: var(--t-sub); font-weight: 650; padding: 0; margin-bottom: var(--s-1); }
.cti-rv-choice { display: flex; align-items: center; gap: var(--s-3); min-height: var(--control-height-touch); font-size: var(--t-mid); }
.cti-rv-choice input { flex: none; }
.cti-rv-choice span { min-width: 0; overflow-wrap: anywhere; }
.cti-rv-choice small { display: block; color: var(--muted); font-size: var(--t-sub); }
.cti-rv-name { margin: var(--s-2) 0 var(--s-3); }
.cti-rv-name input { width: 100%; min-height: var(--control-height-touch); font-size: 1rem; }
.cti-rv-panel-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cti-rv-panel-actions .btn { min-height: var(--control-height-touch); width: auto; text-align: left; white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.cti-rv-body .cti-empty .btn { min-height: var(--control-height-touch); }
@media (max-width: 640px) {
  .cti-rv-evlink { min-height: var(--control-height-touch); }
  .cti-rv-body { padding: var(--s-3); }
  .cti-rv-panel { padding: var(--s-3); }
  .cti-rv-client .cti-rv-panel { margin: 0 0 var(--s-3); }
  .cti-rv-panel-actions .btn-primary { flex: 1 1 100%; }
  .cti-rv-sort select { max-width: 100%; }
}
.cti-rv-bulk .btn { min-height: var(--control-height-touch); width: auto; }
.cti-types.cti-rv-tabs button[aria-selected="true"] { font-weight: 650; border-bottom-color: var(--gold); }
.cti-rv .cti-directory-head > .btn { min-height: var(--control-height-touch); }
.cti-rv-all { margin-top: var(--s-2); }
.cl-portal-linked .group-label { margin-top: 0; }
.cl-portal-linked .group-label + .cl-portal-row { border-top: 0; }
.cl-portal-linked .cl-portal-row { padding: var(--s-1) 0; }
.cl-portal-linked .cl-portal-main strong { font-size: var(--t-body); font-weight: 600; }
@media (min-width: 641px) {
  .cl-portal-linked .cl-portal-main { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s-2); }
}
/* fetch-2045.1 */
.cti-rv-evlink { display: block; margin-top: var(--s-1); padding: var(--s-1) 0; border: 0; background: transparent; color: var(--navy); font: inherit; font-size: var(--t-mid); font-weight: 650; text-align: left; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; overflow-wrap: anywhere; }
.cti-rv-np { margin-top: var(--s-2); }
.cti-rv-quiet { min-height: var(--control-height-touch); width: auto; border-color: transparent; background: transparent; color: var(--muted); font-size: var(--t-sub); padding-left: 0; }
.cti-rv-np .cti-rv-panel { margin-top: var(--s-1); }
.cti-rv-tier { margin-top: 0; }
