/* Route-only entry, home, profile and conversational workspace. */
@media(max-width:380px){html body.onda-create-page .site-head.onda-floating-header>.brand-lockup{width:88px!important;min-width:88px!important}html body.onda-create-page .site-head.onda-floating-header{gap:4px!important}html body.onda-create-page .site-head.onda-floating-header>.portal-profile-toggle{width:40px!important;min-width:40px!important}.onda-create-page .brand-mark{width:55px!important}}
body.onda-create-page{--portal-muted:#bcc0c9}
html[data-theme=light] body.onda-create-page{--portal-muted:#4c515b}
.onda-create-page [hidden],.onda-create-page #ai-home[hidden],.onda-create-page #ai-person[hidden],.onda-create-page #ai-conversations[hidden]{display:none!important}
html body.onda-create-page .site-head.onda-floating-header>.portal-profile-toggle{width:44px!important;min-width:44px!important;height:44px!important;border:0;padding:0!important;border-radius:14px!important;background:none}
.portal-avatar{width:100%;height:100%;display:block}
.onda-create-page .portal-avatar{stroke:none;fill:none}
.portal-avatar path,.portal-avatar rect{stroke-linejoin:round}
.portal-tool-nav{display:flex;align-items:center;flex:none;position:relative}
.ai-navigation .portal-tool-nav>[data-view]{padding-right:4px}
.ai-navigation .portal-model-arrow{padding:8px 3px;min-width:22px;min-height:40px}
.onda-create-page .ai-navigation .portal-model-arrow svg{display:block;width:12px;height:12px}
.ai-navigation .portal-home-nav svg{width:16px;height:16px}
html body.onda-create-page .site-head .ai-navigation{gap:3px}
body[data-portal-guest=true] .site-head .brand-lockup{margin-right:auto!important}
html body.onda-create-page[data-portal-guest=true] .site-head.onda-floating-header>.ai-navigation,body[data-portal-guest=true] #ai-profile-toggle{display:none!important}
body[data-portal-guest=true] .create-background{left:35%;width:75%}
body[data-portal-guest=true] .create-background #onda-glyphs{opacity:.8;mask-image:linear-gradient(90deg,transparent,#000 35%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 35%)}
.onda-create-page #entry.portal-entry{position:relative;inset:auto;height:100%;max-height:100%;min-height:0;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;padding:10px 2vw 20px;background:none}
.portal-auth-pane{grid-column:1;grid-row:1;display:flex;align-items:safe center;justify-content:center;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px}
.portal-auth-card{width:min(100%,370px);padding:12px 0;text-align:center;border:0;border-radius:0;background:none;animation:none}
@keyframes portal-flow{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
.portal-auth-card>img{display:block;margin:0 auto 12px}
.portal-auth-card h1{font-size:30px;line-height:1.15;margin:0 0 24px;letter-spacing:-.035em}
.portal-auth-card h1 em{display:block;margin-top:5px}
.portal-auth-intro{font-size:13px;line-height:1.7;color:var(--portal-muted);margin:0 0 20px}
.portal-auth-tabs{display:flex;background:var(--ai-field);border-radius:10px;padding:4px;gap:4px;margin-bottom:18px}
.portal-auth-tabs button{flex:1;padding:10px 4px;border:0;background:none;color:var(--portal-muted);font-size:12px;border-radius:7px}
.portal-auth-tabs button[aria-selected=true]{background:#ff76342b;color:var(--ink)}
.portal-auth-card label{text-align:left;display:block;margin:12px 0 6px;font-size:12px;color:var(--ink)}
.portal-auth-card input,.portal-person-dialog input,.portal-person-dialog textarea{display:block;width:100%;min-height:44px;border:1px solid var(--ai-line);background:var(--ai-surface);border-radius:9px;color:var(--ink);padding:11px 12px;font-size:14px}
.portal-auth-card #auth-forgot{display:block;margin:9px 0 14px auto;border:0;background:none;color:var(--portal-muted);font-size:11px;padding:4px}
.portal-auth-card #auth-submit{width:100%;margin-top:4px;justify-content:center;min-height:44px;background:var(--ink);color:var(--paper,#111);border:0}
html[data-theme=dark] .portal-auth-card #auth-submit{color:#101114}
html[data-theme=light] .portal-auth-card #auth-submit{color:#fff}
.portal-auth-divider{display:flex;align-items:center;gap:14px;margin:18px 0;color:var(--portal-muted);font-size:12px}
.portal-auth-divider::before,.portal-auth-divider::after{content:'';height:1px;flex:1;background:var(--ai-line)}
.portal-auth-providers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.portal-auth-providers button,.portal-auth-sso{min-height:42px;border:1px solid var(--ai-line);border-radius:8px;background:var(--ai-surface);color:var(--ink);font-size:11px;padding:8px 4px}
.portal-auth-providers button:hover,.portal-auth-sso:hover{border-color:var(--accent)}
.portal-auth-sso{width:100%;margin-top:8px;font-size:13px}
.portal-auth-note{font-size:10px;line-height:1.6;color:var(--portal-muted);margin:14px 0}
#auth-status{font-size:12px;line-height:1.5;color:var(--ink)}
#auth-status:empty{display:none}
#portal-demo{display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;padding:11px 0;width:100%;background:none;border:0;color:var(--ink)}
#portal-demo svg{width:17px;height:17px}
.portal-auth-scene{grid-column:2;grid-row:1;display:flex;flex-direction:column;justify-content:flex-end;padding:6vh 3vw;z-index:1;pointer-events:none}
.portal-auth-scene>span{font-size:clamp(42px,7vw,100px);font-weight:700;letter-spacing:-.04em;color:var(--ink)}
.portal-ai-dot{color:var(--accent)}
.portal-auth-scene p{font-size:clamp(20px,3vw,38px);line-height:1.3;letter-spacing:-.025em;color:var(--portal-muted)}
.portal-model-menu,.portal-profile-menu{position:fixed;z-index:1100;background:var(--ai-surface);border:1px solid var(--ai-line);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-radius:16px;box-shadow:0 18px 40px #0005;color:var(--ink)}
.portal-model-menu{top:70px;left:clamp(12px,12vw,200px);width:min(800px,calc(100vw - 24px));max-height:calc(100dvh - 90px);padding:20px;overflow-y:auto;overscroll-behavior:contain}
.portal-menu-heading{display:flex;justify-content:space-between;align-items:center}
.portal-menu-heading h2{font-family:inherit;font-size:20px;letter-spacing:-.02em;margin:0}
.portal-menu-heading button{width:34px;height:34px;display:grid;place-items:center;background:var(--ai-field);border:0;border-radius:50%;color:var(--ink)}
.portal-menu-heading svg{width:18px;height:18px}
.portal-model-menu>p{font-size:12px;color:var(--portal-muted);margin:12px 0 18px}
.portal-model-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.portal-model-link{padding:14px;text-align:left;border:0;border-radius:10px;background:transparent;color:var(--ink)}
.portal-model-link:hover,.portal-model-link:focus-visible{background:linear-gradient(110deg,#ff642c25,#a5b9ff19)}
.portal-model-link strong{display:block;font-size:14px;font-weight:600}
.portal-model-link small{display:block;font-size:11px;line-height:1.5;margin-top:5px;color:var(--portal-muted)}
.portal-profile-menu{right:12px;top:70px;width:min(320px,calc(100vw - 24px));padding:14px;max-height:calc(100dvh - 90px);overflow-y:auto}
.portal-profile-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:12px 8px;text-align:left;border:0;background:none;color:var(--ink);font-size:13px;border-radius:8px}
.portal-profile-menu button:hover{background:var(--ai-field)}
.portal-profile-menu svg{width:18px;height:18px;flex:none}
.portal-profile-summary [data-avatar]{width:42px;height:42px;flex:none}
.portal-profile-summary [data-avatar] svg{width:42px;height:42px}
.portal-profile-summary strong{display:block;max-width:195px;overflow-wrap:anywhere}
.portal-profile-summary small{display:block;color:var(--portal-muted);font-size:10px;margin-top:4px}
.portal-credit{background:var(--ai-field);padding:12px;margin:10px 0;border-radius:10px;font-size:12px}
.portal-credit>strong{float:right;font-size:11px;font-weight:500;color:var(--portal-muted)}
.portal-credit p{clear:both;font-size:11px;line-height:1.5;color:var(--portal-muted)}
.portal-credit button{color:var(--accent);padding:6px 0}
.portal-language{font-size:12px;display:flex;justify-content:space-between;padding:10px 8px;color:var(--portal-muted)}
.portal-home{height:100%;min-height:0;display:flex;flex-direction:column;gap:18px;padding:10px 12px 16px;overflow:hidden}
.portal-home-title{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none}
.portal-home h1{font-size:clamp(28px,3.6vw,50px);line-height:1.1;margin:0;letter-spacing:-.035em}
.portal-home-title p{font-size:13px;color:var(--portal-muted);margin:12px 0 0}
.portal-carousel-controls{display:flex;gap:8px}
.portal-carousel-controls button{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--ai-line);background:var(--ai-surface);border-radius:50%;color:var(--ink)}
.portal-carousel-controls svg{width:18px;height:18px}
.portal-showcase{display:flex;gap:18px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;min-height:130px;flex:1;padding:2px 0 10px}
.portal-showcase-item{flex:0 0 46%;min-width:0;display:flex;flex-direction:column;scroll-snap-align:start;gap:9px}
.portal-showcase-item video{width:100%;height:calc(100% - 40px);min-height:80px;object-fit:cover;border-radius:16px;background:#101114;flex:1}
.portal-showcase-item>button{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 1px;min-height:30px;color:var(--ink);background:none;border:0;text-align:left;font-size:15px;font-weight:600}
.portal-showcase-item button svg{width:18px;height:18px}
.portal-home-bottom{flex:none;display:flex;align-items:center;gap:24px}
.portal-home-bottom p{font-size:14px;margin:0;white-space:nowrap}
.portal-home-bottom p span{display:block;font-size:10px;color:var(--portal-muted);margin-top:7px}
.portal-quick-start{display:flex;flex:1;gap:10px}
.portal-quick-start button{display:flex;align-items:center;justify-content:space-between;gap:15px;flex:1;padding:16px 12px;background:var(--ai-surface);border:1px solid var(--ai-line);border-radius:12px;color:var(--ink);text-align:left;font-size:12px}
.portal-quick-start svg{width:17px;height:17px;flex:none;color:var(--accent)}
.portal-profile-page{flex:1;min-height:0;display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px;overflow:hidden}
.portal-person-card,.portal-person-works{background:var(--ai-surface);border:1px solid var(--ai-line);border-radius:18px;padding:26px;overflow-y:auto;overscroll-behavior:contain}
.portal-large-avatar{display:block;width:110px;height:110px;margin-bottom:25px}
.portal-person-card h1{font-size:25px;margin:0 0 10px;overflow-wrap:anywhere;letter-spacing:-.03em}
.portal-person-card p{font-size:13px;line-height:1.6;color:var(--portal-muted);overflow-wrap:anywhere}
.portal-local-label{font-size:10px;color:var(--portal-muted)}
#edit-person{width:100%;margin-top:22px;border:1px solid var(--ai-line);background:var(--ai-field);border-radius:9px;padding:12px;color:var(--ink);font-size:12px}
.portal-profile-metrics{display:flex;gap:25px;margin-top:30px;font-size:10px;color:var(--portal-muted)}
.portal-profile-metrics strong{display:block;font-size:26px;font-weight:500;margin-bottom:6px;color:var(--ink)}
.portal-profile-tabs{display:flex;gap:18px;border-bottom:1px solid var(--ai-line);margin-bottom:40px}
.portal-profile-tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:10px 0 15px;color:var(--portal-muted);font-size:13px}
.portal-profile-tabs button[aria-pressed=true]{color:var(--ink);border-bottom-color:var(--accent)}
#person-content h2{font-size:clamp(24px,3vw,42px);letter-spacing:-.03em}
#person-content p{max-width:55ch;font-size:14px;line-height:1.7;color:var(--portal-muted)}
#person-content button{margin-top:20px}
.portal-person-dialog{width:min(460px,calc(100vw - 24px))}
.portal-person-dialog label{display:block;margin:16px 0 7px;font-size:12px}
.portal-person-dialog p{font-size:12px;color:var(--portal-muted);line-height:1.5}
.portal-avatar-edit{display:flex;align-items:center;gap:20px;margin-top:20px}
.portal-avatar-edit [data-avatar]{display:block;width:90px;height:90px}
.portal-avatar-edit button{border:1px solid var(--ai-line);border-radius:9px;background:var(--ai-field);color:var(--ink);padding:10px;font-size:12px}
body[data-workspace-mode=home] .ai-mobile-switch,body[data-workspace-mode=profile] .ai-mobile-switch,body[data-workspace-mode=chat] .ai-mobile-switch{display:none}
body[data-workspace-mode=chat] #editor{display:none!important}
.portal-conversations{height:100%;min-height:0;display:grid;grid-template-columns:210px minmax(0,1fr);gap:12px}
.portal-chat-sidebar{display:flex;flex-direction:column;min-height:0;padding:15px;background:var(--ai-surface);border:1px solid var(--ai-line);border-radius:16px}
.portal-chat-sidebar button{color:var(--ink);background:none;border:0;border-radius:8px;text-align:left;font-size:12px;padding:11px;width:100%}
.portal-chat-sidebar>button:first-child{display:flex;align-items:center;gap:9px;background:var(--ai-field);min-height:42px}
.portal-chat-sidebar svg{width:16px;height:16px}
.portal-chat-sidebar>p{font-size:10px;color:var(--portal-muted);margin:20px 10px 8px}
#conversation-list{overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain}
#conversation-list p{font-size:12px;color:var(--portal-muted);padding:10px}
#conversation-list button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:3px 0}
#conversation-list button[aria-current=true]{background:linear-gradient(110deg,#ff642c25,#a5b9ff19)}
.portal-chat-main{display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--ai-surface);border:1px solid var(--ai-line);border-radius:18px;overflow:hidden}
.portal-chat-heading{display:flex;gap:12px;align-items:center;flex:none;min-height:56px;padding:12px 18px;border-bottom:1px solid var(--ai-line)}
.portal-chat-heading>span{font-size:10px;color:var(--portal-muted);margin-left:auto}
.portal-chat-heading button{display:flex;align-items:center;gap:10px;background:none;color:var(--ink);border:0;padding:6px 0;font-size:13px}
.portal-chat-heading svg{width:17px;height:17px}
.portal-chat-heading #conversation-history{display:none}
#conversation-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px max(20px,calc((100% - 760px)/2));scrollbar-gutter:stable}
.portal-chat-welcome{height:100%;min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.portal-chat-welcome img{margin-bottom:20px}
.portal-chat-welcome h1{font-size:clamp(28px,3.7vw,48px);margin:0 0 15px;letter-spacing:-.035em}
.portal-chat-welcome p{font-size:13px;line-height:1.6;color:var(--portal-muted)}
.portal-chat-message{max-width:85%;width:fit-content;margin:0 0 18px auto;border-radius:15px 15px 3px 15px;background:linear-gradient(110deg,#ff642c22,#a5b9ff15);padding:14px 18px}
.portal-chat-message>small{font-size:10px;color:var(--portal-muted)}
.portal-chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:14px;margin:6px 0 0}
.portal-chat-api-note{font-size:11px;line-height:1.6;color:var(--portal-muted);max-width:55ch}
.portal-message-file{display:block;font-size:11px;margin-top:10px;overflow-wrap:anywhere;color:var(--portal-muted)}
#conversation-form{width:calc(100% - 36px);max-width:800px;flex:none;margin:0 auto;padding:13px 14px 10px;background:var(--ai-field);border:1px solid var(--ai-line);border-radius:18px}
#conversation-input{display:block;width:100%;height:70px;max-height:22dvh;min-height:44px;resize:vertical;background:none;border:0;color:var(--ink);font-family:inherit;font-size:14px;line-height:1.6;padding:0 2px;overflow-y:auto;overscroll-behavior:contain}
.portal-composer-controls,.portal-composer-controls>div{display:flex;align-items:center;gap:12px;justify-content:space-between}
.portal-composer-controls>div{justify-content:flex-start}
.portal-composer-controls svg{width:20px;height:20px}
.portal-attach,#conversation-mic{display:flex;align-items:center;justify-content:center;gap:6px;min-width:38px;height:38px;border:0;background:none;color:var(--portal-muted);font-size:12px;cursor:pointer}
#conversation-send{display:grid;place-items:center;border:0;border-radius:12px;background:linear-gradient(110deg,#ff793d,#f0b18f);color:#16191e;width:40px;height:40px}
#conversation-mic.is-recording{background:#ff642c28;border-radius:50%;color:var(--accent)}
.portal-chat-footnote{font-size:10px;line-height:1.5;color:var(--portal-muted);text-align:center;max-width:800px;align-self:center;margin:9px 20px 12px}
#conversation-status{font-size:11px;line-height:1.5;color:var(--portal-muted);margin:7px 0 0}
#conversation-status:empty{display:none}
#conversation-files{display:flex;gap:7px;overflow-x:auto;max-height:75px}
.portal-file-chip{display:flex;align-items:center;gap:7px;background:var(--ai-surface);padding:7px;border-radius:8px;min-width:100px;max-width:250px;margin-bottom:9px;font-size:11px;flex:none}
.portal-file-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-file-chip img{width:30px;height:30px;object-fit:cover;border-radius:4px}
.portal-file-chip button{background:none;border:0;color:var(--ink);padding:3px;margin-left:auto}
.portal-file-chip svg{width:14px;height:14px}
.portal-speech-dialog{max-width:440px}
.portal-speech-dialog p{font-size:14px;line-height:1.6;color:var(--portal-muted)}
@media(max-width:650px){.portal-conversations{display:block;position:relative}.portal-chat-main{height:100%}.portal-chat-sidebar{display:none;position:absolute;inset:50px 10px 10px;z-index:15;background:var(--ai-surface);backdrop-filter:blur(20px)}.show-chat-history .portal-chat-sidebar{display:flex}.portal-chat-heading #conversation-history{display:flex;font-size:11px}.portal-chat-heading{padding:10px 12px;gap:12px;flex-wrap:wrap}.portal-chat-heading>span{display:none}.portal-chat-heading #conversation-model{margin-left:auto;font-size:12px}#conversation-messages{padding:16px 12px}#conversation-form{width:calc(100% - 18px);padding:11px}#conversation-input{font-size:16px}.portal-chat-footnote{font-size:9px;margin:8px 12px}.portal-chat-message{max-width:94%;padding:11px 13px}.portal-chat-message p{font-size:13px}.portal-chat-welcome h1{font-size:30px}.portal-chat-welcome p{font-size:12px}.portal-chat-welcome img{width:42px;height:42px}}
@media(min-width:901px) and (max-width:1240px){.ai-navigation button[data-view]{font-size:10px;padding-left:6px}.ai-navigation button[data-view] svg{display:none}.ai-navigation .portal-model-arrow{min-width:17px}.ai-navigation #draft-count{display:none}}
@media(max-width:900px){.portal-model-menu{top:116px;left:12px;max-height:calc(100dvh - 130px)}.portal-profile-menu{top:64px}body[data-portal-guest=true]{padding-top:76px!important}html body[data-portal-guest=true] .site-head.onda-floating-header{height:48px!important;flex-wrap:nowrap!important}.portal-home-bottom{display:block}.portal-home-bottom p{display:none}.portal-quick-start{gap:7px}.portal-profile-page{grid-template-columns:240px minmax(0,1fr)}.portal-person-card,.portal-person-works{padding:18px}}
@media(max-width:650px){.onda-create-page #entry.portal-entry{display:block;padding:0;overflow-y:auto}.portal-auth-pane{height:100%;padding:8px;align-items:flex-start}.portal-auth-card{margin:auto;padding:22px;max-width:410px}.portal-auth-scene{display:none}body[data-portal-guest=true] .create-background{left:0;width:100%}body[data-portal-guest=true] .create-background #onda-glyphs{mask-image:none;-webkit-mask-image:none;opacity:.45}.portal-auth-card h1{font-size:32px}.portal-model-grid{grid-template-columns:1fr}.portal-home{padding:8px 0;gap:15px}.portal-home h1{font-size:31px}.portal-home-title p{font-size:12px;max-width:25ch;line-height:1.5}.portal-carousel-controls{gap:5px}.portal-carousel-controls button{width:32px;height:32px}.portal-showcase-item{flex-basis:88%}.portal-showcase{gap:12px}.portal-showcase-item>button{font-size:13px}.portal-quick-start{display:grid;grid-template-columns:1fr 1fr;gap:8px}.portal-quick-start button{padding:12px;font-size:11px}.portal-profile-page{display:flex;flex-direction:column;overflow-y:auto;gap:12px}.portal-person-card,.portal-person-works{overflow:visible;flex:none}.portal-large-avatar{width:70px;height:70px;margin-bottom:12px}.portal-profile-metrics{margin-top:16px}.portal-profile-tabs{margin-bottom:20px}.portal-profile-menu{right:8px}.portal-auth-intro{margin-bottom:14px}.portal-auth-card label{margin-top:9px}}
@media(prefers-reduced-motion:reduce){.portal-auth-card{animation:none}.portal-showcase{scroll-behavior:auto}}
