
/* Keyzira v6.6.46 — Private Room Quick Messages
   Fixed phrases only. No free-text input and no full chat history. */

.private-quick-chat{
  margin:0 22px 18px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface-2);
  overflow:hidden;
}

.private-quick-chat-head{
  min-height:58px;
  padding:11px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
}

.private-quick-chat-head>div{
  min-width:0;
  display:grid;
  gap:3px;
}

.private-quick-chat-head span{
  color:var(--text);
  font-size:12px;
  font-weight:850;
}

.private-quick-chat-head small{
  color:var(--muted);
  font-size:9.5px;
  line-height:1.4;
}

.private-quick-chat-head em{
  flex:0 0 auto;
  max-width:180px;
  color:var(--orange);
  font-size:9px;
  font-style:normal;
  text-align:right;
}

.private-quick-chat-feed{
  height:122px;
  padding:12px 14px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:7px;
  background:var(--surface-2);
  scrollbar-width:thin;
  scrollbar-color:var(--line-strong) transparent;
}

.private-quick-chat-empty{
  margin:auto;
  color:var(--muted);
  font-size:10px;
  text-align:center;
}

.private-quick-chat-row{
  display:flex;
  width:100%;
}

.private-quick-chat-row.is-you{
  justify-content:flex-end;
}

.private-quick-chat-row.is-opponent{
  justify-content:flex-start;
}

.private-quick-chat-bubble{
  max-width:min(78%,340px);
  padding:8px 10px 9px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  box-shadow:0 4px 12px rgba(35,40,80,.04);
}

.private-quick-chat-row.is-you .private-quick-chat-bubble{
  border-color:color-mix(in srgb,var(--primary) 30%,var(--line));
  background:color-mix(in srgb,var(--primary) 7%,var(--surface));
  border-bottom-right-radius:5px;
}

.private-quick-chat-row.is-opponent .private-quick-chat-bubble{
  border-bottom-left-radius:5px;
}

.private-quick-chat-bubble small,
.private-quick-chat-bubble span{
  display:block;
}

.private-quick-chat-bubble small{
  margin-bottom:2px;
  color:var(--muted);
  font-size:8px;
  font-weight:800;
}

.private-quick-chat-bubble span{
  color:var(--text);
  font-size:11px;
  font-weight:740;
  line-height:1.35;
}

.private-quick-chat-buttons{
  padding:10px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  border-top:1px solid var(--line);
  background:var(--surface);
}

.private-quick-chat-buttons button{
  min-height:37px;
  padding:7px 8px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface-2);
  color:var(--text);
  font:inherit;
  font-size:9.5px;
  font-weight:800;
  cursor:pointer;
  transition:transform .12s ease,border-color .12s ease,background .12s ease,color .12s ease;
}

.private-quick-chat-buttons button:hover:not(:disabled){
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--primary) 45%,var(--line));
  background:color-mix(in srgb,var(--primary) 6%,var(--surface-2));
  color:var(--primary);
}

.private-quick-chat-buttons button:disabled{
  opacity:.48;
  cursor:wait;
  transform:none;
}

/* Strong explicit dark-theme contrast. */
html[data-theme="dark"] .private-quick-chat{
  background:var(--surface);
  border-color:var(--line-strong);
}

html[data-theme="dark"] .private-quick-chat-head,
html[data-theme="dark"] .private-quick-chat-buttons{
  background:var(--surface-2);
}

html[data-theme="dark"] .private-quick-chat-feed{
  background:color-mix(in srgb,var(--surface) 86%,#000);
}

html[data-theme="dark"] .private-quick-chat-bubble{
  background:var(--surface-2);
  border-color:var(--line-strong);
  box-shadow:0 5px 16px rgba(0,0,0,.16);
}

html[data-theme="dark"] .private-quick-chat-row.is-you .private-quick-chat-bubble{
  background:color-mix(in srgb,var(--primary) 13%,var(--surface-2));
  border-color:color-mix(in srgb,var(--primary) 38%,var(--line-strong));
}

html[data-theme="dark"] .private-quick-chat-buttons button{
  background:var(--surface);
  border-color:var(--line-strong);
}

@media(max-width:760px){
  .private-quick-chat{
    margin-left:12px;
    margin-right:12px;
  }

  .private-quick-chat-buttons{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .private-quick-chat-bubble{
    max-width:88%;
  }
}

@media(max-width:480px){
  .private-quick-chat-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .private-quick-chat-head em{
    max-width:none;
    text-align:left;
  }
}
