/* Chat (auction screen drawer and match updates) */
.ch { --ch-line: #dde5e1; --ch-mut: #5e6b66; --ch-me: #e6f3ee; --ch-ink: #1d2a26; display: flex; flex-direction: column; min-height: 0; height: 100%; color: var(--ch-ink); font-size: 15px; line-height: 1.4; text-align: left; }
.ch-note { background: #fff7e0; border: 1px solid #f0dc9a; border-radius: 8px; padding: 8px 10px; margin: 0 0 8px; font-size: 14px; }
.ch-note a { font-weight: 700; }
.ch-list { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 2px 8px; }
.ch-empty { color: var(--ch-mut); text-align: center; margin: 24px 8px; }
.ch-m { padding: 7px 10px; margin: 0 0 6px; border-radius: 10px; background: #f3f6f4; word-wrap: break-word; overflow-wrap: anywhere; }
.ch-m.ch-mine { background: var(--ch-me); }
.ch-m.ch-gone { background: transparent; border: 1px dashed var(--ch-line); }
.ch-h { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.ch-n { font-weight: 700; }
.ch-r { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; background: #243447; color: #fff; border-radius: 99px; padding: 1px 7px; }
.ch-t { margin-left: auto; font-size: 12px; color: var(--ch-mut); }
.ch-b { white-space: pre-wrap; margin-top: 2px; }
.ch-del { color: var(--ch-mut); font-style: italic; }
.ch-rp { font-size: 13px; color: var(--ch-mut); border-left: 3px solid #b9c6c0; padding-left: 8px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-a { display: flex; gap: 14px; margin-top: 3px; }
.ch-act { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 600; color: #0a5636; cursor: pointer; min-height: 32px; }
.ch-act:hover { text-decoration: underline; }
.ch-act.ch-sure { color: #b3261e; }
.ch-compose { margin-top: 8px; }
.ch-desc .ch-compose { margin: 0 0 12px; }
.ch-form { display: flex; gap: 8px; align-items: stretch; }
.ch-form textarea { flex: 1; min-width: 0; resize: none; font: inherit; padding: 8px 10px; border: 1px solid #b9c6c0; border-radius: 10px; background: #fff; color: #1d2a26; }
.ch-send { align-self: stretch; background: #0f7148; color: #fff; border: 0; border-radius: 10px; padding: 0 16px; font: inherit; font-weight: 700; cursor: pointer; }
.ch-send:hover:not([disabled]) { background: #0a5636; }
.ch-send[disabled] { opacity: .6; cursor: default; }
.ch-replying { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: #eef1f5; border-radius: 8px; padding: 5px 8px; margin-bottom: 6px; font-size: 13px; }
.ch-replying span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-x { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: #5e6b66; padding: 0 4px; }
.ch-err { color: #b3261e; font-size: 13px; min-height: 0; margin-top: 4px; }
.ch-err:empty { display: none; }
.ch-pill { position: relative; align-self: center; margin: -6px 0 6px; background: #243447; color: #fff; border: 0; border-radius: 99px; padding: 5px 14px; font-size: 13px; cursor: pointer; }

/* auction screen: a panel on the right that the viewer opens with the Chat button */
.ch-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 360px; max-width: 100vw; background: #fff; color: #1d2a26; z-index: 50; display: flex; flex-direction: column; box-shadow: -6px 0 24px rgba(0,0,0,.35); }
.ch-drawer > header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #dde5e1; font-size: 17px; }
.ch-drawer .ch-count { color: #5e6b66; font-size: 13px; }
.ch-close { margin-left: auto; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #5e6b66; padding: 0 6px; }
.ch-drawer #ch-root { flex: 1; min-height: 0; padding: 10px 12px 12px; display: flex; flex-direction: column; }
.ch-drawer .ch { height: 100%; }
.chbadge { display: inline-block; background: #dc262e; color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; font-weight: 700; margin-left: 4px; }

/* match pages */
.mu-card { margin: 0 0 18px; }
.mu-card h2 { margin: 0 0 10px; }
.mu-card .ch { height: auto; }
.mu-card .ch-list { max-height: 520px; }
@media (max-width: 600px) { .ch-drawer { width: 100vw; } .ch { font-size: 16px; } .ch-form textarea { font-size: 16px; } }
