/* Illustrated dungeon cards. Native details keep the full record off the front face. */
body.reforged #questing .dungeon-list { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; }
body.reforged #questing .dungeon-stop.audit-dungeon { position:relative; isolation:isolate; min-height:0; margin:0; padding:0; overflow:hidden; background:#131713; border:1px solid #68624b; border-radius:3px; box-shadow:0 6px 20px #0003!important; }
body.reforged #questing .audit-dungeon .audit-dungeon-expander { padding:0; margin:0; border:0; background:none; }
body.reforged #questing .audit-dungeon .audit-dungeon-summary { position:relative; isolation:isolate; list-style:none; display:block; min-height:300px; margin:0; padding:24px 28px 0; cursor:pointer; background:transparent; border:0; color:#eee0bf; }
body.reforged #questing .audit-dungeon-summary::-webkit-details-marker { display:none; }
body.reforged #questing .audit-dungeon .audit-dungeon-summary:focus-visible { outline:2px solid #ebd08c; outline-offset:-5px; }
body.reforged #questing .audit-dungeon .audit-dungeon-art { position:absolute; z-index:-1; inset:0; width:100%; height:100%; max-height:none; opacity:1; overflow:hidden; pointer-events:none; }
body.reforged #questing .audit-dungeon .audit-dungeon-art > img { position:absolute; inset:0; display:block; width:100%; height:100%; max-width:none; object-fit:cover; filter:saturate(.95) brightness(.84); }
body.reforged #questing .audit-dungeon .audit-dungeon-art::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,#0e1311f5 0%,#0e1311e8 30%,#0e1311ba 50%,#0e131124 78%),linear-gradient(0deg,#0d120fee 0%,#0d120f70 21%,transparent 65%); }
body.reforged #questing .audit-dungeon .audit-dungeon-face-content { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,1fr); align-content:start; width:100%; min-height:276px; }
body.reforged #questing .audit-dungeon .audit-dungeon-level { display:block; font:600 13px/1.4 var(--sans,sans-serif); color:#dcc991; margin-bottom:5px; }
body.reforged #questing .audit-dungeon .audit-dungeon-name { min-width:0; display:grid; justify-items:start; gap:9px; max-width:78%; }
body.reforged #questing .audit-dungeon .audit-dungeon-name > strong { font:600 clamp(23px,2.2vw,30px)/1.16 var(--serif,Georgia,serif); overflow-wrap:anywhere; color:#f4e4b9; text-shadow:0 2px 8px #0009; }
body.reforged #questing .audit-dungeon .dungeon-priority { font:500 12px/1.4 var(--sans,sans-serif); letter-spacing:0; text-transform:none; padding:3px 7px; color:#e2d5ad; background:#101611c9; border:1px solid #b7a76b66; }
body.reforged #questing .audit-dungeon .dungeon-priority[data-priority=explore] { color:#b8e3ed; border-color:#8ccad466; }
body.reforged #questing .audit-dungeon .dungeon-priority[data-priority=farm] { color:#edca85; border-color:#d9ad6466; }
body.reforged #questing .audit-dungeon .audit-dungeon-reason { display:block; max-width:66%; margin:12px 0 0; font:400 14px/1.55 var(--sans,sans-serif); color:#e1d9c5; }
body.reforged #questing .audit-dungeon .audit-dungeon-metrics { display:flex; flex-wrap:wrap; align-items:start; gap:12px 28px; max-width:70%; margin:14px 0; }
body.reforged #questing .audit-dungeon .audit-dungeon-time,body.reforged #questing .audit-dungeon .audit-dungeon-xp { display:block; font:500 13px/1.5 var(--sans,sans-serif); color:#f1e0b3; }
body.reforged #questing .audit-dungeon .audit-dungeon-metric-label { display:block; margin-bottom:2px; color:#b9bcae; font-weight:400; }
body.reforged #questing .audit-dungeon .audit-dungeon-top-loot { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; max-width:620px; width:70%; margin:0 0 14px; }
body.reforged #questing .audit-dungeon .audit-dungeon-top-item { display:flex; align-items:center; gap:9px; padding:8px 9px; min-width:0; margin:0; border:1px solid #92856266; background:#0c120ece; text-align:left; text-decoration:none; border-radius:2px; min-height:60px; }
body.reforged #questing .audit-dungeon .audit-dungeon-top-item:hover,body.reforged #questing .audit-dungeon .audit-dungeon-top-item:focus-visible { background:#243024ec; border-color:#d7bb73; }
/* A 38px image needs the full 44px border box: 2px padding + 1px border per side. */
body.reforged #questing .audit-dungeon .audit-dungeon-top-item .dungeon-loot-icon { display:block; box-sizing:border-box; width:44px; min-width:44px; max-width:44px; height:44px; min-height:44px; max-height:44px; flex:0 0 44px; padding:2px; border-width:1px; margin:0; line-height:0; }
body.reforged #questing .audit-dungeon .audit-dungeon-top-item .dungeon-loot-icon > img { display:block; box-sizing:border-box; position:static; width:38px; min-width:38px; max-width:38px; height:38px; min-height:38px; max-height:38px; padding:0; border:0; margin:0; object-fit:cover; }
body.reforged #questing .audit-dungeon .audit-dungeon-top-item > span:last-child { min-width:0; max-width:100%; overflow-wrap:anywhere; }
body.reforged #questing .audit-dungeon .audit-dungeon-top-item strong { font:500 13px/1.35 var(--sans,sans-serif); overflow-wrap:anywhere; }
body.reforged #questing .audit-dungeon .audit-dungeon-unknown { display:block; max-width:70%; color:#c4c6b9; font-size:13px; margin:0 0 14px; }
body.reforged #questing .audit-dungeon .audit-dungeon-disclosure { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:46px; margin-top:auto; padding:8px 0; border-top:1px solid #cebf8a40; color:#ebd89f; font:600 13px/1.4 var(--sans,sans-serif); }
body.reforged #questing .audit-dungeon .audit-dungeon-chevron { display:grid; place-items:center; width:28px; height:28px; font-size:24px!important; line-height:1; transition:transform .16s; }
body.reforged #questing .audit-dungeon-close-label { display:none; }
body.reforged #questing .audit-dungeon-expander[open] > summary .audit-dungeon-open-label { display:none; }
body.reforged #questing .audit-dungeon-expander[open] > summary .audit-dungeon-close-label { display:inline; }
body.reforged #questing .audit-dungeon-expander[open] > summary .audit-dungeon-chevron { transform:rotate(180deg); }
body.reforged #questing .audit-dungeon .audit-dungeon-body { position:relative; width:100%; margin:0; padding:20px 28px; max-width:none; min-height:0; background:#101610; border-top:1px solid #84734c77; }
body.reforged #questing .audit-dungeon-body > .dungeon-route-line { display:none; }
body.reforged #questing .audit-dungeon-body > .dungeon-meta { margin:0 0 12px; max-width:none; }
body.reforged #questing .audit-dungeon-preparation { color:#d9cba9; margin:0 0 12px; font-size:13px; line-height:1.6; }
body.reforged #questing .audit-dungeon-body .dungeon-key-loot { margin:10px 0; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
body.reforged #questing .audit-dungeon-body .dungeon-loot-item { padding:8px; gap:8px; }
body.reforged #questing .audit-dungeon-body .dungeon-loot-item small { line-height:1.45; font-size:13px; }
body.reforged #questing .audit-dungeon-body .dungeon-loot-item strong { font-size:13px; }
body.reforged #questing .audit-dungeon-all-loot,body.reforged #questing .dungeon-quest-details { margin:10px 0 0; padding:0; }
body.reforged #questing .audit-dungeon-all-loot > summary,body.reforged #questing .dungeon-quest-details > summary { padding:11px 12px; min-height:44px; font-size:13px; cursor:pointer; }
body.reforged #questing .audit-dungeon-legend { max-width:100%; margin:12px 0 18px; font-size:13px; line-height:1.65; color:#c2b49b; }
body.reforged #questing .audit-dungeon-body .dungeon-xp-comparison { margin:12px 0; }
body.reforged #questing .audit-dungeon-body .dungeon-xp-panel { padding:12px; }
body.reforged #questing .audit-dungeon-body .dungeon-xp-panel h4 { margin:0 0 5px; font-size:13px; }
body.reforged #questing .audit-dungeon-body .dungeon-xp-footnote { margin:8px 0; }
body.reforged #questing .preraid-dungeon { margin:12px 0; padding:12px; }
body.reforged #questing .preraid-dungeon h4 { margin:0 0 10px; }
body.reforged #questing .preraid-farm-specs { gap:12px; }
/* Primary and one fallback are readable at a glance; extra choices keep the original click handlers. */
body.reforged #gear-items .gear-slot-row[data-audit-gear] { grid-template-columns:116px minmax(0,1fr); }
body.reforged #gear-items .gear-slot-row[data-audit-gear] .slot-heading { padding:12px; }
body.reforged #gear-items .gear-slot-row[data-audit-gear] .gear-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; padding:12px; gap:10px 16px; }
body.reforged #gear-items .gear-slot-row[data-audit-gear] .gear-choice { display:grid; grid-template-columns:42px minmax(0,1fr); grid-template-rows:auto auto auto; gap:3px 10px; align-content:start; align-items:start; width:100%; min-width:0; max-width:none; padding:6px; text-align:left; }
body.reforged #gear-items .gear-slot-row[data-audit-gear] .item-art { grid-column:1; grid-row:2 / span 3; width:42px; height:42px; }
body.reforged #gear-items .gear-slot-row[data-audit-gear] .item-art img { width:42px; height:42px; }
body.reforged #gear-items .gear-slot-row[data-audit-gear] .choice-tag { grid-column:1 / -1; justify-self:start; margin:0 0 3px; font-size:10px; }
body.reforged #gear-items .gear-slot-row[data-audit-gear] .choice-name { grid-column:2; font-size:12px; line-height:1.4; text-align:left; }
body.reforged #gear-items .audit-gear-source,body.reforged #gear-items .audit-gear-reason { grid-column:2; display:block; color:#baa98d; font:400 12px/1.45 var(--sans,sans-serif); overflow-wrap:anywhere; }
body.reforged #gear-items .audit-gear-reason { color:#d2c5a7; }
body.reforged #gear-items .audit-gear-raw-stats { display:none; }
body.reforged #gear-items .audit-gear-more { grid-column:1 / -1; padding:0; margin:0; border:0; background:none; }
body.reforged #gear-items .audit-gear-more > summary { min-height:36px; padding:7px 6px; cursor:pointer; font-size:12px; }
body.reforged #gear-items .audit-gear-more-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 16px; }
body.reforged #gear-items .slot-notice,body.reforged #gear-items .slot-empty,body.reforged #gear-items .slot-unique { grid-column:1 / -1; max-width:100%; margin:0; }

