#hkc-chat-page { max-width: 56rem; margin: 1.5rem auto var(--hkc-chat-player-height, 15rem); color: #2d3436; }
#hkc-chat-page h1 { line-height: 1.2; margin-bottom: 1rem; }
#hkc-chat { line-height: 1.6; }
#hkc-chat p { margin-bottom: 1rem; }
#hkc-chat a { color: #3e3673; text-decoration: underline; }
#hkc-chat button, #hkc-chat textarea { font: inherit; }
#hkc-chat button { padding: .6rem 1rem; border: 2px solid #333; border-radius: .3rem; background: #ffd700; color: #242628; font-weight: 600; cursor: pointer; }
#hkc-chat button:disabled { background: #e5e5e5; color: #555; border-color: #777; cursor: default; }
#hkc-chat textarea { display: block; box-sizing: border-box; width: 100%; background: #fff; color: #242628; border: 2px solid #666; border-radius: .3rem; padding: .7rem; resize: vertical; }
#hkc-chat label { display: block; margin: 1rem 0 .4rem; }
#hkc-chat #availability { border-left: .3rem solid #ffd700; background: #f4f4f4; padding: .8rem 1rem; }
#hkc-chat #history { max-height: 24rem; overflow: auto; border: 1px solid #777; border-radius: .3rem; padding: 1rem; margin: 1rem 0; overflow-wrap: anywhere; background: #fff; }
#hkc-chat #messages { list-style: none; padding: 0; margin: 0; }
#hkc-chat #messages li { border-bottom: 1px solid #ccc; padding: .8rem 0; }
#hkc-chat #messages li:last-child { border-bottom: 0; }
#hkc-chat #messages li p { margin: .3rem 0; white-space: pre-wrap; }
#hkc-chat time { display: block; font-size: .9rem; color: #555; }
#hkc-chat #hint { font-size: .9rem; color: #555; }
#hkc-chat input[type="checkbox"] { width: 1.2rem; height: 1.2rem; vertical-align: middle; accent-color: #333; }
#hkc-chat :focus-visible { outline: 3px solid #584d8b; outline-offset: 4px; }
#hkc-chat .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { #hkc-chat * { scroll-behavior: auto; } }
@media (max-width: 32rem) { #hkc-chat-page h1 { font-size: 1.7rem; } }

#hkc-chat #listener-profile{margin:1rem 0;max-width:42rem;overflow-wrap:anywhere}
#hkc-chat #listener-profile summary{cursor:pointer;padding:.35rem .25rem;width:fit-content;text-decoration:underline;text-underline-offset:.2em;font-weight:600}
#hkc-chat #listener-profile-form{border-left:2px solid #ccc;margin:.4rem 0;padding:.25rem .85rem}
#hkc-chat #listener-display-name{font:inherit;box-sizing:border-box;width:100%;max-width:25rem;padding:.5rem;border:1px solid #666;border-radius:.2rem}
#hkc-chat #listener-name-hint{margin:.4rem 0}#hkc-chat #listener-name-status:empty{margin:0}
