.wa-preview{background:#e8e1d6;border-radius:16px;padding:16px;min-height:120px}.wa-preview-label{font-size:11.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--whap-text-muted);margin:0 0 8px}.wa-bubble{background:#d9fdd3;color:#111b21;border-radius:10px 10px 2px 10px;padding:8px 10px 6px;max-width:100%;box-shadow:0 1px 1px rgba(0,0,0,.13);font-size:14.5px;line-height:1.4;overflow-wrap:anywhere;white-space:pre-wrap}.wa-bubble-h{font-weight:800;margin-bottom:4px}.wa-bubble-f{font-size:12.5px;color:#4a5b64;margin-top:6px}.wa-bubble-t{font-size:11px;text-align:right;color:#4a5b64;margin-top:2px}.wa-btns{display:grid;grid-gap:4px;gap:4px;margin-top:4px}.wa-btn{background:#fff;border-radius:8px;text-align:center;padding:9px 10px;font-weight:700;font-size:14px;color:#0369a1;box-shadow:0 1px 1px rgba(0,0,0,.13);overflow-wrap:anywhere}.wa-var{background:rgba(21,128,61,.2);border-radius:4px;padding:0 3px}.wa-var.empty{background:#fef3c7;color:#78350f}.tpl-backdrop{position:fixed;inset:0;z-index:60;background:rgba(19,28,49,.55);display:grid;place-items:center;padding:12px}.tpl-dialog{background:var(--whap-surface);border-radius:var(--whap-radius-lg);box-shadow:var(--whap-shadow-lg);width:min(720px,100%);max-height:calc(100dvh - 24px);overflow-y:auto;padding:22px;outline:none}.tpl-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.tpl-dialog-head h2{font-size:19px;margin:0}.tpl-close{flex-shrink:0;width:44px;height:44px;margin:-8px -8px 0 0;border:none;border-radius:12px;background:transparent;color:var(--whap-text);font-size:22px;line-height:1}.tpl-close:hover{background:var(--whap-surface-hover)}.tpl-sheet-grab{display:none}@media (max-width:899px){.tpl-backdrop-sheet{place-items:end stretch;padding:0}.tpl-dialog-sheet{width:100%;max-height:calc(100dvh - 40px - env(safe-area-inset-top));border-radius:var(--whap-radius-lg) var(--whap-radius-lg) 0 0;padding:6px 16px calc(22px + env(safe-area-inset-bottom));overscroll-behavior:contain;transition:transform .22s var(--whap-ease-out)}.tpl-sheet-grab{display:block;position:-webkit-sticky;position:sticky;top:-6px;z-index:1;height:22px;margin:-6px -16px 0;background:var(--whap-surface);touch-action:none}.tpl-sheet-grab:before{content:"";display:block;width:42px;height:5px;margin:9px auto 0;border-radius:var(--whap-radius-pill);background:var(--whap-border)}.tpl-dialog-sheet .tpl-dialog-head h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}@media (max-width:899px) and (prefers-reduced-motion:no-preference){.tpl-dialog-sheet{animation:tpl-sheet-up .26s var(--whap-ease-out) backwards}@keyframes tpl-sheet-up{0%{transform:translateY(40px);opacity:.4}}}.tpl-close:focus-visible,.tpl-result:focus-visible,.tpl-seg button:focus-visible{outline:2px solid var(--whap-focus);outline-offset:2px}.tpl-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));grid-gap:18px;gap:18px;align-items:start}.tpl-field{display:grid;grid-gap:6px;gap:6px;margin-bottom:14px}.tpl-field>label,.tpl-legend{font-size:13.5px;font-weight:800}.tpl-hint{font-size:12.5px;color:var(--whap-text-muted);line-height:1.45;margin:0}.tpl-error{color:var(--whap-danger)}.tpl-error,.tpl-warn{font-size:13px;line-height:1.45;margin:0}.tpl-warn{color:#78350f;background:#fef3c7;border-radius:10px;padding:8px 12px}.tpl-callout{background:var(--whap-danger-soft);color:#7f1d1d}.tpl-callout,.tpl-info{border-radius:12px;padding:10px 14px;font-size:13.5px;line-height:1.5}.tpl-info{background:#e0f2fe;color:#0c4a6e}.tpl-seg{display:inline-flex;border:1px solid var(--whap-border);border-radius:12px;overflow:hidden}.tpl-seg button{min-height:44px;padding:8px 14px;border:none;background:transparent;font-weight:700;font-size:14px;color:var(--whap-text-muted)}.tpl-seg button[aria-pressed=true]{background:var(--whap-navy);color:#fff}.tpl-result{display:flex;justify-content:space-between;gap:10px;width:100%;min-height:44px;text-align:left;padding:8px 12px;border:1px solid var(--whap-border);border-radius:12px;background:var(--whap-surface);color:var(--whap-text)}.tpl-result[aria-pressed=true]{border-color:var(--whap-green-dark);background:var(--whap-green-soft)}.tpl-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:6px}.whap-app .tpl-table{display:table;overflow:visible;border-collapse:collapse}.tpl-name{font-weight:800;overflow-wrap:anywhere}.tpl-row-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}@media (max-width:719px){.whap-app .tpl-table,.whap-app .tpl-table tbody,.whap-app .tpl-table td,.whap-app .tpl-table tr{display:block;overflow:visible}.whap-app .tpl-table thead{position:absolute;left:-9999px}.whap-app .tpl-table tbody tr{border-bottom:1px solid var(--whap-border);padding:10px 0}.whap-app .tpl-table tbody td{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:5px 4px;text-align:right}.whap-app .tpl-table tbody td:before{content:attr(data-label);font-size:12px;font-weight:800;color:var(--whap-text-muted);text-align:left;flex-shrink:0}.whap-app .tpl-table tbody td.tpl-cell-block{display:block;text-align:left}.whap-app .tpl-table tbody td.tpl-cell-block:before{display:none}.tpl-row-actions{justify-content:flex-start}}