@media(max-width:1050px) {
 body.reforged #questing .audit-dungeon .audit-dungeon-name { max-width:88%; }
 body.reforged #questing .audit-dungeon .audit-dungeon-reason,body.reforged #questing .audit-dungeon .audit-dungeon-metrics { max-width:80%; }
 body.reforged #questing .audit-dungeon .audit-dungeon-top-loot { width:86%; }
 body.reforged #questing .audit-dungeon-body .dungeon-key-loot { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
 body.reforged #questing .dungeon-list { gap:14px; }
 body.reforged #questing .audit-dungeon .audit-dungeon-summary { padding:20px 16px 0; min-height:0; }
 body.reforged #questing .audit-dungeon .audit-dungeon-face-content { min-height:0; }
 body.reforged #questing .audit-dungeon .audit-dungeon-art > img { object-position:70% center!important; filter:saturate(.9) brightness(.75); }
 body.reforged #questing .audit-dungeon .audit-dungeon-art::after { background:linear-gradient(90deg,#0e1311d9,#0e131172),linear-gradient(0deg,#0d120ff5 0%,#0d120f8c 40%,#0d120f22 100%); }
 body.reforged #questing .audit-dungeon .audit-dungeon-name { max-width:100%; }
 body.reforged #questing .audit-dungeon .audit-dungeon-name > strong { font-size:24px; }
 body.reforged #questing .audit-dungeon .audit-dungeon-reason,body.reforged #questing .audit-dungeon .audit-dungeon-metrics { max-width:100%; font-size:13px; }
 body.reforged #questing .audit-dungeon .audit-dungeon-metrics { gap:12px 20px; }
 body.reforged #questing .audit-dungeon .audit-dungeon-top-loot { width:100%; max-width:none; gap:6px; }
 body.reforged #questing .audit-dungeon .audit-dungeon-top-item { flex-direction:column; text-align:center; gap:6px; padding:8px 4px; min-height:88px; }
 body.reforged #questing .audit-dungeon .audit-dungeon-top-item strong { font-size:13px; }
 body.reforged #questing .audit-dungeon .audit-dungeon-unknown { max-width:100%; }
 body.reforged #questing .audit-dungeon .audit-dungeon-body { padding:16px; }
 body.reforged #questing .audit-dungeon-body .dungeon-key-loot { grid-template-columns:minmax(0,1fr); }
 body.reforged #gear-items .gear-slot-row[data-audit-gear] { grid-template-columns:minmax(0,1fr); }
 body.reforged #gear-items .gear-slot-row[data-audit-gear] .slot-heading { padding:9px 12px 0; }
 body.reforged #gear-items .gear-slot-row[data-audit-gear] .slot-heading h4 { font-size:14px; }
 body.reforged #gear-items .gear-slot-row[data-audit-gear] .gear-options,body.reforged #gear-items .audit-gear-more-options { grid-template-columns:minmax(0,1fr); }
 body.reforged #gear-items .gear-slot-row[data-audit-gear] .gear-options { padding:9px; gap:7px; }
}
@media(prefers-reduced-motion:reduce){body.reforged #questing .audit-dungeon-chevron{transition:none}}
