    /* W27 — send confirm modal */
    #send-confirm-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
    #send-confirm-modal .scm-box { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .scm-box { background: #fff; border-radius: 8px; padding: 24px 20px 20px; width: 100%; max-width: 360px; box-shadow: 0 4px 24px rgba(0,0,0,0.18); }
    .scm-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
    .scm-heading { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #aaa; margin-bottom: 8px; }
.scm-summary { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 16px; }
    .scm-summary td { padding: 3px 0; }
    .scm-summary td:first-child { color: #888; width: 40%; }
    .scm-summary td:last-child { font-weight: 500; }
    .scm-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
    .scm-actions button { min-height: 44px; padding: 10px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; border: 1px solid #d1d5db; }
    .scm-actions--split button { flex: 1 1 0; }
    .scm-btn-cancel { background: #f3f4f6; color: #4b5563; border-color: #d1d5db; }
    .scm-btn-cancel:hover { background: #e5e7eb; color: #1f2937; border-color: #c4c9d1; }
    .scm-btn-confirm { background: #111; color: #fff; font-weight: 600; border-color: #111; }
    .scm-btn-confirm:hover { background: #2d2d2d; border-color: #2d2d2d; }
    .scm-btn-confirm:disabled { color: #9ca3af; cursor: default; border-color: #e5e7eb; background: #f3f4f6; }
    .scm-warn-block { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; }
    .scm-warn-header { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
    .scm-warn-header svg { flex-shrink: 0; color: #92400e; }
    .scm-warn-header span { font-size: 13px; font-weight: 700; color: #92400e; }
    .scm-consequence { font-size: 13px; color: #78350f; line-height: 1.5; }
    .scm-consequence p { margin: 0 0 5px; }
    .scm-consequence p:last-child { margin-bottom: 0; }
    .scm-checklist { list-style: none; padding: 0; margin: 0; font-size: 13px; color: #555; display: flex; flex-direction: column; gap: 4px; }
    .scm-checklist li { padding-left: 16px; position: relative; line-height: 1.4; }
    .scm-checklist li::before { content: "\2713"; position: absolute; left: 0; color: #92400e; font-weight: 700; }
    .scm-gate-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
    .scm-btn-back { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; padding: 7px 12px; border-radius: 5px; font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid #e0e0e6; background: transparent; color: #777; }
    .scm-btn-back:hover { background: #f5f5f8; color: #444; border-color: #ccc; }
    .scm-slider-wrap { width: 100%; }
    .scm-slider-track { position: relative; height: 46px; background: #c8c4d0; border-radius: 23px; border: 1px solid #a4a0ac; overflow: hidden; user-select: none; touch-action: none; box-shadow: inset 0 2px 5px rgba(0,0,0,0.16); }
    .scm-slider-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #6e0000, #ae0000); border-radius: 23px 0 0 23px; pointer-events: none; }
    .scm-slider-thumb { position: absolute; left: 0; top: 5px; width: 36px; height: 36px; background: #960000; border-radius: 50%; border: 2px solid rgba(0,0,0,0.22); display: flex; align-items: center; justify-content: center; color: #fff; cursor: grab; box-shadow: 0 2px 8px rgba(100,0,0,0.55), 0 0 0 2px rgba(255,255,255,0.30); z-index: 1; touch-action: none; }
    .scm-slider-thumb:active { cursor: grabbing; box-shadow: 0 3px 12px rgba(100,0,0,0.65), 0 0 0 2px rgba(255,255,255,0.40); }
    .scm-slider-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: rgba(30,10,15,0.50); pointer-events: none; user-select: none; padding-left: 44px; letter-spacing: 0.04em; }
    .scm-handoff-note { font-size: 12px; color: #666; margin: 0 0 10px; }
    .scm-handoff-actions { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
    .scm-handoff-btn { padding: 8px 14px; border-radius: 5px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid #ddd; background: #f7f7f9; color: #111; text-align: left; width: 100%; }
    .scm-handoff-btn:hover { background: #ebebf0; }
    #scm-phase-sent { display: flex; flex-direction: column; gap: 8px; }
    .scm-sent-status { width: 100%; margin-bottom: 0; }
    .scm-sent-note { font-size: 13px; color: #555; margin: 0; line-height: 1.4; order: 1; }
    /* delivery surface — primary/secondary hierarchy */
    .scm-delivery-truth { font-size: 13px; color: #555; margin: 0 0 14px; line-height: 1.4; }
    .scm-delivery-primary-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
    .scm-delivery-primary-group--sent { gap: 0; order: 2; margin-bottom: 0; }
    .scm-delivery-primary-group--sent .scm-sent-status { width: 100%; margin-bottom: 0; }
    .scm-delivery-primary-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid #babace; background: #e8e8f2; color: #111; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 48px; text-align: left; box-shadow: inset 3px 0 0 rgba(80,80,140,0.35); }
    .scm-delivery-primary-btn:hover { background: #dddde8; }
    .scm-delivery-primary-btn svg { flex-shrink: 0; }
    .scm-delivery-divider { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #aaa; margin: 10px 0 6px; }
    .scm-delivery-secondary-group { display: flex; flex-direction: column; gap: 4px; }
    .scm-delivery-secondary-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border-radius: 5px; border: 1px solid #e8e8ef; background: #fafafa; color: #555; font-size: 12px; font-weight: 500; cursor: pointer; min-height: 40px; text-align: left; }
    .scm-delivery-secondary-btn:hover { background: #ebebf0; color: #333; }
    .scm-delivery-secondary-btn svg { flex-shrink: 0; }
    .scm-tool-group-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #bbb; padding: 8px 4px 2px; }
    .scm-forward-history { font-size: 11px; color: #999; padding: 2px 4px; }
    /* Portal Tools accordion */
    .ptm-accordion { display: flex; flex-direction: column; margin-top: 4px; }
    .ptm-section { border-top: 1px solid #e8e8ef; }
    .ptm-section:last-child { border-bottom: 1px solid #e8e8ef; }
    .ptm-header { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 4px; background: none; border: none; cursor: pointer; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #666; text-align: left; min-height: 40px; border-radius: 4px; }
    .ptm-header:hover { color: #222; background: #f5f5f9; }
    .ptm-header--primary { color: #2d2d3a; font-weight: 800; }
    .ptm-header--primary:hover { background: #f0f0f5; color: #111; }
    .ptm-chevron { flex-shrink: 0; transition: transform 0.15s; }
    .ptm-header[aria-expanded="true"] .ptm-chevron { transform: rotate(90deg); }
    .ptm-body { padding: 0 0 12px 2px; display: flex; flex-direction: column; gap: 6px; }
    .ptm-body[hidden] { display: none; }
    .scm-delivery-primary-btn[hidden] { display: none; }
    #scm-close-btn { background: #111; color: #fff; border-color: rgba(0,0,0,.18); }
    #scm-close-btn:hover { background: #2d2d2d; }
    .ptm-helper { font-size: 12px; color: #777; margin: 0; line-height: 1.4; }
    .ptm-divider { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #bbb; padding: 6px 0 2px; }
    .ptm-manual-group { display: flex; flex-direction: column; gap: 4px; }
    /* sent state — primary email buttons de-emphasized; still clickable */
    .scm-phase-actions { margin-top: 10px; }
    /* Multi-recipient send block */
    .scm-recipients-block { margin-bottom: 12px; }
    .scm-recipients-field { margin-bottom: 6px; }
    .scm-recipients-label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #aaa; margin-bottom: 3px; }
    .scm-recipients-input { width: 100%; padding: 7px 9px; border: 1px solid #d1d5db; border-radius: 5px; font-size: 13px; box-sizing: border-box; font-family: inherit; color: #111; }
    .scm-recipients-input:focus { outline: none; border-color: #94a3b8; }
    .scm-recipients-hint { font-size: 11px; color: #aaa; margin: 0 0 10px; font-style: italic; }
    .scm-recipients-feedback { font-size: 12px; min-height: 14px; margin-top: 6px; }
    .scm-recipients-feedback.ok  { color: #166534; }
    .scm-recipients-feedback.err { color: #991b1b; }
    /* J1e — Edit Job modal */
    #scm-phase-admin-state .scm-warn-block { margin-bottom: 14px; padding: 12px 14px; }
    #scm-phase-admin-state .jd-unlock-fields { margin-bottom: 10px; }
    #scm-phase-admin-state .scm-gate-actions { gap: 10px; margin-top: 16px; }
    #scm-admin-cancel-btn { min-height: 44px; padding: 10px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; }
    #edit-job-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
    #edit-job-modal .scm-box,
    #confirm-modal .scm-box { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
    /* J1e — Edit Job modal form */
    .edit-field { margin-bottom: 8px; }
    .edit-more-section {
      margin-bottom: 14px;
      border-top: 1px solid #f0f0f3;
      padding-top: 10px;
    }
    #edit-job-modal input[type="text"],
    #edit-job-modal select {
      width: 100%;
      padding: 8px 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
      font-size: 14px;
    }
    #edit-tail-input,
    #edit-wo-number-input,
    #edit-hobbs-input,
    #edit-compression-input { font-family: monospace; }
    #edit-job-type-input { background: #fff; }
    #edit-more-body { padding-top: 10px; }
    #edit-job-note {
      font-size: 11px;
      color: #888;
      margin-bottom: 10px;
      line-height: 1.4;
      text-align: center;
    }
    /* CM — in-app confirm modal */
    #confirm-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
