:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#f5f6f8;--surface:#fff;--surface-2:#f9fafb;--canvas:#e9ecf1;--border:#e4e7ec;--border-strong:#cdd2da;--fg:#101828;--muted:#667085;--accent:#4f46e5;--accent-hover:#4338ca;--accent-soft:#4f46e51a;--accent-ring:#4f46e547;--on-accent:#fff;--danger:#d92d20;--danger-soft:#d92d201a;--success:#12b76a;--warn:#b54708;--warn-soft:#f7900924;--radius-sm:8px;--radius:12px;--shadow-sm:0 1px 2px #1018280f;--shadow:0 1px 3px #10182814, 0 8px 24px #1018280f;--shadow-page:0 1px 2px #1018281a, 0 12px 32px #1018281f;--font:"Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--pf-sans:"PF Sans", sans-serif;--pf-serif:"PF Serif", serif;--pf-mono:"PF Mono", monospace}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}:root:not([data-theme=light]){--bg:#0c0e13;--surface:#14171e;--surface-2:#1a1e27;--canvas:#0f1218;--border:#252a35;--border-strong:#363d4b;--fg:#eef0f4;--muted:#98a2b3;--accent:#818cf8;--accent-hover:#a5b4fc;--accent-soft:#818cf829;--accent-ring:#818cf859;--on-accent:#0b0d12;--danger:#f97066;--danger-soft:#f9706624;--warn:#fdb022;--shadow-sm:0 1px 2px #0006;--shadow:0 1px 3px #0006, 0 8px 24px #00000059;--shadow-page:0 1px 2px #00000080, 0 12px 32px #00000080}}:root[data-theme=dark]{--bg:#0c0e13;--surface:#14171e;--surface-2:#1a1e27;--canvas:#0f1218;--border:#252a35;--border-strong:#363d4b;--fg:#eef0f4;--muted:#98a2b3;--accent:#818cf8;--accent-hover:#a5b4fc;--accent-soft:#818cf829;--accent-ring:#818cf859;--on-accent:#0b0d12;--danger:#f97066;--danger-soft:#f9706624;--warn:#fdb022;--shadow-sm:0 1px 2px #0006;--shadow:0 1px 3px #0006, 0 8px 24px #00000059;--shadow-page:0 1px 2px #00000080, 0 12px 32px #00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-contrast=high]{--border:var(--border-strong);--border-strong:var(--muted);--muted:var(--fg);--accent-ring:color-mix(in srgb, var(--accent) 60%, transparent)}:root[data-contrast=high] .field{border-width:2px}:root[data-motion=reduce] *,:root[data-motion=reduce] :before,:root[data-motion=reduce] :after{scroll-behavior:auto!important;transition:none!important;animation:none!important}@font-face{font-family:Inter Variable;font-weight:100 900;font-display:swap;src:url(/fonts/inter-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-weight:100 900;font-display:swap;src:url(/fonts/inter-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:PF Sans;src:url(/fonts/DejaVuSans.ttf);font-weight:400}@font-face{font-family:PF Sans;src:url(/fonts/DejaVuSans-Bold.ttf);font-weight:700}@font-face{font-family:PF Serif;src:url(/fonts/DejaVuSerif.ttf);font-weight:400}@font-face{font-family:PF Serif;src:url(/fonts/DejaVuSerif-Bold.ttf);font-weight:700}@font-face{font-family:PF Mono;src:url(/fonts/DejaVuSansMono.ttf);font-weight:400}@font-face{font-family:PF Mono;src:url(/fonts/DejaVuSansMono-Bold.ttf);font-weight:700}*{box-sizing:border-box}html,body,#app{height:100%}#app{flex-direction:column;display:flex}body{background:var(--bg);color:var(--fg);font:15px/1.5 var(--font);font-feature-settings:"cv11", "ss01";-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;margin:0;overflow:hidden}h1,h2,h3{letter-spacing:-.015em}p{margin:0}.grow{flex:1}.hint{color:var(--muted);font-size:.85rem}a{color:inherit}button,.btn{border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface);min-height:36px;color:var(--fg);box-shadow:var(--shadow-sm);font:inherit;white-space:nowrap;cursor:pointer;justify-content:center;align-items:center;gap:8px;padding:0 14px;font-size:.9rem;font-weight:550;line-height:1;transition:background .12s,border-color .12s,color .12s,box-shadow .12s,transform 60ms;display:inline-flex}button:hover:not(:disabled),.btn:hover{background:var(--surface-2);border-color:var(--muted)}button:active:not(:disabled){transform:translateY(1px)}button:focus-visible,.btn:focus-within,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--accent-ring);outline-offset:1px}button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}button.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:600;box-shadow:0 1px 2px #1018282e}button.primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}button.ghost,.btn.ghost{box-shadow:none;color:var(--muted);background:0 0;border-color:#0000}button.ghost:hover:not(:disabled){background:var(--accent-soft);color:var(--accent);border-color:#0000}button.icon{width:36px;padding:0}button.danger:hover:not(:disabled){color:var(--danger);border-color:var(--danger);background:var(--danger-soft)}button.on{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.btn.secondary{cursor:pointer}input,select,textarea{border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface);min-height:36px;color:var(--fg);font:inherit;padding:0 12px;font-size:.9rem;transition:border-color .12s,box-shadow .12s}input:hover,select:hover,textarea:hover{border-color:var(--muted)}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-ring);outline:none}input[type=color]{cursor:pointer;width:3rem;padding:3px}input[type=file]::file-selector-button{border:1px solid var(--border-strong);background:var(--surface-2);color:var(--fg);font:inherit;cursor:pointer;border-radius:6px;margin-right:10px;padding:6px 12px;font-weight:550}input[type=file]{height:auto;padding:6px}input[type=checkbox]{accent-color:var(--accent)}.sep{background:var(--border);align-self:stretch;width:1px;margin:6px 4px}header{z-index:3;background:var(--surface);border-bottom:1px solid var(--border);flex:none;align-items:center;gap:10px;height:56px;padding:0 16px;display:flex}.brand{border-radius:8px;padding:4px;display:inline-flex}.logo{display:block}h1{margin:0;font-size:1.05rem;font-weight:700}.kofi{width:36px;height:36px;color:var(--accent);background:var(--accent-soft);border-radius:10px;place-items:center;transition:color .12s,background .12s;display:inline-grid}.kofi:hover{color:var(--on-accent);background:var(--accent)}.toolbar{z-index:2;background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap;flex:none;align-items:center;gap:8px;padding:8px 16px;display:flex}.tpl-name{width:15rem;font-weight:550}.btn-group{gap:2px;display:inline-flex}footer{text-align:center;border-top:1px solid var(--border);background:var(--surface);flex:none;justify-content:space-between;align-items:center;gap:8px;min-height:44px;padding:4px 12px;font-size:.78rem;display:flex}footer a:not(.kofi){color:var(--muted);text-decoration:none}footer a:not(.kofi):hover{color:var(--accent)}.workspace{flex:1;align-items:stretch;min-height:0;display:flex}.scroll{flex:1;min-height:0;overflow:auto}.stage{flex:1;min-width:0;min-height:0;display:flex;position:relative}.viewport{scrollbar-width:none;overscroll-behavior:contain;background-color:var(--canvas);background-image:radial-gradient(circle, var(--border-strong) 1px, transparent 1.2px);cursor:grab;background-size:22px 22px;flex:1;min-width:0;min-height:0;overflow:auto}.viewport .field{cursor:move}.viewport.hand,.viewport.hand .page-box,.viewport.hand .field{cursor:grab!important}.viewport.panning,.viewport.panning .page-box,.viewport.panning .field{-webkit-user-select:none;user-select:none;cursor:grabbing!important}.viewport main{flex-direction:column;align-items:center;gap:20px;width:max-content;min-width:100%;padding:28px;display:flex}.page{background:#fff;width:100%;height:auto}.page-box{box-shadow:var(--shadow-page);touch-action:pan-x pan-y;background:#fff;border-radius:2px;flex:none;line-height:0;position:relative}.page-box .page{display:block}.warning{max-width:40rem;color:var(--warn);background:var(--warn-soft);border-radius:var(--radius-sm);padding:10px 14px;font-size:.9rem}.zoombar,.pagebar{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:12px;align-items:center;gap:2px;padding:4px;display:flex;position:absolute;bottom:16px;right:16px}.zoombar button,.pagebar button{min-width:32px;min-height:32px;box-shadow:none;color:var(--muted);background:0 0;border:0;padding:0 8px}.zoombar button:hover:not(:disabled),.pagebar button:hover:not(:disabled){background:var(--accent-soft);color:var(--accent)}.zoombar .zoom-value{font-variant-numeric:tabular-nums;min-width:58px;color:var(--fg)}.zoombar button.on{background:var(--accent);color:var(--on-accent)}.overlay{position:absolute;inset:0}.field{border:1.5px solid var(--accent);background:var(--accent-soft);cursor:move;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:3px;transition:background .12s,box-shadow .12s;position:absolute}@keyframes field-in{0%{opacity:0;transform:scale(.92)}}.field{animation:.16s ease-out field-in}.field:hover{background:#4f46e529}.field.selected{box-shadow:0 0 0 4px var(--accent-ring);background:#4f46e524;border-width:2px}.field.draft{pointer-events:none;border-style:dashed}.field.filled{box-shadow:none;cursor:default;background:0 0;border:0}.field-name{background:var(--accent);color:var(--on-accent);font:600 11px/1.5 var(--font);white-space:nowrap;pointer-events:none;opacity:0;border-radius:4px;margin-bottom:3px;padding:1px 6px;transition:opacity .12s;position:absolute;bottom:100%;left:0}.field:hover .field-name,.field.selected .field-name{opacity:1}.overlay:has(.field:hover) .field.selected:not(:hover) .field-name{opacity:0}.field:hover{z-index:3}.field.selected{z-index:2}.field-value.preview{overflow:hidden}.field-value{color:#000;pointer-events:none;line-height:1.2;display:flex;position:absolute;inset:0}.field-value .lines{width:100%;display:block}.field-value .line{white-space:pre;display:block}.field-value.preview{opacity:.85;padding:0 2px;color:var(--accent)!important}.field-check{pointer-events:none;width:76%;height:76%;position:absolute;inset:12%}.field-img{object-fit:contain;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.handle{border:2px solid var(--accent);width:13px;height:13px;box-shadow:var(--shadow-sm);touch-action:none;background:#fff;border-radius:50%;margin:-6.5px;position:absolute}.h-nw{cursor:nwse-resize;top:0;left:0}.h-n{cursor:ns-resize;top:0;left:50%}.h-ne{cursor:nesw-resize;top:0;left:100%}.h-e{cursor:ew-resize;top:50%;left:100%}.h-se{cursor:nwse-resize;top:100%;left:100%}.h-s{cursor:ns-resize;top:100%;left:50%}.h-sw{cursor:nesw-resize;top:100%;left:0}.h-w{cursor:ew-resize;top:50%;left:0}.sidebar{z-index:1;background:var(--surface);border-right:1px solid var(--border);flex-direction:column;flex:none;align-items:center;gap:4px;width:72px;padding:12px 0;display:flex}.sidebar button{width:60px;height:56px;box-shadow:none;color:var(--muted);background:0 0;border:1px solid #0000;border-radius:10px;flex-direction:column;gap:4px;padding:0}.sidebar button span{font-size:.68rem;font-weight:550;line-height:1}.sidebar button:hover:not(:disabled){background:var(--accent-soft);color:var(--accent);border-color:#0000}.sidebar button.on{background:var(--accent);color:var(--on-accent)}.props{width:clamp(14rem, var(--panel-w,18rem), calc(100% - 22rem - 80px));background:var(--surface);border-left:1px solid var(--border);flex-direction:column;flex:none;padding:18px 16px;display:flex;overflow-y:auto}.props h2{margin:0 0 10px;font-size:1.05rem}.empty-props{gap:8px}.empty-props p{color:var(--muted);font-size:.9rem}.props-section{border-top:1px solid var(--border);flex-direction:column;gap:12px;padding:14px 0;display:flex}.props-section h3{letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin:0;font-size:.7rem;font-weight:650}.props .stack{color:var(--muted);flex-direction:column;gap:6px;font-size:.85rem;font-weight:500;display:flex}.props .stack input,.props .stack select{color:var(--fg);width:100%;font-weight:400}.props .row{justify-content:space-between;align-items:center;gap:8px;font-size:.88rem;display:flex}.props .row>span:first-child{color:var(--muted);font-weight:500}.segmented{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);display:inline-flex;overflow:hidden}.segmented button{min-width:38px;min-height:34px;box-shadow:none;color:var(--muted);background:0 0;border:0;border-radius:0;padding:0 8px}.segmented button+button{border-left:1px solid var(--border)}.segmented button:hover:not(:disabled){background:var(--accent-soft);color:var(--accent)}.segmented button.on{background:var(--accent);color:var(--on-accent)}.num-slider{flex-direction:column;gap:8px;display:flex}.num-box{align-items:center;gap:6px;display:inline-flex}.num-box input{text-align:right;font-variant-numeric:tabular-nums;width:4.6rem}.num-box em{color:var(--muted);font-size:.8rem;font-style:normal}input[type=range]{appearance:none;width:100%;min-height:22px;box-shadow:none;cursor:pointer;background:0 0;border:0;padding:0}input[type=range]::-webkit-slider-runnable-track{background:var(--border-strong);border-radius:3px;height:6px}input[type=range]::-moz-range-track{background:var(--border-strong);border-radius:3px;height:6px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:var(--accent);border:3px solid var(--surface);width:18px;height:18px;box-shadow:0 0 0 1px var(--accent), var(--shadow-sm);border-radius:50%;margin-top:-6px}input[type=range]::-moz-range-thumb{background:var(--accent);border:3px solid var(--surface);width:14px;height:14px;box-shadow:0 0 0 1px var(--accent);border-radius:50%}input[type=range]:focus-visible{outline:none}input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 1px var(--accent), 0 0 0 5px var(--accent-ring)}.props-actions{border-top:1px solid var(--border);gap:8px;margin-top:2px;padding-top:14px;display:flex}.props-actions button{flex:1}.fill-form{width:clamp(14rem, var(--panel-w,21rem), calc(100% - 22rem));background:var(--surface);border-right:1px solid var(--border);flex-direction:column;flex:none;gap:16px;padding:20px 18px 28px;display:flex;overflow-y:auto}.fill-head h2{margin:0 0 10px;font-size:1.1rem}.fill-head p{color:var(--muted);margin-top:6px;font-size:.82rem}.progress{background:var(--border);border-radius:3px;height:6px;overflow:hidden}.progress i{background:var(--accent);border-radius:3px;height:100%;transition:width .2s;display:block}.fill-form label{color:var(--muted);flex-direction:column;gap:6px;font-size:.85rem;font-weight:550;display:flex}.fill-form input:not([type=checkbox]):not([type=file]){min-height:42px;color:var(--fg);font-size:.95rem;font-weight:400}.fill-form .check{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);min-height:42px;color:var(--fg);cursor:pointer;flex-direction:row;align-items:center;gap:10px;padding:0 12px}.fill-form .check input{width:18px;height:18px;min-height:0}.fill-form .clear{align-self:flex-start;min-height:30px;padding:0 10px;font-size:.8rem}.home{flex-direction:column;gap:28px;max-width:60rem;margin:0 auto;padding:40px 24px 56px;display:flex}.home-hero{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;display:flex}.home-hero h2{margin:0 0 4px;font-size:1.7rem;font-weight:700}.home-hero>div:first-child{flex:22rem}.home-hero p{color:var(--muted);max-width:32rem}.home-actions{flex-wrap:wrap;gap:10px;display:flex}.home-actions .primary,.home-actions .btn{min-height:42px;padding:0 18px}.empty{text-align:center;background:var(--surface);border:1.5px dashed var(--border-strong);border-radius:16px;flex-direction:column;align-items:center;gap:12px;padding:44px 24px;display:flex}.empty h3{margin:4px 0 0;font-size:1.15rem}.empty>p{color:var(--muted)}.empty-art{background:var(--accent-soft);width:72px;height:72px;color:var(--accent);border-radius:20px;place-items:center;display:grid}.steps{flex-wrap:wrap;justify-content:center;gap:12px;margin:8px 0;padding:0;list-style:none;display:flex}.steps li{background:var(--surface-2);border:1px solid var(--border);border-radius:999px;align-items:center;gap:10px;padding:8px 14px 8px 8px;font-size:.88rem;display:flex}.steps b{background:var(--accent);width:24px;height:24px;color:var(--on-accent);border-radius:50%;place-items:center;font-size:.78rem;display:grid}.tpl-tools{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:-12px;display:flex}.tpl-tools .search{flex:14rem;align-items:center;display:flex;position:relative}.tpl-tools .search svg{color:var(--muted);pointer-events:none;position:absolute;left:12px}.tpl-tools .search input{width:100%;min-height:40px;padding-left:36px}.tpl-tools .sort{color:var(--muted);align-items:center;gap:8px;font-size:.85rem;display:flex}.tpl-tools select,.tpl-tools button{min-height:40px}.no-results{color:var(--muted);text-align:center;padding:24px 0}.tpl-grid{grid-template-columns:repeat(auto-fill,minmax(17rem,1fr));gap:16px;margin:0;padding:0;list-style:none;display:grid}.tpl-card{cursor:pointer;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);flex-direction:column;gap:14px;padding:16px;transition:box-shadow .15s,border-color .15s,transform .15s;display:flex;position:relative}@media (hover:hover){.tpl-card:hover{box-shadow:var(--shadow);border-color:var(--border-strong)}}.tpl-top{justify-content:space-between;align-items:flex-start;display:flex;position:relative}.tpl-thumb{object-fit:cover;object-position:top;border:1px solid var(--border);background:#fff;border-radius:8px;width:100%;height:170px}.tpl-top .menu{position:absolute;top:6px;right:6px}.tpl-top .icon-btn{background:var(--surface);box-shadow:var(--shadow-sm)}.tpl-top:has(.tpl-icon) .menu{position:static}.tpl-icon{background:var(--accent-soft);width:42px;height:42px;color:var(--accent);border-radius:12px;place-items:center;display:grid}.tpl-info{flex-direction:column;gap:2px;min-width:0;display:flex}.tpl-info strong{text-overflow:ellipsis;white-space:nowrap;font-size:1.02rem;font-weight:650;overflow:hidden}.tpl-info span{color:var(--muted);font-size:.82rem}button.tpl-open,button.tpl-open:hover:not(:disabled),button.tpl-open:active:not(:disabled){transform:none}.tpl-open{width:100%;min-width:0;min-height:0;box-shadow:none;text-align:left;font:inherit;color:inherit;background:0 0;border:0;flex-direction:column;align-items:flex-start;gap:2px;padding:0;display:flex}.tpl-open:after{content:"";border-radius:inherit;position:absolute;inset:0}.tpl-open:hover:not(:disabled){background:0 0}.tpl-open:focus-visible{outline:none}.tpl-open strong,.tpl-open span{max-width:100%}.tpl-card:has(.tpl-open:focus-visible){outline:3px solid var(--accent);outline-offset:2px}.tpl-card .tpl-top{z-index:1;pointer-events:none}.tpl-card .tpl-top .menu{pointer-events:auto;z-index:2}.menu{position:relative}.icon-btn{width:34px;height:34px;color:var(--muted);cursor:pointer;border-radius:8px;place-items:center;display:grid}.icon-btn svg{stroke-width:3px}.icon-btn{min-height:0;box-shadow:none;background:0 0;border:0;padding:0}.icon-btn:hover:not(:disabled),.menu.open .icon-btn{background:var(--accent-soft);color:var(--accent)}.menu-list{z-index:5;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);min-width:13rem;box-shadow:var(--shadow);flex-direction:column;padding:6px;display:flex;position:absolute;top:calc(100% + 4px);right:0}.menu-list button{box-shadow:none;background:0 0;border:0;justify-content:flex-start;min-height:34px;font-weight:500}.menu-list button:hover:not(:disabled){background:var(--accent-soft)}.toaster{z-index:20;pointer-events:none;flex-direction:column;align-items:center;gap:8px;width:min(92vw,28rem);display:flex;position:fixed;bottom:48px;left:50%;transform:translate(-50%)}.toast{pointer-events:auto;background:var(--fg);width:100%;color:var(--bg);border-radius:12px;align-items:center;gap:10px;padding:10px 12px;font-size:.9rem;animation:.18s ease-out toast-in;display:flex;box-shadow:0 8px 28px #00000047}.toast-icon{background:var(--accent);width:20px;height:20px;color:var(--on-accent);border-radius:50%;flex:none;place-items:center;font-size:.72rem;font-weight:700;display:grid}.toast.success .toast-icon{background:var(--success);color:#fff}.toast.error .toast-icon{background:var(--danger);color:#fff}.toast-text{flex:1}.toast button{min-height:28px;box-shadow:none;color:inherit;background:0 0;border:0;padding:0 10px;font-weight:600}.toast .toast-action{background:#80808040;border-radius:6px}.toast .toast-close{opacity:.6;padding:0 6px;font-size:1.1rem}@keyframes toast-in{0%{opacity:0;transform:translateY(-8px)}}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}@media (width<=760px){header h1{font-size:1rem}.tpl-name{order:5;width:100%}.workspace{flex-direction:column}.sidebar{border-right:0;border-bottom:1px solid var(--border);flex-direction:row;justify-content:center;width:100%;padding:4px}.props,.fill-form{border:0;border-top:1px solid var(--border);width:100%;max-height:42%}.fill-form{border-top:0;border-bottom:1px solid var(--border);order:2;max-height:38%}.home{padding:24px 16px 40px}}textarea{resize:vertical;padding:8px 12px;font-family:inherit;line-height:1.4}.fill-form textarea{color:var(--fg);font-size:.95rem;font-weight:400}.field.overflow{border-color:var(--danger);background:var(--danger-soft);border-style:dashed}.field.filled.overflow{border:1.5px dashed var(--danger)}.field-warn{background:var(--danger);color:#fff;font:600 11px/1.5 var(--font);white-space:nowrap;pointer-events:none;border-radius:4px;margin-bottom:3px;padding:1px 6px;position:absolute;bottom:100%;right:0}.fill-form .warn-hint{color:var(--danger);align-items:center;gap:6px;font-size:.8rem;font-weight:550;display:flex}.warn-pill{background:var(--warn-soft);color:var(--warn);border-radius:999px;align-items:center;gap:6px;padding:5px 10px;font-size:.82rem;font-weight:600;display:inline-flex}.toast.warning .toast-icon{color:#fff;background:#f79009}.mode-switch{background:var(--canvas);border:1px solid var(--border);border-radius:10px;flex:none;gap:2px;padding:3px;display:inline-flex}.mode-switch button{min-width:104px;min-height:32px;box-shadow:none;color:var(--muted);background:0 0;border:0}.mode-switch button:hover:not(:disabled):not(.on){background:var(--accent-soft);color:var(--accent);border-color:#0000}.mode-switch button.on{background:var(--surface);color:var(--accent);box-shadow:var(--shadow-sm)}@media (width<=1100px){.toolbar .lbl{display:none}.toolbar button:has(.lbl){min-width:36px;padding:0 10px}.toolbar button.primary:has(.lbl){padding:0 12px}header .ghost:has(.lbl){padding:0 10px}}@media (width<=760px){.toolbar{gap:6px;padding:8px 12px}.toolbar .sep{display:none}.mode-switch{flex:12rem}.mode-switch button{flex:1;min-height:38px}.tpl-name{flex:8rem;order:0;width:auto;min-width:0}.toaster{bottom:72px}.props{max-height:46%}}@media (pointer:coarse){button,.btn,input,select{min-height:44px}button.icon{width:44px}.zoombar button,.pagebar button{min-width:40px;min-height:40px}.handle{width:22px;height:22px;margin:-11px}.icon-btn{width:44px;height:44px}}.field.active{outline:2px solid var(--accent);outline-offset:2px;background:var(--accent-soft);box-shadow:0 0 0 6px var(--accent-ring);border-radius:4px}.field.filled.active{border:0}.fill-form label:focus-within{color:var(--accent)}dialog.settings{border:1px solid var(--border);background:var(--surface);width:min(46rem,100vw - 24px);height:min(40rem,100dvh - 24px);color:var(--fg);border-radius:16px;padding:0;overflow:hidden;box-shadow:0 24px 64px #0000004d}dialog.settings[open]{flex-direction:column;display:flex}dialog.settings::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#080a1080}.settings-head{border-bottom:1px solid var(--border);flex:none;justify-content:space-between;align-items:center;padding:14px 16px 14px 20px;display:flex}.settings-head h2{align-items:center;gap:10px;margin:0;font-size:1.1rem;display:flex}.settings-body{flex:1;min-height:0;display:flex}.settings-tabs{background:var(--surface-2);border-right:1px solid var(--border);flex-direction:column;flex:none;gap:2px;width:11.5rem;padding:12px;display:flex;overflow-y:auto}.settings-tabs button{width:100%;box-shadow:none;color:var(--muted);background:0 0;border:0;justify-content:flex-start}.settings-tabs button:hover:not(:disabled){background:var(--accent-soft);color:var(--accent)}.settings-tabs button.on{background:var(--surface);color:var(--accent);box-shadow:var(--shadow-sm)}.settings-panel{flex:1;min-width:0;padding:8px 22px 22px;overflow-y:auto}.settings-panel .props-section:first-child{border-top:0}.settings-panel .row{justify-content:space-between;align-items:center;gap:8px;font-size:.88rem;display:flex}.settings-panel .row>span:first-child{color:var(--muted);font-weight:500}.settings-intro{color:var(--muted);margin-top:12px;font-size:.88rem}.props-section .settings-intro{margin-top:0}.srow{justify-content:space-between;align-items:center;gap:16px;display:flex}.srow-text{flex-direction:column;gap:2px;min-width:0;display:flex}.srow-text b{font-size:.92rem;font-weight:600}.srow-text small{color:var(--muted);font-size:.8rem}.srow select{min-width:11rem}.segmented.text button{white-space:nowrap;padding:0 14px;font-size:.85rem}.btn-row{flex-wrap:wrap;gap:8px;display:flex}button.danger-solid{background:var(--danger);border-color:var(--danger);color:#fff}button.danger-solid:hover:not(:disabled){background:var(--danger);filter:brightness(.92);border-color:var(--danger)}.confirm{border-radius:var(--radius-sm);background:var(--danger-soft);border:1px solid var(--danger);flex-direction:column;gap:12px;padding:14px;display:flex}.confirm p{font-size:.9rem}input.switch{appearance:none;background:var(--border-strong);cursor:pointer;border:0;border-radius:12px;flex:none;width:42px;height:24px;min-height:0;padding:0;transition:background .15s;position:relative}input.switch:after{content:"";width:18px;height:18px;box-shadow:var(--shadow-sm);background:#fff;border-radius:50%;transition:transform .15s;position:absolute;top:3px;left:3px}input.switch:checked{background:var(--accent)}input.switch:checked:after{transform:translate(18px)}input.switch:focus-visible{outline:3px solid var(--accent-ring);outline-offset:2px}.switch-row{cursor:pointer}.format-sample{border:1.5px solid var(--accent);background:var(--accent-soft);border-radius:6px;height:4.2rem;margin:14px 0 2px;padding:0 14px;line-height:1.2;display:flex;overflow:hidden}.settings-foot{border-top:1px solid var(--border);padding-top:14px}.shortcuts{gap:2px;margin:0;display:grid}.shortcuts div{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:7px 0;font-size:.9rem;display:flex}.shortcuts dt{white-space:nowrap;color:var(--muted);flex:none}.shortcuts dd{text-align:right;margin:0}kbd{border:1px solid var(--border-strong);background:var(--surface-2);min-width:1.6em;color:var(--fg);font:600 .78rem/1.4 var(--font);text-align:center;border-bottom-width:2px;border-radius:6px;padding:2px 7px;display:inline-block}.about-head{flex-direction:column;gap:4px;padding:14px 0 16px;display:flex}.about-head h3{margin:0;font-size:1.5rem}.about-head p{color:var(--muted);margin-top:8px;font-size:.92rem}.links{flex-wrap:wrap;justify-content:space-between;gap:8px 18px;display:flex}.links a{color:var(--accent);align-items:center;gap:6px;font-weight:600;text-decoration:none;display:inline-flex}.links a:hover{text-decoration:underline}.licenses{margin:0;padding:0;list-style:none;display:grid}.licenses li{border-bottom:1px solid var(--border);justify-content:space-between;gap:12px;padding:7px 0;font-size:.88rem;display:flex}.licenses a{color:var(--fg);font-weight:550}.licenses span{color:var(--muted);text-align:right}@media (width<=640px){dialog.settings{border:0;border-radius:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh}.settings-body{flex-direction:column}.settings-tabs{border-right:0;border-bottom:1px solid var(--border);flex-direction:row;width:100%;padding:8px;overflow-x:auto}.settings-tabs button{flex:none;width:auto}.settings-panel{padding:4px 16px 24px}.srow{flex-wrap:wrap}}.settings-sub{border-top:1px solid var(--border);letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin:18px 0 0;padding-top:16px;font-size:.7rem;font-weight:650}.settings-sub+.settings-intro{margin-top:6px}.foot-spacer{flex:none;width:36px}.fill-tabs{display:none}@media (width<=760px){.fill-ws .fill-tabs{background:var(--canvas);border:1px solid var(--border);border-radius:10px;flex:none;gap:2px;margin:8px 12px;padding:3px;display:flex}.fill-tabs button{min-height:38px;box-shadow:none;color:var(--muted);background:0 0;border:0;flex:1}.fill-tabs button.on{background:var(--surface);color:var(--accent);box-shadow:var(--shadow-sm)}.tab-count{background:var(--accent-soft);color:var(--accent);font-variant-numeric:tabular-nums;border-radius:999px;padding:1px 7px;font-size:.72rem}.fill-ws.tab-data .doc-pane,.fill-ws.tab-doc .fill-form{display:none}.fill-ws .fill-form{border:0;flex:1;order:0;min-height:0;max-height:none}}.props-handle,.props-handle-act{display:none}.props-body{display:contents}@media (width<=760px){.workspace:has(>.props){position:relative}.workspace>.props{z-index:4;background:var(--surface);border:0;border-top:1px solid var(--border);border-radius:16px 16px 0 0;width:100%;max-height:none;padding:0;position:absolute;bottom:0;left:0;right:0;overflow:hidden;box-shadow:0 -8px 24px #1018281f}.workspace>.props.empty-props,.props>h2{display:none}.props-handle{width:100%;min-height:56px;box-shadow:none;background:0 0;border:0;border-radius:0;flex:none;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px 6px;display:flex;position:relative}.props-handle .grip{background:var(--border-strong);border-radius:2px;width:36px;height:4px;margin-left:-18px;position:absolute;top:6px;left:50%}.props-handle-title{align-items:baseline;gap:8px;min-width:0;font-size:.95rem;display:flex}.props-handle-title em{color:var(--muted);text-overflow:ellipsis;font-style:normal;font-weight:400;overflow:hidden}.props-handle-act{color:var(--accent);flex:none;align-items:center;gap:4px;font-size:.85rem;display:inline-flex}.props-handle-act svg{transition:transform .2s}.props.open .props-handle-act svg{transform:rotate(180deg)}.props .props-body{max-height:44dvh;padding:0 16px 16px;display:none;overflow-y:auto}.workspace:has(>.props:not(.empty-props)) .viewport main{padding-bottom:84px}.workspace:has(>.props.open) .viewport main{padding-bottom:calc(44dvh + 84px)}:is(.workspace:has(>.props:not(.empty-props)) .zoombar,.workspace:has(>.props:not(.empty-props)) .pagebar){bottom:68px}:is(.workspace:has(>.props.open) .zoombar,.workspace:has(>.props.open) .pagebar){display:none}.props.open .props-body{display:block}}.field:focus{outline:none}.field:focus-visible{outline:3px solid var(--accent);outline-offset:3px;z-index:3}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}dialog.tour{border:1px solid var(--border);background:var(--surface);width:min(28rem,100vw - 24px);color:var(--fg);border-radius:20px;padding:20px 24px 24px;box-shadow:0 24px 64px #0000004d}dialog.tour[open]{flex-direction:column;gap:8px;display:flex}dialog.tour::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#080a1080}.tour-top{justify-content:space-between;align-items:center;margin-right:-8px;display:flex}.tour-count{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;font-size:.8rem;font-weight:600}.tour-body{text-align:center;flex-direction:column;align-items:center;gap:10px;min-height:17rem;padding:12px 0 4px;animation:.25s tour-in;display:flex}@keyframes tour-in{0%{opacity:0;transform:translate(10px)}}:root[data-motion=reduce] .tour-body{animation:none}.tour-art{background:var(--accent-soft);width:88px;height:88px;color:var(--accent);border-radius:26px;place-items:center;margin-bottom:6px;display:grid}.tour-body h2{margin:0;font-size:1.35rem}.tour-body p{color:var(--muted);margin:0;line-height:1.5}.tour-body .tour-example{color:var(--fg);font-weight:550}.tour-dots{justify-content:center;gap:7px;margin:8px 0;display:flex}.tour-dots i{background:var(--border-strong);border-radius:50%;width:7px;height:7px;transition:width .2s,background .2s}.tour-dots i.on{background:var(--accent);border-radius:4px;width:20px}.tour-actions{justify-content:space-between;align-items:center;gap:8px;display:flex}.tour-end{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}@media (width<=640px){.tour-actions{flex-wrap:wrap-reverse}.tour-end{width:100%}.tour-end button{flex:1}}.doc-pane{flex:1;min-width:0;min-height:0;display:flex;position:relative}.full-btn{z-index:5;background:var(--surface);border-color:var(--border);min-height:38px;box-shadow:var(--shadow);padding:0 12px;position:absolute;top:12px;right:16px}.workspace.focus{z-index:10;background:var(--bg);padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);position:fixed;inset:0}.workspace.focus .full-btn{top:max(12px, env(safe-area-inset-top));right:max(16px, env(safe-area-inset-right));background:var(--accent);border-color:var(--accent);min-height:44px;color:var(--on-accent);font-weight:600}.workspace.focus .full-btn:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.workspace.focus .full-btn .lbl{display:inline}@media (width<=760px){.full-btn .lbl{display:none}.full-btn{min-width:44px;min-height:44px;padding:0 12px}}.viewport::-webkit-scrollbar{display:none}.splitter{z-index:3;cursor:col-resize;touch-action:none;background:0 0;flex:none;width:6px;margin:0 -3px;position:relative}.splitter:after{content:"";background:0 0;transition:background .15s;position:absolute;inset:0 2px}.splitter:hover:after,.splitter.dragging:after,.splitter:focus-visible:after{background:var(--accent)}.splitter:focus-visible{outline:none}@media (width<=760px){.splitter{display:none}}.focus-exit{display:none}@media (width<=760px){.workspace.focus .focus-exit{background:var(--accent);border-color:var(--accent);min-width:44px;color:var(--on-accent);flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.workspace.focus .full-btn{display:none}}.notice{border:1px solid var(--border);border-radius:var(--radius);background:var(--accent-soft);align-items:center;gap:12px;margin-bottom:16px;padding:12px 14px;display:flex}.notice-icon{color:var(--accent);flex:none;place-items:center;display:grid}.notice-text{flex-direction:column;flex:1;gap:2px;min-width:0;font-size:.88rem;display:flex}.notice-text span{color:var(--muted)}.notice.warn{background:var(--warn-soft)}.notice.warn .notice-icon{color:var(--warn)}.status-line{align-items:center;gap:8px;margin-top:0;display:flex}@media (width<=760px){.notice{flex-wrap:wrap}.notice-text{flex-basis:100%;order:1}.notice-icon{order:0}}.confirm.accent{background:var(--accent-soft);border-color:var(--accent-ring);margin-top:12px}.folder-bar{color:var(--muted);align-items:center;gap:8px;margin:0 0 16px;font-size:.88rem;display:flex}.folder-bar svg{flex:none}.folder-bar .count:before{content:"·";margin-right:8px}.folder-bar .count{flex:none}.folder-bar .name{color:var(--fg);text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;font-weight:600;overflow:hidden}button.link{height:auto;min-height:0;box-shadow:none;color:var(--accent);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}button.link:hover{color:var(--accent-hover);background:0 0}.pagebar{right:188px}.page-num{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;align-items:center;gap:4px;margin:0;padding:0 4px;font-size:.9rem;display:flex}.page-num input{text-align:center;width:3ch;min-width:0;min-height:28px;font:inherit;color:var(--fg);box-shadow:none;background:0 0;border:1px solid #0000;border-radius:6px;padding:0 4px;font-weight:600}.page-num input:hover{border-color:var(--border)}.page-num input:focus{border-color:var(--accent);background:var(--surface)}@media (width<=480px){.pagebar{bottom:64px;right:16px}.workspace:has(>.props:not(.empty-props)) .pagebar{bottom:120px}}dialog.ask{border:1px solid var(--border);background:var(--surface);width:min(26rem,100vw - 24px);color:var(--fg);border-radius:16px;padding:22px 24px 20px;box-shadow:0 24px 64px #0000004d}dialog.ask::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#080a1080}dialog.ask h2{margin:0 0 8px;font-size:1.15rem}dialog.ask p{color:var(--muted);margin:0 0 12px;line-height:1.5}.ask-actions{flex-direction:column-reverse;gap:8px;margin-top:6px;display:flex}.ask-actions button{width:100%}dialog.ask h2.with-icon{overflow-wrap:anywhere;align-items:center;gap:8px;display:flex}dialog.ask h2.with-icon svg{color:var(--accent);flex:none}.rename-input{width:100%;margin-bottom:16px}
