.whatsapp-preset-page{padding-bottom:60px}
.whatsapp-preset-hero{background:radial-gradient(circle at top right,rgba(37,211,102,.16),transparent 34%),linear-gradient(135deg,#f4fff8,#fff)}
.whatsapp-preset-summary{margin:18px 0}
.whatsapp-preset-summary article{position:relative;display:grid;gap:5px;padding:18px 18px 18px 58px;border:1px solid rgba(15,127,85,.13);border-radius:22px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.05)}
.whatsapp-preset-summary article>span{position:absolute;left:16px;top:16px;width:30px;height:30px;display:grid;place-items:center;border-radius:11px;background:#087f5b;color:#fff;font-weight:1000}
.whatsapp-preset-summary strong{color:#0f172a;font-size:1rem}
.whatsapp-preset-summary small{color:#64748b;line-height:1.45}
.preset-install-warning{display:grid;gap:5px;margin:18px 0;padding:16px 18px;border:1px solid #f59e0b;border-radius:18px;background:#fffbeb;color:#92400e}
.whatsapp-preset-layout{display:grid;grid-template-columns:minmax(300px,.78fr) minmax(520px,1.42fr);gap:20px;align-items:start}
.whatsapp-preset-library,.whatsapp-preset-editor{border-radius:26px}
.whatsapp-preset-library{position:sticky;top:18px}
.preset-count{min-width:34px;height:34px;padding:0 10px;display:grid;place-items:center;border-radius:12px;background:#ecfdf3;color:#087f5b;font-weight:1000}
.preset-library-filters{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:9px;margin:14px 0}
.preset-library-filters input,.preset-library-filters select{width:100%}
.whatsapp-preset-list{display:grid;gap:10px;max-height:720px;overflow:auto;padding-right:3px}
.preset-list-card{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;text-align:left;cursor:pointer;transition:.16s ease}
.preset-list-card:hover,.preset-list-card:focus-visible{border-color:rgba(8,127,91,.4);box-shadow:0 10px 24px rgba(15,23,42,.08);outline:none}
.preset-list-card.is-selected{border-color:#087f5b;background:#f2fff8;box-shadow:0 12px 28px rgba(8,127,91,.12)}
.preset-list-card.is-inactive{opacity:.66}
.preset-list-copy{min-width:0;display:grid;gap:4px}
.preset-list-copy strong{color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.preset-list-copy small{color:#64748b;line-height:1.35}
.preset-list-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:3px}
.preset-mini-badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.68rem;font-weight:950}
.preset-mini-badge.default{background:#dcfce7;color:#166534}
.preset-mini-badge.inactive{background:#fee2e2;color:#991b1b}
.preset-list-arrow{align-self:center;color:#087f5b;font-size:1.1rem;font-weight:1000}
.preset-empty{padding:26px 16px;border:1px dashed #cbd5e1;border-radius:18px;color:#64748b;text-align:center}
.preset-editor-state{padding:7px 11px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.74rem;font-weight:1000}
.preset-switch-row{display:flex;flex-wrap:wrap;gap:12px;padding:14px;border:1px solid #e2e8f0;border-radius:17px;background:#f8fafc}
.preset-switch-row .check{margin:0}
.preset-variable-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid rgba(8,127,91,.14);border-radius:18px;background:#f5fff9}
.preset-variable-panel .eyebrow{margin:0 0 2px}
.preset-variable-grid{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.preset-variable-grid button{border:1px solid rgba(8,127,91,.22);border-radius:999px;padding:7px 10px;background:#fff;color:#087f5b;font-weight:900;cursor:pointer}
.preset-variable-grid button:hover,.preset-variable-grid button:focus-visible{background:#087f5b;color:#fff;outline:none}
#whatsappPresetMessage{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;line-height:1.55;resize:vertical}
.preset-editor-meta{display:flex;justify-content:space-between;gap:12px;color:#64748b}
.whatsapp-preview-card{overflow:hidden;border:1px solid #d1fae5;border-radius:22px;background:#eaf7ee}
.whatsapp-preview-head{display:flex;justify-content:space-between;gap:12px;padding:12px 15px;background:#075e54;color:#fff}
.whatsapp-preview-head span{font-weight:1000}
.whatsapp-preview-head small{opacity:.82}
.whatsapp-preview-bubble{width:min(92%,660px);margin:18px;padding:14px 16px;border-radius:6px 18px 18px 18px;background:#fff;color:#17212b;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;box-shadow:0 8px 20px rgba(15,23,42,.10)}
.whatsapp-preview-bubble strong{font-weight:1000}
.preset-editor-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:4px}
@media(max-width:1050px){.whatsapp-preset-layout{grid-template-columns:1fr}.whatsapp-preset-library{position:static}.whatsapp-preset-list{max-height:420px}}
@media(max-width:720px){.whatsapp-preset-summary{grid-template-columns:1fr!important}.preset-library-filters{grid-template-columns:1fr}.preset-variable-panel{display:grid}.preset-variable-grid{justify-content:flex-start}.preset-editor-meta,.whatsapp-preview-head{display:grid}.whatsapp-preview-bubble{margin:12px;width:calc(100% - 24px)}.preset-editor-actions .btn{width:100%}}
