/* Theme-aware, mobile-first conversation canvas. */
.sj-irc-shell,.sj-irc-main,.sj-irc-header,.sj-irc-header-actions,.sj-irc-compose{min-width:0;max-width:100%}.sj-irc-header-actions{flex-shrink:0}.sj-irc-shell .sj-irc-main{width:100%}.sj-irc-shell .sj-irc-compose{width:auto}.sj-irc-shell .sj-irc-room-heading{flex:1;min-width:0}.sj-irc-shell .sj-irc-header p{max-width:100%}.sj-irc-shell .sj-irc-icon-button{flex-shrink:0}
.sj-irc-shell{--sj-chat-bg:#f5f6fa;--sj-chat-panel:#fff;--sj-chat-panel-2:#eef0f6;--sj-chat-line:#dfe3ec;--sj-chat-text:#272d3c;--sj-chat-muted:#626c80;--sj-chat-accent:#087e69;--sj-chat-accent-2:#116653;--sj-chat-danger:#bb304c;border-radius:24px;box-shadow:0 16px 50px #29334a12;grid-template-columns:210px minmax(0,1fr) 210px;font-family:ui-sans-serif,system-ui,sans-serif}
html[data-sj-theme=dark] .sj-irc-shell{--sj-chat-bg:#20232d;--sj-chat-panel:#272b36;--sj-chat-panel-2:#303643;--sj-chat-line:#3c4352;--sj-chat-text:#edf0f7;--sj-chat-muted:#b0bbce;--sj-chat-accent:#71ddbf;--sj-chat-accent-2:#a7e8d4;--sj-chat-danger:#ff93a5}
.sj-irc-shell .sj-irc-main{position:relative;background:var(--sj-chat-bg)}
.sj-irc-shell .sj-irc-header,.sj-irc-shell .sj-irc-brand,.sj-irc-shell .sj-irc-presence-head{background:var(--sj-chat-panel);min-height:84px}
.sj-irc-shell .sj-irc-header h1{color:var(--sj-chat-text)!important;font-size:21px;letter-spacing:-.035em}
.sj-irc-shell .sj-irc-header p{color:var(--sj-chat-muted)!important}
.sj-irc-shell .sj-irc-channel{color:var(--sj-chat-muted);border-radius:14px;min-height:48px;margin:4px 12px}
.sj-irc-shell .sj-irc-channel:hover,.sj-irc-shell .sj-irc-channel.is-active{background:var(--sj-chat-panel-2);color:var(--sj-chat-text);border-color:var(--sj-chat-line)}
.sj-irc-shell .sj-irc-channel em{background:var(--sj-chat-panel-2);color:var(--sj-chat-accent)}
.sj-irc-shell .sj-irc-live{color:var(--sj-chat-muted)}
.sj-irc-shell .sj-irc-log{padding:22px 22px 30px;scrollbar-color:var(--sj-chat-line) transparent}
.sj-irc-shell .sj-irc-message{gap:12px;padding:10px 0;max-width:none}
.sj-irc-shell .sj-irc-message-content{background:var(--sj-chat-panel);padding:12px 15px;border-radius:4px 18px 18px 18px;border:1px solid var(--sj-chat-line)}
.sj-irc-shell .sj-irc-message-content header strong,.sj-irc-shell .sj-irc-person strong{color:var(--sj-chat-text)}
.sj-irc-shell .sj-irc-message p{color:var(--sj-chat-text);font-size:14px;line-height:1.6}
.sj-irc-shell .sj-irc-message time,.sj-irc-shell .sj-irc-message button,.sj-irc-shell .sj-irc-person small{color:var(--sj-chat-muted)}
.sj-irc-shell .sj-irc-message-content>p a{color:var(--sj-chat-accent)}
.sj-irc-shell .sj-irc-message img{border-radius:50%;object-fit:cover}
.sj-irc-shell .sj-irc-type-system{background:var(--sj-chat-panel-2)}
.sj-irc-shell .sj-irc-avatar,.sj-irc-shell .sj-irc-system-avatar,.sj-irc-shell .sj-irc-person-avatar{background:var(--sj-chat-panel-2);border-color:var(--sj-chat-line);color:var(--sj-chat-accent)}
.sj-irc-shell .sj-irc-compose{margin:0 18px 14px;background:var(--sj-chat-panel);border-color:var(--sj-chat-line);border-radius:22px;padding:6px 8px 6px 12px;box-shadow:0 5px 20px #00000006}
.sj-irc-shell .sj-irc-compose textarea{background:transparent!important;color:var(--sj-chat-text)!important;border:0!important;border-radius:0;box-shadow:none!important;font-size:15px}
.sj-irc-shell .sj-irc-compose textarea::placeholder{color:var(--sj-chat-muted)}
.sj-irc-shell .sj-irc-compose button{width:44px;padding:0;border-radius:50%;background:var(--sj-chat-accent);color:var(--sj-chat-panel);font-size:24px}
.sj-irc-shell .sj-irc-compose button::before{content:none}
.sj-irc-shell .sj-irc-ops,.sj-irc-shell .sj-irc-readonly{background:var(--sj-chat-panel);color:var(--sj-chat-muted);border-color:var(--sj-chat-line);border-radius:14px}
.sj-irc-shell .sj-irc-ops summary{color:var(--sj-chat-muted)}
.sj-irc-shell .sj-irc-ops input,.sj-irc-shell .sj-irc-ops button{background:var(--sj-chat-panel-2);color:var(--sj-chat-text);border-color:var(--sj-chat-line)}
.sj-irc-shell .sj-irc-person:hover{background:var(--sj-chat-panel-2)}
.sj-irc-shell .sj-irc-presence-head span{background:var(--sj-chat-panel-2);color:var(--sj-chat-accent)}
.sj-irc-shell .sj-irc-icon-button,.sj-irc-shell .sj-irc-panel-close{background:var(--sj-chat-panel-2);color:var(--sj-chat-text);border-color:var(--sj-chat-line);border-radius:12px;min-width:44px;min-height:44px}
.sj-irc-shell .sj-irc-link-preview{background:var(--sj-chat-panel);border-color:var(--sj-chat-line);border-radius:16px}
.sj-irc-shell .sj-irc-link-preview-copy strong{color:var(--sj-chat-text)}
.sj-irc-shell .sj-irc-link-preview:hover{background:var(--sj-chat-panel-2)}
.sj-irc-shell .sj-irc-empty strong{color:var(--sj-chat-text)}
.sj-irc-shell :is(button,a,summary):focus-visible{outline:3px solid var(--sj-chat-accent);outline-offset:2px}
.sj-irc-jump{position:absolute;bottom:155px;left:50%;transform:translateX(-50%);z-index:5;padding:9px 16px;border:1px solid var(--sj-chat-line);border-radius:30px;background:var(--sj-chat-panel);color:var(--sj-chat-text);box-shadow:0 5px 20px #0002;cursor:pointer;font-size:12px}.sj-irc-jump[hidden]{display:none}
@media(max-width:980px){.sj-irc-shell{grid-template-columns:180px minmax(0,1fr)}.sj-irc-presence{overflow:auto}}
@media(max-width:680px){body.sj-irc-page-active .sj-page-wrap{padding:0 8px}.sj-irc-shell{display:block;border-radius:20px;border:1px solid var(--sj-chat-line);min-height:240px}.sj-irc-shell .sj-irc-header{padding:10px;gap:9px;min-height:76px}.sj-irc-shell .sj-irc-header h1{font-size:18px}.sj-irc-shell .sj-irc-log{padding:12px}.sj-irc-shell .sj-irc-message{grid-template-columns:28px minmax(0,1fr);gap:7px}.sj-irc-shell .sj-irc-message-content{padding:10px 12px}.sj-irc-shell .sj-irc-message time{font-size:9px}.sj-irc-shell .sj-irc-message p{font-size:14px}.sj-irc-shell .sj-irc-compose{margin:0 10px 10px}.sj-irc-shell .sj-irc-live{display:none}.sj-irc-shell .sj-irc-sidebar,.sj-irc-shell .sj-irc-presence{overflow:auto}.sj-irc-shell .sj-irc-ops{margin-bottom:8px}.sj-irc-ops[open]{max-height:40vh;overflow:auto}}
