/* The search page's Sequence tab (static/js/pages/sequence.js). Cards, buttons, badges, chips and
   the conversion row (.conv-row, .conv-step, .conv-arrow) are the portal's own classes
   (static/portal/css/app.css). The rail is the campaign design's step tiles (artifact D63MWnb7,
   "The play for one search") drawn with the portal's tokens: a top border says what a tile is —
   ink for a LinkedIn touch, blue for email, purple for an event, green for the goal, grey for an
   exit. Every rule under html.ui-new. */

html.ui-new .sq { max-width: 1180px; }
html.ui-new .sq .eyebrow { margin-bottom: var(--space-2); }
html.ui-new .sq .set-lede { margin: 0 0 var(--space-3); color: var(--ink-500); font-size: var(--text-sm); max-width: 74ch; }
html.ui-new .sq .tk-phase { margin: var(--space-4) 0 var(--space-2); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-500); }
html.ui-new .sq .sq-card + .sq-card { margin-top: var(--space-4); }

/* The steps: one numbered row each, like the Unipile sequence card Tania pointed at (23:39):
   a number, the channel's mark, the name, "Wait N days". LinkedIn blue, email red. */
html.ui-new .sq .sq-start { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  background: var(--energy-yellow-100); border: 1px solid var(--paper-200); border-radius: 12px; padding: 12px 16px; margin-bottom: var(--space-4); }
html.ui-new .sq .sq-start-t { font-weight: var(--fw-semibold); color: var(--ink-900); font-size: var(--text-sm); }
html.ui-new .sq .sq-start-w { color: var(--ink-600); font-size: var(--text-xs); margin-top: 2px; }
html.ui-new .sq .sq-seq { border: 1px solid var(--paper-200); border-radius: 14px; padding: 16px 18px; background: var(--white); }
html.ui-new .sq .sq-seq-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px;
  border-bottom: 1px solid var(--paper-200); margin-bottom: 12px; }
html.ui-new .sq .sq-seq-head h3 { margin: 0; font-size: var(--text-lg); }
html.ui-new .sq .sq-count { background: var(--orbit-green-100); color: var(--orbit-green-700); font-weight: var(--fw-semibold);
  font-size: var(--text-sm); border-radius: 8px; padding: 4px 12px; }
html.ui-new .sq .sq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
html.ui-new .sq .sq-row { border: 1px solid var(--paper-200); border-radius: 12px; background: var(--paper-50); }
html.ui-new .sq .sq-row.is-open { border-color: var(--hr-purple-300); background: var(--white); }
html.ui-new .sq .sq-row.is-off .sq-head { opacity: .55; }
html.ui-new .sq .sq-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; background: none; border: 0;
  text-align: left; font: inherit; cursor: pointer; border-radius: 12px; }
html.ui-new .sq .sq-head:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }
html.ui-new .sq .sq-num { flex: 0 0 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--white);
  font-weight: var(--fw-bold); font-size: var(--text-sm); }
