/* r58: desktop HUD refinements. Native actions and mobile presentation remain intact. */
.rh-panel-resize,#rh-helper-toggle,.rh-helper-config{display:none}
html.reference-hud.reference-hud.reference-hud body :is(#rh-helper-toggle,.rh-helper-config){display:inline-flex!important;align-items:center!important;justify-content:center!important}
html.reference-hud{--hub-panel:#0b1420;--hub-card:#111c2a;--hub-line:#334256;--hub-gold:#ebbd4f;--hub-text:#edf2f8;--hub-muted:#a4b3c7}

/* Count and connection state are separate: the public count is shared by every channel. */
html.reference-hud.reference-hud.reference-hud body #game-chat #chat-online-members-open.hidden{display:flex!important}
html.reference-hud.reference-hud.reference-hud body #game-chat #chat-online-members-open.settings-banner-hidden{display:none!important}
html.reference-hud.reference-hud.reference-hud body #game-chat #chat-online-members-count{font:700 11px/1 Arial,sans-serif!important;color:#c9e9fa!important;white-space:nowrap!important}
html.reference-hud.reference-hud.reference-hud body #game-chat #chat-online-members-open{order:3!important;flex:none!important}
html.reference-hud.reference-hud.reference-hud body #game-chat #chat-status{order:2!important}
html.reference-hud.reference-hud.reference-hud body #game-chat #minimize-chat{order:4!important}
html.reference-hud.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-tabs{grid-template-columns:1fr .8fr 1fr 1fr 1fr 1fr 1.4fr!important;gap:2px!important;overflow:visible!important}
html.reference-hud.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-tab{font-size:8px!important;overflow:visible!important;min-width:0!important;letter-spacing:0!important}
html.reference-hud.reference-hud.reference-hud body #game-chat .chat-message:not(.vote-reward-card):not(.chat-promo-inline) .chat-message-copy{display:block!important;position:relative!important;padding:0!important}
html.reference-hud.reference-hud.reference-hud body #game-chat .chat-message:not(.vote-reward-card):not(.chat-promo-inline) .chat-message-content{display:block!important;min-width:0!important}
html.reference-hud.reference-hud.reference-hud body #game-chat .chat-message-identity{display:flex!important;align-items:center!important;gap:5px!important;flex-wrap:wrap!important;padding:0 40px 3px 0!important;min-width:0!important}
html.reference-hud.reference-hud.reference-hud body #game-chat .chat-message-meta{display:inline!important;font:10px/16px Arial,sans-serif!important;color:var(--hub-muted)!important;white-space:nowrap!important}
html.reference-hud.reference-hud.reference-hud body #game-chat .chat-message-text{display:block!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;line-height:1.45!important;padding:1px 18px 2px 0!important}
html.reference-hud.reference-hud.reference-hud body #game-chat .chat-message-time{top:0!important;right:0!important}
html.reference-hud.reference-hud.reference-hud body #game-chat .chat-social-menu{position:absolute!important;right:0!important;bottom:0!important}

/* One native analyzer, expanded or compact, is the source of every hunt metric. */
html.reference-hud.reference-hud.reference-hud body .panel:is(.hunt-analyzer-panel,.auto-helper-panel).client-open{visibility:visible!important;pointer-events:auto!important;display:flex!important;flex-direction:column!important;zoom:1!important;box-sizing:border-box!important;padding:8px!important;overflow:hidden!important;z-index:4000;background:var(--hub-panel)!important;border:1px solid #98783c!important;border-radius:10px!important;box-shadow:0 8px 22px #0008!important;color:var(--hub-text)!important;container-type:inline-size}
html.reference-hud.reference-hud.reference-hud body .panel:is(.hunt-analyzer-panel,.auto-helper-panel):not(.client-open){visibility:hidden!important;pointer-events:none!important;display:none!important}
html.reference-hud.reference-hud.reference-hud body :is(.hunt-analyzer-head,.auto-helper-head){position:relative!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;flex:none!important;width:100%!important;box-sizing:border-box!important;height:auto!important;min-height:42px!important;padding:6px 0!important;background:transparent!important;border-color:var(--hub-line)!important;cursor:grab}
html.reference-hud.reference-hud.reference-hud body :is(.hunt-analyzer-body,.auto-helper-body){flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow:auto!important;padding:10px 2px!important;scrollbar-width:thin;scrollbar-color:#5d7189 var(--hub-panel)}
html.reference-hud.reference-hud.reference-hud body .hunt-analyzer-panel.collapsed .hunt-analyzer-body,
html.reference-hud.reference-hud.reference-hud body .auto-helper-panel.collapsed .auto-helper-body{display:none!important}
html.reference-hud.reference-hud.reference-hud body .panel:is(.hunt-analyzer-panel,.auto-helper-panel).collapsed{padding:6px 12px!important;background:var(--rh-frame) center/100% 100% no-repeat!important;border:0!important;z-index:1240!important}
html.reference-hud.reference-hud.reference-hud body :is(.hunt-analyzer-panel,.auto-helper-panel).collapsed :is(.hunt-analyzer-head,.auto-helper-head){flex-wrap:nowrap!important;min-height:48px!important;height:48px!important;gap:6px!important;padding:0!important;border:0!important;overflow:visible!important}
html.reference-hud.reference-hud.reference-hud body .hunt-analyzer-panel.collapsed .hunt-analyzer-title{display:none!important}
html.reference-hud.reference-hud.reference-hud body .hunt-analyzer-panel .analyzer-compact{display:none!important}
html.reference-hud.reference-hud.reference-hud body .hunt-analyzer-panel.collapsed .analyzer-compact{display:flex!important;align-items:center!important;flex:1!important;gap:8px!important;min-width:0!important;width:auto!important;padding:0!important;font:10px/1.3 Arial,sans-serif!important}
html.reference-hud.reference-hud.reference-hud body .hunt-analyzer-panel.collapsed .analyzer-compact>span{display:flex!important;align-items:center!important;gap:3px!important;min-width:0!important;flex:1!important;width:auto!important}
html.reference-hud.reference-hud.reference-hud body .hunt-analyzer-panel.collapsed .analyzer-compact b{font:700 10px/1.3 Arial,sans-serif!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html.reference-hud.reference-hud.reference-hud body .hunt-analyzer-actions{display:flex!important;align-items:center!important;gap:5px!important;flex-wrap:wrap!important;margin-left:auto!important}
html.reference-hud.reference-hud.reference-hud body .hunt-analyzer-panel.collapsed .hunt-analyzer-actions{flex-wrap:nowrap!important;flex:none!important}
html.reference-hud.reference-hud.reference-hud body .hunt-analyzer-panel.collapsed :is(#reset-hunt-analyzer,#hunt-analyzer-taskbar,#shiny-kills-hunt-analyzer){display:none!important}
html.reference-hud.reference-hud.reference-hud body :is(#minimize-hunt-analyzer,#minimize-auto-helper){display:grid!important;place-items:center!important;position:static!important;inset:auto!important;flex:none!important;width:28px!important;min-width:28px!important;height:28px!important;padding:0!important;transform:none!important;border:1px solid #ab8d34!important;border-radius:5px!important;background:#302a18!important;color:#ffd04d!important;font:700 22px/1 Arial!important}
html.reference-hud.reference-hud.reference-hud body #rh-helper-toggle{font:700 9px/1.2 Arial!important;padding:5px!important;width:auto!important;min-width:58px!important;height:28px!important;color:#e2cc8b!important;white-space:nowrap!important}
html.reference-hud.reference-hud.reference-hud body #rh-helper-toggle[aria-pressed=true]{color:#8bf0ba!important;border-color:#3b8b68!important}
html.reference-hud.reference-hud.reference-hud body .rh-helper-config{width:25px!important;min-width:25px!important;height:28px!important;padding:0!important;font:16px/1 Arial!important}
html.reference-hud.reference-hud.reference-hud body :is(.auto-helper-panel,.hunt-analyzer-panel) .rh-drag-grip{position:static!important;flex:0 0 14px!important;width:14px!important;height:28px!important;min-width:14px!important;transform:none!important;padding:0!important}
html.reference-hud.reference-hud.reference-hud body .auto-helper-panel.collapsed .auto-helper-brand{display:none!important}
html.reference-hud.reference-hud.reference-hud body .auto-helper-panel.collapsed .auto-helper-compact{display:flex!important;align-items:center!important;justify-content:space-around!important;flex:1!important;gap:4px!important;min-width:0!important}
html.reference-hud.reference-hud.reference-hud body .auto-helper-panel.collapsed .auto-helper-compact>span:nth-child(n){display:flex!important;min-width:38px!important;width:auto!important;height:30px!important}
html.reference-hud.reference-hud.reference-hud body .auto-helper-panel.collapsed .auto-helper-compact>span{position:relative!important;padding-right:10px!important}
html.reference-hud.reference-hud.reference-hud body .auto-helper-panel.collapsed .auto-helper-compact>span b{display:block!important;position:absolute!important;right:1px!important;bottom:1px!important;inset-inline-start:auto!important;color:#edf2f8!important;background:#0b1420e8!important;font:700 9px/1 Arial!important;padding:1px!important}
html.reference-hud.reference-hud.reference-hud body .hunt-analyzer-panel.collapsed .analyzer-compact>span{padding:0 4px!important}
html.reference-hud.reference-hud.reference-hud body .rh-panel-resize{display:block!important;position:absolute!important;right:3px!important;bottom:3px!important;width:16px!important;min-width:16px!important;height:16px!important;padding:0!important;border:0!important;border-right:2px solid #ebbd4f!important;border-bottom:2px solid #ebbd4f!important;background:transparent!important;cursor:nwse-resize!important;touch-action:none!important;z-index:10}
html.reference-hud.reference-hud.reference-hud body [data-rh-folded=true]>.rh-panel-resize{display:none!important}

/* Vote & Earn palette, shared by the desktop submenu surfaces. */
html.reference-hud.reference-hud.reference-hud body :is(.system-window,.panel.client-open:not([data-rh-panel]),.rh-dropdown,#move-priority-panel){background:var(--hub-panel)!important;border-color:#98783c!important;color:var(--hub-text)!important;box-sizing:border-box!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 32px)!important;scrollbar-width:thin;scrollbar-color:#5d7189 var(--hub-panel)}
html.reference-hud.reference-hud.reference-hud body .system-window{zoom:1!important;overflow:auto!important;min-width:min(300px,calc(100vw - 24px))!important}
html.reference-hud.reference-hud.reference-hud body :is(.panel.client-open:not([data-rh-panel]),.system-window)>:is(.panel-title,header,.system-header){background:linear-gradient(145deg,#1b293b,#111b2a)!important;border-bottom-color:var(--hub-line)!important;color:#fff1bd!important;flex-shrink:0!important}
html.reference-hud.reference-hud.reference-hud body :is(.panel.client-open:not([data-rh-panel]),.system-window,.rh-dropdown) :is(input,select,textarea){background:var(--hub-card)!important;border-color:#415168!important;color:var(--hub-text)!important;min-width:0!important;box-sizing:border-box!important}
html.reference-hud.reference-hud.reference-hud body :is(.panel.client-open:not([data-rh-panel]),.system-window,.rh-dropdown) :is(.client-tabs button,.npc-buy-categories button,.panel-title button,.system-close,.system-header button){background:#162438!important;border-color:#415168!important;color:var(--hub-text)!important}
html.reference-hud.reference-hud.reference-hud body :is(.client-tabs,.npc-buy-categories) button.active{border-color:var(--hub-gold)!important;color:#ffe28c!important;background:#2c291e!important}
html.reference-hud.reference-hud.reference-hud body :is(.helper-module,.hunt-analyzer-card,.analyzer-card){background:var(--hub-card)!important;border-color:var(--hub-line)!important;color:var(--hub-text)!important}
html.reference-hud.reference-hud.reference-hud body .rh-dropdown button{border-bottom-color:var(--hub-line)!important}
html.reference-hud.reference-hud.reference-hud body .rh-dropdown button:hover{background:#25364b!important;color:#ffe28c!important}
html.reference-hud.reference-hud.reference-hud body .market-panel.panel.client-open{zoom:1!important;transform:none!important;width:min(600px,calc(100vw - 32px))!important;min-width:min(300px,calc(100vw - 32px))!important;height:min(660px,calc(100dvh - 48px))!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:12px!important;container-type:inline-size}
html.reference-hud.reference-hud.reference-hud body .market-panel :is(.panel-title,.client-tabs,.npc-buy-categories,.client-search,.npc-sell-tools){flex-shrink:0!important;max-width:100%!important;box-sizing:border-box!important}
html.reference-hud.reference-hud.reference-hud body .market-panel #market-list{flex:1!important;min-height:0!important;max-height:none!important;overflow:auto!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr))!important;align-content:start!important;gap:8px!important}
html.reference-hud.reference-hud.reference-hud body .market-panel #market-list>*{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;background-color:var(--hub-card)!important;border-color:var(--hub-line)!important}
html.reference-hud.reference-hud.reference-hud body .market-panel :is(.npc-buy-categories,.npc-sell-tools){display:flex;flex-wrap:wrap;gap:6px}
html.reference-hud.reference-hud.reference-hud body .market-panel .npc-trade-title{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;height:auto!important;min-height:48px!important}
html.reference-hud.reference-hud.reference-hud body .market-panel .npc-trade-title .client-panel-close{margin-left:auto!important;flex:none!important}
html.reference-hud.reference-hud.reference-hud body .market-panel #market-list{grid-auto-rows:max-content!important}
html.reference-hud.reference-hud.reference-hud body .market-panel .market-buy-card{display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;gap:8px!important;height:auto!important;min-height:170px!important;padding:10px!important;overflow:visible!important;background:var(--hub-card)!important}
html.reference-hud.reference-hud.reference-hud body .market-panel .market-buy-card>span{display:block!important;min-width:0!important}
html.reference-hud.reference-hud.reference-hud body .market-panel .market-buy-card>span>b{font:700 12px/1.4 Arial,sans-serif!important;color:#edf2f8!important}
html.reference-hud.reference-hud.reference-hud body .market-panel .market-buy-card>span>small{font:10px/1.5 Arial,sans-serif!important;color:#a4b3c7!important;white-space:normal!important}
html.reference-hud.reference-hud.reference-hud body .market-panel .market-buy-card .npc-item-badges em{font:700 8px/1.4 Arial,sans-serif!important;color:#e2c978!important}
html.reference-hud.reference-hud.reference-hud body .market-panel .market-purchase-actions{grid-column:1/-1!important;display:flex!important;flex-direction:column!important;gap:6px!important;position:static!important;width:100%!important;height:auto!important;min-width:0!important;padding:0!important}
html.reference-hud.reference-hud.reference-hud body .market-panel .npc-quantity-modern{display:flex!important;align-items:end!important;gap:8px!important;width:100%!important}
html.reference-hud.reference-hud.reference-hud body .market-panel .market-quantity-field{flex:1!important;min-width:0!important;display:flex!important;flex-direction:column!important;gap:3px!important}
html.reference-hud.reference-hud.reference-hud body .market-panel .market-quantity-field small{font:700 8px/1.2 Arial!important;color:#a4b3c7!important}
html.reference-hud.reference-hud.reference-hud body .market-panel .market-quantity{height:28px!important;width:100%!important;max-width:none!important;font:12px Arial!important;padding:4px!important}
html.reference-hud.reference-hud.reference-hud body .market-panel :is(.npc-quantity-max,.market-confirm){height:30px!important;min-height:30px!important;max-width:100%!important;padding:5px 8px!important;font:700 10px/1.3 Arial!important;border:1px solid #8d7639!important;background:linear-gradient(#41391f,#292617)!important;color:#ffe9a5!important;border-radius:5px!important}
html.reference-hud.reference-hud.reference-hud body :is(.auto-helper-panel,.hunt-analyzer-panel,.market-panel,.system-window) :is(button,select,input):focus-visible{outline:2px solid #ebbd4f!important;outline-offset:2px}
@container (max-width:390px){
  .auto-helper-panel .helper-care-module,.auto-helper-panel .helper-capture-grid{grid-template-columns:minmax(0,1fr)!important}
  .auto-helper-panel .helper-ball-options{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
