/* Wave — restrained refinements of the existing design. No branding rules. */
:root{--wave-ease:cubic-bezier(.2,.7,.2,1)}
button:disabled{cursor:default}button:focus-visible,a:focus-visible,textarea:focus-visible,[tabindex="0"]:focus-visible{outline:2px solid var(--gust-accent);outline-offset:3px}
.hub-hero{gap:clamp(24px,3.5vw,52px);padding:clamp(26px,3vw,44px);border-color:color-mix(in srgb,var(--gust-border) 85%,var(--gust-accent));box-shadow:0 18px 45px #00000012}
.hub-hero h1{text-wrap:balance}.hub-hero-copy #hub-search{background:var(--gust-surface);box-shadow:0 8px 24px #00000012,inset 0 1px 0 #ffffff06}
#hub-query{min-width:0!important;background:transparent!important;box-shadow:none!important;border:0!important;-webkit-appearance:none;appearance:none;color:var(--gust-foreground)!important;font-size:clamp(13px,1.1vw,16px)!important}
#hub-query::placeholder{color:var(--gust-secondary);opacity:.85}#hub-query::-webkit-search-cancel-button{-webkit-appearance:none}
.hub-carousel{scroll-padding-inline:1px;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding-bottom:12px}.hub-carousel>.entry-card{scroll-snap-align:start}.hub-carousel-controls button:disabled{opacity:.3}.hub-carousel-controls button{transition:background .18s,opacity .18s,transform .18s}.hub-carousel-controls button:not(:disabled):active{transform:scale(.95)}
.hub-section-head>a{white-space:nowrap}.hub-activity .recent-open{transition:background .18s,border-color .18s,transform .18s}.hub-activity .recent-open:hover{border-color:color-mix(in srgb,var(--gust-accent) 35%,var(--gust-border));transform:translateY(-2px)}
.market-card .market-open{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box}.market-card-copy h3{overflow-wrap:anywhere}.market-card .market-tag{white-space:nowrap}.market-section-heading{flex-wrap:wrap}.app-sort-label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--gust-secondary);margin-left:auto}.app-sort-label select{padding:7px 25px 7px 9px!important;border:1px solid var(--gust-border)!important;border-radius:8px!important;background:var(--gust-surface)!important;color:var(--gust-foreground)!important;font-size:11px!important;min-height:34px}
.marketplace .market-open{padding-right:48px!important}.marketplace .market-favorite{right:9px;top:9px}.market-card:focus-within{border-color:var(--gust-accent)}
.entry-card-copy{min-width:0}.entry-name{line-height:1.4!important;text-wrap:pretty}.entry-cover{isolation:isolate;overflow:hidden}.entry-cover:after{pointer-events:none}.entry-play:focus-visible{opacity:1!important;transform:none!important}.entry-card:focus-within .entry-play{opacity:1!important;transform:none!important}.entry-favorite,.market-favorite{touch-action:manipulation}.library-filters{align-items:end;gap:12px}.library-pagination{gap:12px}.library-pagination button{min-height:40px}.library-search input{min-width:0!important}.library-empty{padding:36px 22px!important}
.ai-workspace .ai-suggestions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;max-width:540px!important}.ai-workspace .ai-suggestions button{min-width:0!important;min-height:84px!important;text-align:left!important;padding:17px!important;border-radius:14px!important}.ai-workspace .ai-suggestions strong{display:block;line-height:1.4}.ai-workspace .ai-suggestions small{display:block;line-height:1.5;margin-top:5px}.ai-workspace .ai-welcome{width:100%;max-width:680px;margin-inline:auto;padding-inline:24px!important}.ai-workspace .message-content table{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.ai-workspace .message-content pre{max-width:100%;min-width:0}.ai-workspace .conversation-open{min-width:0}.ai-workspace .conversation-row{margin-block:2px}.ai-workspace #chat-input{overflow-wrap:anywhere}.ai-workspace #chat-form:focus-within{box-shadow:0 10px 28px #00000018,0 0 0 2px color-mix(in srgb,var(--ai-accent) 8%,transparent)!important}
.settings-card h2{line-height:1.3}.settings-card small,.setting-hint{line-height:1.6!important}.appearance-fields{gap:16px!important}.theme-swatch{min-width:0}.theme-swatch small{font-weight:550}.settings-card input[type=checkbox]{accent-color:var(--gust-accent)}
#wave-reset-appearance{background:var(--gust-surface);color:var(--gust-foreground);border:1px solid var(--gust-border);border-radius:18px;max-width:440px;width:calc(100vw - 32px);padding:26px;box-shadow:0 24px 80px #0006}#wave-reset-appearance h2{font-size:21px;margin:0 0 12px}#wave-reset-appearance p{color:var(--gust-secondary);font-size:13px;line-height:1.65}#wave-reset-appearance>div{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}#wave-reset-appearance button{border:1px solid var(--gust-border);border-radius:10px;padding:10px 13px;min-height:42px;background:var(--gust-raised);color:var(--gust-foreground)}#wave-reset-appearance [data-reset]{color:var(--gust-base);background:var(--gust-accent)}#wave-reset-appearance::backdrop{background:#0008;backdrop-filter:blur(3px)}
html[data-halloween=on][data-gust-effects=on] .gust-ambient{background-image:radial-gradient(ellipse at 5% 10%,#b96a1f12,transparent 55%),radial-gradient(ellipse at 90% 80%,#9460ae10,transparent 60%)}
@media(hover:none),(pointer:coarse){.entry-favorite,.marketplace .market-favorite{width:42px!important;height:42px!important;opacity:1!important}.entry-play{opacity:1!important;transform:none!important}.market-favorite:after{display:none}.marketplace .market-open{padding-right:55px!important}.market-card:hover,.entry-card:hover{transform:none!important}.entry-card:hover .entry-cover img{transform:none!important}.library-modes button,.marketplace #app-categories button{min-height:42px!important}}
@media(max-width:760px){.hub-hero{padding:26px 20px!important;border-radius:20px!important}.hub-hero-copy #hub-search{min-height:58px}.hub-hero-copy #hub-search button{width:44px!important;height:44px!important;padding:12px!important}.hub-section{padding-top:26px!important}.hub-section-head h2{font-size:22px!important}.hub-section-head>a{font-size:11px}.hub-shortcuts{gap:8px!important}.hub-shortcuts button{min-height:44px!important}.hub-apps .market-open{display:flex!important;flex-direction:row!important;align-items:center!important;gap:15px!important;padding:20px 55px 20px 18px!important;min-height:130px!important}.hub-apps .market-icon{flex-shrink:0}.hub-apps .market-card-copy{flex:1}.hub-apps .market-card h3{font-size:16px!important}.hub-apps .market-card p{font-size:12px!important}.hub-apps .market-favorite{position:absolute!important;right:10px!important;top:10px!important}.hub-apps .market-arrow{display:none}.hub-activity{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-activity .recent-open{grid-template-columns:35px minmax(0,1fr)!important;padding:12px!important;column-gap:8px!important}.hub-activity .recent-open img{width:35px!important;height:44px!important}.hub-activity .recent-open strong{font-size:11px!important;overflow-wrap:anywhere}.ai-workspace .ai-welcome{padding-inline:18px!important}.ai-workspace .ai-suggestions button{padding:14px!important;min-height:88px!important}.appearance-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}.settings-card select{max-width:100%}.theme-swatch small{font-size:10px!important}}
@media(max-width:390px){.hub-hero{padding:24px 16px!important}.hub-hero-copy #hub-search{padding-left:12px!important;gap:8px!important}#hub-query{font-size:12px!important}.hub-section-head h2{font-size:20px!important}.ai-workspace .ai-suggestions{gap:8px!important}.ai-workspace .ai-suggestions strong{font-size:12px!important}.ai-workspace .ai-suggestions small{font-size:11px!important}.appearance-fields{grid-template-columns:1fr!important}}
html[data-gust-density=compact] .hub-hero{padding:28px}.gust-toast{max-width:calc(100vw - 24px);overflow-wrap:anywhere}
/* Keep short-screen chat welcoming, with every prompt reachable above the composer. */
.ai-workspace .ai-welcome{box-sizing:border-box;justify-content:safe center}.ai-workspace .message-content{overflow-wrap:anywhere}.ai-workspace .ai-header{min-width:0}.ai-workspace #ai-model-menu{max-width:calc(100vw - 24px)}
dialog{max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}#gust-navigation{max-height:calc(100dvh - 76px)}
@media(max-width:760px){.gust-nav #profile-button,.gust-nav #gust-menu-button{width:44px!important;height:44px!important}.ai-workspace #chat-input,.marketplace #app-search,#library-query,#hub-query,.settings-card input[type=url],.settings-card input[type=text]{font-size:16px!important}.ai-workspace .ai-composer-wrap{padding-bottom:max(9px,env(safe-area-inset-bottom))!important}.hub-section-head{align-items:center}.app-sort-label select{min-height:42px}.hub-carousel-controls button{min-width:42px;min-height:42px}}
@media(max-width:760px) and (max-height:720px){.ai-workspace .ai-welcome{padding-top:12px!important;padding-bottom:18px!important;min-height:100%}.ai-welcome-brand{margin-bottom:12px!important}.ai-workspace .ai-welcome h2{margin-bottom:8px!important;font-size:27px!important}.ai-workspace .ai-welcome p{font-size:12px!important;line-height:1.5!important}.ai-workspace .ai-suggestions{margin-top:16px!important;gap:8px!important}.ai-workspace .ai-suggestions button{padding:11px!important;gap:4px!important;min-height:78px!important}.ai-workspace .ai-suggestions small{margin-top:0!important}}
@media(max-width:760px) and (max-height:480px){.ai-workspace .ai-welcome{justify-content:flex-start;padding-top:8px!important}.ai-workspace .ai-composer-note{display:none}.ai-workspace .chat-messages{scroll-padding-bottom:12px}}
.ai-workspace .ai-welcome>*{flex-shrink:0}.ai-workspace .ai-suggestions{flex-shrink:0!important}
@media(max-width:760px){.ai-workspace .ai-welcome{height:auto!important;max-height:none!important;flex:0 0 auto!important}.ai-workspace .chat-messages{scrollbar-width:thin}}
@media(max-width:760px) and (max-height:640px){.ai-workspace .ai-welcome{min-height:0!important;padding-top:6px!important;padding-bottom:10px!important;justify-content:flex-start}.ai-workspace .ai-suggestions button{min-height:58px!important}.ai-workspace .ai-suggestions small{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.ai-workspace .ai-welcome p{margin-bottom:0!important}}
@media(prefers-reduced-motion:reduce){.hub-activity .recent-open:hover{transform:none}.hub-carousel,.library-pagination{scroll-behavior:auto!important}.ai-workspace .ai-suggestions button,.market-card,.entry-card{animation:none!important;transition:none!important}}

/* Home is a focused landing page; collections stay in their dedicated tabs. */
body[data-page=home] #premium-home .hub-section,
body[data-page=home] #premium-home .hub-spotlight,
body[data-page=home] #premium-home .polish-welcome-strip { display:none!important; }
body[data-page=home] #premium-home { max-width:1000px; margin-inline:auto; }
body[data-page=home] #premium-home .hub-hero { grid-template-columns:minmax(0,1fr)!important; min-height:min(620px,calc(100dvh - 150px)); align-items:center; }
body[data-page=home] #premium-home .hub-hero-copy { width:min(100%,640px); margin-inline:auto; }
@media(max-width:760px){body[data-page=home] #premium-home .hub-hero{min-height:calc(100svh - 180px);}}

/* Edge-to-edge Home below the navigation; retain short-screen scrolling. */
body[data-page=home] .layout .content main{padding:0!important;max-width:none!important;width:100%!important;margin:0!important;min-height:calc(100dvh - 48px - var(--wave-app-top,0px) - var(--wave-app-bottom,0px))!important;}
body[data-page=home] #home-panel>#premium-home{max-width:none!important;width:100%;margin:0!important;}
body[data-page=home] #premium-home .hub-hero{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;margin:0!important;min-height:calc(100dvh - 48px - var(--wave-app-top,0px) - var(--wave-app-bottom,0px))!important;padding:clamp(24px,5vw,64px)!important;box-sizing:border-box;gap:0;}
body[data-page=home] #premium-home .polish-foot,body[data-page=home] footer{display:none!important;}
