.naraya-rte{display:flex;flex-direction:column;width:100%;border:1px solid rgb(var(--border-subtle));border-radius:.625rem;background-color:rgb(var(--bg-surface));overflow:hidden;transition:border-color var(--duration-fast) var(--easing-smooth),box-shadow var(--duration-fast) var(--easing-smooth)}.naraya-rte:focus-within{border-color:rgb(var(--color-primary));box-shadow:0 0 0 3px rgb(var(--ring-focus)/.2)}.naraya-rte--readonly{background-color:transparent}.naraya-rte--readonly:focus-within{border-color:rgb(var(--border-subtle));box-shadow:none}.naraya-rte__toolbar{flex-wrap:wrap;padding:.375rem .5rem;border-bottom:1px solid rgb(var(--border-subtle));background-color:rgb(var(--color-secondary)/.35)}.naraya-rte__group,.naraya-rte__toolbar{display:flex;align-items:center;gap:.125rem}.naraya-rte__sep{width:1px;height:1.25rem;margin:0 .25rem;background-color:rgb(var(--border-subtle))}.naraya-rte__tool{display:inline-flex;align-items:center;justify-content:center;width:1.875rem;height:1.875rem;padding:0;border:0;border-radius:.375rem;background:transparent;color:rgb(var(--text-muted));cursor:pointer;transition:color var(--duration-fast) var(--easing-smooth),background-color var(--duration-fast) var(--easing-smooth)}.naraya-rte__tool:hover:not(:disabled){color:rgb(var(--text-main));background-color:rgb(var(--color-secondary)/.8)}.naraya-rte__tool--active{color:rgb(var(--color-primary));background-color:rgb(var(--color-primary)/.12)}.naraya-rte__tool:disabled{opacity:.4;cursor:not-allowed}.naraya-rte__surface{padding:.875rem 1rem;overflow-y:auto}.naraya-rte__content{outline:none;font-size:.9375rem;line-height:1.6;color:rgb(var(--text-main))}.naraya-rte__content>*+*{margin-top:.65rem}.naraya-rte__content:focus{outline:none}.naraya-rte__content .is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;height:0;color:rgb(var(--text-muted));pointer-events:none}.naraya-rte__content h1{font-size:1.5rem;font-weight:700;line-height:1.25}.naraya-rte__content h2{font-size:1.25rem;font-weight:700;line-height:1.3}.naraya-rte__content h3{font-size:1.0625rem;font-weight:600;line-height:1.35}.naraya-rte__content ol,.naraya-rte__content ul{padding-left:1.5rem}.naraya-rte__content ul{list-style:disc}.naraya-rte__content ol{list-style:decimal}.naraya-rte__content li>p{margin:0}.naraya-rte__content blockquote{padding-left:.875rem;border-left:3px solid rgb(var(--color-primary)/.4);color:rgb(var(--text-muted))}.naraya-rte__content a,.naraya-rte__link{color:rgb(var(--color-primary));text-decoration:underline;cursor:pointer}.naraya-rte__content code{padding:.1rem .3rem;font-size:.85em;background-color:rgb(var(--color-secondary)/.7);border-radius:.25rem}.naraya-rte__content code,.naraya-rte__content pre{font-family:var(--font-mono,ui-monospace,monospace)}.naraya-rte__content pre{padding:.75rem .875rem;font-size:.85rem;color:rgb(var(--text-main));background-color:rgb(var(--color-secondary)/.6);border-radius:.5rem;overflow-x:auto}.naraya-rte__content pre code{padding:0;background:transparent}.naraya-rte__content hr{border:0;border-top:1px solid rgb(var(--border-subtle))}.naraya-rte__content:after{content:"";display:block;clear:both}.naraya-rte__img-wrap{position:relative;display:block;width:-moz-fit-content;width:fit-content;max-width:100%;margin:.5rem 0;line-height:0}.naraya-rte__img-wrap img{cursor:grab}.naraya-rte__img-wrap img:active{cursor:grabbing}.naraya-rte__img-wrap--center{margin-left:auto;margin-right:auto}.naraya-rte__img-wrap--right{margin-left:auto;margin-right:0}.naraya-rte__img-wrap--wrap{float:left;margin:.25rem 1rem .5rem 0}.naraya-rte__img-wrap--wrap.naraya-rte__img-wrap--right{float:right;margin:.25rem 0 .5rem 1rem}.naraya-rte__img-wrap img{display:block;max-width:100%;height:auto;border-radius:.5rem}.naraya-rte__img-wrap--selected img{outline:2px solid rgb(var(--color-primary));outline-offset:2px}.naraya-rte__img-handle{position:absolute;right:-6px;bottom:-6px;width:14px;height:14px;border-radius:50%;background-color:rgb(var(--color-primary));border:2px solid rgb(var(--bg-surface));cursor:nwse-resize;touch-action:none}.naraya-rte__img-toolbar{position:absolute;top:-2.4rem;left:0;z-index:5;display:flex;gap:2px;padding:3px;background-color:rgb(var(--bg-surface));border:1px solid rgb(var(--border-subtle));border-radius:.5rem;box-shadow:var(--shadow-md)}.naraya-rte__img-btn{display:inline-flex;align-items:center;justify-content:center;width:1.625rem;height:1.625rem;padding:0;border:0;border-radius:.3125rem;background:transparent;color:rgb(var(--text-muted));cursor:pointer}.naraya-rte__img-btn:hover{color:rgb(var(--text-main));background-color:rgb(var(--color-secondary))}.naraya-rte__img-btn--active{color:rgb(var(--color-primary));background-color:rgb(var(--color-primary)/.12)}.naraya-rte__img-btn-sep{width:1px;height:1.125rem;margin:0 .1875rem;background-color:rgb(var(--border-subtle))}.naraya-rte__image{display:block;max-width:100%;height:auto;border-radius:.5rem;margin:.5rem 0}.naraya-rte__image[data-align=center]:not([data-wrap=true]){margin:.5rem auto}.naraya-rte__image[data-align=right]:not([data-wrap=true]){margin:.5rem 0 .5rem auto}.naraya-rte__image[data-wrap=true]{float:left;margin:.25rem 1rem .5rem 0}.naraya-rte__image[data-wrap=true][data-align=right]{float:right;margin:.25rem 0 .5rem 1rem}.naraya-rte__content pre .hljs-comment,.naraya-rte__content pre .hljs-quote{color:rgb(var(--text-muted));font-style:italic}.naraya-rte__content pre .hljs-built_in,.naraya-rte__content pre .hljs-keyword,.naraya-rte__content pre .hljs-literal,.naraya-rte__content pre .hljs-selector-tag,.naraya-rte__content pre .hljs-tag{color:rgb(var(--color-primary))}.naraya-rte__content pre .hljs-addition,.naraya-rte__content pre .hljs-regexp,.naraya-rte__content pre .hljs-string{color:rgb(var(--color-success))}.naraya-rte__content pre .hljs-meta,.naraya-rte__content pre .hljs-number,.naraya-rte__content pre .hljs-symbol{color:rgb(var(--color-warning))}.naraya-rte__content pre .hljs-attr,.naraya-rte__content pre .hljs-attribute,.naraya-rte__content pre .hljs-name,.naraya-rte__content pre .hljs-section,.naraya-rte__content pre .hljs-title{color:rgb(var(--color-info))}.naraya-rte__content pre .hljs-class .hljs-title,.naraya-rte__content pre .hljs-type{color:rgb(var(--color-accent))}