:root{--cf-safe-top:env(safe-area-inset-top,0px);--cf-safe-right:env(safe-area-inset-right,0px);--cf-safe-bottom:env(safe-area-inset-bottom,0px);--cf-safe-left:env(safe-area-inset-left,0px);--cf-viewport-height:100dvh;--cf-visible-viewport-height:100dvh}
html{width:100%;max-width:100%;min-width:0;overflow-x:hidden;scroll-padding-top:max(12px,var(--cf-safe-top))}
body{width:100%;max-width:100%;min-width:0;min-height:100dvh;margin:0;overflow-x:hidden;box-sizing:border-box}
*,*::before,*::after{box-sizing:border-box;min-width:0}
img,svg,video,canvas,iframe,object,embed{max-width:100%}
img,video{height:auto}
button,input,select,textarea{max-width:100%;font:inherit}
button,a,[role="button"],summary,label{touch-action:manipulation}
pre,code,kbd,samp,.attachment-preview-text,textarea{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
table{max-width:100%;border-collapse:collapse}
.app-shell,.main-panel,.messages,.composer-shell,.cf-public-landing,.cf-public-main,.cf-public-shell,.cf-public-card,.cf-section,.cf-grid,.settings-panel,.auth-panel,.earn-panel,.wallet-panel,.about-panel,.info-panel{max-width:100%;min-width:0}
.main-panel>.topbar{padding-top:max(0px,var(--cf-safe-top));padding-left:max(0px,var(--cf-safe-left));padding-right:max(0px,var(--cf-safe-right))}
.composer-shell{padding-left:max(0px,var(--cf-safe-left));padding-right:max(0px,var(--cf-safe-right));padding-bottom:max(0px,var(--cf-safe-bottom))}
:where(.topbar,.topbar-left,.topbar-right,.sidebar,.sidebar-footer,.composer,.composer-row,.settings-head,.earn-head,.wallet-head,.auth-head,.modal-head){min-width:0;max-width:100%}
:where(.topbar-right,.sidebar-footer,.composer-row,.settings-head,.earn-head,.wallet-head,.auth-head,.modal-head)>*{min-width:0}
:where(.card,.panel,.tile,.tool-card,.app-card,.promo-card,.result-card,.settings-card,.wallet-card,.about-card,.info-card,.cf-public-card,.cf-public-stat){overflow-wrap:anywhere}
dialog,.settings-dialog,.auth-dialog,.earn-dialog,.wallet-dialog,.about-dialog,.info-dialog,#attachmentDialog,#exportDialog{max-width:100vw!important;max-height:100dvh!important;margin:auto!important;border:0;overflow:hidden}
dialog[open],.settings-dialog[open],.auth-dialog[open],.earn-dialog[open],.wallet-dialog[open],.about-dialog[open],.info-dialog[open],#attachmentDialog[open],#exportDialog[open]{display:grid!important;place-items:center;padding:max(8px,var(--cf-safe-top)) max(8px,var(--cf-safe-right)) max(8px,var(--cf-safe-bottom)) max(8px,var(--cf-safe-left))}
dialog[open]::backdrop{background:rgba(3,2,3,.76);backdrop-filter:blur(5px)}
dialog[open]>*{max-width:100%;max-height:calc(100dvh - max(16px,var(--cf-safe-top)) - max(16px,var(--cf-safe-bottom)))}
.settings-panel,.auth-panel,.earn-panel,.wallet-panel,.about-panel,.info-panel,#attachmentDialog>form,#exportDialog>form,.cf-settings-overhaul-panel{width:min(100%,760px);max-width:100%!important;max-height:calc(100dvh - max(16px,var(--cf-safe-top)) - max(16px,var(--cf-safe-bottom)))!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.settings-head,.earn-head,.wallet-head,.auth-head,.modal-head,.cf-settings-hero-head{position:sticky;top:0;z-index:5;max-width:100%}
:where(#closeSettingsBtn,[data-close-dialog],button[aria-label*="close" i],button[title*="close" i]){min-width:44px;min-height:44px;flex:0 0 auto}
.about-card-grid,.wallet-summary-grid-v1057,.wallet-review-grid-v102672,.wallet-payout-method-grid-v10309,.cf-inline-auth-fields,.cf-inline-auth-actions,.provider-footer-v1057{min-width:0}
:where(.messages,.settings-panel,.wallet-panel,.earn-panel,.auth-panel,.about-panel,.info-panel){scrollbar-gutter:stable both-edges}
html.cf-auth-return-pending,html.cf-auth-return-pending body{min-height:100%;overflow:hidden!important;background:#100708!important}
html.cf-auth-return-pending .cf-public-landing,html.cf-auth-return-pending .app-shell{visibility:hidden!important}
html.cf-auth-return-pending #cfAuthPrep{position:fixed!important;inset:0!important;z-index:2147483646!important;display:grid!important;place-items:center!important;padding:max(20px,var(--cf-safe-top)) max(18px,var(--cf-safe-right)) max(20px,var(--cf-safe-bottom)) max(18px,var(--cf-safe-left))!important;overflow:auto!important;visibility:visible!important;opacity:1!important;background:radial-gradient(circle at 50% 15%,rgba(169,24,45,.3),transparent 48%),linear-gradient(180deg,#250b0f,#100708)!important}
html.cf-auth-return-pending #cfAuthPrep[hidden]{display:grid!important}
html.cf-auth-return-pending #cfAuthPrep .cf-auth-prep-card,html.cf-auth-return-pending #cfAuthPrep>div{width:min(100%,460px)!important;max-width:100%!important;margin:auto!important;padding:24px!important;border-radius:22px!important;background:rgba(16,7,8,.96)!important;box-shadow:0 24px 70px rgba(0,0,0,.48)!important}
html:not(.cf-auth-return-pending) body.cf-auth-locked:not(.cf-public-auth-preparing){height:auto!important;min-height:100%!important;position:static!important;overflow-y:auto!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch}
@supports not (height:100dvh){:root{--cf-viewport-height:100vh}
.settings-panel,.auth-panel,.earn-panel,.wallet-panel,.about-panel,.info-panel,#attachmentDialog>form,#exportDialog>form,.cf-settings-overhaul-panel{max-height:calc(100vh - 16px)!important}}
@media(max-width:760px){dialog[open],.settings-dialog[open],.auth-dialog[open],.earn-dialog[open],.wallet-dialog[open],.about-dialog[open],.info-dialog[open],#attachmentDialog[open],#exportDialog[open]{place-items:start center!important}
.settings-panel,.auth-panel,.earn-panel,.wallet-panel,.about-panel,.info-panel,#attachmentDialog>form,#exportDialog>form,.cf-settings-overhaul-panel{width:100%!important;border-radius:min(22px,5vw)}
.about-card-grid,.wallet-summary-grid-v1057,.wallet-review-grid-v102672,.wallet-payout-method-grid-v10309,.cf-inline-auth-fields,.cf-inline-auth-actions,.provider-footer-v1057{grid-template-columns:minmax(0,1fr)!important}
.topbar-right{gap:6px}
.topbar-right .connection-chip{max-width:34vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:where(.cf-public-shell,.cf-public-main,.cf-section){width:100%;max-width:100%}
:where(.cf-public-actions,.auth-actions,.settings-actions,.wallet-actions){align-items:stretch}
:where(.cf-public-actions,.auth-actions,.settings-actions,.wallet-actions)>:where(button,a){max-width:100%}}
@media(max-width:420px){dialog[open]{padding:max(4px,var(--cf-safe-top)) max(4px,var(--cf-safe-right)) max(4px,var(--cf-safe-bottom)) max(4px,var(--cf-safe-left))}
.topbar-right .connection-chip{max-width:28vw}
:where(.settings-head,.earn-head,.wallet-head,.auth-head,.modal-head,.cf-settings-hero-head){gap:8px}}
:where(.skip-link,.cf-skip-link){min-height:44px;display:inline-flex;align-items:center}
#earnDialog[open] #cpxFrameShell{position:relative!important;isolation:isolate!important;background:linear-gradient(180deg,#16090d,#080506)!important;min-height:clamp(340px,68dvh,760px)!important}
#earnDialog[open] #cpxFrameShell #fullscreen.cpx-script-widget-v102692{position:relative!important;z-index:2!important;opacity:0!important;transition:opacity .22s ease!important;min-height:clamp(340px,68dvh,760px)!important}
#earnDialog[open] #cpxFrameShell[data-provider-state="ready"] #fullscreen.cpx-script-widget-v102692{opacity:1!important}
#earnDialog[open] #cpxFrameShell[data-provider-state="slow"] #fullscreen.cpx-script-widget-v102692{opacity:.08!important}
#earnDialog[open] #cpxFrameShell:not([data-provider-state="ready"]) #cpxEmptyState:not([hidden]){display:flex!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;position:absolute!important;inset:0!important;z-index:4!important;min-height:100%!important;flex-direction:column!important;gap:8px!important;background:radial-gradient(circle at 50% 38%,rgba(255,171,74,.18),transparent 34%),linear-gradient(180deg,#16090d,#080506)!important;color:#fff3e7!important}
#earnDialog[open] #cpxFrameShell[data-provider-state="ready"] #cpxEmptyState,#earnDialog[open] #cpxFrameShell #cpxEmptyState[aria-hidden="true"]{display:none!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important}
#earnDialog[open] #cpxEmptyState b{font-size:1.05rem!important;color:#fff6e9!important}
#earnDialog[open] #cpxEmptyState span{max-width:420px!important;color:rgba(255,239,225,.68)!important;line-height:1.45!important}
@media(max-width:760px){#earnDialog[open] #cpxFrameShell,#earnDialog[open] #cpxFrameShell #fullscreen.cpx-script-widget-v102692{min-height:64dvh!important}}
.composer-shell,.composer-wrap,.composer-card{width:100%!important;max-width:100%!important;min-width:0!important}
.composer-wrap{padding-inline:max(8px,var(--cf-safe-left)) max(8px,var(--cf-safe-right))!important;overflow:visible!important}
.composer-card{display:grid!important;grid-template-columns:auto auto minmax(0,1fr) auto!important;align-items:end!important;gap:6px!important;padding:8px!important;overflow:hidden!important}
.composer-card>#attachBtn,.composer-card>#micBtn{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;flex:0 0 44px!important}
#promptInput{width:100%!important;min-width:0!important;max-width:none!important;height:auto;min-height:44px!important;max-height:156px!important;margin:0!important;padding:10px 8px!important;resize:none!important;overflow-x:hidden!important}
.composer-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important;overflow:visible!important}
.composer-actions>.tool-btn,.composer-actions>.send-btn{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;flex:0 0 44px!important;margin:0!important;inset:auto!important;transform:none!important}
.composer-actions>.send-btn{width:46px!important;min-width:46px!important;max-width:46px!important;flex-basis:46px!important}
.composer-actions>.hidden{display:none!important}
@media(max-width:520px){.composer-wrap{padding-inline:max(6px,var(--cf-safe-left)) max(6px,var(--cf-safe-right))!important}
.composer-card{gap:5px!important;padding:7px!important;grid-template-columns:42px 42px minmax(0,1fr) auto!important}
.composer-card>#attachBtn,.composer-card>#micBtn,.composer-actions>.tool-btn{width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;flex-basis:42px!important}
.composer-actions>.send-btn{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;flex-basis:44px!important}
#promptInput{min-height:42px!important;padding-inline:6px!important}}
@media(max-width:390px){.composer-actions>#voiceOutputBtn{display:none!important}
.composer-card{grid-template-columns:40px 40px minmax(0,1fr) 44px!important}
.composer-card>#attachBtn,.composer-card>#micBtn{width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important}}
.earn-cpx-widget>.earn-cpx-direct-frame{display:block!important;width:100%!important;max-width:100%!important;min-height:clamp(560px,72dvh,920px)!important;height:72dvh!important;border:0!important;border-radius:16px!important;background:#fff!important}
@media(max-width:760px){.earn-cpx-widget>.earn-cpx-direct-frame{min-height:68dvh!important;height:68dvh!important;border-radius:12px!important}}
.messages{justify-items:stretch!important}
.message-row{
  inline-size:100%!important;
  width:100%!important;
  min-width:0!important;
  max-width:980px!important;
  justify-self:stretch!important;
  box-sizing:border-box!important;
}
.message-row>.message-card{
  inline-size:100%!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%;
  justify-self:stretch!important;
  box-sizing:border-box!important;
}
.message-row[data-role="user"]>.message-card{
  max-width:min(100%,690px)!important;
  justify-self:end!important;
}
.message-row .message-head,.message-row .message-role-wrap,.message-row .message-content{
  inline-size:100%!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%;
}
.message-row .message-content{
  writing-mode:horizontal-tb!important;
  overflow-wrap:anywhere;
}
@media(max-width:900px){.message-row>.message-card,.message-row[data-role="user"]>.message-card{
    inline-size:auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    justify-self:stretch!important;
    margin-inline:0!important;
  }
.message-row .message-head,.message-row .message-role-wrap,.message-row .message-content{
    inline-size:auto!important;
    width:auto!important;
  }}
@media(max-width:620px){.message-row,.message-row[data-role="user"]{
    grid-template-columns:minmax(0,1fr)!important;
  }
.message-row>.avatar{
    display:none!important;
  }
.message-row>.message-card,.message-row[data-role="user"]>.message-card{
    grid-column:1!important;
  }}