html,body,#root{height:100%;margin:0}
#root{position:relative;isolation:isolate}
#root>.fo-route-loader{z-index:3}
.fo-hosted-presentation{display:block;border:0;width:100%;height:100%;height:100dvh}
.fo-hosted-presentation[data-connecting]{visibility:hidden}
.fo-hosted-presentation-error{position:fixed;inset:24px auto auto 24px}
.fo-hosted-native-tools{position:fixed;z-index:2;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;background:var(--templa-page)}
.fo-hosted-tool-nav{flex:none;padding:8px 12px;border-bottom:1px solid var(--line)}
.fo-hosted-native-tools[hidden],.fo-hosted-native-tools>[data-hosted-pane][hidden]{display:none}
.fo-hosted-native-tools>[data-hosted-pane]{display:flex;flex-direction:column;min-height:0;min-width:0;flex:1}
.fo-hosted-preview{display:flex;flex:1;min-height:0;flex-direction:column;gap:8px;padding:12px}
.fo-hosted-preview iframe{display:block;width:100%;flex:1;border:0;border-radius:8px;background:white}
.fo-hosted-preview-status{display:flex;align-items:center;gap:8px;margin:0;color:var(--templa-secondary)}
body{background:var(--templa-page);color:var(--templa-strong);font-family:var(--templa-font)}
.fo-customer-signin{min-height:100%;display:grid;align-content:center;justify-items:center;padding:24px;box-sizing:border-box}
.fo-customer-signin>div:last-child{max-width:100%}
.fo-customer-messages{display:flex;flex-direction:column;gap:20px;width:min(100%,740px);margin-inline:auto;padding:20px;box-sizing:border-box}
.fo-customer-messages .ui-as-msg-user{align-self:end;white-space:pre-wrap;overflow-wrap:anywhere}
.fo-customer-response{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.65;color:var(--templa-strong)}
.fo-customer-messages [role=status]{color:var(--templa-secondary)}

.fo-customer-workspace .ui-as-main:has(>.ui-as-chat__main){position:relative;min-height:0;overflow:hidden}
.fo-customer-workspace .ui-as-chat__main{position:absolute;inset:0;height:auto;display:flex;flex-direction:column;min-height:0}
.fo-customer-workspace .ui-as-chat__thread{flex:1 1 0;min-height:0;overflow:auto}
.fo-customer-workspace .ui-as-chat__bar,.fo-customer-workspace .ui-as-chat__composer{flex:none}
.fo-customer-workspace :is(.ui-as-chat__bar,.fo-workspace__heading)>.ui-button{flex-shrink:0}
.fo-customer-workspace .ui-as-side__foot>.ui-button{align-self:start}

.fo-customer-workspace :is(.ui-as-chat__bar,.fo-workspace__heading,.ui-as-side__foot) .ui-button__label{white-space:nowrap;overflow:visible;text-overflow:clip}
.fo-customer-workspace .ui-as-side__name{flex:none;white-space:nowrap;overflow:visible;text-overflow:clip}
.fo-customer-credit-detail{padding:16px;max-width:270px}
.fo-customer-credit-detail p{margin:8px 0;color:var(--templa-secondary)}
.fo-customer-workspace .ui-as-chat__bar{display:flex;align-items:center;gap:8px}
.fo-customer-workspace .fo-chat-title{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fo-customer-workspace .ui-as-chat__main>[hidden]{display:none}
.fo-customer-view-switch{display:flex;flex:none;gap:3px;padding:3px;border-radius:10px;background:var(--control-bg,var(--panel))}
.fo-customer-view-switch button[aria-pressed=true]{background:var(--panel-2,var(--muted))}
.fo-customer-code{display:flex;flex:1 1 0;flex-direction:column;min-height:0;padding:12px;gap:8px;overflow:hidden}
.fo-customer-code-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.fo-customer-code-bar strong{margin-inline-end:auto}
.fo-customer-code-panes{min-height:0;flex:1 1 0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.fo-customer-files,.fo-customer-source{height:100%;min-width:0;padding:10px;overflow:auto;box-sizing:border-box}
.fo-customer-files small,.fo-customer-source>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fo-customer-files .fo-customer-file-row{display:flex;width:100%;justify-content:flex-start;min-width:0}
.fo-customer-files .fo-customer-file-row .ui-button__label{min-width:0;overflow:hidden;text-overflow:ellipsis}
.fo-customer-files .fo-customer-file-row[aria-current=true]{background:var(--panel-2,var(--muted))}
.fo-customer-source pre{margin:12px 0;tab-size:2;direction:ltr;text-align:left;white-space:pre;font:inherit}
