.sms-template-library{background:white;border:1px solid #dce8e5;border-radius:18px;padding:24px;margin-bottom:24px;min-width:0}.sms-template-library header h2{margin:8px 0}.sms-kicker{color:#167b72;font-size:12px;letter-spacing:2px;font-weight:700}.sms-template-library label{display:block;font-weight:600;margin:16px 0 8px}.sms-template-library textarea,.sms-template-library select{width:100%;max-width:100%;font-size:16px;box-sizing:border-box}.sms-template-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:24px}.sms-template-heading span,.sms-template-help,.sms-template-count{font-size:13px;color:#557069}.sms-template-tokens,.sms-template-actions{display:flex;flex-wrap:wrap;gap:8px}.sms-template-tokens button{font-size:12px;padding:8px 10px;min-height:40px}.sms-template-preview{background:#e5f6f2;border-radius:16px 16px 4px 16px;padding:18px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;color:#163d36}.sms-template-note{margin-top:24px;padding-top:20px;border-top:1px solid #dce8e5;font-size:13px;line-height:1.6}.sms-template-actions button{min-height:44px}@media(max-width:700px){.sms-template-library{padding:16px}.sms-template-heading{display:block}.sms-template-actions>*{flex:1}.sms-template-library textarea{min-height:180px}}

.sms-catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sms-catalog-grid article{border:1px solid #dce8e5;border-radius:14px;padding:20px;min-width:0}.sms-catalog-grid h4{margin:0 0 12px}.sms-catalog-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;color:#35534d}.sms-template-catalog>section{margin:28px 0}.sms-catalog-grid button{min-height:44px}#sms-template-editor{scroll-margin-top:90px}@media(max-width:800px){.sms-catalog-grid{grid-template-columns:1fr}}

.sms-editor-dialog{width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;border:1px solid #dce8e5;border-radius:20px;padding:24px;background:#fff;color:#173c35;overflow-y:auto;overscroll-behavior:contain}.sms-editor-dialog::backdrop{background:rgba(0,0,0,.65)}.sms-editor-close{display:block;margin-left:auto;min-height:44px}.sms-editor-dialog .sms-template-heading{margin-top:8px}.sms-editor-dialog textarea{font-size:16px}.sms-editor-dialog .sms-template-actions{position:sticky;bottom:-24px;background:white;padding:16px 0}@media(max-width:600px){.sms-editor-dialog{padding:16px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.sms-editor-dialog .sms-template-actions{bottom:-16px}}

.sms-editor-dialog textarea{width:100%;min-width:0;box-sizing:border-box}.sms-editor-dialog .sms-template-tokens button{overflow-wrap:anywhere;max-width:100%}.sms-editor-dialog .sms-template-heading{flex-wrap:wrap}@media(max-width:600px){.sms-editor-dialog{max-width:calc(100vw - 16px);margin:auto;padding:16px 16px max(16px,env(safe-area-inset-bottom));}.sms-editor-dialog textarea{min-height:170px;line-height:1.5}.sms-editor-dialog .sms-template-heading h3{font-size:22px}.sms-editor-dialog .sms-template-actions{gap:8px}.sms-editor-dialog .sms-template-actions button{min-height:48px;font-size:16px}.sms-editor-dialog .sms-template-tokens{gap:6px}.sms-editor-dialog .sms-template-preview{padding:14px}}
