.chat-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-end}.chat-status{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid var(--line);border-radius:30px;color:var(--muted);font-size:11px;white-space:nowrap}.chat-status::before{content:'';width:7px;height:7px;border-radius:50%;background:#b8a3b1}.chat-status[data-state=connected]::before{background:#5ba77b}.chat-status[data-state=disconnected]::before{background:#d7a46d}.chat-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:35px;margin-bottom:65px;align-items:start}.chat-room{position:relative;min-width:0;border:1px solid var(--line);border-radius:15px;overflow:hidden;background:var(--surface)}.chat-room-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;border-bottom:1px solid var(--line)}.chat-room-top b{display:block;font-size:14px}.chat-room-top>div>span{display:block;color:var(--muted);font-size:10px;margin-top:4px}.chat-room-top label{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:10px}.chat-room-top select{max-width:185px;background:var(--bg);color:var(--text);border:1px solid var(--line);padding:8px;border-radius:7px;font:inherit}.chat-timeline{height:460px;overflow-y:auto;overscroll-behavior:contain;padding:24px;scroll-behavior:auto}.chat-empty{display:grid;place-items:center;min-height:350px;color:var(--muted);text-align:center;font-size:12px;padding:20px}.chat-message{display:flex;align-items:flex-start;gap:12px;margin-bottom:23px}.chat-avatar{display:grid;place-items:center;flex:0 0 33px;height:33px;background:var(--soft);border:1px solid var(--line);border-radius:11px;color:var(--accent);font-size:13px;font-weight:700}.chat-message-content{min-width:0;flex:1}.chat-message-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px;line-height:1.6}.chat-message-meta strong{font-size:11px;overflow-wrap:anywhere;color:var(--text);color:color-mix(in srgb,var(--chat-name-color,var(--text)) 30%,var(--text))}.chat-message-meta small,.chat-message-meta time{font-size:9px;color:var(--muted)}.chat-source-tag{font-size:8px;padding:1px 6px;border:1px solid var(--line);border-radius:4px;color:var(--muted)}.chat-source-tag[data-source=web]{color:var(--accent);border-color:var(--pink);background:var(--soft)}.chat-message-text{display:inline-block;max-width:100%;margin:0;padding:10px 14px;border-radius:0 11px 11px 11px;background:var(--soft);font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.chat-connection-note{font-size:10px;color:var(--muted);padding:10px 24px;border-top:1px solid var(--line);background:var(--bg)}.chat-compose{padding:17px 24px 10px;border-top:1px solid var(--line)}.chat-compose textarea{width:100%;min-height:65px;resize:vertical;max-height:180px;border:0;outline:0;background:transparent;color:var(--text);font-family:inherit;font-size:12px;line-height:1.9}.chat-compose-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:10px}.chat-compose-bottom>div{display:flex;align-items:center;gap:15px}.chat-compose-bottom small{font-size:10px}.chat-compose-bottom .button{min-height:38px;min-width:90px;font-size:11px}.chat-compose button:disabled{opacity:.5;cursor:not-allowed}.chat-error{min-height:15px;color:#b64c70;font-size:10px;margin:8px 0 0}.chat-signin{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 24px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.chat-signin .button{min-height:40px;font-size:11px}.chat-new{position:absolute;left:50%;top:480px;transform:translateX(-50%);border:1px solid var(--pink);background:var(--surface);color:var(--accent);padding:8px 16px;border-radius:25px;box-shadow:0 3px 20px #0001;cursor:pointer;font-family:inherit;font-size:10px}.chat-sidebar{padding:15px 0}.chat-sidebar h2{font-size:25px;line-height:1.6;margin:12px 0 16px}.chat-sidebar p:not(.eyebrow){color:var(--muted);font-size:11px;line-height:2}.chat-sidebar h3{font-size:12px}.chat-rules{margin:28px 0 24px;padding-top:20px;border-top:1px solid var(--line)}.chat-rules span{display:block;color:var(--muted);font-size:10px;line-height:2}.chat-sidebar>.text-link{display:block;margin-top:14px;font-size:11px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.chat-layout{grid-template-columns:minmax(0,1fr) 200px;gap:24px}.chat-room-top{padding:18px}.chat-timeline{padding:20px}.chat-sidebar h2{font-size:21px}}
@media(max-width:700px){.chat-heading{align-items:flex-start;display:block}.chat-status{margin-top:17px}.chat-layout{grid-template-columns:minmax(0,1fr);gap:20px;margin-bottom:40px}.chat-timeline{height:440px;padding:18px 15px}.chat-room-top{padding:16px 15px;gap:12px}.chat-room-top label{display:block;font-size:9px}.chat-room-top select{display:block;margin-top:5px;max-width:145px;font-size:10px}.chat-compose{padding:16px 15px 8px}.chat-connection-note{padding:10px 15px;line-height:1.8}.chat-signin{padding:18px 15px;align-items:flex-start;flex-direction:column;gap:12px}.chat-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;padding:10px 5px}.chat-sidebar h2{font-size:20px}.chat-rules{margin:0;padding:0 0 0 20px;border-top:0;border-left:1px solid var(--line)}.chat-sidebar>.text-link{font-size:10px}.chat-message{gap:9px;margin-bottom:20px}.chat-avatar{flex-basis:28px;height:28px;border-radius:9px;font-size:11px}.chat-new{top:465px}.chat-compose-bottom{align-items:flex-end}.chat-compose-bottom>span{max-width:45%;overflow-wrap:anywhere}.chat-compose-bottom>div{gap:9px}}

.chat-servers{grid-column:1/-1;border:1px solid var(--line);border-radius:12px;padding:18px;margin-bottom:26px;background:var(--surface)}.chat-servers h2{font-size:19px;margin:4px 0 8px}.chat-servers #chat-server-summary{font-size:11px;line-height:1.7;margin:0 0 14px}.chat-servers>small{display:block;font-size:9px;color:var(--muted);line-height:1.8;margin-top:14px}.chat-server{border-top:1px solid var(--line);padding:12px 0;min-width:0}.chat-server:last-child{padding-bottom:0}.chat-server summary{cursor:pointer;list-style:none;display:flex;flex-wrap:wrap;gap:5px 9px;align-items:center}.chat-server summary::-webkit-details-marker{display:none}.chat-server-name{font-size:12px;overflow-wrap:anywhere;flex:1;min-width:50px}.chat-server-state{font-size:9px;color:var(--muted)}.chat-server-state[data-state=online]{color:#83c78a}.chat-server-state[data-state=offline]{color:#ed8eac}.chat-server-count{font-size:10px;color:var(--accent);width:100%}.chat-server-count::after{content:" 展开名单 ↓";font-size:9px;color:var(--muted)}.chat-server[open] .chat-server-count::after{content:" 收起名单 ↑"}.chat-player-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.chat-player-name{font-size:10px;background:var(--soft);border:1px solid var(--line);border-radius:5px;padding:3px 7px;overflow-wrap:anywhere;max-width:100%}.chat-servers .chat-roster-note{font-size:10px;line-height:1.8;margin:10px 0 0;color:var(--muted)}

.chat-message[data-delivery="pending"]{opacity:.72}.chat-message[data-delivery="failed"]{opacity:.65}.chat-delivery{font-size:.75rem;color:#ff99cc}.chat-message[data-delivery="failed"] .chat-delivery{color:#ff8896}
