.email-templates { color: var(--crm-palette-text, #cdcdcd); background: var(--crm-palette-workspace, #18191c); font: 400 16px system-ui; }
.email-templates [hidden] { display: none !important; }
.email-templates-toolbar { display: flex; flex-wrap: wrap; }
.email-templates button, .email-templates label { box-sizing: border-box; min-height: var(--crm-menu-row-height, 55px); padding: 12px 16px; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--crm-divider-color, #383a3d66); border-radius: 0; font: inherit; }
.email-templates button { cursor: pointer; text-align: left; }
.email-templates-toolbar button { flex: 1; }
.email-templates [data-list] button, .email-templates [data-picker] > button, .email-templates form > button { display: block; width: 100%; }
.email-templates [data-list] button { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding-top: 8px; padding-bottom: 8px; line-height: 20px; overflow-wrap: anywhere; }
.email-templates small, .email-templates [role=status] { font: 400 14px/17px system-ui; color: var(--crm-palette-muted, #afafaf); }
.email-templates h2 { font: 500 20px system-ui; margin: 0; padding: 16px; }
.email-templates label { display: flex; align-items: center; gap: 16px; }
.email-templates input, .email-templates select { min-width: 0; flex: 1; background: transparent; border: 0; border-radius: 0; color: inherit; font: inherit; }
.email-templates input::placeholder { color: var(--crm-palette-muted, #afafaf); }
.email-templates input:focus::placeholder { color: transparent; }
.email-templates label:focus-within { background: var(--crm-palette-selection, #383a3d); }
.email-templates button:hover { background: var(--crm-palette-hover, #383a3d73); }
.email-templates :focus-visible { outline: 1px solid var(--crm-palette-text, #cdcdcd); outline-offset: -2px; }
.email-templates button:disabled { cursor: default; opacity: .6; }
.email-templates form > button { color: var(--crm-palette-lime, #d6fa55); }
.email-templates [role=status] { margin: 0; padding: 12px 16px; }
/* The host composer also styles inputs. Keep template fields on the CRM row grid. */
.email-templates input, .email-templates select { width: auto; min-height: 0; padding: 0; line-height: 24px; box-shadow: none; }
.email-templates input:focus-visible, .email-templates select:focus-visible, .email-templates button:focus-visible { outline: 1px solid var(--crm-palette-text, #cdcdcd); outline-offset: -2px; }
.email-templates h2 { min-height: calc(var(--crm-menu-row-height, 55px) * 2); box-sizing: border-box; display: flex; align-items: center; }
