.chat-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.chat-section-heading>span{min-width:0}.chat-section-more{display:none}.mobile-room-section{display:none}
dialog.chat-section-dialog{position:fixed;inset:auto 0 0;box-sizing:border-box;width:min(560px,100%);max-width:100%;max-height:calc(var(--section-vh,100dvh) - max(12px,env(safe-area-inset-top,0px)));margin:0 auto;padding:18px 20px max(16px,env(safe-area-inset-bottom,0px));border:1px solid var(--line);border-bottom:0;border-radius:20px 20px 0 0;background:var(--theme-surface,#fff);color:var(--theme-text,#333);overflow:hidden;box-shadow:0 -12px 45px #0003;overscroll-behavior:contain;user-select:none;-webkit-user-select:none}
.chat-section-dialog[open]{display:flex;flex-direction:column}.chat-section-dialog::before{content:'';display:block;flex:none;width:34px;height:4px;margin:-6px auto 10px;background:var(--muted);opacity:.5;border-radius:4px}.chat-section-dialog>.dialog-head{flex:none;margin:0 0 12px;gap:12px}.chat-section-dialog h2{font-size:18px;margin:0;letter-spacing:0}.chat-section-dialog .dialog-head>button{min-width:44px;min-height:44px}.chat-section-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.chat-section-dialog>.fine{flex:none;min-height:18px;margin:8px 0 0;line-height:1.4}.chat-section-dialog>.dialog-footer{flex:none;margin:14px 0 0;gap:12px}.chat-section-dialog>.dialog-footer button{min-height:44px}.section-sort{border:0;margin:0;padding:0}.section-sort legend{font-size:13px;color:var(--muted);padding:0 0 8px}.section-sort-row{display:flex;align-items:center;min-height:50px;border-bottom:1px solid var(--line)}.section-sort-row .section-sort-choice{display:flex;align-items:center;gap:12px;margin:0;flex:1;min-height:50px;font-size:15px;font-weight:400;cursor:pointer}.section-sort-choice input{flex:none;display:inline-block;width:20px;height:20px;margin:0;padding:0;accent-color:var(--palette-action,var(--teal))}.section-expand{font-size:23px;width:44px;min-height:44px;border:0;background:none;color:var(--palette-action,var(--teal));cursor:pointer}.chat-section-dialog .section-order-list{margin:12px 0 16px;max-height:40dvh;overflow:auto;overscroll-behavior:contain}.section-order-list[hidden]{display:none}.section-order-list .order-row{min-height:56px;gap:6px;padding:5px 6px}.section-order-list .order-row>.avatar{display:grid;width:28px;height:28px;font-size:10px;flex:none}.section-order-list .order-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:13px}.section-order-list .order-controls button{width:30px;min-width:30px}.section-order-list .order-handle{font-size:20px;flex:none;touch-action:none}.section-mention-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px;font-weight:400;margin:12px 0;min-height:52px}.section-mention-switch input{display:block;flex:none;appearance:none;-webkit-appearance:none;box-sizing:border-box;width:44px;height:26px;border:1px solid var(--line);border-radius:16px;background:var(--theme-muted,#888);padding:2px;margin:0;cursor:pointer}.section-mention-switch input::before{content:'';display:block;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0003;transition:transform .12s}.section-mention-switch input:checked{background:var(--palette-action,var(--teal))}.section-mention-switch input:checked::before{transform:translateX(18px)}.chat-section-body>.fine{font-size:12px;line-height:1.5;margin:0 0 10px}.chat-section-dialog :focus-visible{outline:2px solid var(--palette-action,var(--teal));outline-offset:2px}.chat-section-dialog button:disabled,.chat-section-dialog input:disabled{opacity:.5;cursor:default}
@media(max-width:760px){.chat-section-heading{min-height:40px;padding-right:4px;margin-top:8px;margin-bottom:2px}.chat-section-more{display:grid;place-items:center;flex:none;min-width:44px;min-height:44px;border:0;background:transparent;color:var(--muted);font-size:25px;padding:0;border-radius:8px;cursor:pointer}.mobile-room-section{display:flex}.desktop-room-section{display:none}dialog.chat-section-dialog{padding-left:14px;padding-right:14px}.chat-section-more:focus-visible{outline:2px solid var(--palette-action,var(--teal));outline-offset:2px}}
@media(prefers-reduced-motion:reduce){.section-mention-switch input::before{transition:none}}
