/* /cold-email-software/ in the painted theme (template-parts/painted/pages/cold-email-software.php).

   The header's piece is the workflow's outbox: the three mailboxes it sends from in a strip under the bar, then the list
   (the person, the first line written for them, the sender whose mailbox it goes from, where the email stands) beside
   the email open as the person gets it, its first line marked as the AI column's, the answer under it. A phone puts the
   open email under four rows of the list. assets/js/pages/cold-email-software.js plays it; with reduced motion or no
   script the window stands as it ends. Then the first lines block's own window (.ces-stp): the email step with its
   variables and the preview for one person. */

.gsp-pp .pp-head { --pp-pic: 1100px; }

.ces { display: grid; gap: 14px; text-align: left; }
.ces-win { overflow: hidden; }
.ces-act { display: inline-flex; align-items: center; gap: 6px; height: 24px; margin-left: 10px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--ai-t); font: 600 12.5px/1 var(--sans); color: var(--ai-d); }
.ces-act i { width: 7px; height: 7px; border-radius: 50%; background: var(--ai); }

/* ---------- the mailboxes ---------- */
.ces-boxes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 24px; border-bottom: 1px solid rgba(70, 52, 40, .09); background: color-mix(in srgb, var(--paper) 60%, #fff); }
.ces-boxes > small { font: 500 11px/1.3 var(--mono); letter-spacing: .02em; color: var(--mute); }
.ces-boxes ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ces-boxes li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(70, 52, 40, .12); }
.ces-boxes li .gsp-face { flex: none; width: 24px; height: 24px; }
.ces-boxes li > span { display: grid; gap: 1px; }
.ces-boxes b { font: 500 12px/1.2 var(--mono); color: var(--ink); }
.ces-boxes li small { font-size: 11.5px; line-height: 1.2; color: var(--mute); }

