:root{color-scheme:dark;font:13px/1.5 system-ui,-apple-system,sans-serif;color:#e5e9ed;background:#101418}*{box-sizing:border-box}html,body{height:100%;margin:0}body{display:flex;flex-direction:column;overflow:hidden}header{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#20262d;border-bottom:1px solid #313b44;padding:9px 10px;min-height:44px}header div{min-width:0}header strong{display:block;color:#ffb45e;overflow-wrap:anywhere}#status{font-size:10px;color:#9ba9b5}header a{font-size:11px;color:#aebdca;text-decoration:none;white-space:nowrap}#messages{flex:1;min-height:0;overflow:auto;padding:9px 10px;overflow-wrap:anywhere}.line{margin:2px 0;white-space:pre-wrap}.nick{font-weight:700;color:#8ec4e9}.system{color:#9da9b3;font-size:12px}.action{font-style:italic}.time{font-size:10px;color:#8996a2;margin-right:5px}form{display:flex;gap:6px;padding:8px;background:#20262d;border-top:1px solid #313b44}input,button{font:inherit;border:1px solid #414d58;border-radius:4px;padding:8px;background:#101418;color:#e5e9ed}input{flex:1;min-width:0}button{cursor:pointer;background:#303b45}button:disabled{opacity:.5;cursor:default}#connection{padding:8px;color:#e5b482;background:#25221d}#connection:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:6px}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid #ffb45e}


/* v0.1.11: compact rounded channel-role badges, before names. */
.role-badge { display: inline-block; flex: none; align-self: center; box-sizing: border-box; height: 15px; vertical-align: middle; margin-right: 4px; padding: 0; border-radius: 4px; color: #fff; white-space: nowrap; }
.role-badge svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.role-staff { background: #2458bd; }
.role-admin { background: #c62828; }
.role-mod { background: #297037; }
.role-pro { background: #e67e22; }
.role-bot { background: #8039b0; }


.time{display:inline-block;min-width:46px;font-variant-numeric:tabular-nums}
/* Same trivia-only rule, lighter green for the dark embed background. */
.trivia-question { color: #80c98c; }

/* v0.1.3: timestamps, role badges and sender stay together in narrow embeds. */
.message-identity { display:inline-flex; align-items:baseline; vertical-align:baseline; max-width:100%; white-space:nowrap; overflow-wrap:normal; }
.message-identity .time, .message-identity .role-badge { flex:none; }
.message-identity .nick { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
