.wrchat { margin: 48px 0 0; padding: 22px; border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 18px; background: var(--panel, rgba(255,255,255,.04)); color: var(--text, #f3f0ff); }
.wrchat[hidden] { display: none; }
.wrchat__title { margin: 0 0 4px; font-size: 22px; line-height: 1.2; }
.wrchat__title span { color: var(--muted, #b8b2d6); font-weight: 600; font-size: 16px; }
.wrchat__rules { margin: 0 0 14px; font-size: 13px; color: var(--muted, #b8b2d6); }
.wrchat__list { max-height: 440px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 4px 4px 0; scrollbar-width: thin; overscroll-behavior: contain; }
.wrchat__empty { margin: 8px 0; color: var(--muted, #b8b2d6); }
.wrchat__msg { background: rgba(255,255,255,.05); border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 14px; padding: 10px 14px; max-width: 100%; }
.wrchat__msg header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 13px; }
.wrchat__msg header b { font-size: 14px; color: #fff; overflow-wrap: anywhere; }
.wrchat__msg time { color: var(--muted, #b8b2d6); font-size: 12px; }
.wrchat__msg p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.wrchat__msg.is-staff { border-color: var(--pink, #ff4f9a); }
.wrchat__msg.is-held { opacity: .6; border-style: dashed; }
.wrchat__badge { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--pink, #ff4f9a); color: #0b0918; }
.wrchat__mod { margin-left: auto; display: inline-flex; gap: 6px; }
.wrchat__mod button, .wrchat__link { background: none; border: 0; padding: 0; color: var(--pink, #ff4f9a); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.wrchat__link { font-size: 14px; }
.wrchat__more { margin-top: 8px; }
.wrchat__box { margin-top: 14px; }
.wrchat__form p { margin: 0 0 8px; font-size: 14px; }
.wrchat__row { display: flex; gap: 8px; align-items: stretch; }
.wrchat input[name=n], .wrchat textarea { flex: 1; min-width: 0; background: rgba(255,255,255,.07); border: 1px solid var(--line, rgba(255,255,255,.18)); border-radius: 12px; padding: 11px 14px; color: inherit; font: inherit; font-size: 16px; resize: vertical; }
.wrchat input[name=n]:focus, .wrchat textarea:focus { outline: 2px solid var(--pink, #ff4f9a); outline-offset: 1px; }
.wrchat__btn { border: 0; border-radius: 12px; padding: 0 20px; min-height: 44px; font: inherit; font-weight: 800; background: var(--pink, #ff4f9a); color: #0b0918; cursor: pointer; }
.wrchat__btn:disabled { opacity: .6; cursor: default; }
.wrchat__btn:focus-visible, .wrchat__link:focus-visible, .wrchat__mod button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wrchat__err { color: #ffb3c8; min-height: 1.2em; }
.wrchat__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 560px) { .wrchat { padding: 16px; } .wrchat__row { flex-direction: column; } .wrchat__btn { min-height: 46px; } }
@media (prefers-reduced-motion: no-preference) { .wrchat__msg { animation: wrcin .25s ease-out; } @keyframes wrcin { from { opacity: 0; transform: translateY(4px); } } }
