/* email/module.css: the Email templates list, the template editor and the composer (the round 4 audit, 2026-10-26). */

/* One block, the categories as headings inside it: Name, the subject as it
   will read, how often it has gone out, then Use and More. */
.et-cath{padding:7px 16px;background:var(--subtle-bg);border-bottom:1px solid var(--line);font-size:12px;font-weight:700;color:var(--ink);}
html[data-theme="harbour"] .et-cath{background:#F4F7FC;border-bottom-color:#E4ECF7;}
.row.et-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1.8fr) 110px auto;cursor:default;}
.row.et-row > div{min-width:0;font-size:13px;}
.et-name b, .et-name small, .et-subject{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.et-name b{font-weight:700;}
.et-m-subject{display:none !important;font-size:12px;color:var(--ink-soft);}
.et-subject{color:var(--ink);}
.et-uses{font-size:12px;color:var(--ink-soft);white-space:nowrap;}
.et-acts{display:flex;gap:6px;justify-content:flex-end;}
.et-more{min-width:34px;font-weight:700;}
@media (max-width:760px){
  .row.et-row{grid-template-columns:minmax(0,1fr) auto !important;grid-template-areas:"name acts" "uses acts";gap:2px 10px;}
  .et-name{grid-area:name;}
  .et-m-subject{display:block !important;}
  .et-subject{display:none !important;}
  .et-uses{grid-area:uses;}
  .et-acts{grid-area:acts;align-self:center;}
}

/* The editor: the fields beside the email as it will read, stacked on a phone. */
.et-edit{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:start;}
.et-edit-preview{border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);padding:12px 14px;min-width:0;position:sticky;top:0;}
.et-pv-label{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);margin-bottom:6px;}
.et-pv-subject{font-weight:700;font-size:14px;margin-bottom:8px;overflow-wrap:anywhere;}
.et-pv-body{white-space:pre-wrap;font-size:13px;line-height:1.5;max-height:46vh;overflow-y:auto;overflow-wrap:anywhere;}
.et-vars summary, .ce-preview-fold summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--blue);margin:2px 0 8px;}
@media (max-width:760px){
  .et-edit{grid-template-columns:1fr;gap:12px;}
  .et-edit-preview{position:static;}
}

/* The composer: the person as a chip with the address beside it, the preview folded. */
.ce-to{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0;}
.ce-to-chip{display:inline-flex;align-items:center;max-width:100%;padding:4px 12px;border-radius:999px;border:1px solid var(--line-strong);background:var(--paper-raised);
  font-size:13px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ce-to-addr{font-size:12px;color:var(--ink-soft);overflow-wrap:anywhere;}
.ce-preview{white-space:pre-wrap;font-size:13px;max-height:26vh;overflow-y:auto;}
.ce-preview-fold{margin-top:4px;}
/* The customer-relations CC: a tick box under the message. */
.ce-cc{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:13.5px;color:var(--ink);overflow-wrap:anywhere;}
.ce-cc input{flex:none;}

/* Variable chips (2026-11-15): what the contact reads, or the details' names. */
.ce-showrow{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:2px 0 10px;}
.ce-show{flex:0 0 auto;}
.ce-show button{flex:0 0 auto;padding:6px 12px;min-height:34px;}
.ce-signoff{border:1px solid var(--line);border-radius:var(--radius);background:var(--paper-raised);padding:10px 12px;margin-top:4px;}
.ce-signoff-h{font-size:11.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:4px;}
.ce-signoff-t{white-space:pre-wrap;font-size:14px;line-height:1.5;}
.sig-preview-wrap{margin-top:12px;}
.sig-preview{border:1px solid var(--line);border-radius:var(--radius);background:var(--paper-raised);padding:12px 14px;font-size:14.5px;line-height:1.55;}
.sig-preview p{margin:0;}
@media (max-width:820px){ .ce-show{width:100%;} .ce-show button{flex:1 1 0;min-height:44px;} }
