.custom-chat { --cc-muted: #777982; --cc-accent: #bda7ec; position: absolute; inset: 0; display: flex; flex-direction: column; background: #000000; color: #d9dadd; font-size: 13px; }
.custom-chat button { font: inherit; }
.cc-top { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-bottom: 1px solid #ffffff09; flex-shrink: 0; }
.cc-title { display: flex; align-items: center; gap: 7px; letter-spacing: .13em; font-size: 10px; font-weight: 600; color: #b9bbc1; }
.cc-title i { width: 5px; height: 5px; border-radius: 100%; background: #bda7ec; }
.cc-preview-label { margin-left: auto; color: var(--cc-muted); font-size: 8px; letter-spacing: .08em; }
.cc-icon { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 0; background: transparent; color: #999ca6; font-size: 20px !important; border-radius: 5px; cursor: pointer; }
.cc-icon:hover { background: #ffffff0a; color: #fff; }
.cc-feed { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #25262c transparent; padding: 8px 15px 16px; overflow-wrap: anywhere; }
.cc-intro { padding: 28px 0 25px; display: flex; flex-direction: column; gap: 8px; }
.cc-intro strong { color: #dddce3; font-weight: 500; font-size: 17px; letter-spacing: -.025em; }
.cc-intro span { color: var(--cc-muted); font-size: 11px; }
.cc-message { padding: 7px 0; line-height: 1.8; }
.cc-message strong { font-weight: 600; font-size: 12px; margin-right: 4px; }
.cc-message:hover { background: #ffffff03; }
.cc-emote { display: inline-block; height: 29px; max-width: 100px; object-fit: contain; vertical-align: middle; margin: 0 1px; }
.cc-badge { color: #89c4ac; background: #89c4ac14; border-radius: 3px; padding: 0 3px; margin-right: 5px; font-size: 11px; }
.cc-time { display: none; color: #5d606b; font-size: 9px; margin-right: 7px; font-variant-numeric: tabular-nums; }
.cc-show-times .cc-time { display: inline; }
.cc-compact .cc-message { padding: 3px 0; }
.cc-reply { color: #70737d; font-size: 10px; border-left: 1px solid #39343f; padding-left: 8px; margin: 0 0 3px 2px; }
.cc-bottom { position: relative; flex-shrink: 0; padding: 12px; border-top: 1px solid #ffffff08; background: #000000; }
.cc-compose { padding: 9px 10px 6px; border: 1px solid #2d2a34; border-radius: 9px; background: #111115; }
.cc-compose:focus-within { border-color: #77638e; }
.cc-compose textarea { box-sizing: border-box; display: block; width: 100%; min-height: 30px; max-height: 100px; resize: vertical; padding: 2px 0; border: 0; background: transparent; outline: none; color: #e4e2e9; font: inherit; line-height: 1.5; }
.cc-compose textarea::placeholder { color: #6e6c77; }
.cc-compose-actions { display: flex; align-items: center; gap: 6px; }
.cc-local-hint { font-size: 8px; letter-spacing: .11em; color: #686371; }
.cc-send { margin-left: auto; width: 27px; height: 26px; border: 0; border-radius: 6px; background: #bda7ec; color: #211b2c; cursor: pointer; font-size: 19px !important; }
.cc-account { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 13px; font-size: 9px; color: #8b8894; flex-wrap: wrap; }
.cc-account > span { display: flex; align-items: center; gap: 5px; }
.cc-avatar { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #39333e; border-radius: 50%; color: #c4b3d5; }
.cc-login { color: #bda7ec; font-size: 10px !important; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.cc-note { color: #65636c; font-size: 9px; margin: 11px 0 0; line-height: 1.5; }
.cc-settings { padding: 12px 16px; border-bottom: 1px solid #27242c; background: #101014; font-size: 12px; }
.cc-settings label { display: block; margin-bottom: 10px; }
.cc-settings input { accent-color: #bda7ec; margin-right: 7px; }
.cc-back { color: #bda7ec; border: 0; background: none; padding: 3px 0; cursor: pointer; }
.cc-emote-panel { position: absolute; left: 12px; right: 12px; bottom: calc(100% - 4px); padding: 12px; background: #151419; border: 1px solid #322d3a; border-radius: 10px; box-shadow: 0 -12px 35px #0005; z-index: 8; }
.cc-emote-heading { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-bottom: 8px; }
.cc-search { width: 100%; box-sizing: border-box; background: #0b0b0e; border: 1px solid #302b36; padding: 8px; border-radius: 5px; color: #ddd; font: inherit; }
.cc-emote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 3px; max-height: 200px; min-height: 45px; overflow: auto; padding: 10px 0; }
.cc-emote-grid button { display: grid; place-items: center; border: 0; padding: 4px 0; background: transparent; border-radius: 5px; cursor: pointer; }
.cc-emote-grid button:hover { background: #bda7ec22; }
.cc-emote-grid .cc-emote { height: 29px; max-width: 38px; }
.cc-emote-credit { color: #807989; font-size: 9px; margin: 0; }
.cc-jump { position: absolute; bottom: 175px; align-self: center; border: 1px solid #dedee2; color: #242428; padding: 6px 12px; border-radius: 20px; background: #d2d2d7; z-index: 2; cursor: pointer; }
.cc-login-info { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; background: #000000; z-index: 10; }
.cc-login-mark { color: #c2a5ee; font-size: 28px; }
.cc-login-info h3 { font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.cc-login-info p { color: #93909c; line-height: 1.7; font-size: 12px; }
.cc-login-info .btn { margin-top: 12px; }
.custom-chat [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cc-channel { display: flex; gap: 6px; padding: 10px 15px; border-bottom: 1px solid #ffffff0a; }
.cc-channel input { flex: 1; min-width: 0; background: transparent; color: #bbb; font: inherit; border: 0; outline: none; }
.cc-channel button { color: #bda7ec; border: 0; background: transparent; cursor: pointer; }
.cc-emote-stack { display: inline-grid; vertical-align: middle; }
.cc-emote-stack img { grid-area: 1 / 1; align-self: center; justify-self: center; }
.cc-twitch-badge { width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; }
.cc-compose textarea:disabled { opacity: .5; }
.cc-send:disabled { opacity: .35; cursor: default; }
/* Twitch-style composer with a charcoal send button. */
.cc-compose { padding: 0; border: 0; border-radius: 0; background: transparent; }
.cc-compose textarea { min-height: 44px; padding: 11px 12px; border: 1px solid #8b8b91; border-radius: 5px; background: #18181b; font-size: 14px; resize: none; }
.cc-compose textarea::placeholder { color: #b0afb4; }
.cc-compose textarea:focus { border-color: #d6d6dc; box-shadow: 0 0 0 1px #d6d6dc; }
.cc-compose-actions { margin-top: 8px; gap: 8px; }
.cc-compose-settings { margin-left: auto; font-size: 23px !important; color: #d0d0d5; width: 29px; height: 30px; }
.cc-send { margin-left: 0; width: auto; min-width: 64px; height: 33px; padding: 0 15px; border-radius: 18px; background: #29292f; border: 1px solid #414148; color: #f1f1f3; font-size: 14px !important; font-weight: 600 !important; }
.cc-send:hover:not(:disabled) { background: #393940; }
/* Familiar Twitch message rhythm on a truly black canvas. */
.custom-chat { font-size: 14px; }
.cc-feed { padding: 8px 12px 14px; }
.cc-message { padding: 4px 0; line-height: 1.6; }
.cc-message strong { font-size: 14px; font-weight: 700; margin-right: 1px; }
.cc-message:hover { background: transparent; }
.cc-emote { height: 32px; }
.cc-reply { font-size: 12px; line-height: 1.5; color: #999; border: 0; padding-left: 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.cc-intro { padding: 9px 0 16px; }
.cc-intro strong { font-size: 13px; }
.cc-intro span { font-size: 10px; }
.cc-compact .cc-message { padding: 1px 0; }
.cc-emote-hover { position: fixed; z-index: 10000; pointer-events: none; box-sizing: border-box; width: 180px; height: 168px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 10px; background: #131315; border: 1px solid #454149; border-radius: 7px; box-shadow: 0 6px 24px #0009; }
.cc-emote-hover[hidden] { display: none; }
.cc-emote-hover img { max-height: 120px; max-width: 152px; object-fit: contain; }
.cc-emote-hover span { font: 11px/1.4 sans-serif; color: #dedce2; text-align: center; overflow-wrap: anywhere; }
.custom-chat > .cc-account { margin: 0; padding: 5px 15px 4px; }
.custom-chat > .cc-note { margin: 0; padding: 3px 15px 9px; border-bottom: 1px solid #ffffff08; }
.cc-bottom { padding-bottom: 10px; }
.cc-jump { bottom: 115px; }
.cc-history-note { padding: 0 15px 7px; color: #777; font-size: 9px; text-decoration: none; }
.cc-history-note:empty { display: none; }
.cc-autocomplete { position: absolute; bottom: calc(100% - 4px); left: 12px; right: 12px; z-index: 9; padding: 5px; background: #151517; border: 1px solid #444449; border-radius: 7px; box-shadow: 0 -8px 24px #0008; }
.cc-autocomplete [role=listbox] { max-height: min(290px, 40dvh); overflow-y: auto; scrollbar-width: thin; }
.cc-autocomplete-option { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 4px; min-height: 34px; cursor: pointer; }
.cc-autocomplete-option:hover, .cc-autocomplete-option[aria-selected=true] { background: #363639; }
.cc-autocomplete-option .cc-emote { height: 28px; width: 34px; object-fit: contain; flex-shrink: 0; }
.cc-autocomplete-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.cc-autocomplete-option small { margin-left: auto; color: #98989f; font-size: 9px; }
.cc-autocomplete-hint { border-top: 1px solid #333338; margin-top: 4px; padding: 7px 8px 3px; color: #aaaab1; font-size: 10px; }

/* A single channel header; channel editing lives in settings. */
.cc-top .cc-account { margin: 0 0 0 auto; flex-wrap: nowrap; }
.cc-top .cc-account > span { display: none; }
.cc-top .cc-login { color: #b9bbc1; white-space: nowrap; }
.cc-title { letter-spacing: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-settings .cc-channel { padding: 0 0 12px; margin-bottom: 12px; }
.cc-note:empty { display: none; }

.cc-link { color: #b8cfff; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.cc-link:hover, .cc-link:focus-visible { color: #fff; }
