html[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}html[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.editor-app{--fylune-line:var(--fylune-border-soft);--fylune-on-primary:#08291d;height:var(--editor-height,100dvh);background:var(--fylune-bg);flex-direction:column;display:flex;overflow:clip}.editor-app__header{border-bottom:1px solid var(--fylune-line);background:var(--fylune-surface);flex-direction:column;align-items:stretch;gap:.6rem;padding:.7rem 1rem .55rem;display:flex}.editor-app{touch-action:pan-x pan-y}.editor-app__identity{align-items:center;gap:.6rem;min-width:0;display:flex}.editor-app__account{flex-shrink:0;align-items:center;gap:.2rem;margin-left:auto;font-size:.8rem;display:flex}.editor-app .editor-app__premium{background:var(--fylune-primary-soft)}.editor-app__account a{border-radius:8px;align-items:center;gap:.5rem;min-height:36px;padding:.25rem .5rem;display:flex}.editor-app__account a:hover{background:var(--fylune-primary-soft)}.editor-app__account img{object-fit:cover;border-radius:50%}.editor-dialog{width:min(480px,100vw - 24px);max-height:calc(100dvh - 32px);color:var(--fylune-ink);background:var(--fylune-surface);border:0;border-radius:16px;margin:auto;padding:0;overflow:auto}.editor-dialog::backdrop{background:#0000008c}.editor-dialog__body{padding:2.5rem 2rem 1.5rem;position:relative}.editor-dialog__close{z-index:5;background:var(--fylune-surface);width:36px;height:36px;color:var(--fylune-ink);cursor:pointer;border:0;border-radius:8px;place-items:center;display:grid;position:absolute;top:.5rem;right:.5rem}.editor-dialog__close:hover{background:var(--fylune-primary-soft)}.editor-dialog__close:focus-visible{outline:2px solid var(--fylune-primary);outline-offset:2px}.editor-dialog--auth{width:min(1200px,100vw - 24px);overflow:hidden}.editor-dialog--auth .editor-dialog__body{max-height:inherit;padding:0;overflow:auto}.editor-dialog--auth .auth-shell{box-shadow:none;border:0}.editor-dialog--paywall{width:min(980px,100vw - 32px)}.editor-dialog--paywall .editor-dialog__body{padding:0}.editor-paywall__layout{grid-template-columns:minmax(270px,.82fr) minmax(400px,1.18fr);display:grid}.editor-paywall__visual{background:#101717;min-height:600px;position:relative;overflow:hidden}.editor-paywall__visual>img{object-fit:cover}.editor-paywall__visual>div{color:#fff;background:linear-gradient(#0000,#101717);padding:2rem;position:absolute;bottom:0;left:0;right:0}.editor-paywall__visual svg{vertical-align:middle;width:20px;margin-right:.5rem}.editor-paywall__visual p{font-size:1.25rem;line-height:1.25}.editor-paywall__content{flex-direction:column;gap:1rem;padding:42px 40px 28px;display:flex}.editor-paywall__content header small{color:var(--fylune-primary)}.editor-paywall__content h2{margin:.4rem 0;font-size:1.9rem;line-height:1.2}.editor-paywall__content p{color:var(--fylune-muted);font-size:.8rem;line-height:1.5}.editor-paywall__tabs{background:var(--fylune-bg);border-radius:10px;padding:.25rem;display:flex}.editor-paywall__tabs button{white-space:nowrap;flex:1;padding-inline:.45rem;font-size:.8rem}.editor-paywall__tabs [aria-selected=true]{background:var(--fylune-primary-soft)}.editor-paywall__benefits{grid-template-columns:1fr 1fr;gap:.6rem;font-size:.75rem;display:grid}.editor-paywall__benefits span{align-items:center;gap:.35rem;display:flex}.editor-paywall__benefits p{grid-column:1/-1}.editor-paywall__benefits svg{width:16px;color:var(--fylune-primary);flex-shrink:0}.editor-paywall__plans{gap:.65rem;display:grid}.editor-app .editor-paywall__plans button{text-align:left;border-color:var(--fylune-border-soft);justify-content:flex-start;width:100%;padding:.85rem}.editor-paywall__plans button[aria-pressed=true]{border-color:var(--fylune-primary);background:var(--fylune-primary-soft)}.editor-paywall__plans small{color:var(--fylune-muted);margin-top:.3rem;font-size:.7rem;display:block}.editor-paywall__plans b{margin-left:auto}.editor-paywall__choice{border:1px solid var(--fylune-border-soft);border-radius:50%;place-items:center;width:22px;height:22px;display:grid}@media (max-width:700px){.editor-paywall__layout{display:block}.editor-paywall__visual{display:none}.editor-paywall__content{padding:3rem 1.25rem 1.25rem}.editor-dialog__body{padding-inline:1.25rem}.editor-app__account{gap:0}.editor-app__account button{padding-inline:.35rem;font-size:.75rem}}.editor-app__account span{text-overflow:ellipsis;white-space:nowrap;max-width:20ch;overflow:hidden}.editor-app__brand{flex-shrink:0}.editor-app .editor-app__doc-name{text-overflow:ellipsis;white-space:nowrap;text-align:left;min-width:0;max-width:42ch;font-size:.9rem;font-weight:600;display:block;overflow:hidden}.editor-app__rename{border:1px solid var(--fylune-primary);background:var(--fylune-bg);width:min(36ch,35vw);min-width:6rem;color:var(--fylune-ink);font:inherit;border-radius:6px;padding:.35rem .5rem}.editor-app .editor-app__save{color:var(--fylune-muted);white-space:nowrap;padding-inline:.2rem;font-size:.75rem}.editor-app__save--saved svg{color:var(--fylune-primary)}.editor-app .editor-app__save--error{color:var(--lightningcss-light,#a32424)var(--lightningcss-dark,#ffadad)}.editor-app__files-trigger{anchor-name:--editor-files-trigger}.editor-app__files-menu{background:var(--fylune-surface);width:min(350px,100vw - 24px);color:var(--fylune-ink);border:1px solid var(--fylune-line);border-radius:10px;margin:0;padding:.4rem;position:fixed;inset:64px auto auto 58px}@supports (position-anchor:--editor-files-trigger){.editor-app__files-menu{position-anchor:--editor-files-trigger;top:anchor(bottom);left:anchor(left)}}.editor-app .editor-app__files-menu button{justify-content:flex-start;width:100%;font-size:.85rem}.editor-app__files-menu kbd{font:.65rem var(--fylune-font-sans);color:var(--fylune-muted);margin-left:auto}.editor-app__files-menu p{color:var(--fylune-muted);margin:0;padding:.4rem .65rem;font-size:.72rem;line-height:1.5}.editor-app__recent-title{border-top:1px solid var(--fylune-line);align-items:center;gap:.4rem;margin-top:.35rem;padding:.8rem .65rem .4rem;font-size:.75rem;display:flex}.editor-app__recent-title span{color:var(--fylune-muted);margin-left:auto;font-size:.65rem}.editor-app__recent-files{max-height:min(280px,35dvh);overflow:auto}.editor-app__recent-files button span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.editor-app__recent-files small{white-space:nowrap;color:var(--fylune-muted);margin-left:auto;font-size:.65rem}.editor-app__recent-files [aria-current=true]{background:var(--fylune-primary-soft)}.editor-app__history{border-right:1px solid var(--fylune-line);margin-right:.3rem;padding-right:.4rem;display:flex}.editor-app__doc-meta{color:var(--fylune-muted);font-size:.75rem}.editor-app__actions,.editor-app__pager,.editor-app__zoom,.editor-app__confirm-actions{flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}.editor-app__tools{display:contents}.editor-app .editor-app__more-trigger{display:none}.editor-app button{cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:.45rem;min-height:36px;padding:.4rem .65rem;display:inline-flex}.editor-app button:hover:not(:disabled){background:var(--fylune-primary-soft)}.editor-app button:disabled{opacity:.45;cursor:not-allowed}.editor-app button,.editor-app input,.editor-app textarea{color:inherit;font-family:inherit}.editor-app :is(button,input,textarea,a):focus-visible{outline:2px solid var(--fylune-primary);outline-offset:2px}.editor-app button svg{width:18px;height:18px}.editor-app .editor-app__button--primary{background:var(--fylune-primary);color:var(--fylune-on-primary);font-weight:600}.editor-app .editor-app__button--primary:hover:not(:disabled){background:color-mix(in oklch, var(--fylune-primary), var(--fylune-ink) 8%)}.editor-app .editor-app__assistant-toggle{background:var(--fylune-primary-soft);color:var(--fylune-ink);font-weight:600}.editor-app__export-actions{align-items:center;gap:.4rem;margin-left:auto;display:flex}.editor-app__export-actions button{white-space:nowrap;height:30px;min-height:30px;padding:.2rem .65rem;font-size:.8rem}.editor-download__options{border:0;gap:.8rem;margin:1rem 0;padding:0;display:grid}.editor-download__options label{cursor:pointer;align-items:center;gap:.6rem;display:flex}.editor-download__options input{accent-color:var(--fylune-primary)}.editor-app__pager,.editor-app__zoom{font-size:.8rem}.editor-app__content{isolation:isolate;flex:1;min-width:0;min-height:0;position:relative;overflow:auto}.editor-app__workspace{flex:1;min-height:0;display:flex;position:relative}.editor-app__document-region{isolation:isolate;flex:1;min-width:0;min-height:0;display:flex;position:relative}.form-agent{background:var(--fylune-surface);border-left:1px solid var(--fylune-line);flex-direction:column;flex-shrink:0;width:360px;min-height:0;font-size:.85rem;display:flex}.form-agent header{justify-content:space-between;align-items:center;gap:.5rem;padding:.85rem 1rem;display:flex}.form-agent__identity{align-items:center;gap:.6rem;display:flex}.form-agent__identity img{border-radius:22%}.form-agent h2{margin:0;font-size:.9rem;font-weight:650}.form-agent small{color:var(--fylune-muted);font-size:.7rem}.form-agent p{white-space:pre-wrap;overflow-wrap:anywhere;margin:.4rem 0;line-height:1.65}.form-agent__conversation{overscroll-behavior:contain;scrollbar-color:var(--lightningcss-light,oklch(85% .012 195))var(--lightningcss-dark,oklch(35% .02 210)) transparent;flex:1;min-height:0;padding:.5rem 1rem 1rem;overflow:auto}.form-agent__message{padding-block:.65rem}.form-agent__message strong{color:var(--fylune-muted);font-size:.72rem;font-weight:600}.form-agent__message--user{background:var(--fylune-primary-soft);border-radius:10px 0 10px 10px;margin:.65rem 0 .65rem 1.5rem;padding:.65rem}.form-agent__message--user p{margin:0}.form-agent .form-agent__disclosure{color:var(--fylune-muted);margin:.5rem 1rem 0;font-size:.7rem;line-height:1.5}.form-agent__composer{border:1px solid var(--fylune-line);background:var(--fylune-bg);border-radius:12px;margin:.5rem .85rem .85rem}.form-agent__composer:focus-within{border-color:var(--fylune-primary)}.form-agent textarea{resize:none;background:0 0;border:0;width:calc(100% - 1.6rem);height:1.5rem;min-height:1.5rem;max-height:4.5rem;margin:.75rem .8rem .25rem;padding:0;font-size:.85rem;line-height:1.5rem;display:block;overflow-y:auto}.form-agent__attachments{flex-direction:column;gap:.25rem;max-height:7rem;padding:.5rem .65rem 0;display:flex;overflow:auto}.form-agent__attachments>div{align-items:center;gap:.35rem;font-size:.75rem;display:flex}.form-agent__attachments span{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.editor-app .form-agent__attachments button{min-height:28px;padding:.2rem}.form-agent textarea::placeholder{color:var(--fylune-muted);opacity:1}.editor-app .form-agent textarea:focus-visible{outline:0}.form-agent__composer-actions{justify-content:space-between;align-items:center;gap:.5rem;padding:.35rem .5rem .5rem .8rem;display:flex}.form-agent__composer-actions small{font-size:.6rem}.form-agent__feedback,.form-agent__thinking{color:var(--fylune-muted);padding-block:.5rem;font-size:.75rem;line-height:1.6}.form-agent__thinking{align-items:center;gap:.5rem;display:flex}.form-agent__thinking svg{flex-shrink:0;width:16px;height:16px;animation:.8s linear infinite auth-spin}@media (prefers-reduced-motion:reduce){.form-agent__thinking svg{animation:none}}.form-agent__login{padding-block:.5rem;text-decoration:underline;display:block}.form-agent__message-actions{align-items:center;gap:.15rem;display:flex}.editor-app .form-agent__message-actions button{min-width:32px;min-height:32px;color:var(--fylune-muted);background:0 0;border:0;padding:.4rem}.editor-app .form-agent__message-actions button:hover{color:var(--fylune-ink);background:var(--fylune-primary-soft)}.form-agent__suggestions{flex-wrap:wrap;flex-shrink:0;gap:.4rem;max-height:30%;padding:.5rem .85rem 0;display:flex;overflow-y:auto}.editor-app .form-agent__suggestions button{text-align:left;white-space:normal;overflow-wrap:anywhere;border-color:var(--fylune-line);font-size:.8rem}.form-agent__suggestions svg{flex-shrink:0}.editor-app__statusbar{color:var(--fylune-muted);border-top:1px solid var(--fylune-line);flex-wrap:wrap;justify-content:space-between;gap:1rem;padding:.6rem 1.25rem;font-size:.75rem;display:flex}.editor-app__status--error{color:var(--lightningcss-light,#a32424)var(--lightningcss-dark,#ffadad)}.editor-app__notice{background:var(--fylune-primary-soft);margin:0;padding:.6rem 1.25rem;font-size:.85rem}.editor-app__empty,.editor-app__error-panel,.editor-app__loading{max-width:42rem;margin:12vh auto;padding:1.5rem}.editor-app__empty h1,.editor-app__error-panel h1{letter-spacing:-.03em;font-size:clamp(1.7rem,4vw,2.5rem)}.editor-app__empty p,.editor-app__error-panel p{color:var(--fylune-muted)}.editor-app__error-panel a{text-decoration:underline}.editor-app__file-input{display:none}.editor-app__drop-hint{border:2px dashed var(--fylune-primary);background:color-mix(in srgb, var(--fylune-bg) 78%, transparent);color:var(--fylune-ink);pointer-events:none;z-index:1;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:.65rem;display:flex;position:absolute;inset:.75rem}.editor-app__drop-hint svg{color:var(--fylune-primary)}.editor-app__drop-hint span{font-size:.85rem}.editor-app__confirm{border:1px solid var(--fylune-line);background:var(--fylune-bg);max-width:min(30rem,100% - 2rem);color:var(--fylune-ink);border-radius:12px;padding:1.75rem}.editor-app__confirm::backdrop{background:#0007}.editor-app__confirm h2{margin-top:0;font-size:1.25rem}.editor-app__confirm p{color:var(--fylune-muted)}.editor-app__confirm-actions{justify-content:flex-end}.editor-app .editor-app__button--danger{color:var(--lightningcss-light,#a32424)var(--lightningcss-dark,#ffadad)}.editor-app__markdown{width:min(100% - 3rem,48rem);margin:3rem auto}.editor-app__markdown textarea{resize:vertical;width:100%;min-height:65vh;color:inherit;font:16px/1.65 var(--fylune-font-sans);background:0 0;border:0;padding:0;display:block}.editor-app__markdown .fylune-document{background:0 0;border:0}@media (max-width:700px){.editor-app__header{padding:env(safe-area-inset-top) max(.5rem, env(safe-area-inset-right)) .25rem max(.5rem, env(safe-area-inset-left));flex-shrink:0;gap:0}.editor-app__identity{flex-wrap:nowrap;gap:.125rem;height:44px}.editor-app__brand{gap:.4rem;font-size:.9rem}.editor-app__brand img{width:24px;height:24px}.editor-app .editor-app__files-trigger{gap:.25rem;padding-inline:.4rem;font-size:.8rem}.editor-app .editor-app__doc-name{flex:1;padding-inline:.25rem;font-size:.8rem}.editor-app__rename{flex:1;width:0;min-width:0;font-size:16px}.editor-app .editor-app__save{min-width:44px;padding:0}.editor-app__save span{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.editor-app__account{margin:0}.editor-app__account button{min-width:44px}.editor-app__account span,.editor-app__account .editor-app__premium{display:none}.editor-app__actions{flex-wrap:nowrap;gap:.125rem;min-width:0}.editor-app__header button{min-height:44px}.editor-app__actions{height:36px}.editor-app__actions button{border-radius:7px;height:32px;min-height:32px;padding-block:.2rem}.editor-app__history{border:0;margin:0;padding:0}.editor-app__history button{width:44px;padding:0}.editor-app__export-actions{gap:.25rem;margin-left:auto}.editor-app__export-actions button{padding-inline:.5rem;font-size:.75rem}.editor-app .editor-app__more-trigger{anchor-name:--editor-tools-trigger;order:1;min-width:44px;padding:0;display:inline-flex}.editor-app__tools{display:none}.editor-app__tools:popover-open{width:min(280px,100vw - 16px);max-height:calc(var(--editor-height,100dvh) - 104px);background:var(--fylune-surface);color:var(--fylune-ink);border:1px solid var(--fylune-line);border-radius:10px;flex-direction:column;align-items:stretch;gap:.25rem;margin:0;padding:.5rem;display:flex;position:fixed;inset:92px .5rem auto auto;overflow:auto}.editor-app__tools>button{justify-content:flex-start}.editor-app__tools .editor-app__pager,.editor-app__tools .editor-app__zoom{flex-wrap:nowrap;justify-content:space-between}.editor-app__tools button{min-width:44px}.editor-app__files-menu{max-height:calc(var(--editor-height,100dvh) - 56px);top:44px;left:8px;overflow:auto}.editor-app__workspace{flex-direction:column}.editor-app .fylune-pdf__viewport{padding:.5rem 0 max(.5rem, env(safe-area-inset-bottom));overscroll-behavior:contain}.editor-app .fylune-pdf .pdfViewer .page{border:0}.form-agent{flex:0 0 calc(var(--editor-height,100dvh) * .4);border-left:0;border-top:1px solid var(--fylune-line);width:100%;position:relative;overflow:hidden}.form-agent header{flex-shrink:0;min-height:44px;padding:0 .75rem}.form-agent header small{display:none}.form-agent header button{width:44px;height:44px}.form-agent__conversation{padding:0 .85rem .5rem;font-size:.875rem}.form-agent__composer{margin:.4rem .6rem max(.5rem, env(safe-area-inset-bottom));border:1px solid var(--fylune-line);background:var(--fylune-surface-elevated,var(--fylune-surface));border-radius:12px;flex-shrink:0;padding-bottom:0}.form-agent textarea{margin-top:.5rem;font-size:16px}.form-agent__composer-actions{padding:.2rem .4rem .4rem}.editor-app .form-agent__composer-actions button{border-radius:7px;width:30px;min-width:30px;height:30px;min-height:30px;padding:.3rem}.editor-app .form-agent__message-actions button,.editor-app .form-agent__suggestions button{min-width:44px;min-height:44px}.editor-app__markdown{width:calc(100% - 2rem);margin:1rem auto}@supports (position-anchor:--editor-tools-trigger){.editor-app__tools:popover-open{position-anchor:--editor-tools-trigger;top:anchor(bottom);right:anchor(right)}}}.form-agent__attachment-spinner{animation:.8s linear infinite auth-spin}@media (max-width:700px){.editor-dialog,.editor-dialog--auth,.editor-dialog--paywall{width:100%;max-width:100%;max-height:calc(var(--sheet-height,100dvh) - env(safe-area-inset-top) - 12px);border-radius:16px 16px 0 0;margin:0;animation:.18s ease-out editor-sheet-in;position:fixed;inset:auto 0 0;overflow:hidden auto}.editor-dialog__body{min-width:0;padding-bottom:max(1rem, env(safe-area-inset-bottom))}.editor-dialog--auth .editor-dialog__body{max-height:none;overflow:visible}.editor-dialog--auth .auth-shell{border-radius:0;min-height:0;display:block}.editor-dialog--auth .auth-visual{display:none}.editor-dialog--auth .auth-form-panel{min-width:0;padding:3rem 1.25rem max(1.5rem, env(safe-area-inset-bottom))}.editor-dialog--auth .auth-form-panel :is(h1,h2){font-size:1.75rem}.editor-paywall__content{min-width:0;padding:3rem 1rem max(1rem, env(safe-area-inset-bottom))}.editor-paywall__content h2{text-wrap:balance;font-size:1.65rem}.editor-paywall__tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:.125rem;display:grid}.editor-paywall__tabs:has(button:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}.editor-paywall__tabs button{white-space:normal;flex-direction:column;gap:.15rem;min-width:0;padding:.35rem .25rem;font-size:.75rem;line-height:1.25}.editor-paywall__tabs button svg{flex-shrink:0;width:16px;height:16px}.editor-paywall__plans button>span:nth-child(2){min-width:0}.editor-paywall__plans button b{white-space:nowrap}}@keyframes editor-sheet-in{0%{opacity:.5;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.editor-dialog,.form-agent__attachment-spinner{animation:none}}@media (max-width:700px) and (max-height:500px){.form-agent{flex-basis:55%}}@media (max-width:380px){.editor-app__download-label{display:none}.editor-app__export-actions .editor-app__button--primary{min-width:44px}}.editor-app__language{min-width:0;max-width:9rem;height:30px;color:inherit;background:var(--fylune-surface);border:1px solid var(--fylune-border-soft);font:inherit;border-radius:6px;padding:0 6px;font-size:12px}
