.ofc{--ofc-inset:0px;--ofc-lift:0px;--ofc-available:calc(100dvh - 32px);position:relative;z-index:1100;font:14px/1.4 system-ui,-apple-system,Segoe UI,sans-serif;color:#183f66}
.ofc [hidden]{display:none!important}.ofc button{font:inherit;cursor:pointer}.ofc button:focus-visible,.ofc a:focus-visible{outline:3px solid #f6ba40;outline-offset:3px}
.ofc-launcher{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(var(--ofc-inset) + var(--ofc-lift) + max(16px,env(safe-area-inset-bottom)));display:flex;align-items:center;gap:9px;min-height:48px;padding:10px 18px;border:1px solid #b8d4f5;border-radius:24px;background:#fff;color:#176bd3;font-weight:800!important;box-shadow:0 8px 28px #143a6326;z-index:1101}
.ofc-badge{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 3px;box-sizing:border-box;border-radius:16px;background:#176bd3;color:#fff;font-size:12px}
.ofc-panel{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(var(--ofc-inset) + max(16px,env(safe-area-inset-bottom)));width:min(520px,calc(100vw - 32px));height:min(680px,var(--ofc-available));max-height:var(--ofc-available);display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #b8d4f5;border-radius:18px;box-shadow:0 16px 60px #07234240;box-sizing:border-box;isolation:isolate}
.ofc-header{display:flex;align-items:center;gap:7px;flex:0 0 auto;padding:9px 10px;background:#f5f9ff;border-bottom:1px solid #dce8f3;min-height:56px;box-sizing:border-box}.ofc-header>div{flex:1;min-width:0}.ofc-header strong{display:block;letter-spacing:.05em;color:#176bd3}.ofc-channel{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#52718f;font-size:12px}.ofc-header button{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;padding:0;border:1px solid #d5e3f3;border-radius:10px;background:#fff;color:#176bd3;font-size:23px}
.ofc-status{flex:0 0 auto;margin:0;padding:7px 12px;font-size:12px;background:#edf5ff}.ofc-status:empty{display:none}.ofc-body{flex:1;min-height:0;overflow:hidden;position:relative}.ofc-frame{display:block;width:100%;height:100%;border:0;background:#1b1c20}.ofc-signin{padding:24px;line-height:1.6}.ofc-signin a{display:inline-flex;padding:10px 18px;border-radius:9px;background:#176bd3;color:#fff;text-decoration:none}
.ofc[data-mode=expanded] .ofc-panel{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));top:calc(var(--ofc-top,0px) + 8px);bottom:auto;width:auto;height:var(--ofc-available);max-height:var(--ofc-available);border-radius:12px}
.ofc .ofc-native-surface{display:flex!important;flex-direction:column;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important}.ofc .ofc-native-surface .da-discord-window{flex:1;min-height:0;height:100%!important}.ofc .ofc-native-surface .da-chat{min-height:0!important;max-height:100%;height:auto!important;flex:1}.ofc .ofc-native-surface .da-messages{min-height:0;overflow:auto}
.ofc .ofc-native-surface .da-discord-window{display:flex;flex-direction:column}.ofc .ofc-native-surface .da-edit-profile{background:#f5f9ff!important;color:#183f66!important;border-color:#b8d4f5!important}
.ofc .ofc-native-surface .da-chat{display:flex!important;flex-direction:column!important}.ofc .ofc-native-surface .da-conversation{flex:1;min-height:0;overflow:hidden}.ofc .ofc-native-surface .da-messages{height:auto!important;flex:1}.ofc .ofc-native-surface .da-conversation-title,.ofc .ofc-native-surface .da-connection,.ofc .ofc-native-surface form[data-da-send]{flex:0 0 auto}.ofc .ofc-native-surface .os-social-chat-members{flex:0 0 auto;max-height:150px;overflow:auto}.ofc .ofc-native-surface .da-channel-members{position:static!important;width:100%!important;height:auto!important;max-height:110px!important;overflow:auto}.ofc .ofc-native-surface .os-social-chat-tools>div,.ofc .ofc-native-surface .os-social-chat-music>div{max-height:180px;overflow:auto}.ofc .ofc-native-surface .da-private-dialog.da-private-inline{min-height:0;max-height:100%;overflow:auto;flex:1}
@media(max-width:600px){.ofc-panel{left:8px;right:8px;bottom:calc(var(--ofc-inset) + max(8px,env(safe-area-inset-bottom)));width:auto;height:var(--ofc-available);max-height:var(--ofc-available);border-radius:14px}.ofc-launcher{padding:10px 15px}.ofc-header{padding:6px 8px;min-height:54px}}
@media(prefers-reduced-motion:no-preference){.ofc-panel{animation:ofc-reveal .16s ease-out}@keyframes ofc-reveal{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}}

.ofc-panel{background:#101722;border-color:#30435d;box-shadow:0 18px 70px #0009}
.ofc-header{background:#142033;border-color:#2d405b;padding:10px 14px;min-height:60px}
.ofc-header strong{color:#9dccff;font-size:14px;letter-spacing:.04em}
.ofc-header button{background:#1b2c44;border-color:#355171;color:#a4d1ff;width:36px;height:36px;flex-basis:36px;border-radius:9px}
.ofc-header button:hover{background:#28476a}
.ofc-channel{display:none!important}
.ofc-body{background:#101722}
/* Unified, compact conversation layout. */
#community-discord-room,#community-discord-room .da-discord-window,#community-discord-room .da-conversation{}
#community-discord-room .da-widget-header{justify-content:flex-end;padding:9px 14px!important;min-height:54px}
#community-discord-room .da-widget-header>strong{margin-right:auto;}
#community-discord-room .da-widget-header a,#community-discord-room .da-widget-header button{border-radius:9px;min-height:34px;padding:7px 12px}
#community-discord-room .da-conversation-title,#community-discord-room .da-channel-switcher,#community-discord-room .fi-room,#community-discord-room .os-social-chat-music{display:none!important}
#community-discord-room .da-messages{padding:14px 18px!important;}
#community-discord-room .da-message{margin:0!important;padding:10px 8px!important;border-radius:10px;line-height:1.55}
#community-discord-room .da-message:hover{}
#community-discord-room .da-message p{margin:4px 0!important;}
#community-discord-room .da-message strong{}
#community-discord-room .da-message time{font-size:11px}
#community-discord-room .os-social-chat-members,#community-discord-room .da-channel-members{}
#community-discord-room .da-channel-members{padding:14px!important}
#community-discord-room .da-channel-members h3{font-size:13px;margin-bottom:16px}
#community-discord-room .da-channel-member{padding:6px 4px;margin:3px 0;border-radius:8px;}
#community-discord-room .da-member-details{min-width:0;overflow-wrap:anywhere}
#community-discord-room .da-member-status{}
#community-discord-room form[data-da-send]{padding:12px 16px!important;border-top:1px solid #29384e;gap:10px;flex-wrap:nowrap}
#community-discord-room textarea{border:1px solid #3b526f!important;border-radius:12px!important;min-height:48px!important;height:48px;max-height:100px;padding:12px!important;box-sizing:border-box}
#community-discord-room textarea::placeholder{}
#community-discord-room .os-social-chat-send{min-height:48px;border-radius:11px;padding:10px 20px}
#community-discord-room .os-social-chat-tools{}
#community-discord-room .os-social-chat-tools>summary{padding:9px 16px;font-size:12px;min-height:34px}
#community-discord-room .da-locked-compose{padding:14px;}
@media(min-width:701px){#community-discord-room .da-chat.da-has-members{grid-template-columns:minmax(0,1fr) 235px!important}}
@media(max-width:700px){#community-discord-room .da-messages{padding:10px!important}#community-discord-room form[data-da-send]{padding:10px!important}#community-discord-room .os-social-chat-send{padding:10px 14px}}

.ofc-panel{background:#fff;border-color:#b8d4f5;box-shadow:0 16px 60px #07234240}
.ofc-header{background:#f5f9ff;border-color:#dce8f3}
.ofc-header strong{color:#176bd3}
.ofc-header button{background:#fff;border-color:#d5e3f3;color:#176bd3}
.ofc-header button:hover{background:#edf5ff}
.ofc-body{background:#fff}

#community-discord-room .da-widget-header{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;padding:10px 14px!important;flex-wrap:wrap!important}
#community-discord-room .da-widget-header>a,#community-discord-room .da-widget-header>button,#community-discord-room .da-widget-header>form{margin:0!important;flex:0 0 auto}
#community-discord-room .da-widget-header>a,#community-discord-room .da-widget-header>button,#community-discord-room .da-widget-header>form button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:36px!important;min-height:36px!important;padding:7px 14px!important;border-radius:9px!important;font:600 13px/1.2 system-ui!important;text-decoration:none;white-space:nowrap}
#community-discord-room .da-widget-header .da-premium-link{order:1}
#community-discord-room .da-widget-header .da-edit-profile{order:2}
#community-discord-room .da-widget-header .da-inline-enter{order:2}
#community-discord-room .da-widget-header .da-private-inbox{order:3;background:#176bd1;color:#fff;border:1px solid #176bd1}
#community-discord-room .da-widget-header>strong{display:none!important}
#community-discord-room .da-widget-header [data-da-online]{order:4;margin-left:auto!important;white-space:nowrap;font-size:12px}
@media(max-width:520px){#community-discord-room .da-widget-header{gap:6px!important;padding:8px!important}#community-discord-room .da-widget-header>a,#community-discord-room .da-widget-header>button,#community-discord-room .da-widget-header>form button{padding:7px 10px!important}#community-discord-room .da-widget-header [data-da-online]{flex-basis:100%;margin:2px 0 0!important}}

/* Reserve the avatar column and prevent hover backgrounds. */
#community-discord-room .da-messages .da-message{position:relative!important;padding:10px 32px 10px 62px!important;min-height:64px!important;margin:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;transition:none!important}
#community-discord-room .da-messages .da-message:hover{background:transparent!important;box-shadow:none!important;transform:none!important}
#community-discord-room .da-messages .da-message .da-avatar{left:8px!important;top:12px!important;width:38px!important;height:38px!important}
#community-discord-room .da-messages{padding:12px 14px!important;scroll-padding-top:12px}
#community-discord-room .da-message p{margin:5px 0 0!important;line-height:1.55!important}
#community-discord-room .da-message time{display:inline-block;margin-left:8px;vertical-align:baseline}
#community-discord-room .da-widget-header{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:8px!important;padding:10px 14px!important;min-height:56px!important}
#community-discord-room .da-widget-header .da-premium-link,#community-discord-room .da-widget-header .da-edit-profile,#community-discord-room .da-widget-header .da-private-inbox{flex:0 0 auto!important;position:static!important;margin:0!important;min-width:0!important;width:auto!important;height:36px!important;min-height:36px!important;padding:7px 14px!important;line-height:20px!important;align-self:center!important}
#community-discord-room .da-widget-header .da-premium-link{order:1!important}
#community-discord-room .da-widget-header .da-edit-profile{order:2!important}
#community-discord-room .da-widget-header .da-private-inbox{order:3!important}
#community-discord-room .da-widget-header [data-da-online]{order:4!important;margin-left:auto!important}
@media(max-width:520px){#community-discord-room .da-messages .da-message{padding-left:52px!important;padding-right:24px!important}#community-discord-room .da-messages .da-message .da-avatar{left:4px!important;width:34px!important;height:34px!important}#community-discord-room .da-widget-header [data-da-online]{flex-basis:100%;margin-left:0!important}}

.ofc-top-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.ofc-header .ofc-top-action{width:auto!important;flex:0 0 auto!important;min-width:0;padding:7px 12px!important;height:36px!important;font-size:12px!important;font-weight:650;white-space:nowrap}
.ofc-header .ofc-top-action[hidden]{display:none!important}
#community-discord-room.ofc-actions-in-header .da-widget-header :is(.da-premium-link,.da-edit-profile,.da-private-inbox){display:none!important}
@media(max-width:600px){.ofc-header{flex-wrap:wrap}.ofc-header>div{flex:1 1 calc(100% - 150px)}.ofc-top-actions{order:5;width:100%;justify-content:flex-end}}

#community-discord-room .da-widget-header [data-da-online]{display:none!important}

/* Remove the empty original toolbar after its actions move to the top. */
#community-discord-room.ofc-actions-in-header .da-widget-header{display:none!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important}
#community-discord-room .da-messages .da-message{padding:8px 30px 8px 58px!important;min-height:54px!important;margin:0!important}
#community-discord-room .da-messages .da-message .da-avatar{left:7px!important;top:9px!important;width:36px!important;height:36px!important}
#community-discord-room .da-message p{margin:3px 0 0!important;line-height:1.45!important}
#community-discord-room .da-messages{padding:8px 12px!important;display:block!important}
#community-discord-room .da-channel-member{margin:2px 0!important;padding:5px 3px!important}
#community-discord-room .da-member-role h4{margin:12px 0 8px!important}
@media(max-width:520px){#community-discord-room .da-messages .da-message{padding-left:50px!important}.ofc-header{gap:5px;padding:8px 10px}}
