/* Hunt Analyzer v3 + abas do Auto Hunt — 10/10/2026. Só vale com .hap-v3 / .hap-tabs-ready (postos pelo hunt-panels-v3.js).
   O hunt-interface-v2.css usa !important em quase tudo: aqui também, com seletor mais específico. */

/* ========== Hunt Analyzer ========== */
html.hap-on #idle-hunt-analyzer.hap-v3{--hap-ink:#eaf4f8;--hap-muted:#93aabd;--hap-line:#24496b;--hap-card:#0d2238;--hap-teal:#5fe0b8;--hap-gold:#f4c95d;--hap-red:#f07b7b;
  --hap-icons:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/');font-family:"Segoe UI",Arial,sans-serif!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-content{display:flex!important;flex-direction:column!important;gap:8px!important;padding:8px!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-content>*{flex:none!important;margin:0!important}

/* sessão: dois chips em linha */
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-session{order:0!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;padding:0!important;border:0!important;background:none!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-session>span{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;min-width:0!important;min-height:30px!important;padding:4px 9px!important;border:1px solid var(--hap-line)!important;border-radius:9px!important;background:var(--hap-card)!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-session>span>span{color:var(--hap-muted)!important;font-size:11px!important;font-weight:700!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-session b{overflow:hidden!important;color:var(--hap-ink)!important;font-size:12px!important;text-overflow:ellipsis!important;white-space:nowrap!important}

/* ritmo da sessão: XP/h em destaque + taxas */
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates{order:1!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;padding:8px!important;border:1px solid #2f6a8f!important;border-radius:12px!important;
  background:radial-gradient(circle at 12% 0,rgb(95 224 184 / 14%),transparent 55%),linear-gradient(180deg,#10304d,#0b2034)!important;overflow:visible!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>[data-hap-title]{grid-column:1/-1!important;color:var(--hap-teal)!important;font-size:10px!important;font-weight:900!important;letter-spacing:.09em!important;text-transform:uppercase!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>span{display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;grid-auto-rows:auto!important;align-items:center!important;column-gap:6px!important;min-width:0!important;
  padding:5px 6px!important;border:1px solid rgb(36 73 107 / 70%)!important;border-radius:9px!important;background:rgb(6 20 34 / 55%)!important;color:var(--hap-muted)!important;font-size:10px!important;font-weight:700!important;line-height:1.2!important;text-align:left!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>span::before{content:"";grid-column:1!important;grid-row:1/3!important;width:24px;height:24px;background-position:center;background-size:contain;background-repeat:no-repeat;image-rendering:pixelated}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>span>br{display:none!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>span>span{grid-column:2!important;color:inherit!important;font:inherit!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>span>b{grid-column:2!important;overflow:hidden!important;color:var(--hap-ink)!important;font-size:13px!important;font-weight:800!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>[data-hap="xp-rate"]{grid-column:1/-1!important;grid-template-columns:34px minmax(0,1fr)!important;padding:7px 10px!important;border-color:rgb(95 224 184 / 45%)!important;background:rgb(10 46 52 / 55%)!important;font-size:11px!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>[data-hap="xp-rate"]::before{width:34px;height:34px}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>[data-hap="xp-rate"]>b{color:#8ff0c8!important;font-size:22px!important;letter-spacing:.01em!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>[data-hap="gold-rate"]>b{color:#ffe7a1!important}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="xp-rate"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/rate.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="gold-rate"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/gold.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="encounter-rate"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/encounters.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="win-rate"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/victories.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="capture-rate"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/capture-rate.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="avg-xp"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/avg-xp.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="supplies"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/supplies.webp')}

/* encaixe magnético: uma linha; a área tracejada só aparece durante o arraste (o alvo é o painel inteiro) */
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-attachment-tray{order:2!important;padding:5px 8px!important;border-radius:10px!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-attachment-tray>header{min-height:26px!important;gap:6px!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-attachment-title small{display:none!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-attachment-title strong{font-size:11px!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-attachment-dropzone{display:none!important}
html.hap-on body:has(.is-panel-dragging) #idle-hunt-analyzer.hap-v3 .hunt-attachment-dropzone,
html.hap-on #idle-hunt-analyzer.hap-v3.is-panel-ordering .hunt-attachment-dropzone{display:grid!important;margin-top:5px!important}

/* números da sessão: ícone + valor + rótulo legíveis */
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-grid{order:3!important;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(104px,1fr))!important;gap:6px!important;padding:0!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-grid>.hunt-stat{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;grid-auto-rows:auto!important;align-items:center!important;column-gap:7px!important;min-width:0!important;min-height:46px!important;
  padding:6px 8px!important;border:1px solid var(--hap-line)!important;border-radius:10px!important;background:linear-gradient(180deg,#10273f,#0b1e31)!important;text-align:left!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-grid>.hunt-stat::before{content:"";grid-column:1;grid-row:1/3;width:28px;height:28px;background-position:center;background-size:contain;background-repeat:no-repeat;image-rendering:pixelated}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-grid>.hunt-stat>b{grid-column:2!important;overflow:hidden!important;color:var(--hap-ink)!important;font-size:15px!important;font-weight:800!important;line-height:1.1!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-grid>.hunt-stat>span{grid-column:2!important;overflow:hidden!important;color:var(--hap-muted)!important;font-size:11px!important;font-weight:700!important;line-height:1.2!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="encounters"]{order:1}html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="victories"]{order:2}html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="captures"]{order:3}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="shinies"]{order:4}html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="xp"]{order:5}html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="gold"]{order:6}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="time"]{order:7}html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="defeats"]{order:8}html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="eggs"]{order:9}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="evaluator-value"]{order:10}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="encounters"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/encounters.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="victories"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/victories.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="defeats"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/defeats.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="time"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/time.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="captures"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/captures.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="xp"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/xp.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="gold"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/gold.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="shinies"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/shinies.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="eggs"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/eggs.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="evaluator-value"]::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/evaluator.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="shinies"]>b{color:var(--hap-gold)!important}
html.hap-on #idle-hunt-analyzer.hap-v3 [data-hap="defeats"]>b{color:#ffb4b4!important}

/* dinheiro: receita, suprimentos, lucro e lucro por hora */
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-finance{order:4!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;padding:0!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-finance>.hunt-finance-card{position:relative!important;display:grid!important;grid-template-columns:26px minmax(0,1fr)!important;grid-auto-rows:auto!important;align-items:center!important;column-gap:7px!important;min-width:0!important;min-height:44px!important;
  padding:6px 8px!important;border:1px solid var(--hap-line)!important;border-radius:10px!important;background:var(--hap-card)!important;text-align:left!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-finance>.hunt-finance-card::before{content:"";grid-column:1;grid-row:1/3;width:26px;height:26px;background-position:center;background-size:contain;background-repeat:no-repeat;image-rendering:pixelated}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-finance>.hunt-finance-card:nth-child(1)::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/revenue.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-finance>.hunt-finance-card:nth-child(2)::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/supplies.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-finance>.hunt-finance-card.net::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/profit.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-finance>.hap-net-rate::before{background-image:url('/assets/brand/ultimate-poke-idle/hunt-panels-v3/icons/rate.webp')}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-finance-card>b{grid-column:2!important;grid-row:1!important;overflow:hidden!important;color:var(--hap-ink)!important;font-size:14px!important;font-weight:800!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-finance-card>span{grid-column:2!important;grid-row:2!important;overflow:hidden!important;color:var(--hap-muted)!important;font-size:11px!important;font-weight:700!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-finance-card.net,html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-finance-card.hap-net-rate{border-color:rgb(95 224 184 / 45%)!important;background:linear-gradient(120deg,rgb(47 185 143 / 18%),var(--hap-card))!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-finance-card.net>b,html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-finance-card.hap-net-rate>b{color:#8ff0c8!important;font-size:16px!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-finance-card.is-loss{border-color:rgb(240 123 123 / 55%)!important;background:linear-gradient(120deg,rgb(160 50 60 / 22%),var(--hap-card))!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-finance-card.is-loss>b{color:#ffb4b4!important}

/* suprimentos */
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-supplies{order:5!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;padding:0!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-supplies>span{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;padding:5px 8px!important;border:1px solid var(--hap-line)!important;border-radius:10px!important;background:var(--hap-card)!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-supplies img{width:22px!important;height:22px!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-supplies i{display:grid!important;min-width:0!important;font-style:normal!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-supplies i>span{color:var(--hap-muted)!important;font-size:10px!important;font-weight:700!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-supplies i>b{overflow:hidden!important;color:var(--hap-ink)!important;font-size:12px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-foot{order:9!important;font-size:11px!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-foot>span{color:var(--hap-muted)!important;font-size:10px!important;line-height:1.3!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-foot button{font-size:11px!important}

/* compacto (304 × 390): o essencial cabe sem rolar */
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-content{gap:6px!important;padding:6px!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-rates{grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:6px!important;gap:5px!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-rates>[data-hap="xp-rate"]>b{font-size:19px!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-rates>span{grid-template-columns:minmax(0,1fr)!important;padding:4px 5px!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-rates>span:not([data-hap="xp-rate"])::before{display:none!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-rates>[data-hap="xp-rate"]{grid-template-columns:30px minmax(0,1fr)!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-rates>[data-hap="capture-rate"],
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-rates>[data-hap="avg-xp"],
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-rates>[data-hap="supplies"],
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-grid>[data-hap="defeats"],
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-grid>[data-hap="eggs"],
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-grid>[data-hap="evaluator-value"],
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-finance>.hunt-finance-card:nth-child(1),
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-finance>.hunt-finance-card:nth-child(2),
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-supplies,
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-foot{display:none!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-grid>.hunt-stat{min-height:40px!important;padding:4px 7px!important;grid-template-columns:24px minmax(0,1fr)!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-grid>.hunt-stat::before{width:24px;height:24px}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-grid>.hunt-stat>b{font-size:14px!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-session>span{min-height:26px!important;padding:3px 8px!important}

/* ========== Auto Hunt: os cartões de status são as abas ========== */
html.hap-on #auto-hunt-settings-overlay.hap-tabs-ready .ahs-module-nav{display:none!important}
html.hap-on #auto-hunt-settings-overlay.hap-tabs-ready .ahs-status-grid>.ahs-status{position:relative;cursor:pointer;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease,filter .12s ease;filter:saturate(.75) brightness(.9);outline:none}
html.hap-on #auto-hunt-settings-overlay.hap-tabs-ready .ahs-status-grid>.ahs-status:hover{transform:translateY(-2px);filter:none;border-color:#4aa9d8}
html.hap-on #auto-hunt-settings-overlay.hap-tabs-ready .ahs-status-grid>.ahs-status:focus-visible{box-shadow:0 0 0 3px rgb(95 224 184 / 55%)}
html.hap-on #auto-hunt-settings-overlay.hap-tabs-ready .ahs-status-grid>.ahs-status.is-selected{filter:none;border-color:#5fe0b8!important;background:linear-gradient(135deg,rgb(18 78 78 / 95%),rgb(9 42 60 / 95%))!important;box-shadow:0 0 0 2px rgb(95 224 184 / 25%),0 8px 22px rgb(0 0 0 / 35%)}
html.hap-on #auto-hunt-settings-overlay.hap-tabs-ready .ahs-status-grid>.ahs-status.is-selected::after{content:"";position:absolute;left:50%;bottom:-11px;width:18px;height:18px;border-right:2px solid #5fe0b8;border-bottom:2px solid #5fe0b8;background:#0f3d47;transform:translateX(-50%) rotate(45deg)}
html.hap-on #auto-hunt-settings-overlay.hap-tabs-ready .ahs-status-grid>.ahs-status:not(.is-selected)::after{content:"›";position:absolute;right:10px;top:50%;color:#6f93ad;font:900 22px/1 "Segoe UI",sans-serif;transform:translateY(-50%)}
html.hap-on #auto-hunt-settings-overlay.hap-tabs-ready .ahs-status-grid>.ahs-status:not(.is-selected):hover::after{color:#bfe8ff}
@media (prefers-reduced-motion:reduce){html.hap-on #auto-hunt-settings-overlay.hap-tabs-ready .ahs-status-grid>.ahs-status{transition:none}}

/* ordem do ritmo: XP/h, Ouro/h, Encontros/h, Vitórias/h, depois os pequenos */
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>[data-hap-title]{order:0}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>[data-hap="xp-rate"]{order:1}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>[data-hap="gold-rate"]{order:2}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>[data-hap="encounter-rate"]{order:3}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>[data-hap="win-rate"]{order:4}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>[data-hap="capture-rate"]{order:5}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>[data-hap="avg-xp"]{order:6}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>[data-hap="supplies"]{order:7}
/* sessão: rótulo em cima, valor embaixo (não corta "Área atual") */
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-session>span{flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:1px!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-session>span>span{font-size:10px!important;line-height:1.1!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-session b{max-width:100%!important;line-height:1.2!important}
/* compacto: XP/h (2/3) + Ouro/h (1/3), sem o resto do ritmo; cabe sem rolar */
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-rates>[data-hap-title],
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-rates>[data-hap="encounter-rate"],
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-rates>[data-hap="win-rate"]{display:none!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-rates>[data-hap="xp-rate"]{grid-column:1/3!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-rates>[data-hap="gold-rate"]{grid-column:3!important;align-content:center!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-rates>[data-hap="gold-rate"]>b{font-size:13px!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-session>span{min-height:32px!important}

/* padrão/expandido: menos altura sem perder informação */
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-finance>.hunt-finance-card{grid-column:auto!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-grid>.hunt-stat{min-height:42px!important;padding:5px 7px!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-foot>span{display:none!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-foot{padding:4px 0 0!important;min-height:0!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-foot>div{display:flex!important;gap:6px!important;width:100%!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-foot>div>button{flex:1 1 0!important;min-height:32px!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-rates>span:not([data-hap="xp-rate"])>b{font-size:12px!important;text-overflow:clip!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="expanded"] .hunt-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="expanded"] .hunt-rates{grid-template-columns:repeat(6,minmax(0,1fr))!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="expanded"] .hunt-rates>[data-hap="gold-rate"],
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="expanded"] .hunt-rates>[data-hap="encounter-rate"],
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="expanded"] .hunt-rates>[data-hap="win-rate"]{grid-column:span 2!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="expanded"] .hunt-rates>[data-hap="capture-rate"],
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="expanded"] .hunt-rates>[data-hap="avg-xp"],
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="expanded"] .hunt-rates>[data-hap="supplies"]{grid-column:span 2!important}

/* números longos: XP ganho e Avaliador ocupam 2 colunas; rótulos com até 2 linhas */
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row dense!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-grid>[data-hap="xp"],
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-grid>[data-hap="evaluator-value"]{grid-column:span 2!important}
html.hap-on #idle-hunt-analyzer.hap-v3 .hunt-grid>.hunt-stat>span{white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="expanded"] .hunt-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
/* compacto: sem chips de sessão e sem Tempo; Ouro/h com rótulo em cima; o lucro cabe sem rolar */
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-session,
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-grid>[data-hap="time"]{display:none!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-grid>[data-hap="xp"]{grid-column:auto!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-rates>[data-hap="gold-rate"]{grid-template-columns:minmax(0,1fr)!important;justify-items:start!important;row-gap:2px!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-rates>[data-hap="gold-rate"]>b{grid-column:1!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-finance-card>b{font-size:13px!important}
html.hap-on #idle-hunt-analyzer.hap-v3[data-hunt-density="compact"] .hunt-finance>.hunt-finance-card{padding:5px 7px!important;column-gap:6px!important}

/* ========== Visual Clássico (escolha do jogador) e o seletor no menu "Tamanho do painel" ========== */
html.hap-on #idle-hunt-analyzer:not(.hap-v3) [data-hap-title],
html.hap-on #idle-hunt-analyzer:not(.hap-v3) [data-hap-net-rate]{display:none!important}
html.hap-on #idle-hunt-analyzer .hap-style-picker{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px;padding-top:8px;border-top:1px solid rgb(120 170 210 / 25%)}
html.hap-on #idle-hunt-analyzer .hap-style-picker>span{grid-column:1/-1;font-size:9px;font-weight:900;letter-spacing:.08em;opacity:.85}
html.hap-on #idle-hunt-analyzer .hap-style-picker>button{display:grid;gap:2px;justify-items:start;text-align:left;min-height:42px;padding:6px 8px;cursor:pointer}
html.hap-on #idle-hunt-analyzer .hap-style-picker>button b{font-size:12px}
html.hap-on #idle-hunt-analyzer .hap-style-picker>button small{font-size:9px;line-height:1.2;opacity:.8}
html.hap-on #idle-hunt-analyzer .hap-style-picker>button.is-active{border-color:#5fe0b8!important;box-shadow:0 0 0 2px rgb(95 224 184 / 22%)!important;background:rgb(47 185 143 / 16%)!important}
