/* Request-scoped consent UI: compact when selected; no change to consent semantics. */
body.bt-chat #b2t-chat-consent-compact {
  display:flex!important;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:7px;
  width:fit-content;
  max-width:100%;
  box-sizing:border-box;
  margin:9px auto 0;
  padding:5px 9px 5px 11px;
  border:1px solid #343f50;
  border-radius:999px;
  background:#1c2532;
  color:#dbe9fe;
  font-size:12px;
  line-height:1.4;
  font-weight:550;
}
body.bt-chat #b2t-chat-consent-compact[hidden] {display:none!important}
body.bt-chat #b2t-chat-consent-compact .b2t-consent-check {
  color:#a8ceff;
  font-weight:850;
}
body.bt-chat #b2t-chat-consent-compact .b2t-consent-edit {
  display:inline-flex;
  min-height:27px;
  align-items:center;
  justify-content:center;
  margin:0 0 0 3px;
  padding:4px 10px;
  border:1px solid #577092;
  border-radius:999px;
  background:#283b56;
  color:#eff6ff;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
body.bt-chat #b2t-chat-consent-compact .b2t-consent-edit:hover {
  background:#36547c;
}
body.bt-chat.b2t-report-collapsed #miimochi-report-consent {
  display:none!important;
}
body.bt-chat.b2t-world-collapsed .b2t-worldbrain-opt {
  display:none!important;
}
/* Match grid tracks to the number of displayed rows; no blank authorization rows. */
body.bt-chat.b2t-report-collapsed:not(.b2t-world-collapsed) .chat-page {
  grid-template-rows:auto auto auto minmax(0,1fr)!important;
}
body.bt-chat.b2t-world-collapsed .chat-page {
  grid-template-rows:auto auto minmax(0,1fr)!important;
}
body.bt-chat.b2t-report-collapsed:not(.b2t-world-collapsed) .chat-page:has(#b2t-shared-messages:not([hidden])) {
  grid-template-rows:auto auto auto auto minmax(0,1fr)!important;
}
body.bt-chat.b2t-world-collapsed .chat-page:has(#b2t-shared-messages:not([hidden])) {
  grid-template-rows:auto auto auto minmax(0,1fr)!important;
}
@media(max-width:767px) {
  body.bt-chat #b2t-chat-consent-compact {
    font-size:11px;
    border-radius:12px;
    margin:7px auto 1px;
  }
  body.bt-chat #b2t-chat-consent-compact .b2t-consent-edit {
    min-height:30px;
  }
}
