/* Presentation only. The receipt keeps the existing server values and EXP renderer. */
.journey-direct-dialog:has(.journey-receipt),#modal:has(.journey-receipt){box-sizing:border-box;width:min(540px,calc(100vw - 24px));max-height:min(80dvh,700px);padding:0;overflow:hidden;background:#f7ebd3;color:#1f3329;border:2px solid #b88a60;border-radius:var(--kz-r-md);box-shadow:0 6px 0 #14261ccc}
.journey-direct-dialog:has(.journey-receipt)[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
#modal-content:has(.journey-receipt){display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:min(calc(80dvh - 4px),696px)}
.journey-direct-dialog:has(.journey-receipt)>h2,#modal-content:has(.journey-receipt)>.modal-top{margin:0;padding:16px;background:#1f3329;color:#f7ebd3;border-bottom:2px solid #b88a60;font-size:var(--kz-fs-lg);line-height:1.25}
#modal-content:has(.journey-receipt)>.modal-top h2{margin:0;color:inherit;font-size:var(--kz-fs-lg)}
.journey-receipt{min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain;line-height:1.4}
.journey-receipt h3{margin:0 0 10px;font-size:var(--kz-fs-sm);font-weight:800;line-height:1.3;color:#1f3329}
.receipt-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:20px}
.receipt-summary>div{display:grid;align-content:start;gap:4px;min-width:0;padding:10px 6px;text-align:center;border:1px solid #a3ad85;border-radius:var(--kz-r-md);background:#e6e5ca}
.receipt-summary strong{font-size:var(--kz-fs-lg);line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:#1f3329}
.receipt-summary span{font-size:var(--kz-fs-xs);line-height:1.3;color:#43543a}
.receipt-team{margin-bottom:20px}
.journey-receipt .experience-rewards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
.journey-receipt .experience-reward{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:6px 8px;min-width:0;padding:8px;border:1px solid #bec29b;border-radius:var(--kz-r-md);background:#fff7e4;color:#1f3329}
.journey-receipt .receipt-mon-name{grid-column:1/-1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--kz-fs-xs);line-height:1.3}
.journey-receipt .experience-reward>.rarity-portrait{display:grid;place-items:center;position:relative;box-sizing:border-box;width:44px;height:44px;--portrait-size:40px}
.journey-receipt .rarity-portrait>img{width:38px;height:38px;object-fit:contain}
.journey-receipt .rarity-portrait :is(.portrait-profession-badge,.profession-badge,.tier-stars,.pokemon-lock-badge){display:none}
.journey-receipt .experience-reward>div{flex:1;min-width:0}
.journey-receipt .experience-reward small,.journey-receipt .experience-reward b{display:block;font-size:var(--kz-fs-xs);line-height:1.35}
.journey-receipt .experience-reward b{color:#35622e;font-size:var(--kz-fs-xs)}
.journey-receipt .result-exp-track{position:relative;height:6px;margin:5px 0;overflow:hidden;border-radius:var(--kz-r-sm);background:#d2d7bd}
.journey-receipt .result-exp-track i{position:absolute;top:0;height:100%}
.journey-receipt .result-exp-before{left:0;background:#7e9fa2}
.journey-receipt .result-exp-gain{background:#79aa59}
.journey-receipt .receipt-loot{display:grid;gap:6px;margin:0}
.journey-receipt .receipt-loot>div{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:48px;padding:6px 10px;border:1px solid #c4bf9e;border-radius:var(--kz-r-md);background:#fff7e4}
.journey-receipt .receipt-loot img{width:36px;height:36px;object-fit:contain}
.journey-receipt .receipt-loot span{font-size:var(--kz-fs-xs);line-height:1.3;overflow-wrap:break-word}
.journey-receipt .receipt-loot strong{font-size:var(--kz-fs-sm);font-variant-numeric:tabular-nums;white-space:nowrap}
.journey-receipt .receipt-loot>.muted{margin:0;padding:16px;border:1px dashed #a5af90;border-radius:var(--kz-r-md);color:#516347;text-align:center;font-size:var(--kz-fs-xs)}
.receipt-saved{margin:14px 0 0;color:#516347;font-size:var(--kz-fs-xs);text-align:center}
.journey-direct-dialog:has(.journey-receipt)>#direct-continue,#modal-content:has(.journey-receipt)>.stack{margin:0;padding:12px 16px;border-top:1px solid #b9b38e;background:#eee2c4}
.journey-direct-dialog:has(.journey-receipt)>#direct-continue,#modal-content:has(.journey-receipt)>.stack>button{min-height:46px;margin:12px 16px;padding:10px 16px;border:1px solid #8b642e;border-radius:var(--kz-r-md);background:#ffbf5b;color:#3c2b18;font-size:var(--kz-fs-sm);font-weight:800;box-shadow:0 2px #9b713d}
#modal-content:has(.journey-receipt)>.stack>button{width:100%;margin:0}
@media(max-width:359px){.journey-receipt{padding:12px}.receipt-summary{gap:5px}.receipt-summary strong{font-size:var(--kz-fs-lg)}.journey-receipt .experience-rewards{grid-template-columns:1fr}}

.journey-receipt .rarity-portrait .pokemon-points-dot{position:absolute;top:-5px;right:-5px;width:10px;height:10px;border:2px solid #fff7e4;border-radius:50%;background:#e64d43;z-index:3}
