.tri-room-page { width: 100%; }
.tri-room-view { display: block; width: 100%; height: 650px; border: 0; }

:host { font: inherit; color: inherit; }
:host button, :host input { font: inherit; }
.room-chat-composer button, .room-chat-examples button {
  color: inherit; background: transparent; border: 1px solid currentColor;
  border-radius: var(--shape-control, .65rem); padding: .55rem .8rem; cursor: pointer;
}
.room-chat-dialog {
  position: fixed; inset: 0; margin: auto; height: max-content;
  box-sizing: border-box; width: min(34rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem);
  padding: 0; color: var(--color-text-default, #242a24); background: var(--color-surface-page, #f9faf7);
  border: 1px solid var(--color-border-default, #b3bdb2); border-radius: var(--shape-surface, 1rem);
  box-shadow: 0 1.25rem 4rem #0005;
}
.room-chat-dialog:not([open]) { display: none; }
.room-chat-dialog[data-theme="dark"] { color: #edf1ec; background: #242a28; border-color: #5b6962; }
.room-chat-dialog::backdrop { background: #17241970; }
.room-chat-dialog .invisible-window__titlebar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem 1rem; }
.room-chat-dialog h2 { margin: 0; font-size: 1.15rem; }
.room-chat-close { color: inherit; border: 0; background: none; font-size: 1.4rem; cursor: pointer; }
.room-chat-content { display: grid; gap: .75rem; padding: .85rem 1rem 1rem; }
.room-chat-content p { margin: 0; }
.room-chat-mode { font-size: .85rem; opacity: .82; min-height: 1.25rem; }
.room-chat-log { display: grid; gap: .5rem; align-content: end; max-height: min(34vh, 16rem); overflow: auto; }
.room-chat-log article { padding: .55rem .7rem; border-radius: .6rem; background: color-mix(in srgb, currentColor 7%, transparent); }
.room-chat-log article[data-role="user"] { margin-inline-start: 1.5rem; }
.room-chat-log article p { overflow-wrap: anywhere; white-space: pre-wrap; }
.room-chat-examples { display: flex; flex-wrap: wrap; gap: .4rem; }
.room-chat-examples button { font-size: .85rem; }
.room-chat-composer > div { display: flex; gap: .5rem; margin-top: .25rem; }
.room-chat-composer input { box-sizing: border-box; min-width: 0; flex: 1; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: .55rem; padding: .55rem; }
.room-chat-composer button:disabled { opacity: .6; cursor: wait; }
