.message-templates-dialog{width:min(94vw,680px);max-height:92dvh;padding:18px;background:#fff}
.templates-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.templates-heading .mini-back{min-height:44px}
.templates-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 20px}
.templates-choices .secondary{min-width:0;min-height:48px;padding:10px;white-space:normal;line-height:1.35;text-align:left}
.templates-choices [aria-pressed=true]{background:var(--accent);border:2px solid var(--ink)}
.message-templates-dialog #template-text-label{font-size:16px;margin:0}
.message-templates-dialog #template-hint{margin:6px 0}
.message-templates-dialog #template-text{display:block;height:260px;min-height:170px;margin:10px 0 12px;font-size:16px}
.message-templates-dialog #template-copy{width:100%}
.message-templates-dialog #template-status{min-height:20px;margin:10px 0 0;font-size:14px}
@media(max-width:480px){.message-templates-dialog{width:100%;max-width:100%;max-height:100dvh;padding:14px;border-radius:12px}.message-templates-dialog #template-text{height:30dvh}.templates-choices{margin-bottom:14px}}
