:root{--emberfall-chat-height:219px;--emberfall-chat-min-height:39px}
body.emberfallBottomChatReady{padding-bottom:calc(var(--emberfall-chat-height) + 14px)!important}
body.emberfallBottomChatReady.emberfallChatMinimized{padding-bottom:calc(var(--emberfall-chat-min-height) + 10px)!important}
.feedTabs,#statisticsPanel,.sidekickChatDock{display:none!important}
#chatPanel:not(.emberfallChatDock){display:none!important;visibility:hidden!important}
#chatPanel.emberfallChatDock{position:fixed!important;z-index:5000!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:var(--emberfall-chat-height)!important;margin:0!important;padding:0!important;display:grid!important;visibility:visible!important;grid-template-columns:180px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto!important;overflow:visible!important;border:1px solid #303949!important;border-width:1px 0 0!important;border-radius:0!important;background:#090d13!important;box-shadow:0 -12px 36px #000b!important}
#chatPanel.emberfallChatDock .chatTileTitle{display:none!important}
.emberfallChatLabel{display:none}
.emberfallChatMinimize{position:absolute;right:13px;top:-28px;width:38px;height:28px;border:1px solid #3a4555;border-bottom:0;border-radius:7px 7px 0 0;background:#121923;color:#aab5c4;font-size:20px;line-height:20px;cursor:pointer;box-shadow:0 -5px 14px #0007}
.emberfallChatMinimize:hover{color:#fff;background:#1a2431}
#chatPanel.emberfallChatDock #marketChatSettingsButton{position:absolute!important;z-index:2;right:56px!important;top:-28px!important;width:auto!important;height:28px!important;min-width:112px;padding:4px 10px!important;border:1px solid #3a5362!important;border-bottom:0!important;border-radius:7px 7px 0 0!important;background:#12242c!important;color:#9fdad5!important;font-size:10px!important;font-weight:850!important;line-height:20px!important;cursor:pointer;box-shadow:0 -5px 14px #0007}
#chatPanel.emberfallChatDock #marketChatSettingsButton:before{content:'Equipment filter';margin-right:6px}
#chatPanel.emberfallChatDock #marketChatSettingsButton:hover{border-color:#56a99f!important;background:#17343b!important;color:#e5fffb!important}
#chatPanel.emberfallChatDock #marketChatSettingsButton:not(.visible){display:none!important}
#chatPanel.emberfallChatDock #channelTabs{grid-column:1;grid-row:1/3;display:flex!important;flex-direction:column!important;gap:0!important;min-width:0;padding:6px 0!important;overflow-x:hidden!important;overflow-y:auto!important;border-right:1px solid #27313f;background:#0d1219}
#chatPanel.emberfallChatDock .channelTab{flex:0 0 auto!important;width:100%;min-height:31px;padding:7px 12px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#8e9aaa!important;text-align:left;font-size:11px!important;font-weight:800!important;box-shadow:none!important}
#chatPanel.emberfallChatDock .channelTab:hover{background:#141c26!important;color:#dfe7f1!important}
#chatPanel.emberfallChatDock .channelTab.active{background:#202937!important;color:#f4bc55!important;box-shadow:inset 3px 0 #f4bc55!important}
#chatPanel.emberfallChatDock .channelTab.unread{color:#fff1b7!important;text-shadow:0 0 9px #f4bc5577}
#chatPanel.emberfallChatDock .channelClose{float:right;margin-left:5px}
#chatPanel.emberfallChatDock .chatMessages{grid-column:2;grid-row:1;height:auto!important;min-height:0!important;margin:0!important;padding:8px 16px 8px 20px!important;overflow-y:auto!important;overscroll-behavior:contain;background:#080c12!important;border:0!important;border-radius:0!important;color:#e2e7ee;font-size:12px!important;line-height:1.28;scrollbar-gutter:stable}
#chatPanel.emberfallChatDock .chatLine{min-height:18px;padding:1px 0!important;border:0!important;line-height:1.35!important}
#chatPanel.emberfallChatDock .chatComposer{grid-column:2;grid-row:2;display:grid!important;grid-template-columns:minmax(0,1fr) 72px!important;gap:7px!important;margin:0!important;padding:6px 12px;border-top:1px solid #252e3b;background:#0d1219}
#chatPanel.emberfallChatDock .chatComposer textarea,#chatPanel.emberfallChatDock .chatComposer input{width:100%;height:31px!important;min-height:31px!important;max-height:31px!important;resize:none!important;padding:6px 9px!important;border:1px solid #354153!important;border-radius:5px!important;background:#080c12!important;color:#f2f5f8!important}
#chatPanel.emberfallChatDock .chatComposer button{width:72px!important;height:31px!important;padding:5px 10px!important;border-radius:5px!important}
#chatPanel.emberfallChatDock #chatStatus{position:absolute;right:96px;bottom:42px;z-index:1;min-height:0;margin:0;padding:2px 6px;background:#090d13cc;font-size:9px;pointer-events:none}
/* Linked equipment previews must sit above the fixed chat dock. */
#chatDropTip,.chatDropTip{position:fixed!important;z-index:5100!important;pointer-events:none!important}
/* Full-screen game dialogs stay above the dock; the Sidekick view deliberately keeps chat visible. */
body>.modal.show:not(#sidekickModal),body>[id$="Modal"].show:not(#sidekickModal),body>[class*="Modal"].show:not(.sidekickOfflineModal):not(.epModal){z-index:6000!important}
body>#gameConfirmModal.gameConfirmModal,
body>#inventorySellModal.v5Modal,
body>#inventoryBuybackModal.v5Modal,
body>#leftMarketListingModal.leftMarketListingModal,
body>#inventoryMassSellModal,
body>#inventoryMassSellConfirmation,
body>#v51Autosell,
body>#inventoryMassDismantleModal{position:fixed!important;z-index:12000!important}
html body #leftInventoryModal.leftInventoryModal{z-index:6000!important}
html body #inventorySellModal.v5Modal.show,
html body #inventoryBuybackModal.v5Modal.show,
html body #inventoryMassSellModal.show,
html body #inventoryMassSellConfirmation.show,
html body #v51Autosell.show,
html body #inventoryMassDismantleModal.show,
html body #leftMarketListingModal.leftMarketListingModal.show,
html body #gameConfirmModal.gameConfirmModal{position:fixed!important;z-index:2147483647!important}
body:has(#sidekickModal.show) #chatPanel.emberfallChatDock{z-index:100001!important}
body:has(#sidekickModal.show) #chatDropTip,body:has(#sidekickModal.show) .chatDropTip{z-index:100002!important}
#sidekickModal.show .sidekickWorld{padding-bottom:calc(var(--emberfall-chat-height) + 24px)!important}
body.emberfallChatMinimized #sidekickModal.show .sidekickWorld{padding-bottom:calc(var(--emberfall-chat-min-height) + 24px)!important}
#chatPanel.emberfallChatDock.emberfallChatMinimized{height:var(--emberfall-chat-min-height)!important;display:flex!important;align-items:center!important;padding-left:58px!important;background:#0d1219!important}
#chatPanel.emberfallChatDock.emberfallChatMinimized .emberfallChatLabel{display:block;position:absolute;left:13px;color:#f4bc55;font:700 13px Georgia,serif}
#chatPanel.emberfallChatDock.emberfallChatMinimized #channelTabs{display:flex!important;position:static!important;flex-direction:row!important;width:auto!important;padding:0!important;overflow:hidden!important;border:0;background:transparent}
#chatPanel.emberfallChatDock.emberfallChatMinimized .channelTab{width:auto!important;min-height:28px;padding:5px 10px!important;border-radius:5px!important}
#chatPanel.emberfallChatDock.emberfallChatMinimized .channelTab.active{box-shadow:inset 0 -2px #f4bc55!important}
#chatPanel.emberfallChatDock.emberfallChatMinimized .chatMessages,#chatPanel.emberfallChatDock.emberfallChatMinimized .chatComposer,#chatPanel.emberfallChatDock.emberfallChatMinimized #chatStatus{display:none!important}
.emberfallActionTracker{margin:11px 0 5px;padding:10px;border:1px solid #303a49;border-radius:10px;background:linear-gradient(145deg,#101720,#0b1017);box-shadow:inset 0 1px #ffffff08}
.emberfallTrackerHeading{display:grid;grid-template-columns:1fr auto 1fr;gap:9px;align-items:center;margin-bottom:8px}
.emberfallTrackerHeading:before,.emberfallTrackerHeading:after{content:"";height:1px;background:#344052}
.emberfallTrackerHeading h3{margin:0;color:#cbd4df;font:700 11px Georgia,serif;letter-spacing:.7px;text-transform:uppercase;white-space:nowrap}
.emberfallTrackerReset{margin-left:5px;padding:0;border:0;background:transparent;color:#8491a3;font-size:9px;cursor:pointer}
.emberfallTrackerReset:hover{color:#fff}
.emberfallTrackerGrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.emberfallTrackerGrid>div{min-width:0;padding:8px 6px;border:1px solid #2c3746;border-radius:7px;background:#0d131c;text-align:center}
.emberfallTrackerGrid span,.emberfallTrackerGrid small{display:block;color:#8c98aa;font-size:8px;white-space:nowrap}
.emberfallTrackerGrid strong{display:block;margin:3px 0;color:#f4bc55;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.emberfallTrackerGrid em{color:#647084;font-style:normal}
.emberfallActionLogs{margin:7px 0 5px;padding:10px;border:1px solid #303a49;border-radius:10px;background:linear-gradient(145deg,#101720,#0b1017);box-shadow:inset 0 1px #ffffff08}
.emberfallLogsHeading{display:grid;grid-template-columns:1fr auto 1fr;gap:9px;align-items:center;margin-bottom:8px}
.emberfallLogsHeading>span{height:1px;background:#344052}
.emberfallLogsHeading h3{margin:0;color:#cbd4df;font:700 11px Georgia,serif;letter-spacing:.7px;text-transform:uppercase}
.emberfallActionLogs .logsPanelShell{display:block!important}
.emberfallActionLogs #log{height:150px!important;margin:0!important;padding:7px!important;overflow:auto!important;border:1px solid var(--line)!important;border-radius:8px!important;background:#0b0f16!important}
.emberfallActionLogs #log>div{box-sizing:border-box!important;min-height:22px!important;margin:0!important;padding:3px 2px!important;border-left:0!important;border-radius:0!important;background:transparent!important;line-height:16px!important;text-indent:0!important;text-shadow:none!important}
.emberfallActionLogs #log .statBattleLog{color:#d6b8ff!important;font-weight:800!important}
.emberfallActionLogs #log .itemBattleLog{color:#b9c1cc!important;font-weight:800!important}
.emberfallActionLogs #log .itemBattleLog.itemRarity-common{color:#b9c1cc!important}
.emberfallActionLogs #log .itemBattleLog.itemRarity-uncommon{color:#61d095!important}
.emberfallActionLogs #log .itemBattleLog.itemRarity-rare{color:#69a8ff!important}
.emberfallActionLogs #log .itemBattleLog.itemRarity-epic{color:#c58cff!important}
.emberfallActionLogs #log .itemBattleLog.itemRarity-legendary{color:#ffd15c!important}
.emberfallActionLogs .transferLogs{height:150px!important}
.emberfallActionLogs .logSubmenu{margin-bottom:7px}
.emberfallActionLogs .logSubmenu button{padding:7px 9px;font-size:10px}
@media(max-width:700px){:root{--emberfall-chat-height:250px}#chatPanel.emberfallChatDock{grid-template-columns:108px minmax(0,1fr)!important}#chatPanel.emberfallChatDock .channelTab{padding:7px 8px!important;font-size:10px!important}#chatPanel.emberfallChatDock .chatMessages{padding-left:13px!important}.emberfallTrackerGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.emberfallTrackerGrid>div:first-child{grid-column:1/-1}.emberfallActionLogs #log,.emberfallActionLogs .transferLogs{height:175px!important}}