/* ---------- the list beside the open email ---------- */
.ces-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.ces-list { --cols: minmax(118px, .9fr) minmax(0, 1.6fr) 76px 78px; list-style: none; margin: 0; padding: 4px 18px 8px 24px; border-right: 1px solid rgba(70, 52, 40, .09); }
.ces-hd-r, .ces-r { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 12px; }
.ces-hd-r { padding: 10px 8px 8px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute-2); }
.ces-r { padding: 10px 8px; border-top: 1px solid rgba(70, 52, 40, .08); border-radius: 10px; transition: background .25s; }
.ces-r.ces-sel { background: color-mix(in srgb, var(--out-t) 55%, #fff); border-top-color: transparent; }
.ces-r.ces-sel + .ces-r { border-top-color: transparent; }
.ces-p { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ces-p .gsp-face { flex: none; width: 26px; height: 26px; }
.ces-p > span { display: grid; min-width: 0; }
.ces-p b { font-weight: 600; font-size: 13px; line-height: 1.25; color: var(--ink); }
.ces-p small { overflow: hidden; font-size: 11.5px; line-height: 1.3; color: var(--mute); white-space: nowrap; text-overflow: ellipsis; }
.ces-l { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.38; color: var(--body); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ces-from { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ces-from .gsp-face { flex: none; width: 22px; height: 22px; }
.ces-from small { overflow: hidden; font-size: 12px; line-height: 1.2; color: var(--body); text-overflow: ellipsis; }
.ces-st { justify-self: start; padding: 4px 8px; border-radius: 999px; background: var(--sunk); font: 600 11px/1 var(--sans); font-style: normal; color: var(--body); white-space: nowrap; }
.ces-sent .ces-st { background: var(--data-t); color: var(--data-d); }
.ces-opened .ces-st { background: color-mix(in srgb, var(--data-t) 60%, var(--ai-t)); color: var(--data-d); }
.ces-replied .ces-st { background: var(--ai-t); color: var(--ai-d); }
.ces-queued .ces-st { background: transparent; box-shadow: 0 0 0 1px rgba(70, 52, 40, .18); color: var(--mute); }
.ces-more { display: none; }

/* ---------- the open email ---------- */
.ces-mail { display: grid; align-content: start; gap: 10px; padding: 18px 22px 20px; background: #fff; }
.ces-hd, .ces-subj { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.ces-hd > span, .ces-subj { align-items: baseline; gap: 6px; }
.ces-hd > span { display: inline-flex; min-width: 0; }
.ces-mail small { font: 500 10.5px/1.2 var(--mono); color: var(--mute-2); }
.ces-hd b { overflow: hidden; font: 500 11.5px/1.3 var(--mono); color: var(--body); text-overflow: ellipsis; }
.ces-subj { padding-bottom: 10px; border-bottom: 1px solid rgba(70, 52, 40, .09); }
.ces-subj b { font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ink); }
.ces-txt { display: grid; gap: 7px; }
.ces-txt p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text); }
.ces-txt mark, .ces-pv mark { padding: 1px 3px; border-radius: 4px; background: color-mix(in srgb, var(--out-t) 80%, #fff); box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--out) 35%, transparent); color: var(--ink); }
.ces-chk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 2px 0 0; font-size: 11.5px; color: var(--ai-d); }
.ces-chk > svg.i { width: 13px; height: 13px; }
.ces-ai { display: inline-flex; align-items: center; gap: 5px; color: var(--out-d); }
.ces-ai svg.i { width: 12px; height: 12px; }
.ces-reply { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--ai-t) 70%, #fff); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ai) 20%, transparent); transition: opacity .35s, transform .35s; }
.ces-reply p { display: flex; align-items: center; gap: 8px; margin: 0; }
.ces-reply .gsp-face { flex: none; width: 26px; height: 26px; }
.ces-reply p > span { display: grid; gap: 1px; }
.ces-reply b { font-weight: 600; font-size: 12.5px; color: var(--ink); }
.ces-reply q { quotes: none; font-size: 13px; line-height: 1.4; color: var(--ink); }
.ces-paused { display: inline-flex; align-items: center; gap: 5px; color: var(--ai-d) !important; }
.ces-paused svg.i { width: 11px; height: 11px; }

/* ---------- the foot ---------- */
.ces-ft { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(70, 52, 40, .09); background: color-mix(in srgb, var(--paper) 60%, #fff); }
.ces-ft li { display: grid; gap: 3px; padding: 14px 24px 15px; }
.ces-ft li + li { border-left: 1px solid rgba(70, 52, 40, .08); }
.ces-ft b { font: 600 20px/1 var(--mono); letter-spacing: -.02em; color: var(--ink); }
.ces-ft span { font-size: 12px; line-height: 1.35; color: var(--mute); }

.ces-re { justify-self: center; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(70, 52, 40, .16); font: 600 13px/1 var(--sans); color: var(--ink); cursor: pointer; }
.ces-re:hover { box-shadow: 0 0 0 1px rgba(70, 52, 40, .3); }

/* ---------- the play: an email not sent yet stands queued, the answer not landed yet stands hidden ---------- */
.ces.is-playing .ces-r[data-at]:not(.on):not([data-at="0"]) .ces-st { background: transparent; box-shadow: 0 0 0 1px rgba(70, 52, 40, .18); color: transparent; }
.ces.is-playing .ces-reply:not(.on) { opacity: 0; transform: translateY(4px); }

/* ---------- the email step (the first lines block's window) ---------- */
.ces-step { display: grid; gap: 10px; padding: 16px 18px 18px; }
.ces-f { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; padding-bottom: 10px; border-bottom: 1px solid rgba(70, 52, 40, .09); }
.ces-f small, .ces-pv-h small { font: 500 10.5px/1.2 var(--mono); color: var(--mute-2); }
.ces-f b { font-weight: 600; font-size: 14px; color: var(--ink); }
.ces-tpl { display: grid; gap: 7px; }
.ces-tpl p, .ces-pv p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text); }
.ces-tk { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--sunk); box-shadow: 0 0 0 1px rgba(70, 52, 40, .12); font: 500 12px/1.5 var(--mono); color: var(--body); }
.ces-tk-ai { background: color-mix(in srgb, var(--out-t) 80%, #fff); box-shadow: 0 0 0 1px color-mix(in srgb, var(--out) 30%, transparent); color: var(--out-d); }
.ces-pv-h { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding-top: 12px; border-top: 1px dashed rgba(70, 52, 40, .2); font-size: 12.5px; color: var(--mute); }
.ces-pv-h .gsp-face { flex: none; width: 22px; height: 22px; }
.ces-pv-h b { color: var(--ink); font-weight: 600; }
.ces-pv { display: grid; gap: 7px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(70, 52, 40, .1); }
.ces-pv-more { color: var(--mute) !important; }

/* ---------- a narrower window ---------- */
@media (max-width: 1180px) {
  .ces-body { grid-template-columns: minmax(0, 1fr); }
  .ces-list { border-right: 0; padding-right: 24px; }
  .ces-mail { border-top: 1px solid rgba(70, 52, 40, .09); }
}

/* ---------- a phone: four rows, the first line under the person, the open email under the list ---------- */
@media (max-width: 760px) {
  .ces-boxes { padding: 12px 16px; }
  .ces-boxes ul { flex-direction: column; width: 100%; }
  .ces-list { --cols: minmax(0, 1fr) auto; padding: 2px 12px 6px; }
  .ces-hd-r { display: none; }
  .ces-r { grid-template-columns: var(--cols); grid-template-areas: "p st" "l l" "f f"; gap: 6px 10px; }
  .ces-p { grid-area: p; }
  .ces-st { grid-area: st; }
  .ces-l { grid-area: l; padding-left: 35px; }
  .ces-from { grid-area: f; padding-left: 35px; }
  .ces-x { display: none; }
  .ces-more { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 10px 8px; border-top: 1px solid rgba(70, 52, 40, .08); font-size: 12.5px; color: var(--mute); }
  .ces-more b { color: var(--ink); font-weight: 600; }
  .ces-mail { padding: 16px; }
  .ces-ft { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ces-ft li { padding: 12px 16px; }
  .ces-ft li + li { border-left: 0; }
  .ces-ft li:first-child { grid-column: 1 / -1; }
  .ces-ft li:nth-child(n + 2) { border-top: 1px solid rgba(70, 52, 40, .08); }
  .ces-ft li:nth-child(odd):not(:first-child) { border-left: 1px solid rgba(70, 52, 40, .08); }
  .ces-ft b { font-size: 18px; }
}
