#player-tools #open-companions{grid-column:2;grid-row:1}
#player-tools #save-game{grid-row:1}
#companions,#save-panel{box-sizing:border-box;width:min(490px,94vw);max-width:none;max-height:85dvh;overflow:auto;border:1px solid #98845b;border-radius:8px;padding:0;background:#f5eddf;color:#332f25;box-shadow:0 20px 70px #101e1b99;font:14px/1.5 "Microsoft YaHei",sans-serif}
:is(#companions,#save-panel)::backdrop{background:#102421b5}
.folio-top{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;color:#fff2d2;background:linear-gradient(100deg,#163b33,#395442);border-bottom:3px double #bd9d65}
.folio-top h2{margin:0;font:600 23px/1.4 SimSun,serif}
:is(#companions,#save-panel) button{float:none;margin:0;color:#fbf2df;background:#315040;border:1px solid #aa925e;border-radius:4px;padding:6px 12px;cursor:pointer}
.pet-list{padding:17px 17px 9px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
#companions .pet-choice{display:grid;place-items:center;padding:8px;background:radial-gradient(ellipse at 52% 40%,#fff9e8,#e6dcc5);color:#323d31;border:1px solid #c6b999}
#companions .pet-choice[aria-pressed=true]{outline:2px solid #506f54;outline-offset:-2px}
.pet-choice img{width:100%;height:clamp(85px,23vh,155px);object-fit:contain}
.pet-choice strong{font:600 18px/1.5 SimSun,serif}
.pet-choice span{color:#52694e;font-size:12px}
.pet-foot,.save-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 17px 15px}
#save-records{list-style:none;padding:0 17px 14px;margin:0}
#save-records li{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px 0;border-top:1px solid #cec2aa}
#save-records small{display:block;letter-spacing:normal;text-shadow:none;color:#635d4c}
@media(max-height:520px){#player-tools #open-companions{min-height:28px;flex-direction:row}#player-tools #open-companions img{width:18px;height:18px}}
