@layer components{.typewriter{--_cursor:var(--typewriter-cursor-color,currentColor);display:inline;position:relative;&:not([data-init])>:not(:first-child){display:none}&>.typewriter-source{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}&>.typewriter-line{white-space:pre-wrap}& .typewriter-cursor{vertical-align:-.15em;background:var(--_cursor);width:max(2px,.08em);height:1.1em;margin-inline-start:.06em;animation:1s step-end infinite typewriter-blink;display:inline-block}&:is([data-phase=typing],[data-phase=deleting]) .typewriter-cursor{animation:none}&[data-cursor=block] .typewriter-cursor{opacity:.85;width:.55em}&[data-cursor=underscore] .typewriter-cursor{vertical-align:-.1em;width:.6em;height:max(2px,.1em)}&[data-cursor=none] .typewriter-cursor{display:none}&[data-cursor-hide=typing]:is([data-phase=typing],[data-phase=deleting]) .typewriter-cursor,&[data-cursor-hide=done][data-state-name=done] .typewriter-cursor{visibility:hidden}&[data-reserve]{vertical-align:bottom;justify-items:start;display:inline-grid;&>:is(.typewriter-line,.typewriter-ghost){grid-area:1/1}&>.typewriter-ghost{visibility:hidden;pointer-events:none;padding-inline-end:.2em;display:grid;&>span{white-space:pre;grid-area:1/1}}&>.typewriter-line{white-space:pre}}&[data-reserve][data-align=center]{justify-items:center}&[data-reserve][data-align=end]{justify-items:end}}@keyframes typewriter-blink{50%{opacity:0}}@media (prefers-reduced-motion:reduce){.typewriter .typewriter-cursor{animation:none}}@media (prefers-contrast:more){.typewriter[data-cursor=block] .typewriter-cursor{opacity:1}}@media (forced-colors:active){.typewriter .typewriter-cursor{forced-color-adjust:none;background:canvastext}}}