/* "Different content for different people" — the versions editor
   (js/email-versions.js), drawn to Alex's artefact of 2026-09-27 under the
   app's own tokens. Every colour is a token with the artefact's value as the
   fallback, so the screen matches the boards where the tokens are missing and
   the app where they are not. Phone first: at 390px the panel comes before
   the preview (it is where the coach acts), and every row wraps rather than
   scrolling sideways. */

body.ev-open { overflow: hidden; }
.ev-shell { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column;
  background: var(--bg, #f6f5f1); color: var(--text, #1b1b1f); font: 400 14px/1.45 Inter, system-ui, sans-serif; }
.ev-shell *, .ev-shell *::before, .ev-shell *::after { box-sizing: border-box; }
.ev-shell button { font-family: inherit; }
.ev-loading { margin: auto; color: var(--text-2, #5b5a63); }
.ev-grow { flex: 1 1 auto; }
.ev-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ev-muted { color: var(--text-3, #a09fa6); }

/* ── Top bar ─────────────────────────────────────────────────────────── */
.ev-top { flex: none; min-height: 64px; padding: 10px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  background: var(--surface, #fff); border-bottom: 1px solid var(--border, #e4e2da); }
.ev-crumbs { font-size: 14px; color: var(--text-2, #5b5a63); min-width: 0; }
.ev-crumbs b { color: var(--text, #1b1b1f); font-weight: 600; }
.ev-sep { color: var(--text-4, #a09fa6); margin: 0 2px; }
.ev-top-l { font-size: 13px; color: var(--text-2, #5b5a63); }
.ev-previewas { display: flex; align-items: center; gap: 10px; }
.ev-top-acts { display: flex; gap: 8px; }
.ev-none { font-size: 13px; color: var(--text-3, #8a8fa6); padding: 0 10px; line-height: 36px; }

/* Buttons */
.ev-btn { height: 40px; padding: 0 16px; border: 1px solid var(--border-strong, #d6d4cb); border-radius: 10px;
  background: var(--surface, #fff); color: var(--text, #1b1b1f); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ev-btn:hover { background: var(--surface-2, #faf9f4); }
.ev-btn:focus-visible, .ev-seg button:focus-visible, .ev-chip:focus-visible, .ev-card-h:focus-visible, .ev-row:focus-visible,
.ev-link:focus-visible, .ev-add:focus-visible, .ev-x:focus-visible { outline: 2px solid var(--accent, #4338ca); outline-offset: 2px; }
.ev-btn[disabled] { opacity: .55; cursor: default; }
.ev-btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.ev-primary { background: var(--accent, #4338ca); border-color: var(--accent, #4338ca); color: #fff; }
.ev-primary:hover { background: var(--accent-deep, #312e81); }
.ev-link { border: 0; background: none; padding: 0; color: var(--accent, #4338ca); font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; }
.ev-link:hover { color: var(--accent-deep, #312e81); text-decoration: underline; }
.ev-danger { color: var(--danger, #c0423a); }

/* The segmented control: "Everyone sees the same | Different versions",
   "Cards | Code", "have | have not", the Preview-as people. */
.ev-seg { display: flex; gap: 6px; padding: 4px; background: var(--surface-3, #f1f0ea); border-radius: 10px; }
.ev-seg button { flex: 1 1 auto; min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent;
  color: var(--text-2, #5b5a63); font-size: 14px; font-weight: 500; cursor: pointer; }
.ev-seg button[aria-pressed="true"], .ev-seg button[aria-checked="true"] { background: var(--surface, #fff); color: var(--text, #1b1b1f);
  font-weight: 600; box-shadow: 0 1px 2px rgba(27, 27, 31, .12); }
.ev-seg-sm button { min-height: 32px; padding: 0 14px; font-size: 13px; }
.ev-people button { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 7px; }
.ev-dot { width: 22px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; }

.ev-msg { flex: none; display: none; padding: 10px 28px; font-size: 14px; background: var(--danger-soft, #fbe5e3); color: var(--danger, #9a2d27); }
.ev-msg.show { display: block; }
.ev-msg.ok { background: var(--good-soft, #e2f3ea); color: var(--good, #1c6e46); }

/* ── Main: the email on the left, the panel on the right ─────────────── */
.ev-main { flex: 1 1 auto; display: flex; min-height: 0; }
.ev-canvas { flex: 1 1 auto; min-width: 0; overflow: auto; padding: 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ev-subject { width: 100%; max-width: 640px; display: flex; gap: 8px; align-items: baseline; font-size: 13px; color: var(--text-2, #5b5a63); }
.ev-subject b { color: var(--text, #1b1b1f); font-weight: 600; flex: none; }
.ev-email { width: 100%; max-width: 640px; background: var(--surface, #fff); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(27, 27, 31, .06), 0 8px 24px rgba(27, 27, 31, .06); }
.ev-email iframe { display: block; width: 100%; min-height: 420px; border: 0; }

.ev-panel { width: 420px; flex: none; overflow: auto; padding: 24px 24px 28px; background: var(--surface, #fff);
  border-left: 1px solid var(--border, #e4e2da); display: flex; flex-direction: column; gap: 18px; }
.ev-head { display: flex; flex-direction: column; gap: 4px; }
.ev-h { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--text, #1b1b1f); }
.ev-h-lg { font-size: 26px; }
.ev-h-xl { font-size: 30px; }
.ev-sub { margin: 0; font-size: 14px; color: var(--text-2, #5b5a63); line-height: 1.5; }
.ev-sub-lg { font-size: 16px; }
.ev-hint { font-size: 14px; color: var(--text-2, #3a3940); line-height: 1.5; }
.ev-warnline { font-size: 13px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft, #fff7ed); color: #7c2d12; }

/* Version cards */
.ev-cards { display: flex; flex-direction: column; gap: 10px; }
.ev-card { border: 1px solid var(--border, #e4e2da); border-radius: 12px; background: var(--surface, #fff); margin: 1px 0; }
.ev-card.open { border: 2px solid var(--accent, #4338ca); background: var(--accent-softer, #fbfbff); margin: 0; }
.ev-card.dragging { opacity: .5; }
.ev-card.over { box-shadow: 0 -3px 0 var(--accent, #4338ca); }
.ev-card-h { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 12px; }
.ev-static { cursor: default; }
.ev-grip { color: var(--text-4, #b3b6c4); cursor: grab; display: inline-flex; margin-right: -4px; }
.ev-badge { width: 24px; height: 24px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: var(--surface-3, #f1f0ea); color: var(--text-2, #3a3940); }
.ev-badge.on { background: var(--accent, #4338ca); color: #fff; }
.ev-title { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text, #1b1b1f); }
.ev-count { flex: none; font-size: 13px; color: var(--text-2, #5b5a63); white-space: nowrap; }
.ev-else.off .ev-title { color: var(--text-2, #5b5a63); }
.ev-card-b { display: flex; flex-direction: column; gap: 10px; margin: 0 14px 14px; padding-top: 12px; border-top: 1px solid var(--border, #e4e2da); }
.ev-rule { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--text-2, #3a3940); }
.ev-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 8px; border: 1px solid #c7c9f5;
  background: var(--accent-soft, #eef0ff); color: var(--accent-deep, #312e81); font-size: 14px; font-weight: 600; cursor: pointer; max-width: 100%; text-align: left; }
.ev-chip:hover { border-color: var(--accent, #4338ca); }
.ev-chip-join { font-weight: 500; }
.ev-x { width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--text-3, #8a8fa6); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ev-x:hover { background: var(--surface-3, #f1f0ea); color: var(--text, #1b1b1f); }
.ev-words-l { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2, #5b5a63); margin-top: 4px; }
.ev-words { width: 100%; min-height: 110px; resize: vertical; padding: 10px 12px; border: 1px solid var(--border-strong, #d6d4cb); border-radius: 10px;
  background: var(--surface, #fff); color: var(--text, #1b1b1f); font: 400 14px/1.5 Inter, system-ui, sans-serif; }
.ev-words:focus, .ev-code:focus { outline: 2px solid var(--accent, #4338ca); outline-offset: 0; border-color: transparent; }
.ev-card-acts { display: flex; gap: 16px; flex-wrap: wrap; }
.ev-switch { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ev-switch input { width: 18px; height: 18px; accent-color: var(--accent, #4338ca); }
.ev-add { min-height: 44px; border: 1px dashed #b9b7ae; border-radius: 10px; background: transparent; color: var(--text-2, #3a3940);
  font-size: 14px; font-weight: 600; cursor: pointer; }
.ev-add:hover { border-color: var(--accent, #4338ca); color: var(--accent-deep, #312e81); }
.ev-note { display: flex; gap: 10px; padding: 14px; border-radius: 10px; background: var(--bg, #f6f5f1); font-size: 13px; color: var(--text-2, #3a3940); line-height: 1.5; }
.ev-note svg { flex: none; margin-top: 1px; color: var(--text-2, #5b5a63); }

/* "What they see": the rich-text words (js: richField / wireRich). Looks like
   the email, not like a form field, so it reads as the words themselves. */
.ev-rich-wrap { border: 1px solid var(--border-strong, #d6d4cb); border-radius: 10px; background: var(--surface, #fff); }
.ev-rich-wrap:focus-within { outline: 2px solid var(--accent, #4338ca); outline-offset: 0; border-color: transparent; }
.ev-rtools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; border-bottom: 1px solid var(--border, #e4e2da); }
.ev-rtools > button, .ev-rmenu > summary { min-height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: none; cursor: pointer;
  font: 600 13px Inter, system-ui, sans-serif; color: var(--text-2, #3a3940); list-style: none; display: inline-flex; align-items: center; }
.ev-rmenu > summary::-webkit-details-marker { display: none; }
.ev-rtools > button:hover, .ev-rmenu > summary:hover { background: var(--surface-3, #f1f0ea); color: var(--text, #1b1b1f); }
.ev-rmenu { position: relative; }
.ev-rmenu > div { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; min-width: 220px; padding: 6px; border-radius: 10px;
  background: var(--surface, #fff); border: 1px solid var(--border, #e4e2da); box-shadow: 0 8px 24px rgba(27, 27, 31, .12); display: flex; flex-direction: column; }
.ev-rmenu > div button { text-align: left; padding: 8px 10px; border: 0; border-radius: 6px; background: none; cursor: pointer; font: 500 14px Inter, sans-serif; color: var(--text, #1b1b1f); }
.ev-rmenu > div button:hover { background: var(--accent-soft, #eef0ff); }
.ev-rich { min-height: 96px; max-height: 360px; overflow: auto; padding: 12px 14px; font: 400 15px/1.55 Inter, system-ui, sans-serif; color: var(--text, #1b1b1f); outline: none; overflow-wrap: anywhere; }
.ev-rich p { margin: 0 0 12px; }
.ev-rich .ev-bare { white-space: pre-wrap; margin: 0 0 12px; }
.ev-rich a { color: var(--accent, #4338ca); text-decoration: underline; }
.ev-tok { display: inline-block; padding: 0 7px; margin: 0 1px; border-radius: 6px; background: var(--accent-soft, #eef0ff);
  color: var(--accent-deep, #312e81); font-weight: 600; font-size: .92em; line-height: 1.5; white-space: nowrap; cursor: default; user-select: all; }
.ev-rtok { margin: 0 0 12px; padding: 12px; border: 1px dashed #c7c9f5; border-radius: 10px; background: var(--accent-softer, #fbfbff);
  color: var(--accent-deep, #312e81); font-weight: 600; font-size: 14px; text-align: center; cursor: default; }
.ev-rbtn { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin: 0 0 12px; padding: 10px; border-radius: 10px; background: var(--surface-2, #faf9f4); cursor: default; }
.ev-rbtn-b { padding: 9px 18px; border-radius: 8px; background: var(--accent, #4338ca); color: #fff; font-weight: 600; font-size: 14px; }
.ev-rbtn-u { flex: 1 0 100%; text-align: center; font-size: 12.5px; color: var(--text-3, #8a8fa6); overflow-wrap: anywhere; }
.ev-rform { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-bottom: 1px solid var(--border, #e4e2da); background: var(--surface-2, #faf9f4); }
.ev-rform.hidden { display: none; }
.ev-rf-l { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-2, #3a3940); }
.ev-rf-i { height: 38px; padding: 0 10px; border: 1px solid var(--border-strong, #d6d4cb); border-radius: 8px; font: 400 14px Inter, sans-serif; background: #fff; }
.ev-rform-acts { display: flex; gap: 8px; justify-content: flex-end; }
.ev-rform-acts .ev-btn { height: 34px; padding: 0 12px; font-size: 13px; }
.ev-codeonly { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 10px; border: 1px dashed #b9b7ae; background: #fbfbfa; font-size: 14px; line-height: 1.5; }
.ev-codeonly span { color: var(--text-2, #3a3940); }

/* Custom code (board 5) */
.ev-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed #b9b7ae; background: #fbfbfa; }
.ev-custom b { font-size: 15px; }
.ev-custom-i { display: inline-flex; color: var(--text-2, #5b5a63); }
.ev-custom-d { flex: 1 1 auto; font-size: 13px; color: var(--text-2, #5b5a63); }
.ev-code { width: 100%; min-height: 260px; resize: vertical; padding: 18px 20px; border: 0; border-radius: 14px; background: #1b1b1f; color: #e8e6f5;
  font: 400 13.5px/1.6 'JetBrains Mono', ui-monospace, monospace; white-space: pre-wrap; }
.ev-checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--good, #15803d); line-height: 1.5; }
.ev-checkline svg { flex: none; margin-top: 1px; }
.ev-checkline.bad { color: var(--danger, #c0423a); }
.ev-beyond { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 14px; border: 1px solid var(--border, #e4e2da); }
.ev-beyond p { margin: 0; font-size: 14px; color: var(--text-2, #3a3940); line-height: 1.5; }

/* ── Overlays: the picker and who-sees-what ──────────────────────────── */
.ev-overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(21, 23, 43, .32); }
.ev-overlay-full { padding: 0; background: var(--bg, #f6f5f1); align-items: stretch; }
.ev-picker { width: 900px; max-width: 100%; max-height: 100%; overflow: auto; padding: 40px; border-radius: 18px; background: var(--bg, #f6f5f1);
  display: flex; flex-direction: column; gap: 20px; box-shadow: 0 24px 64px rgba(21, 23, 43, .24); }
.ev-pk-head { display: flex; flex-direction: column; gap: 6px; }
.ev-pk-head .ev-sub { font-size: 15px; }
.ev-pk-body { display: flex; gap: 20px; min-height: 0; }
.ev-pk-list { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: var(--surface, #fff); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(27, 27, 31, .06), 0 8px 24px rgba(27, 27, 31, .06); }
.ev-pk-top { padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--border, #e4e2da); }
.ev-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--border-strong, #d6d4cb); border-radius: 10px; color: var(--text-2, #5b5a63); }
.ev-search:focus-within { outline: 2px solid var(--accent, #4338ca); border-color: transparent; }
.ev-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; font: inherit; font-size: 15px; background: transparent; color: var(--text, #1b1b1f); }
.ev-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ev-tabs button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border, #e4e2da); background: var(--surface, #fff);
  color: var(--text-2, #3a3940); font-size: 14px; font-weight: 500; cursor: pointer; }
.ev-tabs button[aria-selected="true"] { border-color: var(--accent, #4338ca); background: var(--accent-soft, #eef0ff); color: var(--accent-deep, #312e81); font-weight: 600; }
.ev-rows { padding: 8px; display: flex; flex-direction: column; gap: 2px; max-height: 460px; overflow: auto; }
.ev-rows-empty { padding: 24px 14px; font-size: 14px; color: var(--text-2, #5b5a63); line-height: 1.5; }
.ev-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; }
.ev-row:hover { background: var(--surface-2, #faf9f4); }
.ev-row.on { background: var(--accent-soft, #eef0ff); }
.ev-radio { width: 20px; height: 20px; flex: none; border-radius: 10px; border: 2px solid #b9b7ae; display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.ev-radio span { width: 8px; height: 8px; border-radius: 4px; background: #fff; }
.ev-row.on .ev-radio { border-color: var(--accent, #4338ca); background: var(--accent, #4338ca); }
.ev-row-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ev-row-l { font-size: 15px; font-weight: 600; color: var(--text, #1b1b1f); overflow-wrap: anywhere; }
.ev-row-h { font-size: 13px; color: var(--text-2, #5b5a63); }
.ev-row-n { flex: none; font-size: 13px; color: var(--text-2, #5b5a63); white-space: nowrap; }
.ev-pk-side { width: 300px; flex: none; display: flex; flex-direction: column; gap: 14px; }
.ev-goes { padding: 18px; border-radius: 14px; background: var(--surface, #fff); border: 2px solid var(--accent, #4338ca); display: flex; flex-direction: column; gap: 12px; }
.ev-cap { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent, #4338ca); }
.ev-cap-muted { color: var(--text-2, #5b5a63); }
.ev-sent { font-size: 18px; line-height: 1.45; font-weight: 500; overflow-wrap: anywhere; }
.ev-sent-more { color: var(--text-2, #5b5a63); font-size: 15px; }
.ev-big { display: flex; align-items: baseline; gap: 8px; padding-top: 4px; font-size: 14px; color: var(--text-2, #5b5a63); }
.ev-big-n { font-family: Fraunces, Georgia, serif; font-size: 34px; font-weight: 700; color: var(--text, #1b1b1f); }
.ev-who { font-size: 14px; color: var(--text-2, #3a3940); line-height: 1.5; }
.ev-match { padding: 16px; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--border, #e4e2da); display: flex; flex-direction: column; gap: 10px; }
.ev-match b { font-size: 14px; }
.ev-match .ev-sub, .ev-match .ev-hint { font-size: 13px; }
.ev-pk-acts { display: flex; gap: 10px; }
.ev-pk-acts .ev-btn { flex: 1 1 0; }

/* Who sees what (board 3) */
.ev-check { width: 100%; overflow: auto; padding: 48px 64px; display: flex; gap: 40px; align-items: flex-start; }
.ev-ck-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ev-table { background: var(--surface, #fff); border-radius: 14px; box-shadow: 0 1px 2px rgba(27, 27, 31, .06), 0 8px 24px rgba(27, 27, 31, .06); }
.ev-tr { display: grid; grid-template-columns: 56px minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 2fr) 170px; gap: 16px; padding: 18px 22px; align-items: center;
  border-bottom: 1px solid var(--surface-3, #f1f0ea); }
.ev-tr:last-child { border-bottom: 0; }
.ev-th { padding: 14px 22px; border-bottom: 1px solid var(--border, #e4e2da); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2, #5b5a63); }
.ev-tr .ev-badge { width: 28px; height: 28px; border-radius: 14px; font-size: 13px; }
.ev-last { font-size: 13px; color: var(--text-2, #5b5a63); font-weight: 600; }
.ev-td-v { display: flex; flex-direction: column; gap: 3px; }
.ev-td-t { font-size: 16px; font-weight: 600; }
.ev-td-d { font-size: 13px; color: var(--text-2, #5b5a63); }
.ev-td-n { font-size: 20px; font-weight: 600; }
.ev-td-n.warn { color: #9a3412; }
.ev-td-ex { font-size: 14px; color: var(--text-2, #3a3940); }
.ev-ck-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.ev-ck-note { font-size: 14px; color: var(--text-2, #3a3940); line-height: 1.5; min-height: 1em; }
.ev-ck-side { width: 380px; flex: none; display: flex; flex-direction: column; gap: 14px; padding-top: 86px; }
.ev-warn, .ev-tipcard { padding: 18px; border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.ev-warn { background: #fff7ed; border: 1px solid #fed7aa; }
.ev-tipcard { background: var(--surface, #fff); border: 1px solid var(--border, #e4e2da); }
.ev-warn-h { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 600; }
.ev-warn .ev-warn-h { color: #7c2d12; }
.ev-tipcard .ev-warn-h svg { color: var(--accent, #4338ca); }
.ev-warn-h.ev-good svg { color: var(--good, #15803d); }
.ev-warn p, .ev-tipcard p { margin: 0; font-size: 14px; color: var(--text-2, #3a3940); line-height: 1.5; }

/* ── Tablet and phone ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ev-check { flex-direction: column; padding: 32px 24px; }
  .ev-ck-side { width: 100%; padding-top: 0; }
}
@media (max-width: 860px) {
  .ev-top { padding: 10px 16px; }
  .ev-crumbs { flex: 1 0 100%; }
  .ev-top .ev-grow { display: none; }
  .ev-previewas { flex: 1 0 100%; overflow-x: auto; }
  .ev-top-acts { flex: 1 0 100%; }
  .ev-top-acts .ev-btn { flex: 1 1 auto; padding: 0 10px; }
  .ev-msg { padding: 10px 16px; }
  .ev-main { flex-direction: column; overflow: auto; }
  .ev-panel { width: 100%; order: -1; overflow: visible; border-left: 0; border-bottom: 1px solid var(--border, #e4e2da); padding: 20px 16px; }
  .ev-canvas { overflow: visible; padding: 20px 16px 32px; }
  .ev-overlay { padding: 0; align-items: stretch; }
  .ev-picker { border-radius: 0; padding: 20px 16px; box-shadow: none; }
  .ev-pk-body { flex-direction: column; flex: none; }
  /* A flex column inside a scrolling sheet squeezes the list to nothing; on a
     phone every part takes its own height and the sheet scrolls. */
  .ev-pk-head, .ev-pk-list, .ev-pk-side, .ev-goes, .ev-match { flex: none; }
  .ev-pk-side { width: 100%; }
  .ev-rows { max-height: none; }
  .ev-h-lg { font-size: 22px; } .ev-h-xl { font-size: 24px; }
  .ev-check { padding: 20px 16px; gap: 24px; }
  .ev-th { display: none; }
  .ev-tr { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "o v n" "o x x" "o b b"; gap: 6px 12px; padding: 14px 16px; }
  .ev-tr > :nth-child(1) { grid-area: o; align-self: start; }
  .ev-tr > :nth-child(2) { grid-area: v; }
  .ev-tr > :nth-child(3) { grid-area: n; }
  .ev-tr > :nth-child(4) { grid-area: x; }
  .ev-tr > :nth-child(5) { grid-area: b; }
  .ev-ck-acts .ev-btn { flex: 1 1 100%; }
}

/* The sequence editor's own entry points (sequences.js): the toolbar button
   and the line under the body naming the blocks already in it. */
.seq-versions-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2, #4d5168); }
.seq-versions-strip:empty { display: none; }
.seq-versions-strip button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid #c7c9f5; background: var(--accent-soft, #efeaff); color: var(--accent-deep, #4a32b8); font: 600 13px Inter, sans-serif; }
.seq-versions-strip button.custom { border-style: dashed; border-color: #b9b7ae; background: #fbfbfa; color: var(--text-2, #4d5168); }
