/* Home only. Conversation layout, keyboard positioning and focus hooks are retained. */
.app-boot-wordmark .boot-name-dark{display:none;}
:root[data-theme="dark"] .app-boot-wordmark .boot-name-light{display:none;}
:root[data-theme="dark"] .app-boot-wordmark .boot-name-dark{display:block;}
@media(prefers-color-scheme:dark){:root:not([data-theme]) .app-boot-wordmark .boot-name-light{display:none;}:root:not([data-theme]) .app-boot-wordmark .boot-name-dark{display:block;}}
html .chat-main.is-home:has(#empty-state:not([hidden])):not(.workspace-view-open):not(.agent-view-open):not(.private-chat-active) {
  --ink:var(--home-ink);--slate:var(--home-muted);
  background:var(--home-sky) url('/home-scene-light.svg') center/100% 100% no-repeat;
  justify-content:center;padding-top:calc(80px + var(--safe-area-top));padding-bottom:36px;
  overflow-y:auto;isolation:isolate;
}
:root[data-theme="dark"] .chat-main.is-home:has(#empty-state:not([hidden])):not(.workspace-view-open):not(.agent-view-open):not(.private-chat-active){background:var(--home-sky) url('/home-scene-dark.svg') center/100% 100% no-repeat;}
html .chat-main.is-home:not(.workspace-view-open):not(.agent-view-open)>.messages{flex:0 0 auto;overflow:visible;min-height:0;padding:0;margin:0;width:100%;}
html .chat-main.is-home:not(.workspace-view-open):not(.agent-view-open) #empty-state{flex:0 0 auto;min-height:0;padding:0 24px;margin:0 auto;width:100%;}
html .chat-main.is-home #empty-state .home-mark{width:78px;height:84px;max-width:none;margin:0 auto 24px;filter:drop-shadow(0 0 24px #57d3ba80);animation:home-light 7s ease-in-out infinite;}
:root[data-theme="dark"] .chat-main.is-home #empty-state .home-mark{filter:brightness(0) invert(1) drop-shadow(0 0 22px #0fe0ac90);}
html .chat-main.is-home #empty-state h1{display:block;font:600 clamp(32px,3.5vw,46px)/1.22 var(--font-ui);letter-spacing:-.045em;margin:0 0 10px;color:var(--home-ink);}
html .chat-main.is-home>.chat-header{position:absolute;top:0;left:0;right:0;backdrop-filter:none;-webkit-backdrop-filter:none;}
html .chat-main.is-home .home-greeting-name{color:var(--home-accent);background:none;-webkit-text-fill-color:currentColor;}
html .chat-main.is-home #empty-state .home-subtitle{font:400 20px/1.5 var(--font-ui);margin:0;color:var(--home-muted);}
html .chat-main.is-home:not(.workspace-view-open):not(.agent-view-open)>.composer-area{flex:0 0 auto;align-self:center;width:min(100%,1000px);padding:0 40px;margin:34px auto 30px;background:transparent;}
html .chat-main.is-home #form-composer{width:100%;max-width:920px;}
html .chat-main.is-home #form-composer .composer-surface{border-radius:var(--home-radius);min-height:110px;border:1px solid var(--home-cardEdge);background:var(--home-card);box-shadow:0 4px 8px #0c4c3d08,0 16px 36px #0c4c3d16;}
html .chat-main.is-home #form-composer #composer-input{color:var(--home-ink);padding:14px 16px 4px;font-size:17px;}
html .chat-main.is-home #composer-input::placeholder{color:var(--home-muted);opacity:1;}
html .chat-main.is-home #form-composer .composer-toolbar{padding:0 6px 4px;}
html .chat-main.is-home #form-composer .composer-mode,html .chat-main.is-home #form-composer #btn-attach{background:color-mix(in srgb,var(--home-accent) 7%,var(--home-card));color:var(--home-ink);}
html .chat-main.is-home #form-composer .composer-send:not(:disabled){background:linear-gradient(135deg,#11b59b,#086b60);color:white;box-shadow:0 3px 8px #087c7026;}
html .chat-main.is-home #form-composer .composer-surface:focus-within{border-color:var(--home-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--home-accent) 14%,transparent),0 12px 30px #0c4c3d12;}
html .chat-main.is-home:not(.agent-view-open):not(.private-chat-active):has(#empty-state:not([hidden])) .home-shortcuts{gap:var(--home-gap);max-width:920px;margin:24px auto 0;}
html .chat-main.is-home .home-shortcuts button{position:relative;align-items:flex-start;text-align:left;justify-content:flex-start;gap:10px;min-height:154px;padding:18px 16px;border-radius:var(--home-radius);border:1px solid var(--home-cardEdge);background:var(--home-card);color:var(--home-ink);box-shadow:0 2px 5px #153d3205,0 12px 26px #153d3210;transition:transform .2s,box-shadow .2s,border-color .2s;}
html .chat-main.is-home .home-shortcuts button:hover{transform:translateY(-4px);border-color:var(--home-accent);box-shadow:0 5px 12px #153d3208,0 16px 32px #153d321a;}
html .chat-main.is-home .home-shortcuts button:active{transform:translateY(0) scale(.98);}
html .chat-main.is-home .home-shortcut-icon{width:42px;height:42px;border-radius:14px;color:var(--home-green);background:color-mix(in srgb,var(--home-green) 14%,var(--home-card));box-shadow:inset 0 1px 0 #ffffff40;}
html .chat-main.is-home [data-home-action="remote"] .home-shortcut-icon{color:var(--home-purple);background:color-mix(in srgb,var(--home-purple) 13%,var(--home-card));}
html .chat-main.is-home [data-home-action="image"] .home-shortcut-icon{color:var(--home-amber);background:color-mix(in srgb,var(--home-amber) 13%,var(--home-card));}
html .chat-main.is-home [data-home-action="voices"] .home-shortcut-icon{color:var(--home-blue);background:color-mix(in srgb,var(--home-blue) 13%,var(--home-card));}
html .chat-main.is-home .home-shortcut-icon svg{width:24px;height:24px;}
html .chat-main.is-home .home-shortcuts strong{font:600 15px/1.35 var(--font-ui);letter-spacing:-.035em;}
html .chat-main.is-home .home-shortcuts small{display:block;font:400 12px/1.5 var(--font-ui);color:var(--home-muted);max-width:20ch;}
html .chat-main.is-home .disclaimer{display:none;}
html #sidebar{border-right:1px solid color-mix(in srgb,var(--home-accent) 10%,var(--border));}
html #sidebar .workspace-nav{gap:4px;margin-bottom:20px;}
html #sidebar .workspace-nav button{gap:12px;min-height:44px;font-size:14px;font-weight:500;border-radius:14px;}
html #sidebar .workspace-nav button.is-active{color:var(--home-ink);background:color-mix(in srgb,var(--home-accent) 12%,var(--ivory));}
html #sidebar .workspace-nav button svg{width:20px;height:20px;flex-basis:20px;}
html #sidebar #btn-new-conversation{background:linear-gradient(135deg,#168477,#084c44);color:#fff;box-shadow:0 4px 12px #084c4417;}
html .chat-main.home-composing.is-home:not(.workspace-view-open):not(.agent-view-open){justify-content:flex-end;}
html .chat-main.home-composing.is-home #empty-state{visibility:hidden;}
html .chat-main.home-composing.is-home>.messages{flex:1 1 auto;min-height:0;overflow:hidden;}
html .chat-main.home-composing.is-home>.composer-area{margin-top:0;margin-bottom:0;}
html .chat-main.home-composing .home-shortcuts{display:none!important;}
@keyframes home-light{50%{transform:translateY(-3px);}}
@media(min-width:769px) and (max-height:760px){
 html .chat-main.is-home:not(.workspace-view-open):not(.agent-view-open){padding-top:72px;padding-bottom:18px;}
 html .chat-main.is-home #empty-state .home-mark{width:60px;height:64px;margin-bottom:16px;}
 html .chat-main.is-home #empty-state h1{font-size:36px;}
 html .chat-main.is-home #empty-state .home-subtitle{font-size:18px;}
 html .chat-main.is-home:not(.workspace-view-open):not(.agent-view-open)>.composer-area{margin-top:22px;margin-bottom:20px;}
 html .chat-main.is-home .home-shortcuts button{min-height:138px;padding:15px 12px;}
}
@media(max-width:768px){
 html .chat-main.is-home:not(.workspace-view-open):not(.agent-view-open):not(.private-chat-active){padding-top:calc(76px + var(--safe-area-top));padding-bottom:max(60px,env(safe-area-inset-bottom));}
 html .chat-main.is-home #empty-state .home-mark{width:64px;height:68px;margin-bottom:20px;}
 html .chat-main.is-home #empty-state h1{font-size:30px;margin-bottom:8px;}
 html .chat-main.is-home #empty-state .home-subtitle{font-size:16px;}
 html .chat-main.is-home:not(.workspace-view-open):not(.agent-view-open)>.composer-area{padding:0 16px;margin:26px auto 0;}
 html .chat-main.is-home #form-composer .composer-surface{min-height:102px;}
 html .chat-main.is-home #form-composer #composer-input{font-size:16px;padding:12px 12px 2px;}
 html .chat-main.is-home:not(.agent-view-open):not(.private-chat-active):has(#empty-state:not([hidden])) .home-shortcuts{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:18px auto 0;}
 html .chat-main.is-home .home-shortcuts button{grid-column:span 2;min-height:112px;padding:12px 7px;align-items:center;text-align:center;gap:7px;border-radius:20px;}
 html .chat-main.is-home .home-shortcuts button:nth-last-child(-n+2){grid-column:span 3;min-height:104px;}
 html .chat-main.is-home .home-shortcuts strong{font-size:12px;letter-spacing:-.035em;}
 html .chat-main.is-home .home-shortcuts small{font-size:10px;line-height:1.4;max-width:19ch;}
 html .chat-main.is-home .home-shortcut-icon{width:34px;height:34px;border-radius:11px;}
 html .chat-main.is-home .home-shortcut-icon svg{width:22px;height:22px;}
 html .chat-main.home-composing.is-home:not(.workspace-view-open):not(.agent-view-open){padding-bottom:0;}
 html .chat-main.home-composing.is-home>.composer-area{margin:0;padding-bottom:0;}
}
@media(max-width:360px){
 html .chat-main.is-home #empty-state h1{font-size:28px;}
 html .chat-main.is-home:not(.workspace-view-open):not(.agent-view-open)>.composer-area{padding-inline:12px;}
 html .chat-main.is-home .home-shortcuts small{display:none;}
 html .chat-main.is-home .home-shortcuts button{min-height:88px;}
 html .chat-main.is-home .home-shortcuts button:nth-last-child(-n+2){min-height:82px;}
}
@media(max-height:650px) and (min-width:769px){html .chat-main.is-home .home-shortcuts button{min-height:112px;gap:5px;padding:10px;}html .chat-main.is-home .home-shortcut-icon{width:32px;height:32px;}html .chat-main.is-home #empty-state .home-mark{width:44px;height:46px;margin-bottom:10px;}}
@media(prefers-reduced-motion:reduce){html .chat-main.is-home #empty-state .home-mark{animation:none;}html .chat-main.is-home .home-shortcuts button{transition:none;}html .chat-main.is-home .home-shortcuts button:hover,html .chat-main.is-home .home-shortcuts button:active{transform:none;}}
