/* Final component-root authority for physically demonstrated defects.
 * Kept terminal with the runtime and portal authorities. Visual only.
 */
:root{
  --hlc-runtime-bg:#081426;
  --hlc-runtime-surface:#0d1a2d;
  --hlc-runtime-surface-2:#10243e;
  --hlc-runtime-line:rgba(199,210,227,.14);
  --hlc-runtime-text:#f8fafc;
  --hlc-runtime-muted:#aebdd0;
}

/* AUTH ROUTES — do not depend on :has() or hydration timing. */
html,body,#root{min-height:100%;}
#root .hlc-app-shell:is(.hlc-page-login,.hlc-page-register,.hlc-page-forgot-password,.hlc-page-reset-password),
#root .hlc-app-shell:is(.hlc-page-login,.hlc-page-register,.hlc-page-forgot-password,.hlc-page-reset-password)>.hlc-route-content,
#root .hlc-app-shell:is(.hlc-page-login,.hlc-page-register,.hlc-page-forgot-password,.hlc-page-reset-password)>.hlc-route-content>*,
#root .hlc-auth-shell,
#root .hlc-auth-brand,
#root .hlc-auth-card,
#root .hlc-auth-form-heading,
#root .hlc-auth-card-footer{
  background:#081426!important;
  background-color:#081426!important;
  background-image:none!important;
  color:var(--hlc-runtime-text)!important;
  box-shadow:none!important;
}
#root .hlc-app-shell:is(.hlc-page-login,.hlc-page-register,.hlc-page-forgot-password,.hlc-page-reset-password) .hlc-route-visual-banner{display:none!important}
#root .hlc-auth-shell :is(input,select,textarea){
  background:#0d1a2d!important;
  background-color:#0d1a2d!important;
  background-image:none!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-color:rgba(199,210,227,.28)!important;
}
#root .hlc-auth-shell :is(h1,h2,h3,label,strong){color:#fff!important;-webkit-text-fill-color:#fff!important}
#root .hlc-auth-shell :is(p,small,span){color:#aebdd0!important;-webkit-text-fill-color:#aebdd0!important}

/* WORK — compact the source component instead of treating its intro as a marketing hero. */
#root .hlc-signed-in-shell.hlc-page-work .hlc-work-home .hlc-parent-index-header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;
  gap:12px!important;
  min-height:0!important;
  padding:0 0 14px!important;
  margin:0 0 10px!important;
  border:0!important;
  border-bottom:1px solid var(--hlc-runtime-line)!important;
  border-radius:0!important;
  background:transparent!important;
}
#root .hlc-signed-in-shell.hlc-page-work .hlc-parent-index-header h1{
  margin:4px 0 5px!important;
  font-size:clamp(24px,6.5vw,32px)!important;
  line-height:1.08!important;
  letter-spacing:-.025em!important;
}
#root .hlc-signed-in-shell.hlc-page-work .hlc-parent-index-header p{
  max-width:680px!important;
  margin:0!important;
  font-size:14px!important;
  line-height:1.45!important;
  color:var(--hlc-runtime-muted)!important;
}
#root .hlc-signed-in-shell.hlc-page-work .hlc-parent-agent-link{
  min-height:44px!important;
  padding:0 12px!important;
  align-self:end!important;
}
#root .hlc-signed-in-shell.hlc-page-work :is(.hlc-parent-branch-row,.hlc-parent-secondary,.hlc-parent-boundary,.hlc-work-communication-link),
#root .hlc-signed-in-shell.hlc-page-work .hlc-parent-secondary nav>a.hlc-work-communication-link,
#root .hlc-signed-in-shell.hlc-page-work .hlc-parent-secondary nav>a.hlc-work-communication-link>*{
  background:var(--hlc-runtime-surface)!important;
  background-color:var(--hlc-runtime-surface)!important;
  background-image:none!important;
  color:var(--hlc-runtime-text)!important;
  -webkit-text-fill-color:var(--hlc-runtime-text)!important;
  border-color:var(--hlc-runtime-line)!important;
  box-shadow:none!important;
}
#root .hlc-signed-in-shell.hlc-page-work .hlc-work-communication-icon{
  background:var(--hlc-runtime-surface-2)!important;
  background-image:none!important;
  color:#dbeafe!important;
  -webkit-text-fill-color:#dbeafe!important;
  border-color:rgba(96,165,250,.22)!important;
}
#root .hlc-signed-in-shell.hlc-page-work .hlc-work-communication-icon svg{stroke:#dbeafe!important;color:#dbeafe!important}

