/* V102 Phase A post-lock Hotfix 10 — clean sidebar + premium web overlay polish. */

/* Keep New Chat fully visible even when later sidebar controls are injected. */
html body .sidebar > #newChatBtn.new-chat{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-height:52px!important;
  height:52px!important;
  flex:0 0 52px!important;
  padding:0 16px!important;
  margin:0 0 12px!important;
  overflow:visible!important;
  line-height:1!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
html body .sidebar > #newChatBtn.new-chat span{flex:0 0 auto!important;line-height:1!important}
html body .sidebar-top{flex:0 0 auto!important}

/* Web/page overlay: calm, futuristic, readable, no visual crowding. */
html body #novaAssistOverlay .nova-unified-overlay-card{
  width:min(400px,calc(100vw - 28px))!important;
  height:min(620px,calc(100dvh - 48px))!important;
  min-height:500px!important;
  border-radius:28px!important;
  overflow:hidden!important;
  background:
    linear-gradient(180deg,rgba(2,15,36,.32),rgba(4,18,48,.76)),
    url('images/iridescent-neon-glass-portal.png') center/cover no-repeat!important;
  border:1px solid rgba(104,207,255,.72)!important;
  box-shadow:0 26px 90px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.10),0 0 34px rgba(66,156,255,.14)!important;
  backdrop-filter:blur(24px) saturate(135%)!important;
  -webkit-backdrop-filter:blur(24px) saturate(135%)!important;
}
html body #novaAssistOverlay .nova-unified-overlay-card::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  pointer-events:none!important;
  background:radial-gradient(circle at 85% 8%,rgba(255,210,122,.18),transparent 26%),radial-gradient(circle at 8% 12%,rgba(90,191,255,.18),transparent 33%)!important;
  z-index:0!important;
}
html body #novaAssistOverlay .nova-unified-overlay-card > *{position:relative!important;z-index:1!important}
html body #novaAssistOverlay .nova-unified-overlay-card .nova-assist-header{
  min-height:82px!important;
  padding:14px 18px 10px!important;
  background:linear-gradient(180deg,rgba(2,17,42,.54),rgba(2,17,42,.14))!important;
  border-bottom:1px solid rgba(125,199,255,.12)!important;
}
html body #novaAssistOverlay .nova-unified-overlay-card .nova-assist-logo{width:58px!important;height:58px!important;border-radius:17px!important}
html body #novaAssistOverlay .nova-unified-overlay-card .nova-assist-brand h2{font-size:24px!important;letter-spacing:-.02em!important}
html body #novaAssistOverlay .nova-unified-overlay-card .nova-assist-brand p{font-size:11px!important;color:#b8d2ef!important}
html body #novaAssistOverlay .nova-unified-overlay-card .nova-assist-content{padding:10px 14px 6px!important}
html body #novaAssistOverlay .nova-unified-feed{padding:8px 2px 12px!important;gap:10px!important}
html body #novaAssistOverlay .nova-unified-empty{
  margin:auto 8px!important;
  padding:18px!important;
  border-radius:18px!important;
  background:rgba(3,20,52,.48)!important;
  border:1px solid rgba(130,206,255,.24)!important;
  color:#d4e6f8!important;
  font-size:12px!important;
  line-height:1.55!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html body #novaAssistOverlay .nova-unified-msg{max-width:90%!important;padding:11px 13px!important;border-radius:17px!important;backdrop-filter:blur(14px)!important}
html body #novaAssistOverlay .nova-unified-msg.is-user{background:rgba(12,79,153,.82)!important}
html body #novaAssistOverlay .nova-unified-msg.is-nova{background:rgba(57,43,126,.78)!important}
html body #novaAssistOverlay .nova-unified-text{font-size:12.5px!important;line-height:1.48!important}

/* Clean 3x2 tools grid. No horizontal squeeze/overlap. */
html body #novaAssistOverlay .nova-unified-tools{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
  overflow:visible!important;
  padding:7px 14px 6px!important;
}
html body #novaAssistOverlay .nova-unified-tool{
  min-width:0!important;
  width:100%!important;
  min-height:36px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  padding:8px 7px!important;
  border-radius:12px!important;
  border:1px solid rgba(119,195,255,.28)!important;
  background:rgba(3,31,72,.52)!important;
  color:#edf7ff!important;
  font:700 10px/1.1 system-ui!important;
  text-align:center!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html body #novaAssistOverlay .nova-unified-tool:hover{background:rgba(12,63,118,.72)!important;border-color:rgba(135,216,255,.56)!important}
html body #novaAssistOverlay .nova-unified-overlay-card .nova-assist-prompt{
  margin:6px 14px 10px!important;
  min-height:52px!important;
  padding:5px 6px 5px 14px!important;
  border-radius:18px!important;
  background:rgba(3,21,54,.72)!important;
  border:1px solid rgba(122,205,255,.52)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 12px 30px rgba(0,0,0,.16)!important;
}
html body #novaAssistOverlay .nova-unified-overlay-card #novaAssistInput{font-size:13px!important;line-height:1.35!important}
html body #novaAssistOverlay .nova-unified-overlay-card #novaAssistSend{width:40px!important;height:40px!important;min-width:40px!important;font-size:20px!important}
html body #novaAssistOverlay .nova-unified-overlay-card .nova-assist-footer{padding-bottom:9px!important;font-size:8.5px!important;color:#9fb4cb!important}

@media(max-width:700px){
  html body #novaAssistOverlay .nova-unified-overlay-card{width:min(380px,calc(100vw - 18px))!important;height:min(600px,calc(100dvh - 24px))!important;min-height:460px!important}
  html body #novaAssistOverlay .nova-unified-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding-left:12px!important;padding-right:12px!important}
  html body .sidebar > #newChatBtn.new-chat{min-height:50px!important;height:50px!important;flex-basis:50px!important}
}
