/* Home launcher: one compact surface, shared catalog, no changes to the scene. */
:is(#home-launcher,#app-command){--launch-surface:#fbfbfdeF;--launch-ink:#202127;--launch-muted:#747780;--launch-line:#e2e4e9;--launch-field:#eceef2;--launch-card:#fff;--launch-hover:#f0f3fa;--launch-accent:#315d9e;box-sizing:border-box;width:min(760px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;padding:32px 32px 0!important;overflow:hidden;border:1px solid #ffffffb3!important;border-radius:28px!important;color:var(--launch-ink)!important;background:var(--launch-surface)!important;box-shadow:0 32px 100px #17213830,0 4px 18px #1721380d!important;backdrop-filter:blur(36px)!important;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;letter-spacing:normal;text-shadow:none;text-align:left}
:is(#home-launcher,#app-command)[open]{display:flex;flex-direction:column;animation:launcher-enter .2s ease-out}
:is(#home-launcher,#app-command)::backdrop{background:#11182336!important;backdrop-filter:blur(9px)!important}
html[data-theme=dark] :is(#home-launcher,#app-command){--launch-surface:#202126f5;--launch-ink:#f3f3f6;--launch-muted:#a6a9b3;--launch-line:#3c3e47;--launch-field:#2c2e35;--launch-card:#292b32;--launch-hover:#323c50;--launch-accent:#a5c4fa;border-color:#ffffff1c!important;box-shadow:0 32px 100px #0008!important}
:is(#home-launcher,#app-command) *{box-sizing:border-box}
:is(#home-launcher,#app-command) :is(button,a,input){font:inherit;letter-spacing:normal;text-shadow:none;box-shadow:none!important}
:is(#home-launcher,#app-command) button{cursor:pointer;text-transform:none;transform:none;translate:none;min-width:0;min-height:0;margin:0;appearance:none;backdrop-filter:none!important;transform:none!important}
:is(#home-launcher,#app-command) button:disabled{cursor:default}
:is(#home-launcher,#app-command) :is(button,a,input):focus-visible{outline:2px solid var(--launch-accent)!important;outline-offset:3px!important}
:is(#home-launcher,#app-command) .launcher-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 24px;padding:0!important;background:none!important;border:0!important;position:static;gap:16px;flex-shrink:0}
:is(#home-launcher,#app-command) .launcher-eyebrow{font-size:10px;letter-spacing:.2em;color:var(--launch-muted)!important;font-weight:600}
:is(#home-launcher,#app-command) h2{font-size:30px;line-height:1.3;font-weight:650;letter-spacing:-.025em;margin:5px 0 0;color:var(--launch-ink)!important}
:is(#home-launcher,#app-command) .launcher-close{border:0!important;background:var(--launch-field)!important;color:var(--launch-muted)!important;border-radius:50%!important;width:34px;height:34px;display:grid;place-items:center;padding:8px!important}
:is(#home-launcher,#app-command) svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px;display:block;filter:none}
:is(#home-launcher,#app-command) .launcher-search{display:flex;align-items:center;gap:12px;border-radius:14px!important;border:1px solid transparent!important;background:var(--launch-field)!important;padding:0 15px!important;min-height:52px;flex-shrink:0;color:var(--launch-muted)!important}
:is(#home-launcher,#app-command) .launcher-search:focus-within{border-color:color-mix(in srgb,var(--launch-accent) 36%,transparent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--launch-accent) 8%,transparent)!important}
:is(#home-launcher,#app-command) .launcher-search input{min-width:0;flex:1;border:0!important;outline:none!important;background:none!important;color:var(--launch-ink)!important;font-size:16px;height:50px;padding:0!important;border-radius:0!important}
:is(#home-launcher,#app-command) input::-webkit-search-cancel-button{display:none}
:is(#home-launcher,#app-command) input::placeholder{color:var(--launch-muted)!important;opacity:1}
:is(#home-launcher,#app-command) .launcher-clear{padding:5px 0!important;border:0!important;color:var(--launch-muted)!important;background:none!important;font-size:12px}
:is(#home-launcher,#app-command) kbd{white-space:nowrap;font-family:inherit;font-size:11px;line-height:1.5;padding:2px 6px!important;border:1px solid var(--launch-line)!important;border-radius:5px!important;color:var(--launch-muted)!important}
:is(#home-launcher,#app-command) .launcher-categories{display:flex;align-items:center;gap:4px;margin:20px 0 18px;padding:3px 1px!important;overflow:auto;scrollbar-width:none;flex-shrink:0}
:is(#home-launcher,#app-command) .launcher-categories button{border:0!important;white-space:nowrap;background:none!important;color:var(--launch-muted)!important;padding:7px 13px!important;border-radius:9px!important;font-size:13px;line-height:1.6;flex-shrink:0}
:is(#home-launcher,#app-command) .launcher-categories button[aria-pressed=true]{background:var(--launch-ink)!important;color:var(--launch-card)!important;font-weight:550}
:is(#home-launcher,#app-command) .launcher-content{min-height:180px;max-height:min(386px,calc(100dvh - 320px));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--launch-line) transparent;padding:4px 4px 8px!important;margin:0 -4px;min-width:0}
:is(#home-launcher,#app-command) .launcher-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
:is(#home-launcher,#app-command) .launcher-grid.launcher-featured{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
:is(#home-launcher,#app-command) .launcher-app{display:flex;align-items:flex-start;flex-direction:column;gap:11px;background:var(--launch-card)!important;color:var(--launch-ink)!important;border:1px solid var(--launch-line)!important;border-radius:17px!important;padding:16px 18px!important;text-align:left;transition:background .16s,border-color .16s,box-shadow .16s!important;width:100%;height:auto;overflow:hidden}
:is(#home-launcher,#app-command) .launcher-featured .launcher-app{min-height:138px}
:is(#home-launcher,#app-command) .launcher-app-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:11px!important;background:var(--launch-field)!important;color:var(--launch-accent)!important;flex-shrink:0}
:is(#home-launcher,#app-command) .launcher-app-icon .ui-icon{width:20px;height:20px;display:block}
:is(#home-launcher,#app-command) .launcher-app strong{color:inherit!important;font-size:14px;font-weight:600;line-height:1.4;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}
:is(#home-launcher,#app-command) .launcher-app small{display:block;color:var(--launch-muted)!important;font-size:12px;line-height:1.5;margin-top:-6px}
:is(#home-launcher,#app-command) .launcher-app:is(.is-selected,:focus-visible){background:var(--launch-hover)!important;border-color:var(--launch-accent)!important}
:is(#home-launcher,#app-command) .launcher-glyph{font-size:19px}
:is(#home-launcher,#app-command) .launcher-empty{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--launch-muted)!important;gap:12px}
:is(#home-launcher,#app-command) .launcher-empty p{margin:0}
:is(#home-launcher,#app-command) .launcher-retry{border:1px solid var(--launch-line)!important;background:var(--launch-card)!important;color:var(--launch-ink)!important;border-radius:10px!important;padding:8px 16px!important}
:is(#home-launcher,#app-command) .launcher-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding:17px 0 19px!important;border-top:1px solid var(--launch-line);color:var(--launch-muted)!important;font-size:12px;flex-shrink:0}
:is(#home-launcher,#app-command) .launcher-footer>div{display:flex;gap:18px;align-items:center}
:is(#home-launcher,#app-command) .launcher-footer :is(button,a){border:0!important;border-radius:5px!important;padding:4px 0!important;background:none!important;color:var(--launch-muted)!important;text-decoration:none;font-size:12px;white-space:nowrap}
:is(#home-launcher,#app-command) .launcher-footer .launcher-workspace{color:var(--launch-ink)!important;font-weight:550}
:is(#home-launcher,#app-command) [hidden]{display:none!important}
@media(hover:hover){:is(#home-launcher,#app-command) .launcher-app:hover{background:var(--launch-hover)!important;border-color:color-mix(in srgb,var(--launch-accent) 36%,var(--launch-line))!important;box-shadow:0 4px 14px #13274808!important}:is(#home-launcher,#app-command) .launcher-footer :is(button,a):hover{color:var(--launch-accent)!important}}
@media(max-width:600px){:is(#home-launcher,#app-command){width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:24px 20px 0!important;border-radius:24px!important}:is(#home-launcher,#app-command) .launcher-heading{margin-bottom:20px}:is(#home-launcher,#app-command) h2{font-size:27px}:is(#home-launcher,#app-command) .launcher-grid,:is(#home-launcher,#app-command) .launcher-grid.launcher-featured{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}:is(#home-launcher,#app-command) .launcher-content{max-height:calc(100dvh - 298px);min-height:100px}:is(#home-launcher,#app-command) .launcher-app{padding:14px!important}:is(#home-launcher,#app-command) .launcher-featured .launcher-app{min-height:125px}:is(#home-launcher,#app-command) .launcher-categories{margin:15px -4px 12px;padding:3px 4px!important}:is(#home-launcher,#app-command) .launcher-categories button{padding:7px 12px!important}:is(#home-launcher,#app-command) kbd{display:none}:is(#home-launcher,#app-command) .launcher-footer{margin-top:14px;padding:14px 0 17px!important}:is(#home-launcher,#app-command) .launcher-footer>div{gap:14px}}
@media(max-height:530px){:is(#home-launcher,#app-command){padding-top:18px}:is(#home-launcher,#app-command) .launcher-heading{margin-bottom:12px}:is(#home-launcher,#app-command) .launcher-eyebrow{display:none}:is(#home-launcher,#app-command) h2{font-size:23px;margin:0}:is(#home-launcher,#app-command) .launcher-content{min-height:70px;max-height:calc(100dvh - 246px)}:is(#home-launcher,#app-command) .launcher-categories{margin:10px 0}:is(#home-launcher,#app-command) .launcher-footer{margin-top:10px;padding:12px 0!important}}
@keyframes launcher-enter{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){:is(#home-launcher,#app-command)[open]{animation:none}:is(#home-launcher,#app-command) .launcher-app{transition:none!important}}
@media(prefers-reduced-transparency:reduce){:is(#home-launcher,#app-command){background:#fbfbfd!important;backdrop-filter:none!important}html[data-theme=dark] :is(#home-launcher,#app-command){background:#202126!important}:is(#home-launcher,#app-command)::backdrop{backdrop-filter:none!important}}

:is(#home-launcher,#app-command) .launcher-search input:focus{outline:none!important;box-shadow:none!important;border:0!important}


/* Keep long application names readable on narrow screens. */
:is(#home-launcher,#app-command) .launcher-app strong{white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
:is(#home-launcher,#app-command) .launcher-app-icon{margin-bottom:0}
:is(#home-launcher,#app-command) .launcher-content{scroll-padding:4px}
:is(#home-launcher,#app-command) .launcher-close{width:40px;height:40px}
:is(#home-launcher,#app-command) .launcher-categories button{min-height:40px}
@media(max-width:600px){:is(#home-launcher,#app-command) .launcher-search{gap:8px}:is(#home-launcher,#app-command) .launcher-featured .launcher-app{min-height:132px}}
