/* A single paper record, fitted to the game's canvas rather than the window's black margins. */
html.tx-open-world dialog.tx-harvest {
 position:fixed;inset:auto;left:var(--harvest-x);top:var(--harvest-y);transform:translate(-50%,-50%);
 width:min(960px,var(--harvest-width));max-width:none;max-height:var(--harvest-height);margin:0;padding:0;
 box-sizing:border-box;overflow:hidden;grid-template-rows:auto minmax(0,1fr) auto;
 border:1px solid #617991;border-radius:3px;color:#263442;
 background:#c0cede url('../assets/images/ui/弹窗底板.png') center bottom/100% 135% no-repeat;
 box-shadow:0 12px 45px #020b16aa;font:400 15px/1.65 'Source Han Sans SC','Microsoft YaHei',sans-serif;
}
html.tx-open-world dialog.tx-harvest[open]{display:grid;}
dialog.tx-harvest::backdrop{background:#07101ca8;}
.tx-harvest-head{display:flex;align-items:center;justify-content:space-between;padding:22px 5% 12px;}
.tx-harvest-head h2{margin:0;font:400 30px/1.4 'STKaiti','KaiTi',serif;letter-spacing:.15em;}
.tx-harvest-date{margin:0 0 3px;color:#506577;font-size:12px;}
.tx-harvest-close{align-self:flex-start;border:0;background:transparent;color:#435a70;font-size:28px;line-height:1;cursor:pointer;}
.tx-harvest-body{min-height:0;overflow-y:auto;padding:0 5% 10px;scrollbar-width:thin;scrollbar-color:#768ca0 #bccbdd;}
.tx-harvest-outcome{display:grid;grid-template-columns:210px minmax(0,1fr);gap:20px;align-items:center;}
.tx-harvest-outcome>img{display:block;width:100%;height:128px;object-fit:cover;border:1px solid #788b9c;}
.tx-harvest h3{margin:0 0 7px;font:400 21px/1.4 'STKaiti','KaiTi',serif;color:#304e67;}
.tx-harvest p{margin:4px 0;}
.tx-harvest-section{padding:14px 0;border-top:1px solid #8b9dac88;margin-top:12px;}
.tx-harvest-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 0;}
.tx-harvest-stats>div{display:flex;gap:10px;align-items:baseline;}
.tx-harvest-stats dt{color:#52677a;font-size:13px;}
.tx-harvest-stats dd{margin:0;font-size:19px;font-variant-numeric:tabular-nums;}
.tx-harvest-more{margin-top:10px;font-size:13px;color:#506577;}
.tx-harvest-more summary{cursor:pointer;width:max-content;}
.tx-harvest-tokens{display:flex;flex-wrap:wrap;gap:8px 18px;list-style:none;margin:0;padding:0;}
.tx-harvest-tokens li{display:flex;align-items:center;gap:6px;min-height:30px;max-width:100%;}
.tx-harvest-tokens img{width:28px;height:28px;object-fit:contain;}
.tx-harvest-relation{padding:5px 0;}
.tx-harvest-relation h4{font-size:15px;font-weight:500;margin:0;}
.tx-harvest-relation p,.tx-harvest-muted{color:#506374;font-size:14px;}
.tx-harvest-foot{padding:10px 5% 44px;display:flex;gap:12px;justify-content:space-between;align-items:center;border-top:1px solid #8b9dac88;}
.tx-harvest-award{font-size:13px;color:#425b72;}
.tx-harvest-actions{display:flex;gap:10px;flex-shrink:0;}
.tx-harvest-actions button{padding:7px 21px;border:1px solid #536b87;background:#607390;color:#fff;border-radius:2px;font:inherit;cursor:pointer;}
.tx-harvest-actions .tx-harvest-end{background:#b8c7d7;color:#354c64;}
.tx-harvest button:focus-visible{outline:2px solid #304e75;outline-offset:3px;}
.rebirth-actions{flex:0 0 auto;text-align:center;}
html.tx-open-world .rebirth-actions{display:flex;justify-content:center;gap:1rem;flex-wrap:wrap;}
html.tx-open-world .rebirth-actions :is(#btn-rebirth-back,#btn-rebirth-start){width:15rem;min-height:3.4rem;margin:.8rem 0 0;}
@media(max-width:760px){
 .tx-harvest-head{padding-top:12px;}.tx-harvest-head h2{font-size:24px;}
 .tx-harvest-outcome{grid-template-columns:120px minmax(0,1fr);gap:12px;}
 .tx-harvest-outcome>img{height:90px;}.tx-harvest-outcome p{font-size:13px;}
 .tx-harvest-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
 .tx-harvest-foot{padding-bottom:20px;flex-wrap:wrap;}.tx-harvest-actions{margin-left:auto;}
 .tx-harvest-actions button{padding:6px 14px;}
}
