/* Playtables (/data-enrichment/) in Creator's pattern (template-parts/painted/pages/data-enrichment.php): the header with
   the live table is gsp_pp_head() (theme.css), the blocks, their windows and the windows' cards, people and strips the
   kit's (lines.css, .pp-b, .pp-card, .pp-person, .pp-who), the finale's card gsp_pp_fincard(). Here: what the three
   windows hold (a work email cell's Log; the two enrichments in three equal columns; the AI score with its reasons and
   Only run if) and the column catalog as two rows of cards. Words crisp on brushed paper; no outline on a card. */

/* the live table is the widest piece: its wash in the header takes the page's width */
.gsp-pp .pp-head { --pp-pic: 1232px; }
/* on a phone the table keeps the person with the found email and shows the AI score beside it, the page's lead scoring,
   where the piece shows the stage (the full window's phone columns, src/demo.css) */
@container gsd (max-width: 599px) {
  .gsp-pp .pp-head .gsd.gsd-v-table .gsd-tbx :is(.gsd-gh, .gsd-tr) { grid-template-columns: minmax(0, 1fr) 108px; }
  .gsp-pp .pp-head .gsd.gsd-v-table .gsd-tbx :is(.gsd-gh, .gsd-tr) > .gsd-k6 { display: none; }
  .gsp-pp .pp-head .gsd.gsd-v-table .gsd-tbx :is(.gsd-gh, .gsd-tr) > .gsd-k4 { display: flex; border-right: 0; }
}

/* ---------- 1. work emails: the cell's Log, what it read from the row, each finder, the check, done ---------- */
.de-for { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--mute); }
.de-for img.av.gsp-face { width: 22px; height: 22px; }
.de-read { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.de-read .mono-k { margin-right: 4px; font-size: 9px; }
.de-read .st { color: var(--ink); }
.pp-card.de-log > li { grid-template-columns: 26px minmax(0, 1fr) auto; min-height: 50px; }
.de-k { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sunk); font: 600 11px/1 var(--mono); color: var(--mute); }
.de-k svg.i { width: 13px; height: 13px; }
.de-log b { display: block; font-weight: 600; font-size: 13px; line-height: 1.25; }
.de-log small { display: block; margin-top: 1px; font-size: 12px; line-height: 1.35; color: var(--mute); }
.de-log s { color: var(--mute-2); }
.de-log code { font: 500 11.5px/1.2 var(--mono); color: var(--ink); }
.de-skip b, .de-no b { color: var(--mute); }
.de-yes .de-k { background: var(--data-t); color: var(--data-d); }
.de-done .de-k { background: var(--data); color: #fff; }

/* ---------- 2. enrich: the person, the lead's data, the company's data, three equal columns ---------- */
.de-en { --cols: 3; }
.de-two { min-width: 0; }
.de-two b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; font-size: 13px; line-height: 1.25; color: var(--ink); }
.de-two small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; line-height: 1.3; color: var(--mute); }
.pp-card.de-en > li { min-height: 48px; }

/* ---------- 3. AI score: your words, each score with how sure it is and why, Only run if on the first line ---------- */
.de-rule { margin-bottom: 0; }
.pp-card.de-sc > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); min-height: 56px; }
.de-why { min-width: 0; }
.de-why .st { gap: 7px; }
.de-why .st i { padding-left: 7px; border-left: 1px solid currentColor; font-style: normal; font-weight: 500; opacity: .75; }
.de-why small { display: block; margin-top: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; line-height: 1.3; color: var(--mute); }
.de-if { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--sunk); }
.de-if .disc { width: 28px; height: 28px; background: #fff; }
.de-if .disc svg.i { width: 14px; height: 14px; }
.de-if b { display: block; font-weight: 600; font-size: 13px; color: var(--ink); }
.de-if small { display: block; font-size: 12px; color: var(--mute); }
.de-if .st { margin-left: auto; }

/* ---------- 4. columns: the catalog under a centred head, two rows of three cards (lines.css .ln2-feats), each row named
   on its left edge, the actions' discs in the line's colour and the widgets' neutral, as the app draws them; the cards
   are no links, so they never lift on hover ---------- */
.de-grp { margin: 44px 2px 12px; font-size: 14px; line-height: 1.3; color: var(--mute); }
.de-grp b { margin-right: 8px; font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--data-d); }
.de-cols .de-grp + .ln2-feats { margin-top: 0; }
.de-cols .ln2-feats + .de-grp { margin-top: 26px; }
.gsp-pp .de-cols .de-col { grid-template-rows: auto 1fr; align-items: start; row-gap: 0; padding: 20px 20px 18px; }
.de-col .ln2-ft small { margin-top: 4px; text-wrap: pretty; }
.gsp-pp .de-cols .de-col:hover { transform: none; box-shadow: var(--sh-1); }
.de-cols-w .disc { background: var(--sunk); color: var(--mute); }

/* ---------- the phone ---------- */
@media (max-width: 760px) {
  .de-for { display: none; }
  /* enrich: the person across the row, the lead's and the company's data side by side under the name, each under its
     own head (two columns beside a name folded the company's data under the lead's with no head over it) */
  .pp-card.de-en > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 6px; padding: 11px 0; }
  .pp-card.de-en > li > .pp-person { grid-column: 1 / -1; }
  .pp-card.de-en > li.pp-th { padding: 0; }
  .pp-card.de-en > li.pp-th > :first-child { display: none; }
  .pp-card.de-sc > li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 8px 0; }
  .de-if { flex-wrap: wrap; }
  .de-if .st { margin-left: 38px; }
  .de-grp { margin-top: 30px; font-size: 13px; }
  .gsp-pp .de-cols .de-col { padding: 16px 16px 14px; }
}
