/* Preserve the eight-row closed mailbox, with the opened letter at its own grid row. */
.messages-panel .message-list.has-open-message{grid-auto-rows:max-content;max-height:calc(406px + min(530px,60vh));overflow-anchor:none}
.messages-panel .message-inline-detail{grid-column:1/-1;min-width:0;min-height:0;margin:0 0 12px;box-sizing:border-box}
.messages-panel .message-inline-detail .personal-thread{margin:0;width:100%;box-sizing:border-box}
/* MAX keeps one line and the same baseline/height as quantity and TRAIN. */
#app .stable-train-form .stable-max-button{box-sizing:border-box;flex:0 0 54px;width:54px;min-width:54px;height:30px;min-height:30px;padding:0 7px;white-space:nowrap;word-break:normal;overflow-wrap:normal;font-size:10px;line-height:1;letter-spacing:0;align-self:center}
#app .stable-train-form>input[name=quantity],#app .stable-train-form>.stable-train-button{box-sizing:border-box;height:30px;min-height:30px;align-self:center}
@media(max-width:600px){.messages-panel .message-list.has-open-message{max-height:calc(518px + min(530px,60vh))}}

#app .stable-train-form>.stable-train-button{padding-top:0;padding-bottom:0;line-height:1}
