/* Phase 7K.10.2 — taller, collaboration-grade messaging surface */
body:has(.message-layout-v2) .message-layout-v2{
  min-height:800px!important;
  height:calc(100vh - 220px)!important;
}

body:has(.message-layout-v2) .message-sidebar-v2,
body:has(.message-layout-v2) .conversation-panel-v2,
body:has(.message-layout-v2) .message-empty-panel-v2{
  min-height:800px!important;
}

body:has(.message-layout-v2) .conversation-panel-v2{
  grid-template-rows:64px minmax(0,1fr) auto!important;
}

body:has(.message-layout-v2) .conversation-panel-v2 .message-thread{
  min-height:0!important;
}

.tapback-trigger{
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  padding:0 3px;
  cursor:pointer;
  opacity:.72;
}

.tapback-trigger:hover{opacity:1;text-decoration:underline}

.tapback-picker{
  position:absolute;
  z-index:12000;
  display:flex;
  gap:5px;
  padding:7px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:#07182b;
  box-shadow:0 14px 34px rgba(0,0,0,.45);
}

.tapback-picker button{
  width:40px;
  height:40px;
  border:0;
  border-radius:50%;
  background:transparent;
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size:1.25rem;
  transition:transform .12s ease,background .12s ease;
}

.tapback-picker button:hover{
  transform:scale(1.18);
  background:#173b65;
}

.tapback-summary{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:7px;
}

.tapback-summary span{
  display:inline-flex;
  align-items:center;
  gap:3px;
  min-height:24px;
  padding:2px 7px;
  border-radius:999px;
  background:#081d34;
  border:1px solid rgba(255,255,255,.12);
  font-size:.78rem;
}

.tapback-summary b{
  font-size:.68rem;
  opacity:.72;
}

@media(max-width:800px){
  body:has(.message-layout-v2) .message-layout-v2{
    height:auto!important;
    min-height:0!important;
  }
  body:has(.message-layout-v2) .conversation-panel-v2{
    min-height:720px!important;
  }
  body:has(.message-layout-v2) .message-sidebar-v2{
    min-height:0!important;
  }
}
