/* public/css/send-page.css — FORMS_AND_AGREEMENTS_3 §3: the send page (public/js/send-page.js), both hosts. It rides
   the overlay Conflicts uses (public/css/conflicts-ui.css .cui-overlay) and fills the screen: the words and what is
   sent on the left, the preview beside them on a desktop and under them under 720 px, always in view. */
.sp-page [hidden] { display: none !important; }
.sp-overlay { align-items: stretch; justify-content: stretch; padding: 0; }
.sp-page { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; max-height: 100vh;
  background: var(--surface, #fff); color: var(--text, #1a1a1a); }
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px;
  border-bottom: 1px solid var(--border, #e5e2da); }
.sp-title { margin: 0; font-size: 1.15rem; font-weight: 600; }
.sp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 44%); gap: 0;
  overflow: hidden; }
/* The foot bar is the column's last thing and sticks to its bottom edge: no padding under it, and the caret is kept
   above it while the firm types (RUN.md item 514 (4)). */
.sp-main { overflow-y: auto; padding: 16px 20px 0; scroll-padding-bottom: 96px; }
.sp-side { overflow-y: auto; padding: 16px 20px; border-left: 1px solid var(--border, #e5e2da);
  background: var(--surface-2, #faf9f6); position: sticky; top: 0; }
.sp-frame { width: 100%; min-height: 560px; height: calc(100vh - 160px); border: 1px solid var(--border, #e5e2da);
  border-radius: 6px; background: #fff; }
.sp-sec { margin: 0 0 18px; }
.sp-sec:empty { display: none; }
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.sp-person { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.sp-person-name { font-weight: 600; }
.sp-hits { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 8px; }
.sp-hit, .sp-add-thing { text-align: left; background: none; border: 1px solid transparent; border-radius: 4px;
  padding: 6px 8px; cursor: pointer; font: inherit; color: inherit; }
.sp-hit:hover, .sp-add-thing:hover:not([disabled]) { border-color: var(--border, #e5e2da); background: var(--surface-2, #faf9f6); }
.sp-add-thing[disabled] { opacity: 0.45; cursor: not-allowed; }
.sp-conflict-line { margin: 0 0 4px; }
.sp-conflict-found { font-weight: 600; }
.sp-matches { margin: 4px 0 6px 18px; padding: 0; }
.sp-unsaved { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--border, #e5e2da); border-radius: 6px; }
.sp-list { list-style: decimal; margin: 6px 0; padding-left: 22px; }
.sp-item { margin: 0 0 6px; }
.sp-item-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.sp-item-name { font-weight: 500; }
.sp-item-acts { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; }
.sp-parts { margin: 8px 0 12px; padding: 10px 12px; border-left: 3px solid var(--border, #e5e2da); }
.sp-add-box { margin: 8px 0; padding: 10px; border: 1px solid var(--border, #e5e2da); border-radius: 6px; max-width: 520px; }
.sp-add-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; }
.sp-add-h { margin: 6px 0 2px; }
.sp-insert { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 4px 0; }
.sp-words-body { width: 100%; }
.sp-sec.sp-words { margin-bottom: 24px; }
.sp-foot { position: sticky; bottom: 0; z-index: 1; margin: 0 -20px; padding: 10px 20px 16px;
  background: var(--surface, #fff); border-top: 1px solid var(--border, #e5e2da); }
.sp-acts { display: flex; align-items: center; gap: 12px; }
.sp-ask { position: absolute; top: 60px; right: 20px; z-index: 2; max-width: 360px; padding: 14px;
  background: var(--surface, #fff); border: 1px solid var(--border, #e5e2da); border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15); }
@media (max-width: 720px) {
  .sp-body { display: block; overflow-y: auto; scroll-padding-bottom: 96px; }
  .sp-main, .sp-side { overflow: visible; padding: 12px 16px; }
  .sp-main { padding-bottom: 0; }
  .sp-foot { margin: 0 -16px; padding: 10px 16px 12px; }
  .sp-side { border-left: 0; border-top: 1px solid var(--border, #e5e2da); position: static; }
  .sp-frame { height: 480px; min-height: 0; }
  .sp-grid { grid-template-columns: minmax(0, 1fr); }
  .sp-head { padding: 12px 16px; }
}
/* FORMS_AND_AGREEMENTS_4 §3.1 — Save these words as a new email, under the words (public/js/send-page.js saveEmailHtml). */
.sp-save-email { margin: 8px 0 4px; }
.sp-save-box { margin: 6px 0; padding: 10px 12px; border: 1px solid var(--border, #e5e2da); border-radius: 8px; }
.sp-save-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sp-save-done:empty { display: none; }
/* FORMS_AND_AGREEMENTS_5 §1.5 — the door on a call's view and a person's record (send-page.js doorHtml): the Sent tab's
   button, SSP4 under it in the page's small grey line, and on a phone the button as wide as its column. */
.sp-door { margin: 0 0 14px; }
.sp-door-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sp-door-line { margin: 4px 0 0; }
.sp-door-status:empty { display: none; }
@media (max-width: 640px) {
  .sp-door-row .sp-door-btn { flex: 1 1 auto; }
}
