.tpl-widget.is-inline{min-height:min(500px,100dvh)}.tpl-widget.is-expanded{box-sizing:border-box;display:flex;height:var(--templater-host-height,100dvh);min-height:0;flex-direction:column;overflow:hidden;padding:calc(.75rem + var(--templater-safe-top, 0px)) calc(.75rem + var(--templater-safe-right, 0px)) calc(.75rem + var(--templater-safe-bottom, 0px)) calc(.75rem + var(--templater-safe-left, 0px))}.tpl-widget.is-expanded .tpl-editor-shell,.tpl-widget.is-expanded .tpl-widget-editor-pane,.tpl-widget.is-expanded .tpl-widget-grid{min-height:0}.tpl-widget.is-expanded .tpl-widget-grid{flex:1;overflow:hidden}.tpl-widget.is-expanded .tpl-editor-shell,.tpl-widget.is-expanded .tpl-widget-editor-pane{display:flex;flex-direction:column}.tpl-widget.is-expanded .tpl-editor-shell{flex:1}.tpl-widget.is-expanded .tpl-editor-viewport{min-height:0;flex:1}.tpl-widget.is-expanded .tpl-editor-canvas{height:100%;max-height:none;overflow-y:auto}.tpl-widget.is-expanded .tpl-widget-side-pane{min-height:0;overflow-y:auto}.tpl-editor-canvas{background:#eef1f5;padding:1rem .5rem}.tpl-editor-content .tiptap{background:#fff;max-width:780px;margin:0 auto;min-height:420px;padding:1.75rem 1.25rem;border-radius:6px;box-shadow:0 1px 2px rgba(15,23,42,.08),0 12px 32px rgba(15,23,42,.1);outline:none;font-family:Georgia,Times New Roman,serif;line-height:1.6;color:#1e293b;overflow-wrap:break-word}@media (min-width:768px){.tpl-editor-canvas{padding:1.75rem 1rem}.tpl-editor-content .tiptap{padding:3rem 3.25rem;min-height:620px}}@media (min-width:1024px){.tpl-editor-canvas{max-height:calc(100vh - 11rem);overflow-y:auto}}.tpl-bubble{gap:2px;background:#0f172a;color:#e2e8f0;border-radius:8px;padding:4px;box-shadow:0 8px 24px rgba(15,23,42,.35)}.tpl-bubble,.tpl-bubble button{display:flex;align-items:center}.tpl-bubble button{gap:4px;border-radius:6px;padding:4px 7px;font-size:12px;line-height:1;color:inherit}.tpl-bubble button:hover{background:hsla(0,0%,100%,.12)}.tpl-bubble button.is-active{background:hsla(0,0%,100%,.22)}.tpl-bubble .tpl-bubble-primary{background:#3b82f6;font-weight:600}.tpl-bubble .tpl-bubble-primary:hover{background:#2563eb}.tpl-bubble-sep{width:1px;height:16px;background:hsla(0,0%,100%,.2);margin:0 3px}.tpl-editor-content .tiptap h1{font-size:1.5rem;font-weight:700;margin:0 0 1rem}.tpl-editor-content .tiptap h2{font-size:1.2rem;font-weight:700;margin:1rem 0 .5rem}.tpl-editor-content .tiptap h3{font-size:1.05rem;font-weight:600;margin:.75rem 0 .4rem}.tpl-editor-content .tiptap p{margin:0 0 .5rem}.tpl-editor-content .tiptap ol,.tpl-editor-content .tiptap ul{padding-left:1.5rem;margin:0 0 .5rem}.tpl-editor-content .tiptap ul{list-style:disc outside}.tpl-editor-content .tiptap ol{list-style:decimal outside}.tpl-editor-content .tiptap ul ul{list-style:circle outside}.tpl-editor-content .tiptap li{list-style:inherit}.tpl-editor-content .tiptap li>p{margin:0 0 .15rem}.tpl-editor-content .tiptap blockquote{border-left:3px solid #cbd5e1;padding-left:.75rem;color:#64748b;margin:.5rem 0}.tpl-editor-content .tpl-var{background:rgba(59,130,246,.14);border-bottom:1.5px dashed rgba(59,130,246,.7);border-radius:3px;padding:0 2px;cursor:pointer;transition:background .12s ease}.tpl-editor-content .tpl-var:hover{background:rgba(59,130,246,.26)}.tpl-editor-content .tpl-var:after{content:" " attr(data-label);font-size:.66em;color:#2563eb;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:600;vertical-align:super;letter-spacing:.01em}.tpl-editor-content tr.tpl-loop-row .tpl-var:after{content:none}.tpl-editor-content .tpl-loop{border:1.5px dashed rgba(16,185,129,.6);border-radius:6px;padding:.6rem .75rem .4rem;margin:.5rem 0;position:relative}.tpl-editor-content .tpl-loop:before{content:"↻ Repeats for each item in: " attr(data-label);display:block;font-size:.72rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:600;color:#059669;margin-bottom:.25rem}.tpl-editor-content .tpl-conditional{border:1.5px dashed rgba(245,158,11,.6);border-radius:6px;padding:.6rem .75rem .4rem;margin:.5rem 0}.tpl-editor-content .tpl-conditional:before{content:attr(data-label);display:block;font-size:.72rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:600;color:#b45309;margin-bottom:.25rem}.tpl-editor-content table{border-collapse:collapse;width:100%;margin:.5rem 0}.tpl-editor-content td,.tpl-editor-content th{border:1px solid #cbd5e1;padding:4px 8px;min-width:3rem}.tpl-editor-content th{background:#f1f5f9}.tpl-editor-content .selectedCell{background:rgba(59,130,246,.08)}.tpl-editor-content tr.tpl-loop-row>td,.tpl-editor-content tr.tpl-loop-row>th{background:rgba(16,185,129,.07);border-top:1.5px dashed rgba(16,185,129,.55);border-bottom:1.5px dashed rgba(16,185,129,.55)}.tpl-editor-content tr.tpl-loop-row>td:first-child,.tpl-editor-content tr.tpl-loop-row>th:first-child{position:relative}.tpl-editor-content tr.tpl-loop-row>td:first-child:before,.tpl-editor-content tr.tpl-loop-row>th:first-child:before{content:"↻ repeats per item";position:absolute;top:-9px;left:6px;z-index:1;background:#059669;color:#fff;font-size:9px;font-weight:600;letter-spacing:.02em;line-height:14px;padding:0 6px;border-radius:999px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;pointer-events:none;white-space:nowrap}.tpl-editor-content tr.tpl-loop-row>td p:has(>br.ProseMirror-trailingBreak:only-child):before{content:"+ fill-in field";color:rgba(5,150,105,.55);font-size:.72em;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-style:italic;pointer-events:none}