/* MESSAGES — normalize the actual inbox/stage component roots instead of only the outer shell. */
#root .hlc-signed-in-shell.hlc-page-messages .hlc-messages-app-shell,
#root .hlc-signed-in-shell.hlc-page-messages :is(.hlc-messages-app-topbar,.hlc-messaging-frame,.hlc-conversation-list-panel,.hlc-conversation-list-heading,.hlc-messages-progressive-inbox,.hlc-conversation-stage,.hlc-conversation-empty-stage,.hlc-message-compose-view,.hlc-message-quick-compose,.hlc-messages-progressive-thread,.hlc-message-thread-head,.hlc-message-stream,.hlc-message-composer,.hlc-voice-note-console){
  background:var(--hlc-runtime-bg)!important;
  background-color:var(--hlc-runtime-bg)!important;
  background-image:none!important;
  color:var(--hlc-runtime-text)!important;
  border-color:var(--hlc-runtime-line)!important;
  box-shadow:none!important;
}
#root .hlc-signed-in-shell.hlc-page-messages :is(.hlc-message-inbox-row,.hlc-messages-empty-action,.hlc-message-entry,.hlc-message-delivery-choice>label,.hlc-message-subject-details,.hlc-voice-note-list>button){
  background:var(--hlc-runtime-surface)!important;
  background-color:var(--hlc-runtime-surface)!important;
  background-image:none!important;
  color:var(--hlc-runtime-text)!important;
  border-color:var(--hlc-runtime-line)!important;
  box-shadow:none!important;
}
#root .hlc-signed-in-shell.hlc-page-messages :is(h1,h2,h3,strong,label,legend,summary){color:#fff!important;-webkit-text-fill-color:#fff!important}
#root .hlc-signed-in-shell.hlc-page-messages :is(p,small,.hlc-messages-empty){color:var(--hlc-runtime-muted)!important;-webkit-text-fill-color:var(--hlc-runtime-muted)!important}
#root .hlc-signed-in-shell.hlc-page-messages :is(button,input,select,textarea){
  background:var(--hlc-runtime-surface-2)!important;
  background-image:none!important;
  color:var(--hlc-runtime-text)!important;
  -webkit-text-fill-color:var(--hlc-runtime-text)!important;
  border-color:var(--hlc-runtime-line)!important;
}
#root .hlc-signed-in-shell.hlc-page-messages .hlc-message-avatar{background:#16345a!important;color:#dbeafe!important;-webkit-text-fill-color:#dbeafe!important}

