/* Empty chat alignment */
body.chat-empty #p-chat.panel.on{
  min-height:calc(100vh - (var(--shell-pad-y) * 2));
}

body.chat-empty #p-chat.panel.on .cb{
  justify-content:flex-end;
  padding-bottom:0;
}

body.chat-empty #p-chat.panel.on #starter{
  position:static;
  left:auto;
  right:auto;
  bottom:auto;
  z-index:auto;
  margin-top:auto;
  padding:0 12px 12px;
}

body.chat-empty #p-chat.panel.on .cf{
  position:static;
  left:auto;
  right:auto;
  bottom:auto;
  z-index:auto;
  padding:0 0 6px;
  background:none;
}

body.chat-empty #p-chat.panel.on .iw{
  max-width:980px;
}

@media (max-width:980px){
  body.chat-empty #p-chat.panel.on{
    min-height:calc(100vh - 24px);
  }
}

@media (max-width:640px){
  body.chat-empty #p-chat.panel.on{
    min-height:calc(100vh - 20px);
  }
}

/* Empty state hard reset */
html,body{
  overflow:hidden;
}

.main,
.workspace,
.panel.on,
#p-chat,
#p-screen,
#p-tasks,
#p-comm,
#p-settings{
  min-height:0;
}

#p-chat .cb,
#p-screen .sp,
#p-tasks .tp,
#p-comm .cp,
#p-settings .cp{
  overflow:auto;
  min-height:0;
}

body.chat-empty #p-chat.panel.on{
  display:grid;
  grid-template-rows:1fr auto;
  align-content:center;
  min-height:calc(100vh - 40px);
}

body.chat-empty #p-chat.panel.on .cb{
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:0 24px;
  overflow:auto;
}

body.chat-empty #p-chat.panel.on #starter{
  position:static;
  width:min(100%,820px);
  margin:0 auto 12px;
  padding:0;
  min-height:auto;
  gap:14px;
}

body.chat-empty #p-chat.panel.on .cf{
  position:static;
  width:min(100%,820px);
  margin:0 auto;
  padding:0 0 24px;
  background:none;
  z-index:auto;
}

body.chat-empty #p-chat.panel.on .iw{
  max-width:none;
}

body.chat-empty .quick-grid{
  width:min(100%,760px);
}

body.chat-empty .quick-card{
  background:rgba(255,255,255,.92);
}

.cf{
  position:relative;
}

.im{
  position:absolute;
  left:0;
  right:0;
  bottom:calc(100% + 10px);
  display:none;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  background:rgba(255,255,255,.96);
  box-shadow:0 18px 40px rgba(15,23,42,.08);
}

.im.open{
  display:flex;
}

.composer-meta{
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 8px 8px;
}

.composer-select-wrap{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:999px;
  background:rgba(255,255,255,.88);
}

.composer-select-label{
  font-family:'IBM Plex Mono',monospace;
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}

.composer-select{
  border:none;
  background:transparent;
  color:var(--ink);
  font-family:'Sora',sans-serif;
  font-size:12px;
  outline:none;
  cursor:pointer;
}

@media (max-width:980px){
  body.chat-empty #p-chat.panel.on{
    min-height:calc(100vh - 32px);
  }
}

@media (max-width:640px){
  body.chat-empty #p-chat.panel.on .cb{
    padding:0 12px;
    overflow:auto;
  }

  body.chat-empty #p-chat.panel.on #starter,
  body.chat-empty #p-chat.panel.on .cf{
    width:100%;
  }

  body.chat-empty .quick-grid{
    grid-template-columns:1fr;
  }

  .im{
    flex-wrap:wrap;
  }

  .composer-meta{
    padding-inline:4px;
  }
}