html.ui-new .sq .sq-num-li { background: #2867B2; }
html.ui-new .sq .sq-num-mail { background: #D9473A; }
html.ui-new .sq .sq-num-none { background: transparent; }
html.ui-new .sq .sq-ico { flex: 0 0 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
html.ui-new .sq .sq-ico svg { width: 20px; height: 20px; }
html.ui-new .sq .sq-ico-li { background: #2867B2; color: var(--white); }
html.ui-new .sq .sq-ico-mail { background: var(--white); color: #D9473A; border: 1px solid var(--paper-200); }
html.ui-new .sq .sq-ico-exit, html.ui-new .sq .sq-ico-again { background: var(--paper-100); color: var(--ink-500); border: 1px solid var(--paper-200); }
html.ui-new .sq .sq-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
html.ui-new .sq .sq-nm { font-weight: var(--fw-semibold); font-size: var(--text-md, 15px); color: var(--ink-900); }
html.ui-new .sq .sq-chw { font-weight: var(--fw-regular, 400); color: var(--ink-500); font-size: var(--text-xs); }
html.ui-new .sq .sq-wl { color: var(--ink-500); font-size: var(--text-sm); }
html.ui-new .sq .sq-wl b { color: var(--orbit-green-700); }
html.ui-new .sq .sq-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
html.ui-new .sq .sq-stat { font-size: var(--text-xs); color: var(--ink-700); font-variant-numeric: tabular-nums; }
html.ui-new .sq .sq-stat-none { color: var(--ink-400); }
html.ui-new .sq .sq-chev { color: var(--ink-400); font-size: 12px; }
html.ui-new .sq .sq-stop { margin: 12px 0 0; font-size: var(--text-sm); color: var(--ink-600); }
html.ui-new .sq .sq-list-side .sq-row { background: var(--white); }
html.ui-new .sq .sq-which { margin-bottom: var(--space-3); }
html.ui-new .sq .sq-rules { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: var(--space-3) 0 0; padding: 0;
  font-size: var(--text-xs); color: var(--ink-600); }
html.ui-new .sq .sq-rules li::before { content: "✳ "; color: var(--hr-purple); }
html.ui-new .sq .sq-ver { display: inline-block; border-radius: 6px; padding: 0 6px; font-size: 11px; font-weight: 700;
  border: 1px solid var(--ink-900); color: var(--ink-900); white-space: nowrap; }
html.ui-new .sq .sq-ver.b { background: var(--ink-900); color: var(--white); }
@media (max-width: 640px) { html.ui-new .sq .sq-head { flex-wrap: wrap; } html.ui-new .sq .sq-side { flex-basis: 100%; justify-content: flex-start; } }

/* The open step. */
html.ui-new .sq .sq-step { padding: 0 16px 16px 108px; }
@media (max-width: 640px) { html.ui-new .sq .sq-step { padding-left: 16px; } }
html.ui-new .sq .sq-why { margin: 0; font-size: var(--text-sm); color: var(--ink-500); }
html.ui-new .sq .sq-step-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--space-4);
  margin-top: var(--space-4); align-items: start; }
@media (max-width: 900px) { html.ui-new .sq .sq-step-grid { grid-template-columns: 1fr; } }
html.ui-new .sq .sq-timing, html.ui-new .sq .sq-nums { background: var(--paper-50); border: 1px solid var(--paper-200);
  border-radius: var(--radius-md); padding: var(--space-3); min-width: 0; }
html.ui-new .sq .sq-when-line { margin: 0 0 var(--space-2); font-size: var(--text-sm); color: var(--ink-700); }
html.ui-new .sq .sq-fields { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
html.ui-new .sq .sq-field { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: var(--text-xs); color: var(--ink-600); }
html.ui-new .sq .sq-field span { font-weight: var(--fw-semibold); }
html.ui-new .sq .sq-field input { width: 90px; padding: 6px 8px; }
html.ui-new .sq .sq-field select { width: auto; padding: 6px 8px; }
html.ui-new .sq .sq-field small { color: var(--ink-400); }
html.ui-new .sq .sq-wait { display: flex; gap: 6px; flex-wrap: nowrap; font-weight: normal; }
html.ui-new .sq .sq-wait input { width: 70px; }
html.ui-new .sq .sq-wait select { min-width: 90px; flex: none; }
html.ui-new .sq .sq-on { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--text-sm); }
html.ui-new .sq .sq-on input { width: auto; }
html.ui-new .sq .sq-bad { color: #B3261E; font-weight: var(--fw-semibold); }
html.ui-new .sq p.sq-bad { margin: 6px 0 0; font-size: var(--text-xs); }
html.ui-new .sq .sq-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: var(--space-3); }
html.ui-new .sq .sq-numrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--paper-200); flex-wrap: wrap; }
html.ui-new .sq .sq-numrow:first-of-type { border-top: 0; }
html.ui-new .sq .sq-numrow .conv-step { min-width: 62px; }
html.ui-new .sq .sq-numrow .conv-n { font-size: var(--text-xl); }
html.ui-new .sq .sq-edited { flex-basis: 100%; font-size: var(--text-xs); }

/* The words: the card that sat on the Docs tab, as it was. */
html.ui-new .sq .sq-personas { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 var(--space-3); }
html.ui-new .sq .sq-edit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
@media (max-width: 900px) { html.ui-new .sq .sq-edit { grid-template-columns: 1fr; } }
html.ui-new .sq .sq-verbox { margin-top: var(--space-3); }
html.ui-new .sq .sq-verbox:first-child { margin-top: 0; }
html.ui-new .sq .sq-verbox input[type="text"] { margin-bottom: 8px; }
html.ui-new .sq .sq-verbox textarea { min-height: 110px; }
html.ui-new .sq .sq-err { color: #B3261E; font-size: var(--text-sm); min-height: 1.1em; margin: 6px 0 0; }
html.ui-new .sq .sq-check { margin: 6px 0 0; padding-left: 1.1em; font-size: var(--text-xs); color: var(--energy-yellow-800); }
html.ui-new .sq .sq-check li.red { color: #B3261E; }
html.ui-new .sq .sq-checkok { margin: 6px 0 0; font-size: var(--text-xs); color: var(--orbit-green-700); }
html.ui-new .sq .sq-ab { margin: var(--space-3) 0 0; font-size: var(--text-sm); color: var(--ink-600); }
html.ui-new .sq .sq-ab .linkbtn:disabled { opacity: .5; }
html.ui-new .sq .sq-notebar { margin: 0 0 var(--space-2); }
html.ui-new .sq .sq-pick { background: var(--paper-50); border: 1px solid var(--paper-200); border-radius: var(--radius-md);
  padding: var(--space-3); margin-bottom: var(--space-3); }
html.ui-new .sq .sq-pick select { width: 100%; max-width: 100%; padding: 6px 8px; }
html.ui-new .sq .sq-prev { background: var(--paper-50); border: 1px solid var(--paper-200); border-radius: var(--radius-md); padding: var(--space-3); }
html.ui-new .sq .sq-prev-head { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-2); }
html.ui-new .sq .sq-prev-head .eyebrow { margin: 0; white-space: nowrap; }
html.ui-new .sq .sq-prev-head select { width: auto; flex: 1 1 auto; min-width: 0; padding: 5px 10px; }
html.ui-new .sq .sq-prev-subj { margin: 0 0 6px; font-weight: var(--fw-semibold); font-size: var(--text-sm); }
html.ui-new .sq .sq-prev-body { margin: 0; font-size: var(--text-sm); color: var(--ink-800); white-space: pre-line; line-height: var(--leading-relaxed); }


/* Every touch is a step (05:16 10-21): add, view profile, task, plus moving and removing rows. */
html.ui-new .sq .sq-num-add, html.ui-new .sq .sq-num-score, html.ui-new .sq .sq-num-eye, html.ui-new .sq .sq-num-task { background: var(--hr-purple-500, #6A4BC4); }
html.ui-new .sq .sq-ico-add, html.ui-new .sq .sq-ico-score, html.ui-new .sq .sq-ico-eye, html.ui-new .sq .sq-ico-task { background: var(--white); color: var(--hr-purple-500, #6A4BC4); border: 1px solid var(--paper-200); }
html.ui-new .sq .sq-ico-eye { color: #2867B2; }
html.ui-new .sq .sq-headrow { display: flex; align-items: center; }
html.ui-new .sq .sq-headrow .sq-head { flex: 1 1 auto; min-width: 0; }
html.ui-new .sq .sq-move { display: flex; gap: 2px; padding-right: 10px; }
html.ui-new .sq .sq-mv { width: 28px; height: 28px; border-radius: 6px; border: 1px solid transparent; background: none; color: var(--ink-500); cursor: pointer; font-size: 14px; line-height: 1; }
html.ui-new .sq .sq-mv:hover:not(:disabled) { border-color: var(--paper-200); background: var(--white); color: var(--ink-800); }
html.ui-new .sq .sq-mv:disabled { opacity: .3; cursor: default; }
html.ui-new .sq .sq-rm:hover:not(:disabled) { color: #B3261E; }
html.ui-new .sq .sq-row.is-bad { border-color: #E3A39E; }
html.ui-new .sq .sq-field-wide input { width: 280px; max-width: 100%; }
html.ui-new .sq .sq-savebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 var(--space-3);
  padding: 10px 14px; border-radius: 10px; background: var(--hr-purple-50, #F3EFFC); border: 1px solid var(--hr-purple-300); font-size: var(--text-sm); }
html.ui-new .sq .sq-savebar .sq-acts { margin-top: 0; }
html.ui-new .sq .sq-errs { flex-basis: 100%; margin: 0; padding-left: 18px; font-size: var(--text-xs); }
html.ui-new .sq .sq-addline { margin: var(--space-3) 0 0; }
html.ui-new .sq .sq-addbox { margin-top: var(--space-3); padding: 12px 14px; border: 1px dashed var(--paper-300, #CFC8BC); border-radius: 12px; }
html.ui-new .sq .sq-addtypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 8px 0; }
html.ui-new .sq .sq-addtype { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 10px; border: 1px solid var(--paper-200); border-radius: 10px; background: var(--white); cursor: pointer; }
html.ui-new .sq .sq-addtype:hover { border-color: var(--hr-purple-300); }
html.ui-new .sq .sq-addtype b { display: block; font-size: var(--text-sm); }
html.ui-new .sq .sq-addtype small { display: block; color: var(--ink-500); font-size: var(--text-xs); margin-top: 2px; }
html.ui-new .sq .sq-addtype .sq-ico { flex: 0 0 28px; height: 28px; }

/* One place for the messages (Tania 06:31 10-21): the words on each row, and in the open step the
   approaches, A beside B, and the test. */
html.ui-new .sq .sq-quote { display: block; margin-top: 4px; font-size: var(--text-sm); color: var(--ink-600); line-height: 1.4;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html.ui-new .sq .sq-trig { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 6px; background: var(--hr-purple-50, #F3EFFC);
  color: var(--hr-purple-700, #4B2E9A); font-size: var(--text-xs); font-weight: var(--fw-semibold); }
html.ui-new .sq .sq-trigline { margin: 0 0 6px; font-size: var(--text-xs); color: var(--ink-600); }
html.ui-new .sq .sq-appr-now { margin: 0 0 8px; font-size: var(--text-sm); color: var(--ink-700); }
html.ui-new .sq .sq-apprs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
html.ui-new .sq .sq-appr { border: 1px solid var(--paper-200); border-radius: 10px; padding: 10px 12px; background: var(--white); display: flex; flex-direction: column; }
html.ui-new .sq .sq-appr.is-on { border-color: var(--hr-purple-300); box-shadow: 0 0 0 2px var(--hr-purple-50, #F3EFFC); }
html.ui-new .sq .sq-appr-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--text-sm); }
html.ui-new .sq .sq-appr-why { margin: 4px 0; font-size: var(--text-xs); color: var(--ink-600); }
html.ui-new .sq .sq-appr-body { margin: 0 0 6px; font-size: var(--text-xs); color: var(--ink-500); flex: 1 1 auto; }
html.ui-new .sq .sq-appr .sq-acts { margin-top: 4px; }
html.ui-new .sq .sq-ab2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); align-items: start; }
html.ui-new .sq .sq-ab2.is-one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { html.ui-new .sq .sq-ab2 { grid-template-columns: 1fr; } }
html.ui-new .sq .sq-ab2 textarea { width: 100%; }
html.ui-new .sq .sq-theirline { margin: 4px 0 0; font-size: var(--text-xs); }
html.ui-new .sq .sq-test { margin-top: var(--space-3); padding: 10px 12px; border: 1px solid var(--paper-200); border-radius: 10px; background: var(--paper-50); font-size: var(--text-sm); }
html.ui-new .sq .sq-test-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
html.ui-new .sq .sq-arms { display: flex; gap: 16px; margin-top: 6px; font-size: var(--text-xs); color: var(--ink-600); }
html.ui-new .sq .sq-test .sq-acts { margin-top: 8px; }
html.ui-new .sq .sq-step .sq-prev { margin-top: var(--space-3); }
html.ui-new .sq .sq-replies-t { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
html.ui-new .sq .sq-seq-head { gap: 8px; }
html.ui-new .sq .sq-seq-head [data-draft-missing] { margin-left: auto; }
html.ui-new .sq .sq-appr-body { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
html.ui-new .sq .sq-apprs + .linkbtn { margin-top: 6px; }
/* Read profile & score (Tania 18:34 10-21): the first step, its counts on the row, and in the open
   step who reads, the press, and Review by hand with the reason as short chips. */
html.ui-new .sq .sq-fixed { font-size: var(--text-xs); color: var(--ink-500); white-space: nowrap; padding: 0 6px; }
html.ui-new .sq .sq-stat-warn { color: var(--hr-red-700, #B42318); }
html.ui-new .sq .sq-chk-lede { margin: 0 0 8px; font-size: var(--text-sm); color: var(--ink-700); }
html.ui-new .sq .sq-chk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
  padding: 8px 10px; border: 1px solid var(--paper-200); border-radius: 10px; background: var(--paper-50); font-size: var(--text-sm); }
html.ui-new .sq .sq-chk-counts { margin: 8px 0 0; font-size: var(--text-sm); color: var(--ink-600); }
html.ui-new .sq .sq-chk-list { list-style: none; margin: 0; padding: 0; }
html.ui-new .sq .sq-chk-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--paper-100, #F2F0EC); font-size: var(--text-sm); }
html.ui-new .sq .sq-chk-nm { font-weight: var(--fw-semibold); white-space: nowrap; }
html.ui-new .sq .sq-chk-fit { font-variant-numeric: tabular-nums; color: var(--ink-600); min-width: 2ch; }
html.ui-new .sq .sq-chk-why { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
html.ui-new .sq .sq-chk-why small { color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
html.ui-new .sq .sq-flag { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--hr-red-50, #FEF3F2);
  color: var(--hr-red-700, #B42318); font-size: var(--text-xs); font-weight: var(--fw-semibold); white-space: nowrap; }
/* Who does each step (10-27): App runs by itself and sends nothing; You is a press on To-dos. */
html.ui-new .sq .sq-who { font-size: 11px; font-weight: 700; letter-spacing: .04em; border-radius: 6px; padding: 2px 7px; }
html.ui-new .sq .sq-who-app { background: var(--orbit-green-100); color: var(--orbit-green-700); }
html.ui-new .sq .sq-who-you { background: var(--hr-purple-100, #f1e6f6); color: var(--hr-purple-700, #6b2f83); }
/* The head: "Messages: N of M picked", the drafter and the step count, wrapping on a phone. */
html.ui-new .sq .sq-headr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
html.ui-new .sq .sq-seq-head { flex-wrap: wrap; gap: 8px; }
html.ui-new .sq .sq-msgs { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--ink-800); }
html.ui-new .sq .sq-msgs.is-all { color: var(--orbit-green-700); }
/* This search's own words, folded under the library's approaches. */
html.ui-new .sq .sq-own { margin-top: var(--space-4); border-top: 1px solid var(--paper-200); padding-top: var(--space-3); }
html.ui-new .sq .sq-own > summary { cursor: pointer; font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--ink-700); }
html.ui-new .sq .sq-own[open] > summary { margin-bottom: var(--space-3); }
/* Sending limits, inside the list. */
html.ui-new .sq .sq-limits { border: 1px solid var(--paper-200); border-radius: 14px; padding: 4px 18px 16px; margin-top: var(--space-4); background: var(--white); }
html.ui-new .sq .sq-limits-w { margin: 0 0 4px; font-weight: 600; }
html.ui-new .sq .sq-cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
html.ui-new .sq .sq-cs-f { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
html.ui-new .sq .sq-cs-f > span:first-child { font-weight: 600; }
html.ui-new .sq .sq-cs-acct { display: block; overflow-wrap: anywhere; }
html.ui-new .sq .sq-cs-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
/* The library's saved messages, folded under the step's one message (Tania 29 Oct: "still too complex"). */
html.ui-new .sq .sq-saved-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
html.ui-new .sq .sq-saved-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3);
  padding: 8px 10px; border: 1px solid var(--paper-200); border-radius: 8px; }
html.ui-new .sq .sq-saved-row .sq-appr-body { margin: 2px 0 0; }
/* A list is a proposal until confirmed (pages/sequence.js setupBox, 2026-10-29) */
html.ui-new .sq .sq-setup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 var(--space-3);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md, 12px); background: var(--warn-50, #fdf6e3); border: 1px solid var(--warn-200, #f1dfa6); font-size: 14px; }
html.ui-new .sq .sq-setup.is-ok { background: var(--ok-50, #eef8ef); border-color: var(--ok-200, #cfe9d2); }
