/* Full Home Smart Search, sharing the native matcher, prompts and invitations. */
#desktop-search{position:absolute;top:max(60px,calc(env(safe-area-inset-top) + 52px));inset-inline:24px;width:min(calc(100% - 48px),400px);margin-inline:auto;pointer-events:none}
#desktop-search #question-form{width:100%;margin:0;transform:none}
#desktop-search .question-row{z-index:3;pointer-events:auto}
#desktop-search #typed-suggestions{z-index:8000;pointer-events:auto}
body[data-workspace-expanded] #desktop-search{display:none}
.desktop-folders,.desktop-layout-bounds,.desktop-about{top:max(128px,calc(env(safe-area-inset-top) + 116px))}
@media(max-height:420px){#desktop-search{top:max(52px,calc(env(safe-area-inset-top) + 44px))}.desktop-folders,.desktop-layout-bounds,.desktop-about{top:108px}}

/* Keep the one native search owner warm without painting a window or dock state. */
.paths-tool-window[data-home-only]{display:flex!important;opacity:0!important;pointer-events:none!important;z-index:-1!important}

#desktop-search #question-form:focus-within .question-row{z-index:8001}


/* The shortcut temporarily lifts the same field above the current workspace. */
body[data-desktop-search-shortcut] #desktop-search{display:block;position:fixed;z-index:9000;top:var(--shortcut-top,25dvh);width:min(calc(100% - 48px),480px)}

/* A single temporary scrim separates search without filtering the apps themselves. */
.desktop-search-backdrop{display:none}
body[data-desktop-search-shortcut] .desktop-search-backdrop{display:block;position:fixed;inset:0;z-index:8999;background:color-mix(in srgb,var(--workspace-background,var(--paper)) 24%,transparent);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);touch-action:none}

/* Full native Smart Search composition on Home; matching/prompt/pill owners stay shared. */
#desktop-search{top:max(56px,calc(env(safe-area-inset-top) + 48px));width:min(calc(100% - 48px),560px)}
#desktop-search #home-entry{width:100%}
#desktop-search #name{position:relative;margin:0 0 22px;text-align:center;font-size:18px;line-height:1.4;font-weight:400;letter-spacing:-.035em;pointer-events:auto}
#desktop-home{position:relative;display:inline-block;min-height:25px;padding:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;touch-action:manipulation;user-select:none}
#desktop-home::before{content:"";position:absolute;inset:calc((1lh - 44px)/2) 0}
#desktop-home[data-wordmark-playing]{opacity:0}
.wordmark-surprise{position:absolute;pointer-events:none;overflow:visible;font:inherit;letter-spacing:inherit;line-height:inherit;text-align:left}
.wordmark-surprise-word,.wordmark-surprise-outgoing{position:absolute;left:50%;top:0;transform:translateX(-50%);white-space:nowrap;background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
#desktop-search #home-doors{pointer-events:auto}
#desktop-search .home-destinations{display:none}
#desktop-search #home-invitations{margin-top:4px}
.desktop-folders,.desktop-layout-bounds,.desktop-about{top:max(288px,calc(env(safe-area-inset-top) + 276px))}
body[data-desktop-search-shortcut] #desktop-search :is(#name,#home-doors){display:none}
body[data-desktop-search-shortcut] #desktop-search #question-form .question-row{margin:0}
@media(max-height:420px){#desktop-search{top:48px}.desktop-folders,.desktop-layout-bounds,.desktop-about{top:max(206px,var(--desktop-folders-top,206px));bottom:72px}}

/* Short Home viewports scroll as one composition rather than hiding folders. */
@media(max-height:420px){body[data-desktop]:not([data-workspace-expanded]){min-height:540px;height:auto;overflow-y:auto}body[data-desktop]:not([data-workspace-expanded]) #paths-stage{position:absolute;inset:0 0 auto;height:540px;overflow:visible}.desktop-folders,.desktop-layout-bounds,.desktop-about{top:max(288px,calc(env(safe-area-inset-top) + 276px));bottom:100px}#desktop-search{top:48px}}
#desktop-search :is(#name,#home-doors){z-index:3}

/* The wordmark shares the appearance control’s original44px Home header row. */
#desktop-search{top:max(8px,env(safe-area-inset-top))}
#desktop-search #name{height:44px;display:flex;align-items:center;justify-content:center;margin-bottom:16px}
#desktop-home{border:0;line-height:inherit;opacity:1;transition:none}
#desktop-home>span{display:inline-block}
/* Compact phone Home keeps folders between the pills and the fixed dock. */
@media(max-height:480px){
 body[data-desktop][data-workspace-phone]:not([data-workspace-expanded]){min-height:312px;height:100dvh;overflow-y:auto}
 body[data-desktop][data-workspace-phone]:not([data-workspace-expanded]) #paths-stage{position:absolute;inset:0 0 auto;height:max(312px,100dvh);overflow:hidden}
 body[data-desktop][data-workspace-phone] :is(.desktop-folders,.desktop-layout-bounds,.desktop-about){top:180px;bottom:88px}
}
