.template-personalization,.template-rules{display:grid;gap:14px;font-size:14px}.template-rules{margin-top:24px;border-top:1px solid #e5e5ea;padding-top:20px}.template-rules summary{cursor:pointer;font-weight:600}.template-rules h3{margin:20px 0 8px;font-size:16px;font-weight:600}.template-rules p{color:#626268;line-height:1.7}.template-personalization fieldset,.template-rules fieldset{min-width:0;border:1px solid #e5e5ea;border-radius:12px;padding:12px;margin-block:12px}.template-personalization label,.template-rules label{display:grid;gap:6px;margin-block:8px}.template-personalization textarea,.template-rules input:not([type=checkbox]),.template-rules select{min-width:0;width:100%;border:1px solid #e5e5ea;border-radius:8px;padding:8px;background:white;color:#1d1d1f}.template-rules .template-rule-row{display:flex;gap:10px;align-items:center;justify-content:space-between}.template-rule-row span{overflow-wrap:anywhere}.template-rule-row>select{max-width:140px}.template-rule-row>input[type=color]{width:48px;flex-shrink:0}.template-rules .template-rule-check{display:flex;align-items:center;gap:8px}.template-rules button,.template-theme-choices button{display:inline-flex;align-items:center;gap:8px;padding:10px;border:1px solid #e5e5ea;border-radius:8px}.template-rules button:disabled{opacity:.5}.template-theme-choices{display:flex;flex-wrap:wrap;gap:8px}.template-theme-picker{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:14px}.template-theme-heading{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.template-theme-choices button{background:#fff;color:#1d1d1f}.template-theme-choices button:hover:not(:disabled){border-color:var(--brand-primary)}.template-theme-check{flex-shrink:0;color:var(--brand-primary)}.template-theme-choices button[aria-pressed=true]{border-color:var(--brand-primary);background:var(--brand-soft)}.template-theme-swatches{display:flex;gap:3px}.template-theme-swatches i{width:14px;height:14px;border:1px solid #ddd;border-radius:50%}.template-personalization{margin-bottom:16px}.editor-properties[data-layout=panel]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0;margin:16px 0;padding:16px;border:1px solid #e5e5ea;border-radius:14px;background:#fff;color:#1d1d1f;overflow:visible;align-items:stretch;font-size:13px}.editor-properties[data-layout=panel] .canvas-inspector-font,.editor-properties[data-layout=panel] .canvas-inspector-text{grid-column:1/-1;width:100%;min-width:0}.editor-properties[data-layout=panel] .canvas-inspector-font,.editor-properties[data-layout=panel] label{display:flex;flex-direction:column;gap:7px;margin:0;min-width:0;color:#626268;font-size:13px}.editor-properties[data-layout=panel] .canvas-inspector-property{min-width:0}.editor-properties[data-layout=panel] :is(input,select,textarea){box-sizing:border-box;width:100%;min-width:0;min-height:40px;padding:8px 10px;border:1px solid #e5e5ea;border-radius:8px;background:#fff;color:#1d1d1f;font:inherit;accent-color:var(--brand-primary)}.editor-properties[data-layout=panel] textarea{resize:vertical;min-height:90px;line-height:1.6}.editor-properties[data-layout=panel] input[type=range]{padding:0;border:0}.editor-properties[data-layout=panel] input[type=color]{height:40px;padding:4px;cursor:pointer}.editor-properties[data-layout=panel] :is(.editor-icon,.editor-format){display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:40px;height:auto;min-width:0;padding:9px 10px;border:1px solid #e5e5ea;border-radius:8px;background:#fff;color:#626268;font:inherit;white-space:normal;cursor:pointer}.editor-properties[data-layout=panel] :is(.editor-icon,.editor-format)>svg{width:18px;height:18px;flex-shrink:0}.editor-properties[data-layout=panel] button:hover:not(:disabled){background:#f5f4f0;color:#1d1d1f}.editor-properties[data-layout=panel] button[aria-pressed=true]{background:var(--brand-soft);border-color:var(--brand-primary);color:var(--brand-primary)}.editor-properties[data-layout=panel] :disabled{opacity:.5;cursor:not-allowed}.editor-properties[data-layout=panel] :focus-visible{outline:2px solid var(--brand-primary);outline-offset:3px}.template-manager .canvas-insert-panel{margin-top:18px;padding:0;border:0}.template-manager .canvas-insert-panel .editor-secondary{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:10px 14px;border:1px solid #e5e5ea;border-radius:10px;background:#fff;color:var(--brand-primary);font-weight:600}.template-manager .canvas-insert-panel .editor-wide{width:100%}.template-manager .canvas-insert-panel .editor-stickers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.template-manager .canvas-insert-panel .editor-stickers button{display:grid;place-items:center;min-width:0;min-height:48px;padding:6px;border:1px solid #e5e5ea;border-radius:10px;background:#fff;font-size:26px;line-height:1.2}.template-manager .canvas-insert-panel button:hover:not(:disabled){background:#f5f0fa;border-color:#bba4d0}.template-manager .canvas-insert-panel :disabled{opacity:.5;cursor:not-allowed}.template-manager .canvas-insert-panel .editor-note{color:#626268;font-size:13px;line-height:1.6}@media (max-width:480px){.editor-properties[data-layout=panel]{padding:12px}.template-manager .canvas-insert-panel .editor-stickers{grid-template-columns:repeat(4,minmax(0,1fr))}}.template-theme-artwork{width:24px;height:34px;object-fit:cover;border:1px solid #e5e5ea;border-radius:3px}.canvas-motion-control{min-width:130px}.canvas-motion-control button:focus{border-color:var(--brand-primary);--tw-ring-color:var(--brand-primary)}