/* TWINS v0.2.85 — TWIN memory/conversation polish + message thread repair */
html.message-thread-open main{
  height:calc(100dvh - 46px - 74px)!important;
  min-height:0!important;
}
html.message-thread-open .message-thread-page{
  height:100%!important;
  min-height:0!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  padding:0!important;
}
html.message-thread-open .message-bubbles{
  padding:10px 12px 8px!important;
}
html.message-thread-open .message-compose{
  align-items:end!important;
  padding:8px 10px!important;
  padding-bottom:max(8px,env(safe-area-inset-bottom))!important;
}
html.message-thread-open .message-compose textarea{
  height:44px!important;
  min-height:44px!important;
  max-height:104px!important;
  align-self:end!important;
}
html.message-thread-open .message-compose textarea[data-grown="1"]{height:var(--composer-height,44px)!important}
.twin-history-head{min-height:18px}
.twin-history-head strong{display:none!important}

/* Ops: denser operational review blocks */
.ops-chat-list,.ops-memory-list{display:grid;gap:8px}
.ops-chat-list article,.ops-memory-list article{padding:11px;border:1px solid #ffffff0b;border-radius:10px;background:#ffffff04}
.ops-chat-list header,.ops-memory-list header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ops-chat-list header strong,.ops-memory-list header strong{font-size:11px}
.ops-chat-list header small,.ops-memory-list header small{color:#77717f;font-size:8px}
.ops-chat-list p,.ops-memory-list p{margin:6px 0 0;color:#aaa3ad;font-size:9px;line-height:1.6}
.ops-chat-list p.is-user{color:#e7dfe8}