/* MORE — this sheet is portaled to body, so style the real body-level component tree. */
body>.hlc-mobile-command-sheet,
body>.hlc-mobile-command-sheet .hlc-drawer-v2-scroll,
body>.hlc-mobile-command-sheet :is(.hlc-mobile-command-sheet-head,.hlc-mobile-more-title,.hlc-mobile-more-quick,.hlc-mobile-command-search-trigger){
  background:var(--hlc-runtime-bg)!important;
  background-color:var(--hlc-runtime-bg)!important;
  background-image:none!important;
  color:var(--hlc-runtime-text)!important;
  border-color:var(--hlc-runtime-line)!important;
  box-shadow:none!important;
}
body>.hlc-mobile-command-sheet .hlc-mobile-more-quick>a,
body>.hlc-mobile-command-sheet .hlc-mobile-command-search-trigger,
body>.hlc-mobile-command-sheet .hlc-mobile-more-signout,
body>.hlc-mobile-command-sheet .hlc-drawer-v2-close{
  background:var(--hlc-runtime-surface)!important;
  background-color:var(--hlc-runtime-surface)!important;
  background-image:none!important;
  color:var(--hlc-runtime-text)!important;
  -webkit-text-fill-color:var(--hlc-runtime-text)!important;
  border-color:var(--hlc-runtime-line)!important;
  box-shadow:none!important;
}
body>.hlc-mobile-command-sheet .hlc-mobile-more-quick>a>*,
body>.hlc-mobile-command-sheet .hlc-mobile-command-search-trigger>*{
  background:transparent!important;
  background-image:none!important;
  color:inherit!important;
  -webkit-text-fill-color:inherit!important;
}
body>.hlc-mobile-command-sheet :is(strong,.hlc-mobile-more-title>strong){color:#fff!important;-webkit-text-fill-color:#fff!important}
body>.hlc-mobile-command-sheet :is(small,.hlc-mobile-more-title>span){color:var(--hlc-runtime-muted)!important;-webkit-text-fill-color:var(--hlc-runtime-muted)!important}
body>.hlc-mobile-command-sheet svg{stroke:#dbeafe!important;color:#dbeafe!important;fill:none!important}

/* AI CHAT — the white islands were inside the shared AgentChatPanel component. */
#root :is(.hlc-agent-workspace,.hlc-ai-team-launcher) .hlc-ai-chat,
#root :is(.hlc-agent-workspace,.hlc-ai-team-launcher) :is(.hlc-ai-chat-head,.hlc-ai-transcript,.hlc-ai-welcome,.hlc-ai-composer,.hlc-ai-settings,.hlc-ai-settings>div,.hlc-ai-message,.hlc-ai-thinking,.hlc-ai-error){
  background:var(--hlc-runtime-surface)!important;
  background-color:var(--hlc-runtime-surface)!important;
  background-image:none!important;
  color:var(--hlc-runtime-text)!important;
  border-color:var(--hlc-runtime-line)!important;
  box-shadow:none!important;
}
#root :is(.hlc-agent-workspace,.hlc-ai-team-launcher) .hlc-ai-welcome{
  padding:12px!important;
  border:1px solid var(--hlc-runtime-line)!important;
  border-radius:8px!important;
}
#root :is(.hlc-agent-workspace,.hlc-ai-team-launcher) :is(.hlc-ai-language-control select,.hlc-ai-composer textarea,.hlc-ai-quick-prompts button,.hlc-ai-icon-action,.hlc-ai-settings summary,.hlc-ai-send,.hlc-ai-replay){
  background:var(--hlc-runtime-surface-2)!important;
  background-image:none!important;
  color:var(--hlc-runtime-text)!important;
  -webkit-text-fill-color:var(--hlc-runtime-text)!important;
  border-color:var(--hlc-runtime-line)!important;
}
#root :is(.hlc-agent-workspace,.hlc-ai-team-launcher) :is(h1,h2,h3,strong){color:#fff!important;-webkit-text-fill-color:#fff!important}
#root :is(.hlc-agent-workspace,.hlc-ai-team-launcher) :is(p,small,em,span){border-color:var(--hlc-runtime-line)!important}

@media(max-width:720px){
  #root .hlc-app-shell:is(.hlc-page-login,.hlc-page-register,.hlc-page-forgot-password,.hlc-page-reset-password)>.hlc-route-content{padding:0!important}
  #root .hlc-auth-shell{min-height:100dvh!important;padding:16px 16px 32px!important}
  #root .hlc-signed-in-shell.hlc-page-work .hlc-work-home .hlc-parent-index-header{grid-template-columns:1fr!important;align-items:start!important}
  #root .hlc-signed-in-shell.hlc-page-work .hlc-parent-agent-link{width:fit-content!important}
  #root .hlc-signed-in-shell.hlc-page-messages .hlc-messaging-frame{display:block!important;border:0!important}
  #root .hlc-signed-in-shell.hlc-page-messages :is(.hlc-conversation-list-panel,.hlc-conversation-stage){min-height:0!important;border:0!important}
  body>.hlc-mobile-command-sheet .hlc-drawer-v2-scroll{padding-bottom:max(92px,env(safe-area-inset-bottom))!important}
  #root :is(.hlc-agent-workspace,.hlc-ai-team-launcher) .hlc-ai-chat{border-radius:8px!important}
  #root :is(.hlc-agent-workspace,.hlc-ai-team-launcher) .hlc-ai-chat-head{padding:10px!important}
  #root :is(.hlc-agent-workspace,.hlc-ai-team-launcher) .hlc-ai-transcript{padding:10px!important;min-height:0!important}
  #root :is(.hlc-agent-workspace,.hlc-ai-team-launcher) .hlc-ai-composer{padding:10px!important}
}
