body.room { display: flex; flex-direction: column; height: 100dvh; max-width: 760px; margin: 0 auto; }
.room-head { padding: 10px 14px 0; flex: none; }
.room-head h1 { margin: 0 0 6px; }
.brief { margin: 8px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); max-height: 40dvh; overflow-y: auto; }
.brief summary { min-height: 44px; display: flex; align-items: center; padding: 0 12px; font-weight: 700; cursor: pointer; }
.brief .brief-body { padding: 0 12px 12px; }
.my-role { margin: 0 0 8px; padding: 8px 10px; background: var(--accent-soft); border-radius: 6px; }
.notice { font-size: .85rem; color: var(--muted); margin: 6px 0; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.messages { flex: 1; overflow-y: auto; padding: 8px 14px; list-style: none; margin: 0; }
.msg { margin: 0 0 10px; padding: 8px 12px; background: var(--bubble); border-radius: 10px; overflow-wrap: anywhere; }
.msg.claude { background: var(--bubble-claude); }
.msg-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; font-size: .85rem; color: var(--muted); margin-bottom: 2px; }
.msg-head .author { color: var(--fg); font-weight: 700; }
.composer { flex: none; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.composer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'text text' 'attach send'; gap: 8px; align-items: center; }
.composer textarea { grid-area: text; width: 100%; min-height: 44px; max-height: 30dvh; }
#attach-btn { grid-area: attach; justify-self: start; }
#send-btn { grid-area: send; }
.join { padding: 20px 14px; max-width: 480px; margin: 0 auto; }
.roles { border: 0; padding: 0; margin: 0 0 14px; }
.roles legend { font-weight: 600; margin-bottom: 4px; }
.role-opt { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 8px; font-weight: 400; cursor: pointer; }
.role-opt input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.role-opt strong { display: block; }
dialog.connect { width: min(94vw, 560px); max-height: 92dvh; overflow-y: auto; padding: 18px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
dialog.connect::backdrop { background: rgba(0, 0, 0, .55); }
.copy-row { display: flex; gap: 8px; }
.copy-row input, .copy-row textarea { flex: 1; min-width: 0; }
.copy-row .btn { flex: none; font-size: 1.05rem; padding: 0 20px; }
dialog ol { padding-left: 1.3em; }
dialog li { margin-bottom: 6px; }
.room-wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.attach-busy { opacity: .6; }
