/* Final viewport authority: subtract announcement height and react to keyboard. */
html,body{overflow:hidden!important}.app,.app>.canvas{height:var(--tai-launch-height,100dvh)!important;max-height:var(--tai-launch-height,100dvh)!important;min-height:0!important}.app>.canvas{overflow:hidden!important}.tai-launch-chat-toggle{border:0;background:none;font:inherit;font-weight:700;color:inherit;cursor:pointer;padding:2px 0}.tai-launch-chat-collapsed #chat{display:none!important}.tai-launch-chat-collapsed{flex:0 0 auto!important;min-height:0!important;max-height:42px!important}.drawer[data-name="design"]{width:min(620px,calc(100vw - 230px))!important;min-width:0!important;overflow-y:auto!important;overflow-x:hidden!important}.drawer[data-name="design"] .templates{display:block!important;width:100%!important}.tpl-vault-head{display:flex!important;flex-wrap:wrap!important}.tpl-search{min-width:0!important;width:100%!important;flex:1 1 180px!important}.tpl-filter{width:100%;min-width:0;overflow-x:auto!important}.tpl-lazy-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%!important}.tpl-lazy-grid>.tpl{width:100%!important;min-width:0!important;padding:8px!important;overflow:hidden!important}.tpl-lazy-grid .thumb{height:auto!important;aspect-ratio:210/297!important;padding:0!important;width:100%!important;background:white!important;overflow:hidden!important}.tpl-lazy-grid .thumb::before{display:none!important}.tpl-lazy-grid .thumb img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:top!important}.tpl-lazy-grid b{display:block;font-size:13px;margin-top:8px}.tpl-lazy-grid small{font-size:11px}.tpl-deck,.tpl-deck-nav{display:none!important}.tpl-preview-error{display:flex;align-items:center;justify-content:center;height:100%;padding:12px;color:#615770;font-size:12px}.tpl-preview-error button{padding:8px;border:1px solid #ddd;border-radius:8px;background:#fff}
@media(max-width:1100px){.app{display:block!important}.app>.canvas{display:flex!important;flex-direction:column!important}.canvas>.topbar{flex:0 0 54px!important;height:54px!important;min-height:0!important}.canvas>.stage{flex:0 0 clamp(70px,22dvh,180px)!important;height:auto!important;min-height:0!important;padding:6px 10px!important;overflow:hidden!important}.canvas>.tai297-mobile-conversation{flex:1 1 0!important;min-height:0!important;max-height:none!important;overflow:hidden!important}.canvas>.tai297-mobile-conversation>#chat{min-height:0!important;overflow-y:auto!important}.canvas>#taiUnifiedComposer{position:relative!important;inset:auto!important;transform:none!important;flex:0 0 auto!important;width:calc(100% - 16px)!important;max-width:none!important;margin:4px 8px max(8px,env(safe-area-inset-bottom))!important;padding:8px!important;max-height:none!important;overflow:visible!important}.canvas>#taiUnifiedComposer textarea{height:42px!important;min-height:38px!important;max-height:64px!important;font-size:16px!important;overflow-y:auto!important}.canvas>#taiUnifiedComposer .tai-compose-row{min-height:44px!important;flex-shrink:0!important;align-items:center!important}#taiUnifiedSend{min-height:44px!important;min-width:86px!important;visibility:visible!important;opacity:1!important}.stage>.tai-ai-actions{display:none!important}.stage .paperwrap{height:100%;overflow:hidden}.stage .paybar{position:absolute!important;bottom:4px!important;left:50%!important;transform:translateX(-50%)!important;width:max-content!important;max-width:calc(100% - 12px)!important;right:auto!important;white-space:normal!important;font-size:10px!important;padding:4px 6px!important}.drawer[data-name="design"]{left:0!important;width:min(620px,100vw)!important;max-width:100vw!important;box-sizing:border-box!important}.tai-launch-keyboard .canvas>.stage{flex-basis:44px!important}.tai-launch-keyboard .tai297-heading{padding:4px 12px!important}.tai-launch-keyboard .tai297-heading button{font-size:12px}.nav{max-height:var(--tai-launch-height,100dvh)!important}.drawer{max-height:calc(var(--tai-launch-height,100dvh) - 54px)!important}.tai-ai-actions{max-width:100%}}
@media(max-width:340px){.tpl-lazy-grid{grid-template-columns:minmax(0,1fr)!important}}

.tai-launch-preview-toggle{display:none}
@media(max-width:1100px){.tai-launch-preview-toggle{display:block;position:absolute;top:4px;right:10px;z-index:9;border:1px solid #ded8e8;background:#fff;color:#372454;border-radius:9px;padding:10px 12px;font-size:12px;font-weight:700;cursor:pointer;min-height:40px}.tai-launch-full-preview .canvas>.stage{flex:1 1 auto!important;overflow:auto!important;height:auto!important;padding-bottom:50px!important}.tai-launch-full-preview .stage>.paperwrap{height:auto!important;max-width:760px!important;pointer-events:auto!important;overflow:visible!important;margin-top:44px}.tai-launch-full-preview .stage .preview{height:auto!important;overflow:visible!important}.tai-launch-full-preview .stage .preview img{height:auto!important;width:100%!important;margin-bottom:16px!important}.tai-launch-full-preview .canvas>.tai297-mobile-conversation,.tai-launch-full-preview .canvas>#taiUnifiedComposer{display:none!important}.tai-launch-full-preview .tai-launch-preview-toggle{position:sticky;top:0;margin-left:auto}.tai-launch-full-preview .stage .paybar{position:sticky!important;bottom:8px!important;left:auto!important;transform:none!important;margin:8px auto!important}}

@media(max-width:1100px){.tai-launch-tiny .canvas>.stage{display:none!important}.tai-launch-tiny .tai297-heading{display:none!important}.tai-launch-minimal .canvas>.topbar{display:none!important}.tai-launch-minimal .canvas>#taiUnifiedComposer{padding:4px!important;margin:2px 8px!important}.tai-launch-minimal .canvas>#taiUnifiedComposer textarea{height:24px!important;min-height:24px!important;max-height:24px!important;padding:2px!important}}
