/* Rift rewards use the same compact art and item slots as the armory. */
@layer pv {
  html body.vey-renewal:not(#rc1):not(#rc2):not(#rc3):not(#rc4):not(#rc5):not(#rc6):not(#rc7):not(#rc8) #view .rift-cache-reveal.is-compact {
    display:grid !important; grid-template-columns:minmax(0,1fr) auto !important; grid-template-areas:"heading footer" "summary footer" "items footer" !important;
    width:min(760px,100%) !important; max-width:100% !important; height:auto !important; min-height:0 !important; margin:12px auto !important; padding:14px !important; gap:8px 18px !important; text-align:left !important; align-items:center !important;
    .rift-cache-heading { grid-area:heading !important; display:flex !important; align-items:center !important; justify-content:flex-start !important; gap:12px !important; min-width:0 !important; padding:0 !important; border:0 !important; }
    .rift-cache-icon { display:block !important; flex:0 0 56px !important; width:56px !important; height:56px !important; min-width:56px !important; max-width:56px !important; max-height:56px !important; margin:0 !important; object-fit:contain !important; animation:none !important; filter:none !important; }
    h2 { margin:3px 0 0 !important; font:600 20px/1.3 Cinzel,Georgia,serif !important; color:#f0d79c !important; }
    small { color:#bda3cc !important; font:700 10px/1.5 Manrope,sans-serif !important; letter-spacing:.08em !important; }
    .rift-cache-summary { grid-area:summary !important; margin:0 !important; color:#c9bed1 !important; font:500 12px/1.6 Manrope,sans-serif !important; overflow-wrap:anywhere !important; }
    .rift-cache-summary img { width:20px !important; height:20px !important; object-fit:contain !important; }
    .rift-cache-items { grid-area:items !important; display:flex !important; flex-wrap:wrap !important; gap:8px !important; }
    .rift-cache-items > span { display:block !important; width:44px !important; height:44px !important; }
    .rift-cache-items .item-slot { width:44px !important; height:44px !important; min-width:44px !important; min-height:44px !important; max-width:44px !important; max-height:44px !important; margin:0 !important; padding:0 !important; }
    .rift-cache-items .item-slot > img { width:100% !important; height:100% !important; max-width:44px !important; max-height:44px !important; object-fit:contain !important; }
    footer { grid-area:footer !important; display:grid !important; justify-items:end !important; gap:8px !important; }
    footer .button { min-height:44px !important; padding:10px 18px !important; }
    @media(max-width:650px) {
      grid-template-columns:minmax(0,1fr) !important; grid-template-areas:"heading" "summary" "items" "footer" !important; padding:12px !important; gap:10px !important;
      h2 { font-size:18px !important; }
      footer { display:flex !important; align-items:center !important; justify-content:space-between !important; gap:12px !important; }
    }
  }
}
/* VEYDRIS player-feedback polish · loaded last to override legacy compact rules. */
@layer pv {
  html body.vey-renewal .vey-confirm-layer:not(#sale1):not(#sale2):not(#sale3) .vey-confirm-ack {
    display: flex !important; align-items: flex-start !important; gap: 12px !important; padding: 12px !important;
    border: 1px solid rgba(231, 173, 86, .55) !important; border-radius: 10px !important;
    background: linear-gradient(120deg, rgba(100, 54, 24, .25), rgba(35, 22, 46, .65)) !important;
    color: #f3dcae !important; cursor: pointer !important;
  }
  html body.vey-renewal .vey-confirm-layer:not(#sale1):not(#sale2):not(#sale3) .vey-confirm-ack input {
    appearance: auto !important; display: block !important; flex: 0 0 20px !important; width: 20px !important; height: 20px !important;
    margin: 0 !important; accent-color: #e7b65e !important; cursor: pointer !important;
  }
  html body.vey-renewal .vey-confirm-layer:not(#sale1):not(#sale2):not(#sale3) .vey-confirm-ack span { display: block !important; font: 600 13px/1.45 Manrope, sans-serif !important; color: #f3dcae !important; }
}
html body.vey-renewal.vey-compact:not(#pf1):not(#pf2):not(#pf3):not(#pf4):not(#pf5):not(#pf6):not(#pf7):not(#pf8) #view .gear-select-launch {
  appearance: none !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: min(100%, 290px) !important;
  min-height: 48px !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(244, 203, 112, .72) !important;
  border-radius: 12px !important;
  background: radial-gradient(circle at 13% 50%, rgba(143, 91, 28, .4), transparent 36%), linear-gradient(110deg, #23190e, #15111d 68%) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 242, 193, .06), 0 6px 18px rgba(0, 0, 0, .3) !important;
  color: #f5dda3 !important;
  text-align: left !important;
  cursor: pointer !important;
}
html body.vey-renewal.vey-compact:not(#pf1):not(#pf2):not(#pf3):not(#pf4):not(#pf5):not(#pf6):not(#pf7):not(#pf8) #view .gear-select-launch:hover,
html body.vey-renewal.vey-compact:not(#pf1):not(#pf2):not(#pf3):not(#pf4):not(#pf5):not(#pf6):not(#pf7):not(#pf8) #view .gear-select-launch:focus-visible {
  border-color: #ffe6a3 !important;
  transform: translateY(-1px) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 242, 193, .1), 0 0 20px rgba(218, 160, 60, .18) !important;
}
html body.vey-renewal.vey-compact:not(#pf1):not(#pf2):not(#pf3):not(#pf4):not(#pf5):not(#pf6):not(#pf7):not(#pf8) #view .gear-select-launch img {
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 7px rgba(235, 177, 70, .32)) !important;
}
html body.vey-renewal.vey-compact:not(#pf1):not(#pf2):not(#pf3):not(#pf4):not(#pf5):not(#pf6):not(#pf7):not(#pf8) #view .gear-select-launch span { display: grid !important; min-width: 0 !important; gap: 2px !important; }
html body.vey-renewal.vey-compact:not(#pf1):not(#pf2):not(#pf3):not(#pf4):not(#pf5):not(#pf6):not(#pf7):not(#pf8) #view .gear-select-launch b { font: 800 10px/1.2 Manrope, sans-serif !important; letter-spacing: .08em !important; color: #ffe6a7 !important; }
html body.vey-renewal.vey-compact:not(#pf1):not(#pf2):not(#pf3):not(#pf4):not(#pf5):not(#pf6):not(#pf7):not(#pf8) #view .gear-select-launch small { display: block !important; font: 600 9px/1.25 Manrope, sans-serif !important; color: #bdb19d !important; white-space: normal !important; }
html body.vey-renewal.vey-compact:not(#pf1):not(#pf2):not(#pf3):not(#pf4):not(#pf5):not(#pf6):not(#pf7):not(#pf8) #view .gear-select-launch > i { display: block !important; font: 700 18px/1 Cinzel, serif !important; color: #e9bd66 !important; }

html body.vey-renewal #accountLayer:not(#pf1):not(#pf2):not(#pf3):not(#pf4) .account-card .loot-filter-modes { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
html body.vey-renewal #accountLayer:not(#pf1):not(#pf2):not(#pf3):not(#pf4) .account-card .loot-filter-modes > [data-loot-filter-mode="legendary"] {
  border-color: rgba(174, 112, 255, .48) !important;
  background: radial-gradient(circle at 14% 0%, rgba(128, 65, 216, .22), transparent 46%), linear-gradient(180deg, rgba(34, 24, 48, .96), rgba(16, 13, 23, .96)) !important;
  box-shadow: inset 0 0 0 1px rgba(247, 220, 155, .04) !important;
}
html body.vey-renewal #accountLayer:not(#pf1):not(#pf2):not(#pf3):not(#pf4) .account-card .loot-filter-modes > [data-loot-filter-mode="legendary"]:is(.active, [aria-pressed="true"]) {
  border-color: rgba(244, 211, 137, .86) !important;
  box-shadow: inset 0 0 0 1px rgba(174, 112, 255, .18), 0 0 24px -10px rgba(174, 112, 255, .85) !important;
}
@media (max-width: 760px) {
  html body.vey-renewal.vey-compact:not(#pf1):not(#pf2):not(#pf3):not(#pf4):not(#pf5):not(#pf6):not(#pf7):not(#pf8) #view .gear-select-launch { width: 100% !important; min-width: 0 !important; }
}
@media (max-width: 430px) {
  html body.vey-renewal #accountLayer:not(#pf1):not(#pf2):not(#pf3):not(#pf4) .account-card .loot-filter-modes { grid-template-columns: 1fr !important; }
}

.market-sell-picker {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(150px, .45fr) auto;
  align-items: end; gap: 10px; padding: 12px; border: 1px solid rgba(232, 196, 128, .24); border-radius: 12px;
  background: radial-gradient(circle at 0 0, rgba(177, 104, 255, .12), transparent 55%), rgba(8, 7, 12, .45);
}
.market-sell-picker output { align-self: center; color: #e9bd66; font: 800 10px/1.2 Manrope, sans-serif; letter-spacing: .1em; white-space: nowrap; }
@media (max-width: 680px) {
  .market-sell-picker { grid-template-columns: 1fr; }
  .market-sell-picker output { justify-self: start; }
}

/* Warden reports and compact actionable badges; no changes to underlying rewards. */
@layer pv {
  html body .has-action-count { position: relative !important; }
  html body .action-count-badge { position: absolute !important; top: 0px !important; right: 0px !important; z-index: 3; display: inline-flex !important; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; margin: 0; border: 1px solid #f4cf84; border-radius: 12px; background: #733831; color: #fff3d2; font: 800 10px/1 Manrope,sans-serif; box-shadow: 0 2px 6px #0008; pointer-events: none; }
  html body .warden-feedback { min-width: 0; grid-column: 1 / -1; }
  html body .warden-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
  html body .warden-report { margin: 10px 0; padding: 16px; min-width: 0; }
  html body .warden-report header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
  html body .warden-report :is(h3,p,small) { overflow-wrap: anywhere; }
  html body .warden-report-text { white-space: pre-wrap; }
  html body .warden-report label { display: block; margin: 10px 0; }
  html body .warden-report :is(textarea,select) { display: block; width: 100%; max-width: 100%; font-size: 16px; }
  html body .warden-feedback > p { color: #c3bcae; }
}

@layer pv { html body #authLayer a[href="./news.html"] { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 10px; } }

@layer pv { html body .warden-report > summary { cursor: pointer; min-height: 44px; padding: 4px; } html body .warden-report > summary h3 { margin: 8px 0 0; } }
