.lead-template-toolbar { gap:4px; }
.message-template-tabs { display:flex; align-items:center; gap:4px; margin-right:12px; }
.message-template-tabs button { height:32px; padding:0 10px; border:1px solid #dde3e6; border-radius:4px; background:#fff; color:#202628; font:inherit; font-size:13px; line-height:18px; cursor:pointer; }
.message-template-tabs button[aria-selected="true"],
html body .app .dailroom-toolbar:not(#dailroom-toolbar-specificity) .message-template-tabs button[aria-selected="true"],
html body .app .top-header[data-toolbar-standard="true"]:not(#dailroom-toolbar-specificity) #contextualHeaderTools .message-template-tabs button[aria-selected="true"] { background:var(--brand-selected, #eff8f5) !important; border-color:var(--brand-primary, #008574) !important; }
.message-template-tabs button:hover { background:var(--brand-hover, #f7fbfa); }
.message-template-tabs button:focus-visible, .message-template-tools button:focus-visible, .sms-template-dialog :is(button,input,textarea):focus-visible { outline:2px solid #008574; outline-offset:2px; }
.lead-template-table th.message-template-tools-column { width:88px; }
.message-template-tools { display:flex; align-items:center; gap:4px; }
.message-template-tools button, .sms-template-dialog header button { display:inline-flex; align-items:center; justify-content:center; width:32px; min-width:32px; height:32px; padding:0; border-radius:4px; }
.message-template-tools img, .sms-template-dialog header img { width:16px; height:16px; }
.message-template-tools .is-danger { color:#b42318; }
.message-template-tools .is-danger img { filter:invert(18%) sepia(90%) saturate(2600%) hue-rotate(350deg); }
.message-template-tools .is-danger:hover:not(:disabled) { background:#fef3f2; border-color:#fecdca; }
.message-template-tools button:disabled { background:#f5f6f7; color:#929ba2; cursor:default; }
.message-template-tools button:disabled img { filter:grayscale(1); opacity:.45; }
.sms-template-table th:nth-child(1) { width:210px; }
.sms-template-table th:nth-child(2) { width:auto; }
.sms-template-table th:nth-child(3) { width:60px; }
.sms-template-table tbody tr { cursor:default; }
.sms-template-table .sms-template-message { white-space:pre-wrap; overflow-wrap:anywhere; vertical-align:top; }
.sms-template-dialog { box-sizing:border-box; width:min(560px, calc(100% - 24px)); max-height:calc(100dvh - 24px); overflow:auto; margin:auto; padding:16px; border:1px solid #dde3e6; border-radius:4px; background:#fff; color:#202628; font-size:13px; line-height:18px; box-shadow:none; }
.sms-template-dialog::backdrop { background:rgb(32 38 40 / 30%); }
.sms-template-dialog form { display:flex; flex-direction:column; gap:12px; }
.sms-template-dialog header, .sms-template-dialog footer { display:flex; align-items:center; gap:8px; }
.sms-template-dialog header { justify-content:space-between; }
.sms-template-dialog h2 { font-size:16px; line-height:22px; margin:0; }
.sms-template-dialog label { display:flex; flex-direction:column; gap:4px; min-width:0; }
.sms-template-dialog input, .sms-template-dialog textarea { box-sizing:border-box; width:100%; padding:6px 10px; border:1px solid #dde3e6; border-radius:4px; background:#fff; color:#202628; font:inherit; }
.sms-template-dialog input { height:32px; }
.sms-template-dialog textarea { min-height:160px; resize:vertical; }
.sms-template-dialog footer { justify-content:flex-end; }
.sms-template-dialog footer button { height:32px; padding:0 10px; border-radius:4px; }
.sms-template-error { margin:0; color:#b42318; overflow-wrap:anywhere; }
.sms-template-error:empty { display:none; }
.sms-template-picker { display:flex; align-items:center; gap:4px; min-width:0; }
.sms-template-picker select { flex:1; min-width:0; max-width:100%; height:32px; border-radius:4px; }
.sms-template-picker-error { color:#b42318; font-size:13px; line-height:18px; }
@media (max-width:600px) { .sms-template-table { min-width:560px; } .sms-template-table th:nth-child(1) { width:140px; } }
